Authored by 张文文

卖家发货选择优惠券

... ... @@ -14,7 +14,7 @@
</div>
<div class="coupon-info">
<div class="coupon-name">[{{item.coupon_type_name}}]{{item.coupon_name}}</div>
<div class="coupon-name">[{{ isSeller ? '卖家券': item.coupon_type_name }}]{{item.coupon_name}}</div>
<div class="coupon-time">{{item.coupon_validity}}</div>
</div>
... ... @@ -45,6 +45,12 @@ export default {
return [];
}
},
isSeller: {
type: Boolean,
default() {
return false;
}
}
},
components: {
YohoButton,
... ...
... ... @@ -70,7 +70,7 @@ export default {
});
},
computed: {
...mapState(['searchWord','defaultSearchWord', 'searchSuggestList']),
...mapState(['searchWord', 'defaultSearchWord', 'searchSuggestList']),
},
methods: {
...mapActions(['fetchSearchWords', 'fetchDefaultSearchWords', 'fetchSearchSuggest']),
... ...
... ... @@ -132,6 +132,7 @@ export default {
this.couponListActionSheet = this.$createOrderCouponList({
$props: {
data: this.orderDetail.couponList,
isSeller: false
},
onItemClickAction(item) {
vm.onCouponItemClick(item);
... ...
... ... @@ -272,6 +272,7 @@ export default {
this.couponListActionSheet = this.$createOrderCouponList({
$props: {
data: this.orderFeeInfo.couponList,
isSeller: true
},
onItemClickAction(item) {
vm.onCouponItemClick(item);
... ...