|
|
@@ -14,6 +14,7 @@ Page({
|
|
|
date: '',
|
|
|
latitude: 0, //用户当前经度
|
|
|
longitude: 0, //用户当前纬度
|
|
|
+ stationName:'',//油站名
|
|
|
stationLatitude: 0, //站点经度
|
|
|
stationLongitude: 0, //站点纬度
|
|
|
startDate: '',
|
|
|
@@ -156,6 +157,7 @@ Page({
|
|
|
endDate: lastMouthDay
|
|
|
});
|
|
|
console.log("历史页当前data", this.data)
|
|
|
+ this.getStationInfo();
|
|
|
// this.startCountdow();
|
|
|
},
|
|
|
|
|
|
@@ -174,12 +176,19 @@ Page({
|
|
|
}
|
|
|
console.log("站点信息", res)
|
|
|
const stationLocation = res.data.data.site.gpsCoordinates.split(",");
|
|
|
+ const name = res.data.data.site.name;
|
|
|
+
|
|
|
+ that.setData({
|
|
|
+ stationName:name,
|
|
|
+ })
|
|
|
+
|
|
|
if (stationLocation.length == 2) {
|
|
|
that.setData({
|
|
|
stationLatitude: stationLocation[0],
|
|
|
stationLongitude: stationLocation[1]
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
this.getLocation();
|
|
|
})
|
|
|
},
|
|
|
@@ -414,7 +423,8 @@ Page({
|
|
|
discount: order.originalAmount - order.actualPaymentAmount,
|
|
|
orderId: order.id,
|
|
|
time: time,
|
|
|
- price: order.price
|
|
|
+ price: order.price,
|
|
|
+ station:that.data.stationName
|
|
|
},
|
|
|
bottonText2: bt2,
|
|
|
orderType:order.orderType
|
|
|
@@ -441,7 +451,8 @@ Page({
|
|
|
discount: order.originalAmount - order.actualPaymentAmount,
|
|
|
refund: order.refundAmount,
|
|
|
orderId: order.id,
|
|
|
- time: time
|
|
|
+ time: time,
|
|
|
+ station:that.data.stationName
|
|
|
},
|
|
|
bottonText1: bt1,
|
|
|
bottonText2: bt2,
|