wxml
<rich-text class="content" nodes="{{richContent}}"></rich-text>
js
// 处理富文本中的图片
handleImg(richContent){
var richContent = richContent.replace(/<img/gi, '<img style="max-width:100%;height:auto;float:left;display:block" ').replace(/<section/g, '<div').replace(/\/section>/g, '\div>')
this.setData({
richContent
})
},