Kaynağa Gözat

支付中心bug 店铺首页立即购买

yangc 7 yıl önce
ebeveyn
işleme
1311c9b86c

+ 9 - 2
components/mobile/store/StoreDetail.vue

@@ -169,8 +169,8 @@
                 <i class="iconfont icon-kefu1"></i>联系卖家
               </div>
               <div class="pull-right clearfix">
-                <div class="pull-left">加入购物车</div>
-                <div class="pull-left">立即购买</div>
+                <div class="pull-left" @click="buy(item, false, $event)">加入购物车</div>
+                <div class="pull-left" @click="buy(item, true, $event)">立即购买</div>
               </div>
             </div>
           </div>
@@ -378,12 +378,19 @@
           this.showLoginBox = true
         }
       },
+      setRemindText: function (str) {
+        this.collectResult = str
+        this.timeoutCount++
+      },
       search: function () {
         this.page = 1
         this.isChange = true
         this.isSearch = true
         this.remindKeyword = this.keyword
         this.pageCommodity({ page: this.page, count: this.count })
+      },
+      buy: function (item, flag, e) {
+        this.baseUtils.buyOrCar(flag, e, this, item, '/mobile/center/user/pay/')
       }
     }
   }

+ 9 - 9
pages/mobile/center/user/payCenter.vue

@@ -62,11 +62,11 @@
             </ul>
           </li>
           <li class="inline-block">
-            <div @click.stop="setShowSelect('currency', !showSelectCurrency)">{{filterParams.currency || '币种'}}</div>
+            <div @click.stop="setShowSelect('currencyName', !showSelectCurrency)">{{filterParams.currencyName || '币种'}}</div>
             <ul class="select-list" v-show="showSelectCurrency">
-              <li @click.stop="setSelect('currency', null)">币种</li>
-              <li @click.stop="setSelect('currency', 'RMB')">RMB</li>
-              <li @click.stop="setSelect('currency', 'USD')">USD</li>
+              <li @click.stop="setSelect('currencyName', null)">币种</li>
+              <li @click.stop="setSelect('currencyName', 'RMB')">RMB</li>
+              <li @click.stop="setSelect('currencyName', 'USD')">USD</li>
             </ul>
           </li>
           <li class="inline-block">
@@ -320,7 +320,7 @@
           this.showSelectMethod = flag
           this.showSelectCurrency = false
           this.showSelectStatus = false
-        } else if (type === 'currency') {
+        } else if (type === 'currencyName') {
           this.showSelectCurrency = flag
           this.showSelectStatus = false
           this.showSelectMethod = false
@@ -334,14 +334,14 @@
         if (type === 'method') {
           this.filterParams.method = val
           this.setShowSelect('method', false)
-        } else if (type === 'currency') {
-          this.filterParams.currency = val
-          this.setShowSelect('currency', false)
+        } else if (type === 'currencyName') {
+          this.filterParams.currencyName = val
+          this.setShowSelect('currencyName', false)
         } else if (type === 'status') {
           this.filterParams.status = val
           this.setShowSelect('status', false)
         }
-        this.filterRecord()
+        this.filterRecord(this.filterParams.currencyName)
       },
       setDate (type) {
         // 00:00:00

+ 1 - 0
pages/mobile/center/vendor/payCenter.vue

@@ -448,6 +448,7 @@
           number: false,
           accountname: false
         }
+        this.file = ''
       },
       openAddAccount () {
         if (!this.bankList || !this.bankList.length) {