Bläddra i källkod

[错误信息提示修改,优惠券详情][修改]

tags/富茂链客2.2.8
meo 6 år sedan
förälder
incheckning
d98d698f6a
6 ändrade filer med 22 tillägg och 19 borttagningar
  1. +3
    -2
      config/config.js
  2. +14
    -14
      pages/coupon/detail/index.js
  3. +1
    -1
      pages/edit/edit.js
  4. +3
    -0
      pages/passCar/passCar.js
  5. +0
    -1
      pages/passCar/passCar.wxml
  6. +1
    -1
      project.config.json

+ 3
- 2
config/config.js Visa fil

@@ -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,


+ 14
- 14
pages/coupon/detail/index.js Visa fil

@@ -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);
// }
} }
} }
}) })


+ 1
- 1
pages/edit/edit.js Visa fil

@@ -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


+ 3
- 0
pages/passCar/passCar.js Visa fil

@@ -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();
} }
/** /**
* 只有用户选择了优惠券 * 只有用户选择了优惠券


+ 0
- 1
pages/passCar/passCar.wxml Visa fil

@@ -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>


+ 1
- 1
project.config.json Visa fil

@@ -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": {


Laddar…
Avbryt
Spara