Просмотр исходного кода

feature: 设备列表加载数据去掉加载数据中,增加用户体验

Damon 7 месяцев назад
Родитель
Сommit
5cb7b839dc
2 измененных файлов с 8 добавлено и 8 удалено
  1. 2 2
      pages/deviceList/deviceList.js
  2. 6 6
      utils/env.js

+ 2 - 2
pages/deviceList/deviceList.js

@@ -23,7 +23,7 @@ Page({
     }
 
     ///数据请求
-    dRequest.deviceList({}).then((res) => {
+    dRequest.deviceList({unShowLoad:true}).then((res) => {
       if (res) {
         that.setDeviceList(res, true);
       }
@@ -58,7 +58,7 @@ Page({
       that.setData({
         deviceList: devices
       });
-    } catch (e) { }
+    } catch (e) {}
   },
 
   deviceTap(e) {

+ 6 - 6
utils/env.js

@@ -1,12 +1,12 @@
 //env.js
-module.exports={
+module.exports = {
   //生产环境
-  prod:{
-    // baseUrl:'https://client.ohplay.radio1964.net'
-    baseUrl: 'https://client.ohplay.keepradioon.net'
+  prod: {
+    // baseUrl: 'https://client.ohplay.keepradioon.net'
+    baseUrl: 'https://client.ohplay.radio1964.net'
   },
   //测试环境
-  test:{
-    baseUrl:'https://o3tapi.radio1964.com'
+  test: {
+    baseUrl: 'https://o3tapi.radio1964.com'
   }
 }