Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-program
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈玉桐
wx-program
Commits
72295a2e
Commit
72295a2e
authored
Oct 14, 2019
by
陈玉桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关机提示
parent
6b16554e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
index.js
pages/index/index.js
+11
-2
No files found.
pages/index/index.js
View file @
72295a2e
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment