Sfoglia il codice sorgente

fix 优化核销体验

wzh 4 mesi fa
parent
commit
532745f42f
1 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 4 2
      pages/cjx/hexiao/ywy/scan_code.vue

+ 4 - 2
pages/cjx/hexiao/ywy/scan_code.vue

@@ -173,7 +173,7 @@ export default {
       console.log('提交的二维码列表:', this.codeList);
       console.log('提交的二维码列表:', this.codeList);
       uni.showLoading({ title: '提交中...' });
       uni.showLoading({ title: '提交中...' });
       let obj = {};
       let obj = {};
-      obj.storeId = 1;
+      obj.storeId = this.storeId;
       obj.qrcodeIds = this.codeList;
       obj.qrcodeIds = this.codeList;
       if(this.type == 1){
       if(this.type == 1){
         active(obj).then(res=>{
         active(obj).then(res=>{
@@ -182,7 +182,9 @@ export default {
             uni.showToast({ title: '操作成功', icon: 'none' });
             uni.showToast({ title: '操作成功', icon: 'none' });
             this.numberList = []
             this.numberList = []
             this.codeList = [];
             this.codeList = [];
-            uni.navigateBack();
+            setTimeout(()=>{
+              uni.navigateBack();
+            },1000)
           }else{
           }else{
             uni.showToast({ title: res.msg, icon: 'none' });
             uni.showToast({ title: res.msg, icon: 'none' });
           }
           }