Commit 72295a2e by 陈玉桐

关机提示

parent 6b16554e
...@@ -765,8 +765,8 @@ Page({ ...@@ -765,8 +765,8 @@ Page({
PowerOff: function () { PowerOff: function () {
if(this.data.bindDeviceStatus==1){ if(this.data.bindDeviceStatus==1){
wx.showModal({ wx.showModal({
title: '控制提示', title: '提示',
content: '关机后使用机器时需要再次开机,是否确认关机?', content: '是否立即关闭眼保仪',
success (res) { success (res) {
if (res.confirm) { if (res.confirm) {
// console.log('用户点击确定') // console.log('用户点击确定')
...@@ -816,6 +816,15 @@ Page({ ...@@ -816,6 +816,15 @@ Page({
// 刷新获取设备屏幕图片 // 刷新获取设备屏幕图片
refresh: function () { refresh: function () {
let me = this let me = this
if(me.data.bindDeviceStatus==1){
}else{
wx.showModal({
title: '提示',
showCancel: false,
content: "您未绑定设备部分功能将无法使用"
})
return
}
//获取当前时间戳 //获取当前时间戳
var timestamp = Date.parse(new Date()); var timestamp = Date.parse(new Date());
timestamp = timestamp / 1000; timestamp = timestamp / 1000;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment