Selaa lähdekoodia

[停车费用获取]

tags/广东版3.2.1
meo 6 vuotta sitten
vanhempi
commit
05b9294d10
1 muutettua tiedostoa jossa 10 lisäystä ja 9 poistoa
  1. +10
    -9
      pages/passCar/passCar.js

+ 10
- 9
pages/passCar/passCar.js Näytä tiedosto

@@ -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
})
});
},


Ladataan…
Peruuta
Tallenna