|
|
@@ -126,9 +126,7 @@
|
|
|
|
|
|
</div>
|
|
|
<div v-if="item.status == 0" class="status">
|
|
|
- <router-link :to="{path:'/home/pointsMall/redeem',query: {id: item.skuId || (item.couponVo && item.couponVo.skuIds && item.couponVo.skuIds[0]),name: 'giftNotice',type: item.actId}}" class="use-btn">
|
|
|
- <span @click="setTab">去使用</span>
|
|
|
- </router-link>
|
|
|
+ <span class="use-btn" @click="setTab(item)">去使用</span>
|
|
|
</div>
|
|
|
<div v-if="item.status == 1" class="status">
|
|
|
<span style="color: #8a919f;">已使用</span>
|
|
|
@@ -435,8 +433,27 @@ export default {
|
|
|
this.total = response.data.data.total;
|
|
|
})
|
|
|
},
|
|
|
- setTab() {
|
|
|
+ setTab(item) {
|
|
|
setTab('gift');
|
|
|
+ let id = item.skuId;
|
|
|
+ let skuIds = item.couponVo.skuIds;
|
|
|
+ let name = 'giftNotice';
|
|
|
+ let type = item.actId;
|
|
|
+ if(skuIds.length == 1){
|
|
|
+ this.$router.push({
|
|
|
+ path: '/home/pointsMall/redeem',
|
|
|
+ query: {
|
|
|
+ id: id || skuIds[0],
|
|
|
+ name: name,
|
|
|
+ type: type
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ this.$router.push({
|
|
|
+ path: '/home/pointsMall',
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
getIntegralNotice() {
|
|
|
notice({ noticeType: 'integralNotice' }).then(response => {
|
|
|
@@ -760,6 +777,7 @@ svg:not(:root) {
|
|
|
}
|
|
|
|
|
|
.status .use-btn {
|
|
|
+ cursor: pointer;
|
|
|
color: #1e80ff;
|
|
|
}
|
|
|
</style>
|