老版本最终版
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
"style": "v2",
|
"style": "v2",
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"ppScale-plugin": {
|
"ppScale-plugin": {
|
||||||
"version": "0.0.23",
|
"version": "0.0.24",
|
||||||
"provider": "wx0826af4e4908f524"
|
"provider": "wx0826af4e4908f524"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -36,13 +36,21 @@ Component({
|
|||||||
const timer = setTimeout(() => {
|
const timer = setTimeout(() => {
|
||||||
wx.hideLoading();
|
wx.hideLoading();
|
||||||
this.setData({ wifiStatus: 'failed' });
|
this.setData({ wifiStatus: 'failed' });
|
||||||
|
// 延长时间 失败调用退出wifi配网
|
||||||
|
activeProtocol.dataExitWifiConfig((res) => {
|
||||||
|
console.log("dataExitWifiConfig", res)
|
||||||
|
})
|
||||||
}, 15000);
|
}, 15000);
|
||||||
// 延时两秒后再调用接口
|
// 延时两秒后再调用接口
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
activeProtocol.dataFindSurroundDevice((res) => {
|
activeProtocol.dataFindSurroundDevice((res) => {
|
||||||
|
console.log("wifi列表", res)
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
wx.hideLoading();
|
wx.hideLoading();
|
||||||
if (!Array.isArray(res)) {
|
if (res.length === 0) {
|
||||||
|
activeProtocol.dataExitWifiConfig((res) => {
|
||||||
|
console.log("dataExitWifiConfig", res)
|
||||||
|
})
|
||||||
this.setData({ wifiStatus: 'failed' });
|
this.setData({ wifiStatus: 'failed' });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 408 KiB |
@@ -59,5 +59,13 @@ Page({
|
|||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: "/pages/help/help"
|
url: "/pages/help/help"
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
onShareAppMessage() {
|
||||||
|
return {
|
||||||
|
title: '智能蓝牙秤',
|
||||||
|
path: '/pages/home/home',
|
||||||
|
imageUrl: '/images/share/share.jpg',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -78,5 +78,13 @@ Page({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
onShareAppMessage() {
|
||||||
|
return {
|
||||||
|
title: '智能蓝牙秤',
|
||||||
|
path: '/pages/home/home',
|
||||||
|
imageUrl: '/images/share/share.jpg',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user