浇花器
This commit is contained in:
parent
e22e23a04a
commit
65414517b0
|
@ -301,16 +301,16 @@
|
||||||
switch (options.type) {
|
switch (options.type) {
|
||||||
case xBlufi.XBLUFI_TYPE.TYPE_STATUS_CONNECTED:
|
case xBlufi.XBLUFI_TYPE.TYPE_STATUS_CONNECTED:
|
||||||
if (!options.result) {
|
if (!options.result) {
|
||||||
uni.showModal({
|
// uni.showModal({
|
||||||
title: '很抱歉提醒你!',
|
// title: '很抱歉提醒你!',
|
||||||
content: '小程序与设备异常断开',
|
// content: '小程序与设备异常断开',
|
||||||
showCancel: false,
|
// showCancel: false,
|
||||||
//是否显示取消按钮
|
// //是否显示取消按钮
|
||||||
success: function(res) {
|
// success: function(res) {
|
||||||
uni.hideLoading()
|
// uni.hideLoading()
|
||||||
uni.removeStorage({key:'device_key'})
|
// uni.removeStorage({key:'device_key'})
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case xBlufi.XBLUFI_TYPE.TYPE_RECIEVE_CUSTON_DATA:
|
case xBlufi.XBLUFI_TYPE.TYPE_RECIEVE_CUSTON_DATA:
|
||||||
|
|
|
@ -105,7 +105,7 @@
|
||||||
// name: that.name
|
// name: that.name
|
||||||
// })
|
// })
|
||||||
}
|
}
|
||||||
}, 2000)
|
}, 5000)
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
// 获取用户信息
|
// 获取用户信息
|
||||||
|
@ -135,6 +135,9 @@
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
duration: 3000
|
duration: 3000
|
||||||
})
|
})
|
||||||
|
setTimeout(()=>{
|
||||||
|
uni.navigateBack()
|
||||||
|
},2000)
|
||||||
}else{
|
}else{
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
|
@ -172,7 +175,7 @@
|
||||||
}
|
}
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
that.flag = true
|
that.flag = true
|
||||||
}, 2000)
|
}, 5000)
|
||||||
},
|
},
|
||||||
|
|
||||||
// 获取附近蓝牙设备列表
|
// 获取附近蓝牙设备列表
|
||||||
|
@ -183,15 +186,15 @@
|
||||||
// connected: options.result
|
// connected: options.result
|
||||||
// })
|
// })
|
||||||
if (!options.result) {
|
if (!options.result) {
|
||||||
uni.showModal({
|
// uni.showModal({
|
||||||
title: '很抱歉提醒你!',
|
// title: '很抱歉提醒你!',
|
||||||
content: '小程序与设备异常断开',
|
// content: '小程序与设备异常断开',
|
||||||
showCancel: false,
|
// showCancel: false,
|
||||||
//是否显示取消按钮
|
// //是否显示取消按钮
|
||||||
success: function(res) {
|
// success: function(res) {
|
||||||
|
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
case xBlufi.XBLUFI_TYPE.TYPE_GET_DEVICE_LISTS:
|
case xBlufi.XBLUFI_TYPE.TYPE_GET_DEVICE_LISTS:
|
||||||
|
|
|
@ -391,7 +391,7 @@
|
||||||
name: that.name
|
name: that.name
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}, 2000)
|
}, 10000)
|
||||||
},
|
},
|
||||||
// 连接超时提示
|
// 连接超时提示
|
||||||
getchao(){
|
getchao(){
|
||||||
|
@ -901,7 +901,7 @@
|
||||||
name: that.name
|
name: that.name
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}, 2000)
|
}, 10000)
|
||||||
that.getchao()
|
that.getchao()
|
||||||
}else{
|
}else{
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
|
@ -347,7 +347,7 @@
|
||||||
'isStart': false
|
'isStart': false
|
||||||
});
|
});
|
||||||
this.seachflag = true
|
this.seachflag = true
|
||||||
}, 2000)
|
},5000)
|
||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
// 点击隐藏没有设备提示
|
// 点击隐藏没有设备提示
|
||||||
|
|
|
@ -288,11 +288,9 @@
|
||||||
wx.closeBLEConnection({
|
wx.closeBLEConnection({
|
||||||
deviceId: this.deviceId,
|
deviceId: this.deviceId,
|
||||||
})
|
})
|
||||||
// setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
// uni.navigateTo({
|
uni.navigateBack()
|
||||||
// url:'/page_user/wifijoint/index?sn=' + this.storeId
|
},2000)
|
||||||
// })
|
|
||||||
// },1500)
|
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user