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
9d309a2f
Commit
9d309a2f
authored
Sep 25, 2020
by
zeven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付宝刷脸保存用户信息
parent
e83451ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
VerifyCodeModal.js
src/components/VerifyCodeModal.js
+2
-2
FacePage.js
src/pages/FacePage.js
+3
-1
store.js
src/services/store.js
+9
-6
No files found.
src/components/VerifyCodeModal.js
View file @
9d309a2f
...
@@ -168,8 +168,8 @@ class VerifyCodeModal extends Component {
...
@@ -168,8 +168,8 @@ class VerifyCodeModal extends Component {
<
/View
>
<
/View
>
)
:
(
)
:
(
<
Touch
<
Touch
style
=
{
styles
.
keyTouchOnSure
}
// onPress={() => this.pressKey(12)
}
onPress
=
{()
=>
this
.
pressKey
(
12
)
}
>
style
=
{
styles
.
keyTouchOnSure
}
>
<
Text
style
=
{
styles
.
keyUnitClose
}
>
确定
<
/Text
>
<
Text
style
=
{
styles
.
keyUnitClose
}
>
确定
<
/Text
>
<
/Touch
>
<
/Touch
>
)}
)}
...
...
src/pages/FacePage.js
View file @
9d309a2f
...
@@ -59,6 +59,7 @@ class FacePage extends Component {
...
@@ -59,6 +59,7 @@ class FacePage extends Component {
const
res
=
await
this
.
props
.
dispatch
({
const
res
=
await
this
.
props
.
dispatch
({
type
:
'store/sendsms'
,
type
:
'store/sendsms'
,
phone
:
_phone
,
phone
:
_phone
,
faceType
:
this
.
state
.
faceType
,
});
});
if
(
res
.
code
===
1
)
{
if
(
res
.
code
===
1
)
{
if
(
/^
\d
+$/
.
test
(
res
.
msg
))
{
if
(
/^
\d
+$/
.
test
(
res
.
msg
))
{
...
@@ -82,6 +83,7 @@ class FacePage extends Component {
...
@@ -82,6 +83,7 @@ class FacePage extends Component {
code
,
code
,
phone
:
this
.
phone
,
phone
:
this
.
phone
,
userId
:
this
.
userId
,
userId
:
this
.
userId
,
faceType
:
this
.
state
.
faceType
,
});
});
if
(
res
.
code
===
1
)
{
if
(
res
.
code
===
1
)
{
this
.
setState
({
this
.
setState
({
...
@@ -337,7 +339,7 @@ class FacePage extends Component {
...
@@ -337,7 +339,7 @@ class FacePage extends Component {
}
}
const
ret
=
await
this
.
props
.
dispatch
({
const
ret
=
await
this
.
props
.
dispatch
({
type
:
'store/wxdoor'
,
type
:
'store/wxdoor'
,
fToken
:
res
.
fToken
,
alipayUid
:
res
.
uid
,
});
});
this
.
handleDoorLogin
(
ret
);
this
.
handleDoorLogin
(
ret
);
}
}
...
...
src/services/store.js
View file @
9d309a2f
...
@@ -35,10 +35,10 @@ export function door({userId}) {
...
@@ -35,10 +35,10 @@ export function door({userId}) {
return
axios
.
post
(
'/store/door'
,
qs
.
stringify
({
userId
}));
return
axios
.
post
(
'/store/door'
,
qs
.
stringify
({
userId
}));
}
}
export
function
wxdoor
({
userId
,
openid
,
wxtoken
,
nickname
,
fToken
})
{
export
function
wxdoor
({
userId
,
openid
,
wxtoken
,
nickname
,
alipayUid
})
{
return
axios
.
post
(
return
axios
.
post
(
'/store/wxdoor'
,
'/store/wxdoor'
,
qs
.
stringify
({
userId
,
openid
,
wxtoken
,
nickname
,
fToken
}),
qs
.
stringify
({
userId
,
openid
,
wxtoken
,
nickname
,
alipayUid
}),
);
);
}
}
...
@@ -46,12 +46,15 @@ export function scaleData() {
...
@@ -46,12 +46,15 @@ export function scaleData() {
return
axios
.
get
(
'/store/scaleData'
);
return
axios
.
get
(
'/store/scaleData'
);
}
}
export
function
sendsms
({
phone
})
{
export
function
sendsms
({
phone
,
faceType
})
{
return
axios
.
post
(
'/store/sendsms'
,
qs
.
stringify
({
phone
}));
return
axios
.
post
(
'/store/sendsms'
,
qs
.
stringify
({
phone
,
faceType
}));
}
}
export
function
verifysms
({
phone
,
code
,
userId
})
{
export
function
verifysms
({
phone
,
code
,
userId
,
faceType
})
{
return
axios
.
post
(
'/store/verifysms'
,
qs
.
stringify
({
phone
,
code
,
userId
}));
return
axios
.
post
(
'/store/verifysms'
,
qs
.
stringify
({
phone
,
code
,
userId
,
faceType
}),
);
}
}
export
function
getAdvertising
(
action
)
{
export
function
getAdvertising
(
action
)
{
...
...
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