Kaynağa Gözat

fix 优化核销体验

wzh 4 ay önce
ebeveyn
işleme
532745f42f
1 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  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);
       uni.showLoading({ title: '提交中...' });
       let obj = {};
-      obj.storeId = 1;
+      obj.storeId = this.storeId;
       obj.qrcodeIds = this.codeList;
       if(this.type == 1){
         active(obj).then(res=>{
@@ -182,7 +182,9 @@ export default {
             uni.showToast({ title: '操作成功', icon: 'none' });
             this.numberList = []
             this.codeList = [];
-            uni.navigateBack();
+            setTimeout(()=>{
+              uni.navigateBack();
+            },1000)
           }else{
             uni.showToast({ title: res.msg, icon: 'none' });
           }