开关
This commit is contained in:
parent
ea71dcdbfa
commit
8ff13508d8
|
@ -258,13 +258,15 @@
|
||||||
ljljflag:true,
|
ljljflag:true,
|
||||||
timer: null,
|
timer: null,
|
||||||
lianjieflag:false,
|
lianjieflag:false,
|
||||||
ljtxt:'连接中'
|
ljtxt:'连接中',
|
||||||
|
successflag:true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
// components: {},
|
// components: {},
|
||||||
props: {},
|
props: {},
|
||||||
onShow: function(options) {
|
onShow: function(options) {
|
||||||
|
this.statusflag = false
|
||||||
// 判断手机是什么型号
|
// 判断手机是什么型号
|
||||||
let systemInfo = uni.getSystemInfoSync();
|
let systemInfo = uni.getSystemInfoSync();
|
||||||
if (systemInfo.platform === 'android') {
|
if (systemInfo.platform === 'android') {
|
||||||
|
@ -717,47 +719,46 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
case xBlufi.XBLUFI_TYPE.TYPE_CONNECT_ROUTER_RESULT:
|
case xBlufi.XBLUFI_TYPE.TYPE_CONNECT_ROUTER_RESULT:
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (!options.result)
|
if (this.successflag == true) {
|
||||||
this.textwifi = '连接',
|
this.successflag = false;
|
||||||
this.ssid = '',
|
if (!options.result) {
|
||||||
this.statusflag = false,
|
this.textwifi = '连接';
|
||||||
// uni.hideLoading(),
|
this.ssid = '';
|
||||||
uni.showModal({
|
this.statusflag = false;
|
||||||
title: '温馨提示',
|
let that = this;
|
||||||
content: '配网失败,请选择2.4GWiFi连接并确保密码正确',
|
uni.showModal({
|
||||||
showCancel: false ,//是否显示取消按钮
|
title: '温馨提示',
|
||||||
success:function(res) {
|
content: '配网失败,请选择2.4GWiFi连接并确保密码正确',
|
||||||
// let that = this
|
showCancel: false,
|
||||||
// uni.reLaunch({
|
success: function(res) {
|
||||||
// url:'/page_user/sbdetail?id=' + that.objlist.id
|
// that.successflag = true;
|
||||||
// })
|
}
|
||||||
}
|
});
|
||||||
});
|
} else {
|
||||||
else {
|
if (options.data.progress == 100) {
|
||||||
if (options.data.progress == 100) {
|
let ssid = options.data.ssid;
|
||||||
let ssid = options.data.ssid;
|
that.statusflag = false;
|
||||||
this.statusflag = false
|
uni.hideLoading();
|
||||||
uni.hideLoading();
|
that.textwifi = '连接';
|
||||||
this.textwifi = '连接'
|
that.maskflag = false;
|
||||||
this.maskflag = false
|
that.sdmaskflag = false;
|
||||||
this.sdmaskflag = false
|
uni.showModal({
|
||||||
let that = this
|
title: '温馨提示',
|
||||||
uni.showModal({
|
content: `WIFI${that.ssid}配网成功`,
|
||||||
title: '温馨提示',
|
showCancel: false,
|
||||||
content: `WIFI${this.ssid}配网成功`,
|
success: function(res) {
|
||||||
showCancel: false,
|
// that.successflag = true;
|
||||||
success: function(res) {
|
uni.reLaunch({
|
||||||
uni.reLaunch({
|
url: '/page_user/sbdetail?id=' + that.objlist.id
|
||||||
url:'/page_user/sbdetail?id=' + that.objlist.id
|
});
|
||||||
})
|
}
|
||||||
}
|
});
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
break;
|
}
|
||||||
}
|
break;
|
||||||
break;
|
|
||||||
case xBlufi.XBLUFI_TYPE.TYPE_RECIEVE_MY_DATA:
|
case xBlufi.XBLUFI_TYPE.TYPE_RECIEVE_MY_DATA:
|
||||||
this.loadPercent = options.data;
|
this.loadPercent = options.data;
|
||||||
this.loadText = '文件读取中'
|
this.loadText = '文件读取中'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user