|
@@ -48,7 +48,7 @@ Page({ |
|
|
/**
|
|
|
/**
|
|
|
* 获得停车费用
|
|
|
* 获得停车费用
|
|
|
*/
|
|
|
*/
|
|
|
if (that.data.scroll) {
|
|
|
|
|
|
|
|
|
if (that.data.scroll && app.globalData.etcpToken) {
|
|
|
that.getStopFee(listCardNum);
|
|
|
that.getStopFee(listCardNum);
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -109,7 +109,9 @@ Page({ |
|
|
* 才会进行券和车牌的绑定
|
|
|
* 才会进行券和车牌的绑定
|
|
|
*/
|
|
|
*/
|
|
|
if (wx.getStorageSync("chosed") && that.data.quanid) {
|
|
|
if (wx.getStorageSync("chosed") && that.data.quanid) {
|
|
|
that.getStopFee(that.data.listCardNum);
|
|
|
|
|
|
|
|
|
if (app.globalData.etcpToken){
|
|
|
|
|
|
that.getStopFee(that.data.listCardNum);
|
|
|
|
|
|
}
|
|
|
that.bindCoupon(that.data.quanid);
|
|
|
that.bindCoupon(that.data.quanid);
|
|
|
wx.setStorage({
|
|
|
wx.setStorage({
|
|
|
key: 'chosed',
|
|
|
key: 'chosed',
|
|
@@ -499,10 +501,6 @@ Page({ |
|
|
that.setData({
|
|
|
that.setData({
|
|
|
carList: res.data
|
|
|
carList: res.data
|
|
|
});
|
|
|
});
|
|
|
/**
|
|
|
|
|
|
* flag ==flags
|
|
|
|
|
|
* 表示从首页onShow进来的
|
|
|
|
|
|
*/
|
|
|
|
|
|
if (res.data&&res.data.length > 0) {
|
|
|
if (res.data&&res.data.length > 0) {
|
|
|
var listCardNum = res.data[0].carNumber;
|
|
|
var listCardNum = res.data[0].carNumber;
|
|
|
that.setData({
|
|
|
that.setData({
|
|
@@ -512,6 +510,7 @@ Page({ |
|
|
/**
|
|
|
/**
|
|
|
* 获得停车费用
|
|
|
* 获得停车费用
|
|
|
*/
|
|
|
*/
|
|
|
|
|
|
console.log("333")
|
|
|
that.getStopFee(listCardNum);
|
|
|
that.getStopFee(listCardNum);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|