浏览代码

停车券重复领取的问题

tags/河北版C.8.1.01
caserKing 5 年前
父节点
当前提交
2fdb315941
共有 2 个文件被更改,包括 15 次插入11 次删除
  1. +0
    -2
      components/hot/index.js
  2. +15
    -9
      pages/passCar/passCar.js

+ 0
- 2
components/hot/index.js 查看文件

@@ -52,8 +52,6 @@ Component({
url: config.api.change,
data:param,
}).then(res => {
console.log(res)
console.log(123)
if(res.data != undefined && res.data){
if(val=='1'){
that.setData({


+ 15
- 9
pages/passCar/passCar.js 查看文件

@@ -76,10 +76,12 @@ Page({
quanid: quanid,
showTicketModal: false,
});
wx.setStorage({
that.bindCoupon(that.data.quanid);
/* wx.setStorage({
key: 'chosed',
data: 'chosed',
})
}) */
},
/*
*/
@@ -93,7 +95,7 @@ Page({
url: config.api.couponOrderCarList,
data: {
pageNum: pageNum,
pageSize: 15,
pageSize: 4,
couponOrderStatus: key
}
}).then(res => {
@@ -242,14 +244,14 @@ Page({
* 只有用户选择了优惠券
* 才会进行券和车牌的绑定
*/
if (wx.getStorageSync("chosed") && that.data.quanid) {
/* if (wx.getStorageSync("chosed") && that.data.quanid) {
that.getStopFee(that.data.listCardNum);
that.bindCoupon(that.data.quanid);
wx.setStorage({
key: 'chosed',
data: '',
})
};
}; */
if (app.globalData.token) {
// that.initUsrCarList();
that.initUsrCarList("flags");
@@ -446,6 +448,7 @@ Page({
data: postCouponData
})
.then(res => {
that.getStopFee(that.data.listCardNum);
that.initUsrCarList();
})
.catch(err => {
@@ -488,11 +491,14 @@ Page({
this.setData({
showTicketModal: true,
allow_load: true,
ticketList: [],
curPageNum: 1,
})
if (!this.data.ticketList.length){
this.getTicketList(0, 1);
/* if (!this.data.ticketList.length){
this.getTicketList(0, 1);
}
} */
},
@@ -503,7 +509,7 @@ Page({
url: config.api.couponOrderCarList + "?type=5&couponOrderStatus=0",
data: {
pageNum: 1,
pageSize: 15,
pageSize: 4,
couponOrderStatus: 0
}
}).then(res => {


正在加载...
取消
保存