增加批发商品的标识

master
paulGao 2022-05-27 18:12:19 +08:00
parent 3405cf68bb
commit 85061ed2f8
2 changed files with 32 additions and 2 deletions

View File

@ -122,7 +122,16 @@
" "
/> />
<div> <div>
<p>{{ goods.goodsSku.goodsName }}</p> <p>
{{ goods.goodsSku.goodsName }}
</p>
<p><Tag
v-if="goods.goodsSku.salesModel === 'WHOLESALE'"
class="goods-show-tag"
color="purple"
>
批发商品
</Tag></p>
<template <template
v-for="(promotion, promotionIndex) in goods.promotions" v-for="(promotion, promotionIndex) in goods.promotions"
> >

View File

@ -62,6 +62,13 @@
</span> </span>
</div> </div>
<div class="goods-show-detail"> <div class="goods-show-detail">
<Tag
v-if="item.content.salesModel === 'WHOLESALE'"
class="goods-show-tag"
color="purple"
>
批发
</Tag>
<span>{{ item.content.goodsName }}</span> <span>{{ item.content.goodsName }}</span>
</div> </div>
<div class="goods-show-num"> <div class="goods-show-num">
@ -85,7 +92,9 @@
</div> </div>
<div <div
class="goods-show-middle" class="goods-show-middle"
v-else-if="goodsListType.content.goodsType == 'PHYSICAL_GOODS'" v-else-if="
goodsListType.content.goodsType == 'PHYSICAL_GOODS'
"
> >
实物 实物
</div> </div>
@ -203,6 +212,7 @@ export default {
this.params.pageSize = val; this.params.pageSize = val;
this.getGoodsList(); this.getGoodsList();
}, },
// //
getGoodsList() { getGoodsList() {
this.loading = true; this.loading = true;
@ -255,6 +265,17 @@ export default {
padding: 0 3px; padding: 0 3px;
background-color: #e23a3a; background-color: #e23a3a;
} }
.goods-show-tag {
height: 18px;
width: 32px;
line-height: 14px;
white-space: nowrap;
text-align: center;
align-items: center;
padding: 0 3px;
}
.goods-show-seller { .goods-show-seller {
// padding:3px 0; // padding:3px 0;
vertical-align: middle; vertical-align: middle;