|
@@ -41,11 +41,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, // 切换时间间隔
|
|
@@ -235,7 +235,7 @@ Page({
|
|
|
///监听蓝牙设备
|
|
|
BtHelper.getInstance().initBluetoothAdapter();
|
|
|
BtHelper.getInstance().getBluetoothDevices();
|
|
|
- BtHelper.getInstance().startScan(null, null, function (res) {});
|
|
|
+ BtHelper.getInstance().startScan(null, null, function (res) { });
|
|
|
var isFirst = true;
|
|
|
console.log("开始监听蓝牙设备");
|
|
|
///再秒再对比一次
|
|
@@ -244,12 +244,12 @@ Page({
|
|
|
that.data.intervalId1 = setInterval(async function () {
|
|
|
isFirst = false;
|
|
|
that.compareList();
|
|
|
- if (count > 4) {
|
|
|
- that.stopIntervalId1();
|
|
|
- } else {
|
|
|
- count++;
|
|
|
- }
|
|
|
- }, isFirst ? 6 * 1000 : 12 * 1000);
|
|
|
+ // if (count > 4) {
|
|
|
+ that.stopIntervalId1();
|
|
|
+ // } else {
|
|
|
+ // count++;
|
|
|
+ // }
|
|
|
+ }, isFirst ? 3 * 1000 : 10 * 1000);
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -319,7 +319,7 @@ Page({
|
|
|
case "connect":
|
|
|
lexin_subscribe.subscribeAllDevice();
|
|
|
break;
|
|
|
- ///再走有在线
|
|
|
+ ///再走有在线
|
|
|
case "message_onoffline":
|
|
|
lexin_connect.searchOnlineDevice(payloads, function (list) {
|
|
|
that.updateDeviceList(list, false, false);
|