|
@@ -15,6 +15,8 @@ Page({
|
|
|
carParkingRate: false,
|
|
|
|
|
|
parkTime: 0,
|
|
|
+ url:'/images/scan_result.png',
|
|
|
+ authStatus: 1,
|
|
|
},
|
|
|
resetResultList(resultList){
|
|
|
let that = this
|
|
@@ -44,11 +46,12 @@ Page({
|
|
|
console.log(res);
|
|
|
|
|
|
var chargPile = res.data;
|
|
|
-
|
|
|
+ let authStatus = chargPile.authStatus
|
|
|
let resultTable = chargPile.resultList
|
|
|
that.resetResultList(resultTable)
|
|
|
that.setData({
|
|
|
- resultTable
|
|
|
+ resultTable,
|
|
|
+ authStatus
|
|
|
})
|
|
|
chargPile.sharpTotalPrice = parseFloat((chargPile.sharpChargPrice + chargPile.sharpServicePrice).toFixed(6));
|
|
|
chargPile.peakTotalPrice = parseFloat((chargPile.peakChargPrice + chargPile.peakServicePrice).toFixed(6));
|
|
@@ -445,7 +448,14 @@ Page({
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
+ previewImage(e){
|
|
|
+ let cur = e.target.dataset.src;
|
|
|
+ console.info(cur)
|
|
|
+ wx.previewImage({
|
|
|
+ current: cur,
|
|
|
+ urls: [cur]
|
|
|
+ })
|
|
|
+},
|
|
|
|
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
|
*/
|