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
e8ffded3
Commit
e8ffded3
authored
Sep 25, 2020
by
修福龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
刷脸界面修改
parent
91f859d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
32 deletions
+34
-32
FacePage.js
src/pages/FacePage.js
+34
-32
No files found.
src/pages/FacePage.js
View file @
e8ffded3
import
React
,
{
Component
}
from
'react'
;
import
{
View
,
Text
,
Image
,
Dimensions
}
from
'react-native'
;
import
{
View
,
Text
,
Image
}
from
'react-native'
;
import
AsyncStorage
from
'@react-native-community/async-storage'
;
import
{
connect
}
from
'react-redux'
;
// import RtcEngine from 'react-native-agora';
...
...
@@ -15,8 +15,9 @@ import phone from '../assets/Vertical/phone.png';
import
{
onTalkCall
,
leaveTalkCall
}
from
'../utils/agora'
;
import
Toast
from
'../components/Toast'
;
import
Screensaver
from
'../components/Screensaver'
;
import
{
width
}
from
'../utils/screen'
;
const
{
width
}
=
Dimensions
.
get
(
'screen'
);
//
const {width} = Dimensions.get('screen');
class
FacePage
extends
Component
{
state
=
{
...
...
@@ -32,7 +33,7 @@ class FacePage extends Component {
tip
:
''
,
tipsModal
:
false
,
faceType
:
'wxpay'
,
sleep
:
tru
e
,
sleep
:
fals
e
,
};
async
componentWillMount
()
{
...
...
@@ -392,7 +393,8 @@ class FacePage extends Component {
clearTimeout
(
this
.
wakeUpTimeout
);
this
.
wakeUpTimeout
=
setTimeout
(()
=>
{
this
.
setState
({
sleep
:
true
});
},
18888
);
},
60
*
60
*
1000
);
// }, 18888);
};
render
()
{
...
...
@@ -576,19 +578,19 @@ const styles = {
title
:
{
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
marginLeft
:
30
,
marginRight
:
30
,
marginTop
:
10
,
marginLeft
:
width
>
471
?
30
:
15
,
marginRight
:
width
>
471
?
30
:
15
,
marginTop
:
width
>
471
?
10
:
8
,
},
headline
:
{
flexDirection
:
'row'
,
justifyContent
:
'center'
,
alignItems
:
'center'
,
flex
:
1
,
marginBottom
:
20
,
marginBottom
:
width
>
471
?
20
:
16
,
},
headTitle
:
{
fontSize
:
60
,
fontSize
:
width
>
471
?
60
:
48
,
color
:
'#fff'
,
},
left
:
{
...
...
@@ -600,14 +602,20 @@ const styles = {
alignItems
:
'center'
,
},
img
:
{
width
:
60
,
height
:
60
,
marginRight
:
10
,
width
:
width
>
471
?
60
:
48
,
height
:
width
>
471
?
60
:
48
,
marginRight
:
width
>
471
?
10
:
8
,
resizeMode
:
'contain'
,
},
text
:
{
color
:
'#FFFFFF'
,
fontSize
:
40
,
fontSize
:
width
>
471
?
40
:
32
,
},
phone
:
{
width
:
width
>
471
?
40
:
32
,
height
:
width
>
471
?
40
:
32
,
marginRight
:
width
>
471
?
10
:
8
,
resizeMode
:
'contain'
,
},
face
:
{
flex
:
0.6
,
...
...
@@ -639,25 +647,19 @@ const styles = {
flexDirection
:
'row'
,
},
clickText
:
{
fontSize
:
50
,
fontSize
:
width
>
471
?
50
:
35
,
color
:
'#fff'
,
marginTop
:
25
,
marginTop
:
width
>
471
?
25
:
20
,
},
wxpay
:
{
width
:
72
,
height
:
6
5
,
marginTop
:
30
,
marginRight
:
10
,
width
:
width
>
471
?
72
:
40
,
height
:
width
>
471
?
65
:
3
5
,
marginTop
:
width
>
471
?
30
:
24
,
marginRight
:
width
>
471
?
10
:
8
,
},
up
:
{
width
:
100
,
height
:
120
,
},
phone
:
{
width
:
40
,
height
:
40
,
marginRight
:
10
,
resizeMode
:
'contain'
,
width
:
width
>
471
?
100
:
70
,
height
:
width
>
471
?
120
:
85
,
},
footer
:
{
flex
:
0.2
,
...
...
@@ -672,9 +674,9 @@ const styles = {
justifyContent
:
'center'
,
},
callGif
:
{
width
:
3
50
,
height
:
2
40
,
marginLeft
:
-
12
0
,
width
:
width
>
471
?
350
:
2
50
,
height
:
width
>
471
?
240
:
1
40
,
marginLeft
:
width
>
471
?
-
120
:
-
9
0
,
},
callText
:
{
fontSize
:
70
,
...
...
@@ -691,9 +693,9 @@ const styles = {
alignItems
:
'center'
,
},
onCallText
:
{
fontSize
:
7
0
,
fontSize
:
width
>
471
?
70
:
4
0
,
color
:
'#fff'
,
marginLeft
:
-
7
0
,
marginLeft
:
width
>
471
?
-
70
:
-
4
0
,
},
modal
:
{
// 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