瀏覽代碼

fix 优化核销体验

wzh 4 月之前
父節點
當前提交
532745f42f
共有 1 個文件被更改,包括 4 次插入2 次删除
  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' });
           }