Forráskód Böngészése

更新代码10-28

wangjinbiao 6 éve
szülő
commit
f586378321

+ 1 - 1
dorm-manager-wx/pages/login/login.js

@@ -25,7 +25,7 @@ Page({
       return false;
     }
     wx.request({
-      url: 'http://192.168.100.234:8080/oneportal/appletLogin/userLogin.if',
+      url: app.userLogin,
       method:'GET',
       data:{
         loginId:e.detail.value.account,

+ 1 - 1
dorm-manager-wx/pages/student/application/application.js

@@ -45,7 +45,7 @@ Page({
       that.data.codetext--
     }, 1000);
     wx.request({
-      url: 'http://192.168.100.234:8080/oneportal/visitor/sendPhoneCode.if',
+      url: app.sendPhoneCode,
       data: { 'phone': that.data.phone},
       success(res){
         console.log(res)

+ 2 - 1
dorm-manager-wx/pages/student/pass/pass.js

@@ -1,3 +1,4 @@
+const api = require('../../../utils/api.js');
 Page({
   data: {
     year: 0,
@@ -112,7 +113,7 @@ Page({
   req(time){
     let that=this
     wx.request({
-      url: 'http://192.168.100.234:8080/oneportal/access/getAccessInfo.if',
+      url: app.getAccessInfo,
       method: 'GET',
       data: { 'loginId': wx.getStorageSync('loginId'), 'time': time },
       success(res) {

+ 1 - 1
dorm-manager-wx/pages/student/statistics/statistics.js

@@ -21,7 +21,7 @@ Page({
   onLoad(options){
     let that=this
     wx.request({
-      url: 'http://192.168.100.234:8080/oneportal/access/selfInfo.if',
+      url: app.selfInfo,
       data: { 
         loginId: wx.getStorageSync('loginId'), 
         start: data.getDateStr(data.formatDate(), -30),

+ 10 - 1
dorm-manager-wx/utils/api.js

@@ -81,9 +81,18 @@ const index = 2,
     evaluate:'evaluate/save.if',//增加评价
     evaluateList:'evaluate/list.if',//评价列表
     evaluateInfo:'evaluate/info.if',//评价详情
+
+
+
+
+    // 宿管系统--学生端
+    getAccessInfo: 'access/getAccessInfo.if',//通行记录
+    sendPhoneCode:'visitor/sendPhoneCode.if',//访客申请
+    userLogin:'appletLogin/userLogin.if',//登录
+    selfInfo:'access/selfInfo.if',//访客统计
   },
   [root] =
-    [["http://192.168.100.235:9082/wx/"],
+    [["http://192.168.100.234:8080/oneportal/"],
      ["http://192.168.100.254:9082/wx/"],
      ["https://zhll.dgtis.com/wx/"]][index]
 Object.keys(api).forEach(x => {