feat: 增加优惠券领取详情和优化pc端跳转使用优惠券页面

This commit is contained in:
paulGao
2023-01-11 11:28:28 +08:00
parent c8649caf1a
commit db33b34f18
13 changed files with 1004 additions and 211 deletions

View File

@@ -82,20 +82,24 @@
</div>
<div class="goods-show-right">
<Tag class="goods-show-tag" color="red" v-if="item.content.selfOperated">
<Tag
class="goods-show-tag"
color="red"
v-if="item.content.selfOperated"
>
自营
</Tag>
<Tag
class="goods-show-tag" color="blue"
class="goods-show-tag"
color="blue"
v-if="item.content.goodsType == 'VIRTUAL_GOODS'"
>
虚拟
</Tag>
<Tag
class="goods-show-tag" color="blue"
v-else-if="
item.content.goodsType == 'PHYSICAL_GOODS'
"
class="goods-show-tag"
color="blue"
v-else-if="item.content.goodsType == 'PHYSICAL_GOODS'"
>
实物
</Tag>
@@ -155,13 +159,21 @@ export default {
watch: {
$route() {
const keyword = this.$route.query.keyword;
this.handleSearch(keyword);
if (keyword) {
this.handleSearch(keyword);
}
if (this.$route.query.categoryId) {
let cateId = this.$route.query.categoryId.split(",");
Object.assign(this.params, this.$route.query);
this.params.categoryId = cateId[cateId.length - 1];
this.getGoodsList();
}
if (this.$route.query.promotionType) {
this.params.promotionType = this.$route.query.promotionType;
}
if (this.$route.query.promotionsId) {
this.params.promotionsId = this.$route.query.promotionsId;
}
this.getGoodsList();
},
},
methods: {
@@ -301,7 +313,6 @@ export default {
margin-top: 5px;
}
.goods-show-self {
float: left;
height: 16px;