|
@@ -601,7 +601,7 @@ export default {
|
|
|
return {
|
|
|
StaticUrl: this.$Static, //静态图片路径
|
|
|
clickPath: '/pages/search/search',
|
|
|
- html: '<div style="text-align: center;color:#333333;">暂无内容</div>',
|
|
|
+ html: '',
|
|
|
productNoneImage: 'https://static.caimei365.com/app/img/icon/icon-pnone.png',
|
|
|
mode: 'round',
|
|
|
iconClass: 'icon-aixin',
|
|
@@ -800,10 +800,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.ladderPriceFlag = this.product.ladderPriceFlag
|
|
|
- this.html =
|
|
|
- this.product.productDetail == null
|
|
|
- ? this.html
|
|
|
- : this.$api.adaptRichTextImg(this.product.productDetail.detailInfo)
|
|
|
+ this.html = this.adaptRichTextImg(this.product)
|
|
|
this.stock = this.product.stock
|
|
|
this.buyRetailPriceStep = this.product.step
|
|
|
this.number = this.product.minBuyNumber
|
|
@@ -876,6 +873,20 @@ export default {
|
|
|
this.$util.msg(error.msg, 2000)
|
|
|
})
|
|
|
},
|
|
|
+ adaptRichTextImg(product){// 商品详情
|
|
|
+ let defaulHtml = '<div style="text-align: center;color:#333333;">暂无内容</div>'
|
|
|
+ let html = ''
|
|
|
+ if(product.productDetailChose == 1){// 同资质机构显示商品详情
|
|
|
+ html = product.productDetail ? this.$api.adaptRichTextImg(product.productDetail.detailInfo) : defaulHtml
|
|
|
+ }else{
|
|
|
+ if(this.hasLogin && this.userIdentity !=4){
|
|
|
+ html = product.productDetail ? this.$api.adaptRichTextImg(product.productDetail.detailInfo) : defaulHtml
|
|
|
+ }else{
|
|
|
+ html = product.productDetail ? this.$api.adaptRichTextImg(product.productDetail.commonDetailInfo) : defaulHtml
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return html
|
|
|
+ },
|
|
|
getCommodityCombinationList() {
|
|
|
// 初始化商品详情配套商品
|
|
|
this.ProductService.getCommodityCombinationList({
|