商品选择器显示零售商品批发商品
parent
92d58ea7e5
commit
f930d73a6a
|
@ -23,6 +23,7 @@
|
||||||
<div class="wap-content-desc">
|
<div class="wap-content-desc">
|
||||||
<div class="wap-content-desc-title">{{ item.goodsName }}</div>
|
<div class="wap-content-desc-title">{{ item.goodsName }}</div>
|
||||||
<div class="wap-sku">{{ item.goodsUnit }}</div>
|
<div class="wap-sku">{{ item.goodsUnit }}</div>
|
||||||
|
<div class="wap-sku"><Tag :color="item.salesModel === 'RETAIL' ? 'default' : 'geekblue'">{{item.salesModel === "RETAIL" ? "零售型" : "批发型"}}</Tag></div>
|
||||||
<div class="wap-content-desc-bottom">
|
<div class="wap-content-desc-bottom">
|
||||||
<div>¥{{ item.price | unitPrice }}</div>
|
<div>¥{{ item.price | unitPrice }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -54,6 +55,7 @@ export default {
|
||||||
categoryPath: "",
|
categoryPath: "",
|
||||||
marketEnable: "UPPER",
|
marketEnable: "UPPER",
|
||||||
authFlag: "PASS",
|
authFlag: "PASS",
|
||||||
|
sort:"createTime"
|
||||||
},
|
},
|
||||||
category: [], // 分类
|
category: [], // 分类
|
||||||
goodsData: [], // 商品数据
|
goodsData: [], // 商品数据
|
||||||
|
@ -62,7 +64,7 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
selectedWay: {
|
selectedWay: {
|
||||||
type: Array,
|
type: Array,
|
||||||
default: function(){
|
default: function(){
|
||||||
return new Array()
|
return new Array()
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 80px;
|
height: 100px;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
<div class="wap-content-desc">
|
<div class="wap-content-desc">
|
||||||
<div class="wap-content-desc-title">{{ item.goodsName }}</div>
|
<div class="wap-content-desc-title">{{ item.goodsName }}</div>
|
||||||
<div class="wap-sku">{{ item.goodsUnit }}</div>
|
<div class="wap-sku">{{ item.goodsUnit }}</div>
|
||||||
|
<div class="wap-sku"><Tag :color="item.salesModel === 'RETAIL' ? 'default' : 'geekblue'">{{item.salesModel === "RETAIL" ? "零售型" : "批发型"}}</Tag></div>
|
||||||
<div class="wap-content-desc-bottom">
|
<div class="wap-content-desc-bottom">
|
||||||
<div>¥{{ item.price | unitPrice }}</div>
|
<div>¥{{ item.price | unitPrice }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -65,6 +66,7 @@ export default {
|
||||||
categoryPath: "",
|
categoryPath: "",
|
||||||
marketEnable: "UPPER",
|
marketEnable: "UPPER",
|
||||||
authFlag: "PASS",
|
authFlag: "PASS",
|
||||||
|
sort:"createTime"
|
||||||
},
|
},
|
||||||
category: [], // 选中的商品分类
|
category: [], // 选中的商品分类
|
||||||
goodsData: [], // 商品列表
|
goodsData: [], // 商品列表
|
||||||
|
@ -244,9 +246,7 @@ export default {
|
||||||
margin: 10px 7px;
|
margin: 10px 7px;
|
||||||
padding: 6px 0;
|
padding: 6px 0;
|
||||||
}
|
}
|
||||||
// .wap-content-item{
|
|
||||||
|
|
||||||
// }
|
|
||||||
.active {
|
.active {
|
||||||
background: url("../../assets/selected.png") no-repeat;
|
background: url("../../assets/selected.png") no-repeat;
|
||||||
background-position: right;
|
background-position: right;
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 80px;
|
height: 100px;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
Loading…
Reference in New Issue