Browse Source

初始收货地址为空时,订单提交报错bug

yangc 7 years ago
parent
commit
e6ba0a5b8e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pages/mobile/center/user/pay/_orderId.vue

+ 1 - 1
pages/mobile/center/user/pay/_orderId.vue

@@ -514,7 +514,7 @@
         this.getTakeSelfInfo()
       },
       getDeliveryRule () {
-        return !this.selectedAddress.id ? {} : this.$http.post(`/trade/distributionRule/usable/rule?area=${this.selectedAddress.area}`, this.ruleParamsArr)
+        return this.$http.post(`/trade/distributionRule/usable/rule?area=${this.selectedAddress.area}`, this.ruleParamsArr)
           .then(res => {
 //            this.fareRule = res.data || {}
             this.orderData.forEach(item => {