Feat(时令尝鲜):接口对接
This commit is contained in:
@@ -400,11 +400,12 @@
|
||||
<!-- 商品详情开始 -->
|
||||
<view class="product-intro" style="margin-top: 24rpx">
|
||||
<!-- 原模块 -->
|
||||
<view class="conter" v-html="storeInfo.description" v-if="from!='pre' && from!='day'"></view>
|
||||
<!-- <view class="conter" v-html="storeInfo.description" ></view>-->
|
||||
<rich-text :nodes="storeInfo.description" v-if="from!='pre' && from!='day'"/>
|
||||
<!-- v4 预售详情 -->
|
||||
<view class="conter" v-html="preInfo.description" v-if="from==='pre'"></view>
|
||||
<rich-text :nodes="preInfo.description" v-if="from==='pre'"/>
|
||||
<!-- v4 每日特价详情 -->
|
||||
<view class="conter" v-html="dayInfo.description" v-if="from==='day'"></view>
|
||||
<rich-text :nodes="dayInfo.description" v-if="from==='day'"/>
|
||||
</view>
|
||||
<!-- 商品详情结束 -->
|
||||
|
||||
@@ -932,10 +933,11 @@ 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;"'
|
||||
);
|
||||
// 会造成两个style属性,并且生效的是后一个
|
||||
// res.data.storeInfo.description = res.data.storeInfo.description.replace(
|
||||
// /\<img/gi,
|
||||
// '<img style="display:block;max-width:100%;height:auto;"'
|
||||
// );
|
||||
that.$set(that, "storeInfo", res.data.storeInfo);
|
||||
that.isWenwan = res.data.isWenwan;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user