|
@@ -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);
|
|
|
//console.log(res.data);
|
|
|
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的第一张
|
|
|
+ urls: [cur] // 数组,需要预览的图片链接列表
|
|
|
+ })
|
|
|
+},
|
|
|
/**
|
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
|
*/
|