Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bh_face_counter
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
黄天晨
bh_face_counter
Commits
3477194a
Commit
3477194a
authored
Dec 14, 2020
by
王崇仁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
确认出门无码bug
parent
a29dd89c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
TipsModal.js
src/components/TipsModal.js
+5
-1
FacePage.js
src/pages/FacePage.js
+7
-5
No files found.
src/components/TipsModal.js
View file @
3477194a
...
@@ -39,6 +39,10 @@ class TipsModal extends Component {
...
@@ -39,6 +39,10 @@ class TipsModal extends Component {
if
(
contentText
===
''
)
{
if
(
contentText
===
''
)
{
flag
=
false
;
flag
=
false
;
}
}
let
flags
=
true
;
if
(
!
leftText
&&
!
contentText
&&
!
rightText
)
{
flags
=
false
;
}
if
(
faceType
===
'alipay'
)
{
if
(
faceType
===
'alipay'
)
{
styles
.
header
=
{...
styles
.
header
,
backgroundColor
:
'#1b7dc7'
};
styles
.
header
=
{...
styles
.
header
,
backgroundColor
:
'#1b7dc7'
};
styles
.
left
=
{
styles
.
left
=
{
...
@@ -94,7 +98,7 @@ class TipsModal extends Component {
...
@@ -94,7 +98,7 @@ class TipsModal extends Component {
{
tip
}
{
tip
}
<
/Text
>
<
/Text
>
<
/View
>
<
/View
>
{
!
qrCode
&&
(
{
!
qrCode
&&
flags
&&
(
<
View
style
=
{
styles
.
footer
}
>
<
View
style
=
{
styles
.
footer
}
>
<
Touch
<
Touch
style
=
{
flag
?
styles
.
left
:
styles
.
lefts
}
style
=
{
flag
?
styles
.
left
:
styles
.
lefts
}
...
...
src/pages/FacePage.js
View file @
3477194a
...
@@ -38,7 +38,7 @@ class FacePage extends Component {
...
@@ -38,7 +38,7 @@ class FacePage extends Component {
tip
:
''
,
tip
:
''
,
tipsModal
:
false
,
tipsModal
:
false
,
faceType
:
'wxpay'
,
faceType
:
'wxpay'
,
sleep
:
tru
e
,
sleep
:
fals
e
,
loadingModal
:
false
,
loadingModal
:
false
,
qrCode
:
''
,
qrCode
:
''
,
goTipsModal
:
false
,
goTipsModal
:
false
,
...
@@ -287,12 +287,14 @@ class FacePage extends Component {
...
@@ -287,12 +287,14 @@ class FacePage extends Component {
setQrcode
=
({
action
,
tip
,
qrcode
})
=>
{
setQrcode
=
({
action
,
tip
,
qrcode
})
=>
{
const
state
=
{
const
state
=
{
qrCode
:
`
${
qrHost
}
/#/store-
${
action
}
-j
${
this
.
storeKey
}
`
,
qrCode
:
`
${
qrHost
}
/#/store-
${
action
||
'leave'
}
-j
${
this
.
storeKey
}
`
,
};
};
if
(
tip
)
{
if
(
tip
)
{
state
.
tip
=
tip
;
state
.
tip
=
tip
;
if
(
qrcode
)
state
.
goTipsModal
=
true
;
if
(
qrcode
)
{
else
state
.
tipsModal
=
true
;
state
.
tipsModal
=
false
;
state
.
goTipsModal
=
true
;
}
else
state
.
tipsModal
=
true
;
state
.
loadingModal
=
false
;
state
.
loadingModal
=
false
;
}
}
this
.
setState
(
state
);
this
.
setState
(
state
);
...
@@ -472,7 +474,7 @@ class FacePage extends Component {
...
@@ -472,7 +474,7 @@ class FacePage extends Component {
goTips
=
async
()
=>
{
goTips
=
async
()
=>
{
Speech
.
speak
(
'请扫码确认'
);
Speech
.
speak
(
'请扫码确认'
);
await
this
.
setState
({
tipsModal
:
false
,
goTipsModal
:
true
,
type
:
''
});
this
.
setQrcode
({
action
:
this
.
action
,
tip
:
'请扫码开门'
,
qrcode
:
true
});
};
};
goToo
=
async
()
=>
{
goToo
=
async
()
=>
{
...
...
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