mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-20 09:55:53 +08:00
feat: 增加优惠券领取详情和优化pc端跳转使用优惠券页面
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user