| @@ -1,8 +1,9 @@ | |||||
| var config = { | var config = { | ||||
| // url: "http://10.11.207.233:7000/C/api", | // url: "http://10.11.207.233:7000/C/api", | ||||
| url: "https://ciformall.youlane.cn/C/api", | |||||
| // url: "https://ciformall.youlane.cn/C/api", | |||||
| // url:"https://c.malls.iformall.com/C/api", | // url:"https://c.malls.iformall.com/C/api", | ||||
| // url: "http://31adc9ce.ngrok.io/C/api", | // url: "http://31adc9ce.ngrok.io/C/api", | ||||
| url:'https://ctest.malls.iformall.com/C/api', | |||||
| api: { | api: { | ||||
| /** | /** | ||||
| * 接口用途:login | * 接口用途:login | ||||
| @@ -167,7 +168,7 @@ var config = { | |||||
| }, | }, | ||||
| weapp: { | weapp: { | ||||
| AppId: "wxea71200db93d756b" | |||||
| AppId: "wx649b3be73c1afe47" | |||||
| }, | }, | ||||
| ErrorCode: { | ErrorCode: { | ||||
| NICK_NOT_AUTH: 11004, | NICK_NOT_AUTH: 11004, | ||||
| @@ -448,13 +448,13 @@ Page({ | |||||
| key: 'couponNum', | key: 'couponNum', | ||||
| data: "couponNum", | data: "couponNum", | ||||
| }) | }) | ||||
| if (that.data.data.type == 5) { | |||||
| setTimeout(() => { | |||||
| wx.switchTab({ | |||||
| url: '/pages/passCar/passCar' | |||||
| }); | |||||
| }, 1600); | |||||
| } | |||||
| // if (that.data.data.type == 5) { | |||||
| // setTimeout(() => { | |||||
| // wx.switchTab({ | |||||
| // url: '/pages/passCar/passCar' | |||||
| // }); | |||||
| // }, 1600); | |||||
| // } | |||||
| } | } | ||||
| }, | }, | ||||
| fail: res => { | fail: res => { | ||||
| @@ -490,13 +490,13 @@ Page({ | |||||
| }` | }` | ||||
| }); | }); | ||||
| }, 1000) | }, 1000) | ||||
| if (that.data.data.type == 5) { | |||||
| setTimeout(() => { | |||||
| wx.switchTab({ | |||||
| url: '/pages/passCar/passCar' | |||||
| }); | |||||
| }, 1600); | |||||
| } | |||||
| // if (that.data.data.type == 5) { | |||||
| // setTimeout(() => { | |||||
| // wx.switchTab({ | |||||
| // url: '/pages/passCar/passCar' | |||||
| // }); | |||||
| // }, 1600); | |||||
| // } | |||||
| } | } | ||||
| } | } | ||||
| }) | }) | ||||
| @@ -124,7 +124,7 @@ Page({ | |||||
| }) | }) | ||||
| .catch(err => { | .catch(err => { | ||||
| wx.showToast({ | wx.showToast({ | ||||
| title: err.errMsg, | |||||
| title: err.message, | |||||
| icon: 'none', | icon: 'none', | ||||
| duration: 2000, | duration: 2000, | ||||
| mask: false | mask: false | ||||
| @@ -47,6 +47,7 @@ Page({ | |||||
| console.log(res) | console.log(res) | ||||
| }, | }, | ||||
| gotoetcp:function(){ | gotoetcp:function(){ | ||||
| console.log(this.data.extraData) | |||||
| wx.navigateToMiniProgram({ | wx.navigateToMiniProgram({ | ||||
| appId:'wx192b7d2e8dcbefd0', | appId:'wx192b7d2e8dcbefd0', | ||||
| extraData: this.data.extraData, | extraData: this.data.extraData, | ||||
| @@ -76,6 +77,8 @@ Page({ | |||||
| if (app.globalData.token) { | if (app.globalData.token) { | ||||
| that.getList(); | that.getList(); | ||||
| that.init(); | that.init(); | ||||
| }else{ | |||||
| that.init(); | |||||
| } | } | ||||
| /** | /** | ||||
| * 只有用户选择了优惠券 | * 只有用户选择了优惠券 | ||||
| @@ -61,7 +61,6 @@ | |||||
| <view class="buy-view" wx:if="{{stopFees.orderId}}"> | <view class="buy-view" wx:if="{{stopFees.orderId}}"> | ||||
| <navigator bindfail="bindfail" path="pages/main/main" wx:if="{{canIUse}}" class='buy' target="miniProgram" open-type="navigate" app-id="wx192b7d2e8dcbefd0" extra-data='{{extraData}}' version="trial"> | <navigator bindfail="bindfail" path="pages/main/main" wx:if="{{canIUse}}" class='buy' target="miniProgram" open-type="navigate" app-id="wx192b7d2e8dcbefd0" extra-data='{{extraData}}' version="trial"> | ||||
| 立即支付 | 立即支付 | ||||
| </navigator> | </navigator> | ||||
| @@ -12,7 +12,7 @@ | |||||
| }, | }, | ||||
| "compileType": "miniprogram", | "compileType": "miniprogram", | ||||
| "libVersion": "2.0.9", | "libVersion": "2.0.9", | ||||
| "appid": "wxea71200db93d756b", | |||||
| "appid": "wx649b3be73c1afe47", | |||||
| "projectname": "C", | "projectname": "C", | ||||
| "isGameTourist": false, | "isGameTourist": false, | ||||
| "condition": { | "condition": { | ||||