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