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,26 +1123,33 @@ const CounterMixins = ComposeComponent => { ...@@ -1124,26 +1123,33 @@ 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({
cloudFinishModal: false,
});
Speech.speak(data.msg || '门已经打开,谢谢惠顾'); Speech.speak(data.msg || '门已经打开,谢谢惠顾');
} else { } else {
Speech.speak(data.msg || '开门失败,请联系客服处理'); setTimeout(async () => {
await this.setState({ const {data: dataNext} = await this.props.dispatch({
cloudFinishModal: false, type: 'store/open',
}); orderId: this.orderId,
this.setState({ });
noBuyModal: true, if (dataNext.code === 1) {
}); Speech.speak(data.msg || '门已经打开,谢谢惠顾');
setTimeout(() => { } else {
this.setState({noBuyModal: false}); Speech.speak(data.msg || '开门失败,请联系客服处理');
}, 30000); this.setState({
noBuyModal: true,
});
setTimeout(() => {
this.setState({noBuyModal: false});
}, 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