瀏覽代碼

兑换按钮无法点击bug修改

sunlupeng 1 年之前
父節點
當前提交
ecbf2b118e
共有 1 個文件被更改,包括 3 次插入5 次删除
  1. 3 5
      src/views/HomeView/RedeemView.vue

+ 3 - 5
src/views/HomeView/RedeemView.vue

@@ -372,11 +372,6 @@ export default {
         },
         changeDeliveryType(val){
             this.disabled = true;
-            // if(val==''){
-            //     this.total = this.data.price;
-            //     this.skuCount = 1;
-            //     this.disabled = true;
-            // }
             if(val=='0' || val==''){
                 this.total = this.data.price;
                 this.skuCount = 1;
@@ -400,6 +395,9 @@ export default {
             if(val=='4'){
                 this.total = this.data.price;
                 this.skuCount = 1;
+                if(this.phoneNumber){
+                    this.disabled = false;
+                }
             }
         },
         setTab() {