修改配送方式

This commit is contained in:
2020-09-07 11:32:52 +08:00
parent 57534ef7fc
commit 2ad46ce2a1
6 changed files with 42 additions and 24 deletions

View File

@@ -48,7 +48,7 @@
</view>
</view>
</view>
<view class="pick-up" v-if="is_selfraising == 1">
<view class="pick-up" v-if="delivery.type == 3">
<view class="title">自提地址</view>
<view class="content">{{ orderInfo.store_list[index].store_address }}</view>
</view>
@@ -120,18 +120,22 @@ export default {
text: '快递',
value: 'express',
disabled: false,
type: 1,
}, {
text: '骑手',
value: 'takeawayer',
disabled: false,
type: 2,
}, {
text: '自提',
value: 'selfraising',
disabled: false,
type: 3,
}],
delivery: {
text: '快递',
value: 'express',
type: 1,
}, // 配送方式
couponList: [],
couponStatus: false,
@@ -141,7 +145,6 @@ export default {
goodsClass: [],
orderType: '', // 订单类型 1 普通订单 2 拼团订单 3 秒杀订单 4 优惠券 5 购物车订单
debounce: true,
is_selfraising: 0, // 是否自提0=》否1=》是
hasInvoice: 0,
}
},
@@ -276,7 +279,7 @@ export default {
cart_id: id,
address_id: this.addressInfo.address_id,
buy_city_id: this.addressInfo.city_id,
is_selfraising: this.is_selfraising,
member_deliver_type: this.delivery.type,
invoice_id: this.$store.getters.getInvoiceId, // 发票抬头ID不开票传0
}
if(coupon.length) Object.assign(params, { voucher_id: coupon });
@@ -413,7 +416,6 @@ export default {
this.getFreight();
}
if(index == 2) {
this.is_selfraising = 1;
for (const key in this.freight) {
if (this.freight.hasOwnProperty(key)) {
this.freight[key] = '0.00';
@@ -421,8 +423,6 @@ export default {
}
this.setTotalPrice(); // 计算总价
this.delivery = this.deliveryList[index];
} else {
this.is_selfraising = 0;
}
if(index == 0) {
this.delivery = this.deliveryList[index];