|
|
|
@ -183,7 +183,7 @@ export default {
|
|
|
|
|
isIntegral: true, |
|
|
|
|
tagStyle: { |
|
|
|
|
a: 'color:#2DB5AE;text-decoration:underline;', |
|
|
|
|
p: 'text-indent:2em;', |
|
|
|
|
// p: 'text-indent:2em;', |
|
|
|
|
// span: 'padding: 0rpx 32rpx !important;display: inline-block;', |
|
|
|
|
img: 'padding:0;margin:0;font-size:0;display:block;' |
|
|
|
|
}, |
|
|
|
@ -312,7 +312,7 @@ export default {
|
|
|
|
|
getProductDetail(that.id, from) |
|
|
|
|
.then(res => { |
|
|
|
|
res.data.storeInfo.description = res.data.storeInfo.description.replace(/\<img/gi, '<img style="max-width:100%;height:auto;"'); |
|
|
|
|
res.data.storeInfo.description = res.data.storeInfo.description.replace(/ /gi, ' '); |
|
|
|
|
// res.data.storeInfo.description = res.data.storeInfo.description.replace(/ /gi, ' '); |
|
|
|
|
that.$set(that, 'storeInfo', res.data.storeInfo) |
|
|
|
|
// 给 attr 赋值,将请求回来的规格赋值给 attr |
|
|
|
|
that.$set(that.attr, 'productAttr', res.data.productAttr) |
|
|
|
|