Commit 5daf525a by 黄日华

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

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