Commit 72295a2e by 陈玉桐

关机提示

parent 6b16554e
......@@ -765,8 +765,8 @@ Page({
PowerOff: function () {
if(this.data.bindDeviceStatus==1){
wx.showModal({
title: '控制提示',
content: '关机后使用机器时需要再次开机,是否确认关机?',
title: '提示',
content: '是否立即关闭眼保仪',
success (res) {
if (res.confirm) {
// console.log('用户点击确定')
......@@ -816,6 +816,15 @@ Page({
// 刷新获取设备屏幕图片
refresh: function () {
let me = this
if(me.data.bindDeviceStatus==1){
}else{
wx.showModal({
title: '提示',
showCancel: false,
content: "您未绑定设备部分功能将无法使用"
})
return
}
//获取当前时间戳
var timestamp = Date.parse(new Date());
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