| | |
| | | |
| | | </view> |
| | | |
| | | . |
| | | |
| | | </view> |
| | | <view class="tip"> |
| | | <span |
| | |
| | | if (this.cache_coupon.id === item.id) { |
| | | await this.$message.confirm('是否取消使用此优惠券') |
| | | await this.$store.dispatch('cache_coupon_select', {}) |
| | | await this.$store.dispatch('cache_coupon_select_cancel', 1) |
| | | uni.navigateBack() |
| | | return |
| | | } |
| | |
| | | } |
| | | } |
| | | await this.$store.dispatch('cache_coupon_select', item) |
| | | await this.$store.dispatch('cache_coupon_select_cancel', 0) |
| | | uni.navigateBack() |
| | | } |
| | | }, |
| | |
| | | cache_goods: state => { |
| | | return state.cache.goods || [] |
| | | }, |
| | | cache_coupon_select_cancel: state => { |
| | | return state.cache.cache_coupon_select_cancel==1?1:0 |
| | | }, |
| | | }), |
| | | } |
| | | } |