Commit 9d309a2f by zeven

支付宝刷脸保存用户信息

parent e83451ae
...@@ -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>
)} )}
......
...@@ -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);
} }
......
...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment