Commit e6c3a477 by 黄日华

扫码付款orderId赋值

parent ef1350d4
...@@ -379,6 +379,7 @@ const CounterMixins = ComposeComponent => { ...@@ -379,6 +379,7 @@ const CounterMixins = ComposeComponent => {
Speech.speak(msg); Speech.speak(msg);
} else if (type === 'paid') { } else if (type === 'paid') {
if (orderId) { if (orderId) {
this.orderId = orderId;
let count = 0; let count = 0;
this.props.dispatch({ this.props.dispatch({
// 扫码付款步骤 // 扫码付款步骤
...@@ -1156,6 +1157,8 @@ const CounterMixins = ComposeComponent => { ...@@ -1156,6 +1157,8 @@ const CounterMixins = ComposeComponent => {
}); });
if (data.code === 1) { if (data.code === 1) {
Speech.speak(data.msg || '门已经打开,谢谢惠顾'); Speech.speak(data.msg || '门已经打开,谢谢惠顾');
} else if (data.code === -2) {
Speech.speak(data.msg || '开门失败,请联系客服处理');
} else { } else {
setTimeout(async () => { setTimeout(async () => {
const {data: dataNext} = await this.props.dispatch({ const {data: dataNext} = await this.props.dispatch({
......
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