Bläddra i källkod

完善充电站详情

jiuling 2 månader sedan
förälder
incheckning
2d749b703d
2 ändrade filer med 16 tillägg och 1 borttagningar
  1. 1 1
      app.js
  2. 15 0
      pages/charginfo/charginfo.js

+ 1 - 1
app.js

@@ -9,7 +9,7 @@ App({
     // postHeadAgreement: 'http://192.168.105.171:10301',
     
     // 正式
-     //postHeadAgreement: 'https://cdglyy.pjnes.com/cloud/chargapi',
+    //  postHeadAgreement: 'https://cdglyy.pjnes.com/cloud/chargapi',
     helpPhoneNum: '4009608068',
     version:'2.0'
   },

+ 15 - 0
pages/charginfo/charginfo.js

@@ -330,6 +330,21 @@ Page({
         });
       }
     });
+    wx.request({
+      url: getApp().globalData.postHeadAgreement +'/restapi/wechat/fastAndSlow',
+      data: {
+        id: that.data.chargid,
+      },
+      method: 'POST',
+      success(res) {
+        that.setData({
+          fastFree : res.data.fastFree,
+          slowFree : res.data.slowFree,
+          fastSum : res.data.fastSum,
+          slowSum : res.data.slowSum
+        });
+      }
+    });
     this.setData({
       scrollTop: 0
     });