Browse Source

梁俊星:修改通知公告、办事指引、协会动态的富文本问题

ljx 2 months ago
parent
commit
b099c4b8cc

+ 1 - 1
pages/dynamic/dynamicDetail/dynamicDetail.vue

@@ -3,7 +3,7 @@
     <text class="title">{{ announcement.title }}</text>
 
     <view class="content">
-      <div class="body" v-html="announcement.content"></div>
+      <u-parse :html="announcement.content" :selectable="true"></u-parse>
     </view>
 
     <text class="date">{{ formatDate(announcement.date) }}</text>

+ 1 - 1
pages/guide/guideDetail/guideDetail.vue

@@ -3,7 +3,7 @@
     <text class="title">{{ announcement.title }}</text>
 
     <view class="content">
-      <div class="body" v-html="announcement.content"></div>
+      <u-parse :html="announcement.content" :selectable="true"></u-parse>
     </view>
 
     <text class="date">{{ formatDate(announcement.date) }}</text>

+ 1 - 1
pages/notice/noticeDetail/noticeDetail.vue

@@ -3,7 +3,7 @@
     <text class="title">{{ announcement.title }}</text>
 
     <view class="content">
-      <div class="body" v-html="announcement.content"></div>
+      <u-parse :html="announcement.content" :selectable="true"></u-parse>
     </view>
 
     <text class="date">{{ formatDate(announcement.date) }}</text>