Ver código fonte

房间详情

wangming 2 meses atrás
pai
commit
d813bbc50c

+ 2 - 2
src/components/js_sdk/index.js

@@ -5,8 +5,8 @@ http.setConfig(config => {
     if (__wxConfig.envVersion == 'develop') {
         let selectedService = uni.getStorageSync("sercviceChoice")
         if (!selectedService || selectedService == 'aloneServe') {
-            // config.baseUrl = "https://radar-power.cn/portal-service-server/";
-            config.baseUrl = "https://api.radar-power.asia:4443/portal-service-server/";
+            config.baseUrl = "https://radar-power.cn/portal-service-server/";
+            // config.baseUrl = "https://api.radar-power.asia:4443/portal-service-server/";
         }
     }
     if (__wxConfig.envVersion == 'trial') {

+ 1 - 1
src/pagesA/deviceDetail/deviceDetail.vue

@@ -387,7 +387,7 @@ export default {
             const THRESHOLD = 2;
             const params = {
                 keepalive: 60,
-                clean: false,
+                clean: true,
                 connectTimeout: 30 * 1000,
                 clientId:
                     "wx_mqtt_" + Math.random().toString(16).substring(2, 8),

+ 54 - 1
src/pagesA/homeDetail/homeDetail.vue

@@ -25,7 +25,60 @@
 export default {
     data() {
         return {
-            groupList: [],
+            groupList: [
+                {
+                    devId: 11,
+                    clientId: "111111",
+                    tenantId: 1111,
+                    tenantName: "设备租户",
+                    userId: 1111,
+                    devName: "设备1",
+                    devType: "1",
+                    online: 0,
+                    devWarn: 0,
+                    software: "1.0.0",
+                    hardware: "1.0.0",
+                    wifiName: "wifi1",
+                    wifiPassword: "9999999",
+                    ip: "",
+                    fallingConfirm: 0,
+                    mountPlain: "",
+                    installPosition: "",
+                    xxStart: -200,
+                    yyStart: -200,
+                    zzStart: -200,
+                    xxEnd: 200,
+                    yyEnd: 200,
+                    zzEnd: 200,
+                    height: 240,
+                },
+                {
+                    devId: 11,
+                    clientId: "111111",
+                    tenantId: 1111,
+                    tenantName: "设备租户",
+                    userId: 1111,
+                    devName: "设备2",
+                    devType: "1",
+                    online: 0,
+                    devWarn: 0,
+                    software: "1.0.0",
+                    hardware: "1.0.0",
+                    wifiName: "wifi1",
+                    wifiPassword: "9999999",
+                    ip: "",
+                    fallingConfirm: 0,
+                    mountPlain: "",
+                    installPosition: "",
+                    xxStart: -200,
+                    yyStart: -200,
+                    zzStart: -200,
+                    xxEnd: 200,
+                    yyEnd: 200,
+                    zzEnd: 200,
+                    height: 240,
+                },
+            ],
             groupInfo: "",
         };
     },