diff --git a/pages/product/goodsOnSale/index.vue b/pages/product/goodsOnSale/index.vue index 0e355f3..01e45e9 100644 --- a/pages/product/goodsOnSale/index.vue +++ b/pages/product/goodsOnSale/index.vue @@ -45,8 +45,14 @@ 销量:{{ item.sales }} - ¥{{ item.price }} - ¥{{ item.ot_price }} + + + ¥{{item.attrValue[0].procure_price}} + 零售价¥{{item.attrValue[0].price}} + + 商品规格错误 + + ¥{{item.price}} @@ -87,6 +93,7 @@ export default { childIndex: 0, menuList: [], merId: '', + mer_info: {}, shopList: [], loaded: false, loading: false, @@ -110,6 +117,9 @@ export default { }, onLoad(opt) { + let user = this.$store.state.app.userInfo; + if(typeof user == 'string') user = JSON.parse(user); + this.mer_info = user.mer_info; this.merId = opt.mer_id; this.getProductTitle(); this.$set(this, 'type', opt.type ? Number(opt.type) : 1); @@ -420,6 +430,12 @@ export default { font-size: 26rpx; } } + .ot_price { + color: #bebebe; + font-size: 26rpx; + margin-left: 10rpx; + // text-decoration: line-through; + } } } &_handle { diff --git a/pages/product/list/index.vue b/pages/product/list/index.vue index bbd9228..7e39175 100644 --- a/pages/product/list/index.vue +++ b/pages/product/list/index.vue @@ -112,8 +112,14 @@ 销量: {{item.sales}} - ¥{{item.price}} - ¥{{item.ot_price}} + + + ¥{{item.attrValue[0].procure_price}} + 零售价¥{{item.attrValue[0].price}} + + 商品规格错误 + + ¥{{item.price}} @@ -985,7 +991,7 @@ .ot_price { color: #bebebe; font-size: 26rpx; - text-decoration: line-through; + // text-decoration: line-through; } }