Commit 1d1a6693 by 修福龙

修复手机号码验证后闪退的问题

parent ecc91797
...@@ -289,7 +289,6 @@ class FacePage extends Component { ...@@ -289,7 +289,6 @@ class FacePage extends Component {
// device 代表当前打开的门 // device 代表当前打开的门
handleScaleChange = ({count}) => { handleScaleChange = ({count}) => {
console.warn(count);
if (count === -1) { if (count === -1) {
// 重力感应开始识别 // 重力感应开始识别
this.wechatFace(); this.wechatFace();
...@@ -359,7 +358,6 @@ class FacePage extends Component { ...@@ -359,7 +358,6 @@ class FacePage extends Component {
const tipText = '正在人脸识别,请看向屏幕,靠中间站稳'; const tipText = '正在人脸识别,请看向屏幕,靠中间站稳';
Speech.speak(tipText); Speech.speak(tipText);
let auth = (await this.authinfo()) || {}; let auth = (await this.authinfo()) || {};
console.warn(auth);
if ( if (
auth.return_code === 'SUCCESS' || auth.return_code === 'SUCCESS' ||
(auth.code === 1 && auth.data.bizCode === '0000') (auth.code === 1 && auth.data.bizCode === '0000')
...@@ -376,7 +374,6 @@ class FacePage extends Component { ...@@ -376,7 +374,6 @@ class FacePage extends Component {
ask_unionid: 1, ask_unionid: 1,
}; };
let res = (await WxFacepay.faceinfo(params)) || {}; let res = (await WxFacepay.faceinfo(params)) || {};
console.warn(res);
if (window.socket) { if (window.socket) {
window.socket.connect(); window.socket.connect();
} // 返回结果,立即重新连接socket } // 返回结果,立即重新连接socket
...@@ -417,11 +414,11 @@ class FacePage extends Component { ...@@ -417,11 +414,11 @@ class FacePage extends Component {
// }); // });
// }; // };
talkCall = () => { // talkCall = () => {
this.props.dispatch({ // this.props.dispatch({
type: 'store/talkCall', // type: 'store/talkCall',
}); // });
}; // };
dropUp = () => { dropUp = () => {
let {current} = this.state; let {current} = this.state;
...@@ -478,7 +475,7 @@ class FacePage extends Component { ...@@ -478,7 +475,7 @@ class FacePage extends Component {
maskClosable maskClosable
onClose={this.handleOrderClose} onClose={this.handleOrderClose}
onRequestClose={this.handleOrderClose} onRequestClose={this.handleOrderClose}
onCall={this.onCall} // onCall={this.onCall}
dropUp={this.dropUp} dropUp={this.dropUp}
dropDown={this.dropDown} dropDown={this.dropDown}
goodsArr={goodsArr} goodsArr={goodsArr}
......
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