|
|
@@ -37,9 +37,9 @@ Page({ |
|
|
|
/**
|
|
|
|
* 获得停车费用
|
|
|
|
*/
|
|
|
|
// if(that.data.scroll){
|
|
|
|
// that.getStopFee(listCardNum);
|
|
|
|
// }
|
|
|
|
if(that.data.scroll){
|
|
|
|
that.getStopFee(listCardNum);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
gotomange: function() {
|
|
|
|
wx.navigateTo({
|
|
|
@@ -522,8 +522,8 @@ Page({ |
|
|
|
* 获得停车费用修改
|
|
|
|
*/
|
|
|
|
getStopFee: function(carNumber) {
|
|
|
|
var that = this;
|
|
|
|
var postData =
|
|
|
|
let that = this;
|
|
|
|
let postData =
|
|
|
|
app.globalData.parkVendor == 1 ? {
|
|
|
|
etcpToken: app.globalData.etcpToken,
|
|
|
|
carNumber: carNumber
|
|
|
@@ -531,6 +531,7 @@ Page({ |
|
|
|
carNumber: carNumber,
|
|
|
|
outCarId: outCarId
|
|
|
|
};
|
|
|
|
console.log(postData)
|
|
|
|
Http.post({
|
|
|
|
url: config.api.getCarStopFee,
|
|
|
|
data: postData
|
|
|
@@ -552,9 +553,9 @@ Page({ |
|
|
|
stopFees: res.data,
|
|
|
|
timecha: Util.timecha(res.data.exitTime, res.data.entranceTime)
|
|
|
|
});
|
|
|
|
// that.setData({
|
|
|
|
// scroll:true
|
|
|
|
// })
|
|
|
|
that.setData({
|
|
|
|
scroll:true
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(error => {
|
|
|
|
console.log(error)
|
|
|
@@ -565,7 +566,7 @@ Page({ |
|
|
|
})
|
|
|
|
that.setData({
|
|
|
|
stopFees: {},
|
|
|
|
// scroll: false
|
|
|
|
scroll: true
|
|
|
|
})
|
|
|
|
});
|
|
|
|
},
|
|
|
|