Przeglądaj źródła

首页重复请求接口 核销处理

whyusb@gmail.com 4 lat temu
rodzic
commit
f01f965b7a
2 zmienionych plików z 13 dodań i 13 usunięć
  1. 3 3
      src/pages/index/conversion.vue
  2. 10 10
      src/pages/index/index.vue

+ 3 - 3
src/pages/index/conversion.vue

@@ -122,17 +122,17 @@ export default {
 
     //  确认兑换
     sureconvert() {
-      this.$mHelper.toast('click');
+      // this.$mHelper.toast('click');
       this.type = true;
       // this.iconShow = true;
       // this.masktxt = '是否兑换?';
       // this.isShowMask = true;
-
+      const _this = this
       uni.showModal({
         content: '是否兑换?',
         success: confirmRes => {
           if (confirmRes.confirm) {
-            this.isSureConver()
+            _this.isSureConver(true)
           }
         }
       });

+ 10 - 10
src/pages/index/index.vue

@@ -389,16 +389,16 @@ export default {
     this.loading = false;
   },
   // 页面生命周期 监听页面加载
-  onLoad() {
-    _self = this;
-    this.cWidth = uni.upx2px(690); // upx2px 转换为px
-    this.cHeight = uni.upx2px(300);
-    this.bWidth = uni.upx2px(690);
-    this.bHeight = uni.upx2px(300);
-
-    this.getShopList();
-    this.loading = false;
-  },
+  // onLoad() {
+  //   _self = this;
+  //   this.cWidth = uni.upx2px(690); // upx2px 转换为px
+  //   this.cHeight = uni.upx2px(300);
+  //   this.bWidth = uni.upx2px(690);
+  //   this.bHeight = uni.upx2px(300);
+
+  //   this.getShopList();
+  //   this.loading = false;
+  // },
 
   methods: {
     // 监听遮罩层行为