@@ -38,7 +38,7 @@ Page({
},
getList(id){
let obj = {
- url: '/api/erp/we/monthBill',
+ url: '/monthBill',
data: {
deviceId: id,
token: wx.getStorageSync('token'),
@@ -34,7 +34,7 @@ Page({
wx.setStorageSync('code', res.code)
// 调userinfo接口
- url: '/api/erp/we/userInfo',
+ url: '/userInfo',
code: code
}
@@ -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>
@@ -26,7 +26,7 @@ Page({
getList(){
- url: '/api/erp/we/roomList',
+ url: '/roomList',
phone: wx.getStorageSync('phone'),
@@ -53,7 +53,7 @@ Page({
toRecharge(){
let that = this
- url: '/api/erp/we/wePhoneCharge',
+ url: '/wePhoneCharge',
deviceId: that.deviceid,
deposit: that.data.money,
@@ -19,7 +19,7 @@ Page({
- url: '/api/erp/we/chargeRecords',
+ url: '/chargeRecords',
@@ -13,7 +13,7 @@ Page({
toSubmit() {
let phoneNumber = this.data.phone;
- url: '/api/erp/we/phoneInfo',
+ url: '/phoneInfo',
phone: phoneNumber,
openId: wx.getStorageSync('openId')
@@ -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){