Browse Source

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

tags/富茂链客2.2.8
meo 6 years ago
parent
commit
d98d698f6a
6 changed files with 22 additions and 19 deletions
  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 View File

@@ -1,8 +1,9 @@
var config = {
// 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: "http://31adc9ce.ngrok.io/C/api",
url:'https://ctest.malls.iformall.com/C/api',
api: {
/**
* 接口用途:login
@@ -167,7 +168,7 @@ var config = {
},

weapp: {
AppId: "wxea71200db93d756b"
AppId: "wx649b3be73c1afe47"
},
ErrorCode: {
NICK_NOT_AUTH: 11004,


+ 14
- 14
pages/coupon/detail/index.js View File

@@ -448,13 +448,13 @@ Page({
key: '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 => {
@@ -490,13 +490,13 @@ Page({
}`
});
}, 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 View File

@@ -124,7 +124,7 @@ Page({
})
.catch(err => {
wx.showToast({
title: err.errMsg,
title: err.message,
icon: 'none',
duration: 2000,
mask: false


+ 3
- 0
pages/passCar/passCar.js View File

@@ -47,6 +47,7 @@ Page({
console.log(res)
},
gotoetcp:function(){
console.log(this.data.extraData)
wx.navigateToMiniProgram({
appId:'wx192b7d2e8dcbefd0',
extraData: this.data.extraData,
@@ -76,6 +77,8 @@ Page({
if (app.globalData.token) {
that.getList();
that.init();
}else{
that.init();
}
/**
* 只有用户选择了优惠券


+ 0
- 1
pages/passCar/passCar.wxml View File

@@ -61,7 +61,6 @@


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


+ 1
- 1
project.config.json View File

@@ -12,7 +12,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.0.9",
"appid": "wxea71200db93d756b",
"appid": "wx649b3be73c1afe47",
"projectname": "C",
"isGameTourist": false,
"condition": {


Loading…
Cancel
Save