瀏覽代碼

upload

product
HolyKnightIX 7 月之前
父節點
當前提交
8238a0ad03
共有 6 個文件被更改,包括 109 次插入105 次删除
  1. +26
    -30
      ext.json
  2. +16
    -14
      pages/edit/edit.js
  3. +14
    -12
      pages/radetail/joinActivity/edit.js
  4. +36
    -34
      pages/radetail/success/index.js
  5. +16
    -14
      pages3/setUserInfo/index.js
  6. +1
    -1
      project.config.json

+ 26
- 30
ext.json 查看文件

@@ -2,35 +2,45 @@
"ext": {
"attr": {
"car": {
"tjd": {
"payPath": "",
"tjdAppId": "wx6945d1bda68d7993"
},
"etcp": {
"etcpAppId": "wx192b7d2e8dcbefd0",
"etcpVersion": "release",
"etcpCallbackUrl": "https://admintest.malls.iformall.com/api/carCallback/etcpPaidCallback"
}
"payPath": "pages/pay/order-pay-open/main",
"etcpAppId": "wxc07f9d67923d676d",
"etcpCallbackUrl": "https://admin.malls.iformall.com/api/carCallback/etcpPaidCallback"
},
"bolink": {
"payPath": "pages/park/park",
"bolinkAppId": "wxbd08b4baa10fcc1d"
},
"version": "release"
},
"mchId": "1604439800",
"mchId": "1698320008",
"imgProxy": [
{
"newUrl": "https://ctest.malls.iformall.com/img",
"newUrl": "https://c.malls.iformall.com/img",
"orgUrl": "https://iformall-net.formall.oss-accelerate.aliyuncs.com"
},
{
"newUrl": "https://ctest.malls.iformall.com/img1",
"newUrl": "https://c.malls.iformall.com/img1",
"orgUrl": "https://formall.oss-accelerate.aliyuncs.com"
},
{
"newUrl": "https://ctest.malls.iformall.com/img2",
"newUrl": "https://c.malls.iformall.com/img2",
"orgUrl": "https://wx.qlogo.cn"
}
],
"configUrl": "https://ctest.malls.iformall.com/C/api",
"businessSwitch": "1",
"mchIdOld": "1698320008",
"configUrl": "https://c.malls.iformall.com/C/api",
"ifStoreApp": "0",
"ifHaveWebSocket": "0",
"ifHaveCarModular": "1"
},
"name": "金泸商务",
"weappId": "wx649b3be73c1afe47",
"appVersion": "C.test.5.2.0"
"name": "株洲东都国际广场",
"weappId": "wxdcaa5b92ea7de725",
"appVersion": "C.5.1.1"
},
"debug": false,
"tabBar": {
@@ -66,8 +76,7 @@
"selectedIconPath": "assets/images/user-a.png"
}
],
"color": "#abb1be",
"selectedColor": "#b2743d"
"custom": true
},
"window": {
"backgroundTextStyle": "dark",
@@ -75,17 +84,7 @@
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#FFFFFF"
},
"plugins": {
"auto-points-plugin": {
"version": "1.3.0",
"provider": "wxfab2bf944bfc4da6"
},
"live-player-plugin": {
"version": "1.3.4",
"provider": "wx2b03c6e691cd7370"
}
},
"extAppid": "wx649b3be73c1afe47",
"extAppid": "wxdcaa5b92ea7de725",
"extEnable": true,
"permission": {
"scope.userLocation": {
@@ -97,8 +96,5 @@
"request": 30000,
"downloadFile": 10000
},
"requiredPrivateInfos": [
"chooseLocation",
"getLocation"
]
"privacy_api_not_use": true
}

+ 16
- 14
pages/edit/edit.js 查看文件

@@ -56,20 +56,22 @@ Page({
})
},
address: function () {
let that = this;
wx.chooseLocation({
success: function (res) {
that.setData({
address: res.name + '(' + res.address + ')',
addressStr: JSON.stringify(res)
})
},
fail: function (error) {
console.log(error)
},
complete: function (data) {
}
})
return
// let that = this;
// wx.choose
// Location({
// success: function (res) {
// that.setData({
// address: res.name + '(' + res.address + ')',
// addressStr: JSON.stringify(res)
// })
// },
// fail: function (error) {
// console.log(error)
// },
// complete: function (data) {
// }
// })
},
formSubmit: function (e) {
console.log(e.detail, "formSubmit")


+ 14
- 12
pages/radetail/joinActivity/edit.js 查看文件

@@ -62,19 +62,21 @@ Page({
})
},
address: function () {
return
let that = this;
wx.chooseLocation({
success: function (res) {
that.setData({
address: res.name + '(' + res.address + ')',
addressStr: JSON.stringify(res)
})
},
fail: function (error) {
console.log(error)
},
complete: function (data) { }
})
// wx.chooseLo
// cation({
// success: function (res) {
// that.setData({
// address: res.name + '(' + res.address + ')',
// addressStr: JSON.stringify(res)
// })
// },
// fail: function (error) {
// console.log(error)
// },
// complete: function (data) { }
// })
},
change(value) {
console.log(value)


+ 36
- 34
pages/radetail/success/index.js 查看文件

@@ -23,11 +23,11 @@ Page({
array1: ['附近住户', '距离2km', '距离3km', '更远'],
index: 0,
index1: 0,
showPage:false,
credit:"",
goHomeUrl:"",
showPage: false,
credit: "",
goHomeUrl: "",
},
gotomyAc(){
gotomyAc() {
wx.navigateTo({
url: '/pages/user/myactivity/index',
})
@@ -64,20 +64,22 @@ Page({
})
},
address: function () {
return
let that = this;
wx.chooseLocation({
success: function (res) {
that.setData({
address: res.name + '(' + res.address + ')',
addressStr: JSON.stringify(res)
})
},
fail: function (error) {
console.log(error)
},
complete: function (data) {
}
})
// wx.chooseL
// ocation({
// success: function (res) {
// that.setData({
// address: res.name + '(' + res.address + ')',
// addressStr: JSON.stringify(res)
// })
// },
// fail: function (error) {
// console.log(error)
// },
// complete: function (data) {
// }
// })
},
formSubmit: function (e) {
let that = this;
@@ -115,7 +117,7 @@ Page({
if (username == null || address == null || sex == 0 || birthdate == null) {
wx.showToast({
title: '请输入完整的用户信息',
icon:"none"
icon: "none"
})
} else {
Http.post({
@@ -128,22 +130,22 @@ Page({
activityId: that.data.activityId
}
})
.then(res => {
wx.showToast({
title: "修改成功",
icon: 'none',
duration: 2000,
mask: false
.then(res => {
wx.showToast({
title: "修改成功",
icon: 'none',
duration: 2000,
mask: false
})
})
})
.catch(err => {
wx.showToast({
title: err.message,
icon: 'none',
duration: 2000,
mask: false
.catch(err => {
wx.showToast({
title: err.message,
icon: 'none',
duration: 2000,
mask: false
})
})
})
}
},
radioChange: function (e) {
@@ -161,7 +163,7 @@ Page({
goHomeUrl: app.globalData.goHomeUrl,
})
console.log(options)
if (options && options.activityId){
if (options && options.activityId) {
that.setData({
activityId: options.activityId
})
@@ -177,7 +179,7 @@ Page({
}
}).then(res => {
if (res && res.data && res.data.activity) {
if (res.data.activity.useCredit===1){
if (res.data.activity.useCredit === 1) {
that.setData({
credit: res.data.activity.credit
})


+ 16
- 14
pages3/setUserInfo/index.js 查看文件

@@ -115,21 +115,23 @@ Page({
},

setAddress() {
return
let that = this;
wx.chooseLocation({
success: function (res) {
that.setData({
address: res.name + '(' + res.address + ')',
addressStr: JSON.stringify(res)
})
},
fail: function (error) {
console.log(error)
},
complete: function (data) {

}
})
// wx.chooseL
// ocation({
// success: function (res) {
// that.setData({
// address: res.name + '(' + res.address + ')',
// addressStr: JSON.stringify(res)
// })
// },
// fail: function (error) {
// console.log(error)
// },
// complete: function (data) {

// }
// })
},

goSetChildren() {


+ 1
- 1
project.config.json 查看文件

@@ -35,7 +35,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.11.2",
"appid": "wxfa336cad86ed598d",
"appid": "wx453ae0d37f3550d0",
"projectname": "C",
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},


Loading…
取消
儲存