['我的资产-我的优惠券']
This commit is contained in:
@@ -21,12 +21,10 @@
|
||||
<view class="coupon-right-des" v-if='item.type.value === 2'>{{item.price_text}}</view>
|
||||
<view class="coupon-right-day">剩余{{item.time.expire}}天</view>
|
||||
</view>
|
||||
<view class="coupon-to-used" @click="$router.push({name:'CouponDetail',query:{id:item.coupon_grant_id}})">
|
||||
去使用
|
||||
</view>
|
||||
<view class="coupon-to-used" @click="couponDetailGo(item.coupon_grant_id)"> 去使用 </view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="check-all" v-if="item.coupon_count>2" @click="$router.push({name:'CouponMoreList', query:{id:item.coupon_id}})">
|
||||
<view class="check-all" v-if="item.coupon_count>2" @click="couponMoreListGo(item.coupon_id)">
|
||||
查看全部{{item.coupon_count}}张优惠券 <uni-icons type="arrowright" size="16" color="#cacaca"></uni-icons>
|
||||
</view>
|
||||
<!-- 已使用未使用标识 -->
|
||||
@@ -34,7 +32,7 @@
|
||||
<image class="used" v-if="item.status.status === 3" src="/static/images/has_un_used.png" mode="widthFix" />
|
||||
<view class="has-used-bg" v-if="item.status.status === 2 || item.status.status === 3"></view>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- <u-toast ref="uToast" /> -->
|
||||
<u-toast ref="uToast" />
|
||||
</view>
|
||||
@@ -54,11 +52,26 @@
|
||||
return {
|
||||
|
||||
};
|
||||
},
|
||||
methods:{
|
||||
couponDetailGo(id) {
|
||||
// this.$router.push({name: 'CouponDetail', query: {id: id}})
|
||||
uni.navigateTo({
|
||||
url:'/pages/property/coupon/detail?id='+id
|
||||
})
|
||||
},
|
||||
couponMoreListGo(id) {
|
||||
// this.$router.push({name:'CouponMoreList', query:{id: id}})
|
||||
uni.navigateTo({
|
||||
url: '/pages/property/coupon/couponMore?id='+id
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
$padding:20rpx;
|
||||
.coupon-item {
|
||||
margin: $padding $padding;
|
||||
position: relative;
|
||||
|
||||
Reference in New Issue
Block a user