|
@@ -9,6 +9,7 @@ Page({
|
|
|
scopeBluetooth: constant.app.globalData.scopeBluetooth,
|
|
|
isShowPwd: false,
|
|
|
is5GWifi: false,
|
|
|
+ isIOS: false,
|
|
|
ssid: "",
|
|
|
pwdData: "",
|
|
|
connectDevice: "",
|
|
@@ -18,6 +19,13 @@ Page({
|
|
|
var that = this;
|
|
|
var param = options.param;
|
|
|
that.data.connectDevice = param;
|
|
|
+ const res = wx.getSystemInfoSync(); // 获取系统信息
|
|
|
+ /// android ios
|
|
|
+ const platform = res.platform; // 获取平台类型
|
|
|
+ this.setData({
|
|
|
+ isIOS: platform === 'ios',
|
|
|
+ isShowPwd: true,
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
onShow() {
|
|
@@ -49,17 +57,6 @@ Page({
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- onBlur(event) {
|
|
|
- var that = this;
|
|
|
- console.log("onBlur", event);
|
|
|
- // var value = event.detail.value;
|
|
|
- // if (value !== that.data.pwdData) {
|
|
|
- // that.setData({
|
|
|
- // pwdData: value,
|
|
|
- // });
|
|
|
- // }
|
|
|
- },
|
|
|
-
|
|
|
///Wifi名称
|
|
|
setPwd: function (e) {
|
|
|
console.log("设置密码:", e.detail.value)
|