| | |
| | | <view class="info flex1"> |
| | | <view class="title"> |
| | | {{item.couponName||'-'}} |
| | | <radio :checked="cache_coupon.id===item.id" v-if="source==='shopping'" class="select-coupon"></radio> |
| | | |
| | | </view> |
| | | <view class="time"> |
| | | {{item.usageEndDate&&('有效期至:'+item.usageEndDate) || '长久有效'}} |
| | | {{item.effectiveStart&&(item.effectiveStart+' 生效,') || ''}} |
| | | {{item.effectiveEnd&&('有效期至 '+item.effectiveEnd) || '长久有效'}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | mapState |
| | | } from 'vuex' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | uni.stopPullDownRefresh() |
| | | |
| | | }, |
| | | computed: { |
| | | ...mapState({ |
| | | cache_coupon: state => { |
| | | return state.cache.coupon || {} |
| | | }, |
| | | cache_goods: state => { |
| | | return state.cache.goods || [] |
| | | }, |
| | | }), |
| | | } |
| | | } |
| | | </script> |
| | | |