Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-school-app-public
Project
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-school-app-public
Commits
3755c17f
Commit
3755c17f
authored
Mar 31, 2020
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加其他处理
parent
8693b0fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
connect.tsx
src/pages/connect/connect.tsx
+21
-3
No files found.
src/pages/connect/connect.tsx
View file @
3755c17f
...
...
@@ -233,12 +233,24 @@ class Connect extends Component {
Taro
.
showModal
({
title
:
'提示'
,
content
:
'设备正在使用'
,
});
})
.
then
(()
=>
{
this
.
gobackHandle
();
})
.
catch
(()
=>
{
this
.
gobackHandle
();
});
}
else
if
(
msgObj
.
contorlCode
===
ContorlCode
.
broken
)
{
Taro
.
showModal
({
title
:
'提示'
,
content
:
'设备已损坏'
,
});
})
.
then
(()
=>
{
this
.
gobackHandle
();
})
.
catch
(()
=>
{
this
.
gobackHandle
();
});
}
else
if
(
msgObj
.
contorlCode
===
ContorlCode
.
usable
)
{
console
.
log
(
'in setState'
,
currentThis
.
canPay
);
currentThis
&&
currentThis
.
setState
({
canPay
:
true
});
...
...
@@ -246,7 +258,13 @@ class Connect extends Component {
Taro
.
showModal
({
title
:
'提示'
,
content
:
'设备已启动'
,
});
})
.
then
(()
=>
{
this
.
gobackHandle
();
})
.
catch
(()
=>
{
this
.
gobackHandle
();
});
}
else
{
}
}
else
{
...
...
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