Explorar el Código

修改站点列表展示充电电费为当前时段电费

zuypeng hace 11 meses
padre
commit
bbadb614c6

+ 1 - 1
src/pages-charge/machines/machines.vue

@@ -264,7 +264,7 @@ onLoad((options: any) => {
             }
           });
         }
-        res.totalFee = (Number(res.serviceFee)+Number(res.electricityFee)).toFixed(2)
+        // res.totalFee = (Number(res.currentPolicyInfo?.servicePrice||0)+Number(res.currentPolicyInfo?.elecPrice||0)).toFixed(2)
 
         res.bannerImages = res.pictures.split(";");
         station.value = res;

+ 1 - 1
src/pages-charge/search/search.vue

@@ -128,7 +128,7 @@ const search = function () {
                 item.location.stationLat,
                 item.location.stationLng
             );
-            item.totalFee = (Number(item.serviceFee)+Number(item.electricityFee)).toFixed(2)
+            item.totalFee = (Number(item.currentPolicyInfo?.servicePrice||0)+Number(item.currentPolicyInfo?.elecPrice||0)).toFixed(2)
           })
         }
         list.value = res;

+ 1 - 1
src/pages-user/collect/collect.vue

@@ -57,7 +57,7 @@ onLoad(() => {
             item.location.stationLat,
             item.location.stationLng
         );
-        item.totalFee = (Number(item.serviceFee)+Number(item.electricityFee)).toFixed(2)
+        item.totalFee = (Number(item.currentPolicyInfo?.servicePrice||0)+Number(item.currentPolicyInfo?.elecPrice||0)).toFixed(2)
       })
     }
     list.value = res;

+ 3 - 3
src/pages/map/map.vue

@@ -190,7 +190,7 @@
               :fast="item.fastEquipmentInfos"
               :slow="item.slowEquipmentInfos"
               :sId="item.StationID"
-              :distance="item.stationLatDistance"
+              :distance="item.distance"
               :latitude="item.location.stationLat"
               :longitude="item.location.stationLng"
               :availableParkingNum="item.availableParkingNum"
@@ -212,7 +212,7 @@
               :fast="station[markersIndex].fastEquipmentInfos"
               :slow="station[markersIndex].slowEquipmentInfos"
               :sId="station[markersIndex].StationID"
-              :distance="station[markersIndex].stationLatDistance"
+              :distance="station[markersIndex].distance"
               :latitude="station[markersIndex].location.stationLat"
               :longitude="station[markersIndex].location.stationLng"
               :availableParkingNum="station[markersIndex].availableParkingNum"
@@ -417,7 +417,7 @@ const refreshStation = (location: any) => {
     const _markersIndex = stationPage.value.page === 1 ? 0 : markersIndex.value;
     // console.log("xxxxx",res)
     const _markers: any[] = res.map((item, index) => {
-      item.totalFee =(Number(item.serviceFee)+Number(item.electricityFee)).toFixed(2)
+      item.totalFee =(Number(item.currentPolicyInfo?.servicePrice||0)+Number(item.currentPolicyInfo?.elecPrice||0)).toFixed(2)
       length = 0;
       available = 0;
       // item.equipmentInfos &&

+ 1 - 1
src/utils/http.ts

@@ -89,7 +89,7 @@ class Http {
         })
         .then((res) => {
           // eslint-disable-next-line no-console
-          console.log("接口返回", res);
+          // console.log("接口返回", res);
           const { message = '' } = res || {
             msg: "出现错误",
           };