瀏覽代碼

修复费率显示以及优化查询占位费模版方式

jiuling 2 月之前
父節點
當前提交
1d9b48466f
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      components/parking-order/parking-order.js
  2. 1 1
      pages/index/index.js

+ 1 - 1
components/parking-order/parking-order.js

@@ -94,7 +94,7 @@ Component({
       return;
   }
   wx.request({
-      url: 'https://jqcs.pjnes.com/cloud/occupyfee/evcs/occupyfee/template',
+      url: getApp().globalData.postHeadAgreement.replace('/chargapi', '') + '/occupyfee/evcs/occupyfee/template',
       data: occupyFeeOrder.orderId,
       method: 'POST',
       success(res) {

+ 1 - 1
pages/index/index.js

@@ -778,7 +778,7 @@ Page({
         item.resultList.forEach(item=>{
           item["sumPrice"] = that.resetResultListSumPrice(item)
           item.elecPrice = item.elecPrice || item.elecPrice.toFixed(8).replace(/\.?0+$/, "")
-          item.servicePrice = item.elecPrice||  item.servicePrice.toFixed(8).replace(/\.?0+$/, "")
+          item.servicePrice = item.servicePrice||  item.servicePrice.toFixed(8).replace(/\.?0+$/, "")
         })
         let {
           name: latitude2,