Commit 09d7c791 by 修福龙

修复刷脸窗口循环弹出的问题

parent d907f077
...@@ -173,7 +173,7 @@ class FacePage extends Component { ...@@ -173,7 +173,7 @@ class FacePage extends Component {
handleScaleChange = async ({count}) => { handleScaleChange = async ({count}) => {
if (count === -1) { if (count === -1) {
// 重力感应开始识别 // 重力感应开始识别
this.wechatFace(true); this.wechatFace();
} else if (count === 0) { } else if (count === 0) {
// 重力感应归零 // 重力感应归零
this.leaveC(); this.leaveC();
...@@ -235,9 +235,9 @@ class FacePage extends Component { ...@@ -235,9 +235,9 @@ class FacePage extends Component {
}; };
// 微信人脸身份识别 // 微信人脸身份识别
wechatFace = async face => { wechatFace = async () => {
const {orderDetailsModal, tipsModal} = this.state; const {orderDetailsModal, tipsModal} = this.state;
if ((orderDetailsModal || tipsModal) && !face) { if (orderDetailsModal || tipsModal) {
return; return;
} // 出现订单弹窗,不做人脸识别 } // 出现订单弹窗,不做人脸识别
const tipText = '正在人脸识别,请看向屏幕,靠中间站稳'; const tipText = '正在人脸识别,请看向屏幕,靠中间站稳';
...@@ -394,7 +394,7 @@ class FacePage extends Component { ...@@ -394,7 +394,7 @@ class FacePage extends Component {
<View style={styles.faceRecogn}> <View style={styles.faceRecogn}>
<Touch <Touch
style={styles.faceGif} style={styles.faceGif}
onPress={() => this.wechatFace(true)} onPress={() => this.wechatFace()}
feedback={false}> feedback={false}>
<Image <Image
source={require('../assets/Vertical/face.gif')} source={require('../assets/Vertical/face.gif')}
...@@ -422,7 +422,7 @@ class FacePage extends Component { ...@@ -422,7 +422,7 @@ class FacePage extends Component {
)} )}
</View> </View>
<Touch <Touch
onPress={() => this.wechatFace(true)} onPress={() => this.wechatFace()}
style={styles.btnCome} style={styles.btnCome}
feedback={false}> feedback={false}>
<View style={styles.click}> <View style={styles.click}>
...@@ -619,7 +619,7 @@ const styles = { ...@@ -619,7 +619,7 @@ const styles = {
backgroundColor: '#FC4000', backgroundColor: '#FC4000',
width: '70%', width: '70%',
// height: '18%', // height: '18%',
// height: 200, height: 200,
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
marginRight: 5, marginRight: 5,
...@@ -636,7 +636,7 @@ const styles = { ...@@ -636,7 +636,7 @@ const styles = {
callTouch: { callTouch: {
width: '30%', width: '30%',
// height: '18%', // height: '18%',
// height: 200, height: 200,
marginLeft: 5, marginLeft: 5,
backgroundColor: '#FC4000', backgroundColor: '#FC4000',
}, },
......
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