Commit 193ffa7e by zeven

正常进出不显示错误提示

parent 4c285d87
......@@ -215,7 +215,7 @@ class FacePage extends Component {
current: 1,
});
}
} else if (ret.msg) {
} else if (ret.code !== 1 && ret.msg) {
let tipText = ret.msg.replace(/扫码/g, '人脸识别');
Speech.speak(tipText);
this.setState({tip: tipText, tipsModal: true});
......@@ -403,9 +403,12 @@ class FacePage extends Component {
</Touch>
{tipsModal && tip && (
<View style={styles.modal}>
<View style={styles.tips}>
<Touch
onPress={() => this.setState({tipsModal: false, tip: ''})}
feedback={false}
style={styles.tips}>
<Text style={styles.tipText}>{tip}</Text>
</View>
</Touch>
<Touch
onPress={this.onCall}
feedback={false}
......
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