dev01 3 months ago
parent
commit
3bdf42673b
4 changed files with 10 additions and 6 deletions
  1. 2 2
      src/app.jsx
  2. 4 0
      src/pages/enterprise/index.jsx
  3. 2 2
      src/utils/config.js
  4. 2 2
      src/utils/servers/baseUrl.js

+ 2 - 2
src/app.jsx

@@ -87,11 +87,11 @@ class App extends Component {
         'token': token,
       },
       // 生产
-      url: 'wss://bm.jishutao.com/webSocketServer',
+      // url: 'wss://bm.jishutao.com/webSocketServer',
       // 本地
       // url: 'wss://172.16.1.199:8080/webSocketServer'
       // 测试
-      // url: 'wss://uat.jishutao.com/webSocketServer'
+      url: 'wss://uat.jishutao.com/webSocketServer'
     })
 
     //连接成功

+ 4 - 0
src/pages/enterprise/index.jsx

@@ -166,9 +166,13 @@ class Enterprise extends Component {
   }
 
   selectMyUserDetails(obj) {
+    Taro.showLoading({
+      title: '加载中...',
+    })
     selectMyUserDetails({
       id: obj.id,
     }).then(v => {
+      Taro.hideLoading();
       if (v.error.length === 0) {
         let newList = this.state.list
         for (var i = 0; i < newList.length; i++) {

+ 2 - 2
src/utils/config.js

@@ -1,7 +1,7 @@
 // 本地
 // export const resourceAddress = 'http://172.16.1.199/:3000/upload;'
 // 生产
-export const resourceAddress = 'https://s.jishutao.com/upload';
+// export const resourceAddress = 'https://s.jishutao.com/upload';
 // 测试
-// export const resourceAddress = 'https://static.jishutao.com/upload';
+export const resourceAddress = 'https://static.jishutao.com/upload';
 

+ 2 - 2
src/utils/servers/baseUrl.js

@@ -8,8 +8,8 @@ const getBaseUrl = (url) => {
   } else {
     // 生产环境
     // BASE_URL = 'http://172.16.1.199:8080'
-    // BASE_URL = 'https://uat.jishutao.com'
-    BASE_URL = 'https://bm.jishutao.com'
+    BASE_URL = 'https://uat.jishutao.com'
+    // BASE_URL = 'https://bm.jishutao.com'
   }
   return BASE_URL
 }