Showing
4 changed files
with
10 additions
and
2 deletions
@@ -14,7 +14,7 @@ | @@ -14,7 +14,7 @@ | ||
14 | </div> | 14 | </div> |
15 | 15 | ||
16 | <div class="coupon-info"> | 16 | <div class="coupon-info"> |
17 | - <div class="coupon-name">[{{item.coupon_type_name}}]{{item.coupon_name}}</div> | 17 | + <div class="coupon-name">[{{ isSeller ? '卖家券': item.coupon_type_name }}]{{item.coupon_name}}</div> |
18 | 18 | ||
19 | <div class="coupon-time">{{item.coupon_validity}}</div> | 19 | <div class="coupon-time">{{item.coupon_validity}}</div> |
20 | </div> | 20 | </div> |
@@ -45,6 +45,12 @@ export default { | @@ -45,6 +45,12 @@ export default { | ||
45 | return []; | 45 | return []; |
46 | } | 46 | } |
47 | }, | 47 | }, |
48 | + isSeller: { | ||
49 | + type: Boolean, | ||
50 | + default() { | ||
51 | + return false; | ||
52 | + } | ||
53 | + } | ||
48 | }, | 54 | }, |
49 | components: { | 55 | components: { |
50 | YohoButton, | 56 | YohoButton, |
@@ -70,7 +70,7 @@ export default { | @@ -70,7 +70,7 @@ export default { | ||
70 | }); | 70 | }); |
71 | }, | 71 | }, |
72 | computed: { | 72 | computed: { |
73 | - ...mapState(['searchWord','defaultSearchWord', 'searchSuggestList']), | 73 | + ...mapState(['searchWord', 'defaultSearchWord', 'searchSuggestList']), |
74 | }, | 74 | }, |
75 | methods: { | 75 | methods: { |
76 | ...mapActions(['fetchSearchWords', 'fetchDefaultSearchWords', 'fetchSearchSuggest']), | 76 | ...mapActions(['fetchSearchWords', 'fetchDefaultSearchWords', 'fetchSearchSuggest']), |
@@ -132,6 +132,7 @@ export default { | @@ -132,6 +132,7 @@ export default { | ||
132 | this.couponListActionSheet = this.$createOrderCouponList({ | 132 | this.couponListActionSheet = this.$createOrderCouponList({ |
133 | $props: { | 133 | $props: { |
134 | data: this.orderDetail.couponList, | 134 | data: this.orderDetail.couponList, |
135 | + isSeller: false | ||
135 | }, | 136 | }, |
136 | onItemClickAction(item) { | 137 | onItemClickAction(item) { |
137 | vm.onCouponItemClick(item); | 138 | vm.onCouponItemClick(item); |
@@ -272,6 +272,7 @@ export default { | @@ -272,6 +272,7 @@ export default { | ||
272 | this.couponListActionSheet = this.$createOrderCouponList({ | 272 | this.couponListActionSheet = this.$createOrderCouponList({ |
273 | $props: { | 273 | $props: { |
274 | data: this.orderFeeInfo.couponList, | 274 | data: this.orderFeeInfo.couponList, |
275 | + isSeller: true | ||
275 | }, | 276 | }, |
276 | onItemClickAction(item) { | 277 | onItemClickAction(item) { |
277 | vm.onCouponItemClick(item); | 278 | vm.onCouponItemClick(item); |
-
Please register or login to post a comment