更换wifi添加loading
This commit is contained in:
@@ -55,7 +55,8 @@ Page({
|
||||
|
||||
app.globalData.ppScale.device.name = this.data.device.name;
|
||||
app.globalData.ppScale.device.connection = this.data.device;
|
||||
this.selectComponent('#replaceNetwork1Component').getWiFiList();
|
||||
|
||||
wx.hideLoading();
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -229,9 +230,15 @@ Page({
|
||||
recentData: [],
|
||||
}, (res) => {
|
||||
if(res == 0) {
|
||||
this.triggerEvent('deviceEvent', {
|
||||
status: true
|
||||
});
|
||||
wx.showToast({
|
||||
title: "用户信息更新成功。",
|
||||
icon: "none"
|
||||
})
|
||||
setTimeout(() => {
|
||||
wx.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
}, 1500)
|
||||
} else {
|
||||
console.log("dataSyncUserInfo", res)
|
||||
wx.showToast({
|
||||
@@ -410,6 +417,10 @@ Page({
|
||||
|
||||
// 点击设备重连
|
||||
connectedDevice() {
|
||||
wx.showLoading({
|
||||
title: "正在重新连接设备...",
|
||||
mask: true
|
||||
});
|
||||
let device = this.data.device;
|
||||
if(device) {
|
||||
app.globalData.ppScale.plugin.Blue.createBLEConnection(device);
|
||||
|
||||
Reference in New Issue
Block a user