|
|
@@ -503,16 +503,25 @@ Page({ |
|
|
|
* flag ==flags
|
|
|
|
* 表示从首页onShow进来的
|
|
|
|
*/
|
|
|
|
if (flag == "flags" && res.data.length > 0) {
|
|
|
|
var listCardNum = res.data[0].carNumber;
|
|
|
|
that.setData({
|
|
|
|
listCardNum: listCardNum
|
|
|
|
})
|
|
|
|
/**
|
|
|
|
* 获得停车费用
|
|
|
|
*/
|
|
|
|
that.getStopFee(listCardNum);
|
|
|
|
}
|
|
|
|
// if (flag == "flags" && res.data.length > 0) {
|
|
|
|
// var listCardNum = res.data[0].carNumber;
|
|
|
|
// that.setData({
|
|
|
|
// listCardNum: listCardNum
|
|
|
|
// })
|
|
|
|
// /**
|
|
|
|
// * 获得停车费用
|
|
|
|
// */
|
|
|
|
// that.getStopFee(listCardNum);
|
|
|
|
// }
|
|
|
|
var listCardNum = res.data[0].carNumber;
|
|
|
|
that.setData({
|
|
|
|
listCardNum: listCardNum,
|
|
|
|
current:0
|
|
|
|
})
|
|
|
|
/**
|
|
|
|
* 获得停车费用
|
|
|
|
*/
|
|
|
|
that.getStopFee(listCardNum);
|
|
|
|
})
|
|
|
|
.catch(err => {
|
|
|
|
wx.showToast({
|
|
|
|