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
7a33f49d
Commit
7a33f49d
authored
Nov 27, 2020
by
王崇仁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改了支付宝刷脸的页面兼容
parent
417f9a3b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
13 deletions
+32
-13
TipsModal.js
src/components/TipsModal.js
+13
-5
FacePage.js
src/pages/FacePage.js
+19
-8
No files found.
src/components/TipsModal.js
View file @
7a33f49d
...
...
@@ -41,12 +41,16 @@ class TipsModal extends Component {
}
if
(
faceType
===
'alipay'
)
{
styles
.
header
=
{...
styles
.
header
,
backgroundColor
:
'#1b7dc7'
};
styles
.
righ
t
=
{
...
styles
.
righ
t
,
styles
.
lef
t
=
{
...
styles
.
lef
t
,
backgroundColor
:
'#1b7dc7'
,
};
styles
.
call
=
{
...
styles
.
call
,
styles
.
lefts
=
{
...
styles
.
lefts
,
backgroundColor
:
'#1b7dc7'
,
};
styles
.
reset
=
{
...
styles
.
reset
,
color
:
'#1b7dc7'
,
};
}
...
...
@@ -61,7 +65,11 @@ class TipsModal extends Component {
<
View
style
=
{
styles
.
modal
}
>
<
View
style
=
{
styles
.
header
}
>
<
Image
source
=
{
require
(
'../assets/Vertical/wxpay.png'
)}
source
=
{
faceType
===
'wxpay'
?
require
(
'../assets/wxpay.png'
)
:
require
(
'../assets/Vertical/alipay01.png'
)
}
style
=
{
styles
.
image
}
tintColor
=
"white"
/>
...
...
src/pages/FacePage.js
View file @
7a33f49d
...
...
@@ -655,8 +655,19 @@ class FacePage extends Component {
<
/Touch
>
)}
<
View
style
=
{
styles
.
goFoot
}
>
<
View
style
=
{{
borderWidth
:
10
,
borderColor
:
'#fff'
,
width
:
180
}}
>
<
QRCode
value
=
{
qrCode
||
`
${
qrHost
}
/#/account`
}
size
=
{
160
}
/
>
<
View
style
=
{{
borderWidth
:
10
,
borderColor
:
'#fff'
,
width
:
scaleSize
(
220
),
height
:
scaleSize
(
220
),
alignItems
:
'center'
,
justifyContent
:
'center'
,
}}
>
<
QRCode
value
=
{
qrCode
||
`
${
qrHost
}
/#/account`
}
size
=
{
scaleSize
(
190
)}
/
>
<
/View
>
<
Text
style
=
{
styles
.
goText
}
>
扫码开门
<
/Text
>
<
/View
>
...
...
@@ -746,7 +757,7 @@ const styles = {
flex
:
0.13
,
backgroundColor
:
'rgb(0,205,102)'
,
width
:
'85%'
,
borderRadius
:
20
,
borderRadius
:
scaleSize
(
20
)
,
flexDirection
:
'row'
,
alignItems
:
'center'
,
justifyContent
:
'center'
,
...
...
@@ -760,18 +771,18 @@ const styles = {
clickText
:
{
fontSize
:
setSpText
(
50
),
color
:
'#fff'
,
marginLeft
:
10
,
marginLeft
:
setSpText
(
10
)
,
},
wxpay
:
{
width
:
scaleSize
(
70
),
height
:
scaleSize
(
6
2
),
width
:
scaleSize
(
67
),
height
:
scaleSize
(
6
1
),
marginRight
:
scaleSize
(
20
),
},
finger
:
{
width
:
scaleSize
(
60
),
height
:
scaleSize
(
80
),
marginLeft
:
100
,
marginRight
:
20
,
marginLeft
:
scaleSize
(
120
)
,
marginRight
:
scaleSize
(
20
)
,
},
footer
:
{
flex
:
0.2
,
...
...
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