Răsfoiți Sursa

服务器地址修改, 基本调通

yangwangwen 2 ani în urmă
părinte
comite
0801a01752

+ 1 - 1
erp1/pages/bill/index.js

@@ -38,7 +38,7 @@ Page({
   },
   getList(id){
     let obj = {
-      url: '/api/erp/we/monthBill',
+      url: '/monthBill',
       data: {
         deviceId: id,
         token: wx.getStorageSync('token'),

+ 1 - 1
erp1/pages/index/index.js

@@ -34,7 +34,7 @@ Page({
           wx.setStorageSync('code', res.code)
           // 调userinfo接口
           let obj = {
-            url: '/api/erp/we/userInfo',   
+            url: '/userInfo',   
             data: {
               code: code
             }

+ 1 - 1
erp1/pages/index/index.wxml

@@ -1,5 +1,5 @@
 <view class="container">
-  <view class="title">电费充值系统</view>
+  <view class="title">一区商业-电费充值系统</view>
   <image class="img-style" src="/utils/images/home-img1.jpeg"></image>
   <image class="img-style" src="/utils/images/home-img2.jpeg"></image>
   <button class="btn_box" wx-if="{{tab == 1}}" bindtap="toLogin">微信授权登陆</button>

+ 1 - 1
erp1/pages/list/index.js

@@ -26,7 +26,7 @@ Page({
   },
   getList(){
     let obj = {
-      url: '/api/erp/we/roomList',
+      url: '/roomList',
       data: {
         phone: wx.getStorageSync('phone'),
         token: wx.getStorageSync('token'),

+ 1 - 1
erp1/pages/recharge/index.js

@@ -53,7 +53,7 @@ Page({
   toRecharge(){
     let that = this
     let obj = {
-      url: '/api/erp/we/wePhoneCharge',
+      url: '/wePhoneCharge',
       data: {
         deviceId: that.deviceid,
         deposit: that.data.money,

+ 1 - 1
erp1/pages/record/index.js

@@ -19,7 +19,7 @@ Page({
   },
   getList(id){
     let obj = {
-      url: '/api/erp/we/chargeRecords',
+      url: '/chargeRecords',
       data: {
         deviceId: id,
         token: wx.getStorageSync('token'),

+ 1 - 1
erp1/pages/submitPhone/index.js

@@ -13,7 +13,7 @@ Page({
   toSubmit() {
     let phoneNumber = this.data.phone;
     let obj = {
-      url: '/api/erp/we/phoneInfo',   
+      url: '/phoneInfo',   
       data: {
         phone: phoneNumber,
         openId: wx.getStorageSync('openId')

+ 4 - 3
erp1/utils/http.js

@@ -1,7 +1,8 @@
 const ui = require('./ui');
- const BASE_URL = 'https://www.dghdwy.cn/monitor'
-  // const BASE_URL = 'http://119.29.97.109:8080/monitor' 
- 
+ const BASE_URL = 'https://www.dghdwy.cn/monitor/api/erp1/we'
+  // const BASE_URL = 'http://119.29.97.109:8080/monitor/api/erp1/we' 
+
+
 function request(obj) {
     return new Promise(function(resolve, reject) {
       if(obj.showLoading){