Commit 5daf525a by 黄日华

验证手机号还提示出店二维码问题

parent b897e3b5
...@@ -991,7 +991,6 @@ const CounterMixins = ComposeComponent => { ...@@ -991,7 +991,6 @@ const CounterMixins = ComposeComponent => {
orderId: res.data.orderId, // 订单号, orderId: res.data.orderId, // 订单号,
}); });
if (status.code === 1 && status.data === 1) { if (status.code === 1 && status.data === 1) {
console.warn('刷脸支付');
this.successPay(); this.successPay();
successPay = true; successPay = true;
await wait(3000); await wait(3000);
...@@ -1124,20 +1123,25 @@ const CounterMixins = ComposeComponent => { ...@@ -1124,20 +1123,25 @@ const CounterMixins = ComposeComponent => {
}; };
onOpen = async () => { onOpen = async () => {
this.setState({
cloudFinishModal: false,
});
const {data} = await this.props.dispatch({ const {data} = await this.props.dispatch({
type: 'store/open', type: 'store/open',
orderId: this.orderId, orderId: this.orderId,
}); });
if (data.code === 1) { if (data.code === 1) {
this.setState({ Speech.speak(data.msg || '门已经打开,谢谢惠顾');
cloudFinishModal: false, } else {
setTimeout(async () => {
const {data: dataNext} = await this.props.dispatch({
type: 'store/open',
orderId: this.orderId,
}); });
if (dataNext.code === 1) {
Speech.speak(data.msg || '门已经打开,谢谢惠顾'); Speech.speak(data.msg || '门已经打开,谢谢惠顾');
} else { } else {
Speech.speak(data.msg || '开门失败,请联系客服处理'); Speech.speak(data.msg || '开门失败,请联系客服处理');
await this.setState({
cloudFinishModal: false,
});
this.setState({ this.setState({
noBuyModal: true, noBuyModal: true,
}); });
...@@ -1145,6 +1149,8 @@ const CounterMixins = ComposeComponent => { ...@@ -1145,6 +1149,8 @@ const CounterMixins = ComposeComponent => {
this.setState({noBuyModal: false}); this.setState({noBuyModal: false});
}, 30000); }, 30000);
} }
}, 500);
}
this.clearList(); this.clearList();
}; };
......
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