Commit 9c89a25c by Confettis

fix: 刷卡器触发两次键盘事件

parent 7b025397
...@@ -127,6 +127,7 @@ const CounterMixins = ComposeComponent => { ...@@ -127,6 +127,7 @@ const CounterMixins = ComposeComponent => {
handleCard = async cardId => { handleCard = async cardId => {
Toast.hide(); Toast.hide();
if (!cardId) return;
Toast.loading('正在付款,请稍后~'); Toast.loading('正在付款,请稍后~');
const {ids, noBarcode} = this.getGoods(); const {ids, noBarcode} = this.getGoods();
this.props this.props
...@@ -137,7 +138,6 @@ const CounterMixins = ComposeComponent => { ...@@ -137,7 +138,6 @@ const CounterMixins = ComposeComponent => {
cardId, cardId,
}) })
.then(async ({data}) => { .then(async ({data}) => {
console.log(data);
if (data.code === 1) { if (data.code === 1) {
this.orderId = data.data.orderId; this.orderId = data.data.orderId;
await this.successPay(true); await this.successPay(true);
......
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