|
@@ -67,6 +67,7 @@ Page({
|
|
|
},
|
|
|
method: 'POST',
|
|
|
success(res) {
|
|
|
+
|
|
|
//userInfo.flag = true;
|
|
|
if (isLogin && userInfo.flag) {
|
|
|
wx.request({
|
|
@@ -78,7 +79,7 @@ Page({
|
|
|
},
|
|
|
method: 'POST',
|
|
|
success(res1) {
|
|
|
- //console.log(res1);
|
|
|
+
|
|
|
var myChargeStationsIds = '';
|
|
|
res1.data.forEach((item, index) => {
|
|
|
myChargeStationsIds += item.id + ",";
|
|
@@ -124,7 +125,8 @@ Page({
|
|
|
flatChargPrice : item.flatChargPrice,
|
|
|
flatServicePrice : item.flatServicePrice,
|
|
|
valleyChargPrice : item.valleyChargPrice,
|
|
|
- valleyServicePrice : item.valleyServicePrice
|
|
|
+ valleyServicePrice : item.valleyServicePrice,
|
|
|
+ resultList: item.resultList
|
|
|
|
|
|
|
|
|
};
|
|
@@ -187,7 +189,8 @@ Page({
|
|
|
flatChargPrice : item.flatChargPrice,
|
|
|
flatServicePrice : item.flatServicePrice,
|
|
|
valleyChargPrice : item.valleyChargPrice,
|
|
|
- valleyServicePrice : item.valleyServicePrice
|
|
|
+ valleyServicePrice : item.valleyServicePrice,
|
|
|
+ resultList: item.resultList
|
|
|
};
|
|
|
markers[index] = marker;
|
|
|
});
|
|
@@ -251,6 +254,10 @@ Page({
|
|
|
},
|
|
|
method: 'POST',
|
|
|
success(res) {
|
|
|
+ var chargPile = res.data;
|
|
|
+ let resultTable = chargPile.resultList
|
|
|
+ that.resetResultList(resultTable);
|
|
|
+ that.resetResultData(resultTable,chargPile)
|
|
|
//userInfo.flag = true;
|
|
|
if (isLogin && userInfo.flag) {
|
|
|
wx.request({
|
|
@@ -262,7 +269,6 @@ Page({
|
|
|
},
|
|
|
method: 'POST',
|
|
|
success(res1) {
|
|
|
- //console.log(res1);
|
|
|
var myChargeStationsIds = '';
|
|
|
res1.data.forEach((item, index) => {
|
|
|
myChargeStationsIds += item.id + ",";
|
|
@@ -315,7 +321,8 @@ Page({
|
|
|
flatChargPrice : item.flatChargPrice,
|
|
|
flatServicePrice : item.flatServicePrice,
|
|
|
valleyChargPrice : item.valleyChargPrice,
|
|
|
- valleyServicePrice : item.valleyServicePrice
|
|
|
+ valleyServicePrice : item.valleyServicePrice,
|
|
|
+ resultList: item.resultList
|
|
|
};
|
|
|
if (myChargeStationsIds.indexOf(item.id + ',') != -1) {
|
|
|
marker.userFlag = true;
|
|
@@ -382,7 +389,8 @@ Page({
|
|
|
flatChargPrice : item.flatChargPrice,
|
|
|
flatServicePrice : item.flatServicePrice,
|
|
|
valleyChargPrice : item.valleyChargPrice,
|
|
|
- valleyServicePrice : item.valleyServicePrice
|
|
|
+ valleyServicePrice : item.valleyServicePrice,
|
|
|
+ resultList: item.resultList
|
|
|
};
|
|
|
markers[index] = marker;
|
|
|
});
|