Explorar el Código

feature:修改设备列表页的型号判断

zeng.chen hace 7 meses
padre
commit
e9973bff73
Se han modificado 2 ficheros con 34 adiciones y 32 borrados
  1. 27 26
      pages/deviceList/deviceList.js
  2. 7 6
      pages/index/index.js

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 27 - 26
pages/deviceList/deviceList.js


+ 7 - 6
pages/index/index.js

@@ -35,11 +35,11 @@ Page({
     isLogin: false,
     greeting: "",
     bannerList: [{
-        "pic": "https://music-play.oss-cn-shenzhen.aliyuncs.com/device/20241028142233669038262.png"
-      },
-      {
-        "pic": "https://music-play.oss-cn-shenzhen.aliyuncs.com/device/20240823145816541223911.png"
-      }
+      "pic": "https://music-play.oss-cn-shenzhen.aliyuncs.com/device/20241028142233669038262.png"
+    },
+    {
+      "pic": "https://music-play.oss-cn-shenzhen.aliyuncs.com/device/20240823145816541223911.png"
+    }
     ],
     autoplay: true,
     interval: 3000, // 切换时间间隔
@@ -223,6 +223,7 @@ Page({
     let hasBle = that.data.deviceList.find(item => {
       return item.connectType == 1;
     })
+    console.log("hasBle:", hasBle)
     if (hasBle) {
       ///监听蓝牙设备
       BtHelper.getInstance().initBluetoothAdapter();
@@ -263,7 +264,7 @@ Page({
       case "connect":
         lexin_subscribe.subscribeAllDevice();
         break;
-        ///再走有在线
+      ///再走有在线
       case "message_onoffline":
         lexin_connect.searchOnlineDevice(payloads, function (list) {
           that.updateDeviceList(list, false, false);