Commit 319ac63f authored by Mac's avatar Mac

1

parent da4ddee7
......@@ -114,7 +114,7 @@
<view class="acdetailBottom">
<u-divider color="#0B0B0B;" half-width="50" border-color="#0B0B0B" fontSize="35">活动详情</u-divider>
<view class="acdetail_Intro" v-html="dataList.ActivityInfo">
<rich-text :nodes="dataList.ActivityInfo"></rich-text>
</view>
</view>
<template v-if="isShowBtn">
......@@ -191,6 +191,10 @@
(res) => {
if (res.resultCode == 1) {
this.dataList = res.data;
let richtext = res.data.ActivityInfo;
let regex = new RegExp('<img', 'gi');
richtext = richtext.replace(regex, `<img width="100%"`); //图片超出的处理
this.dataList.ActivityInfo = richtext
}
}
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment