zhb 1 mese fa
parent
commit
a29cd22b1d

+ 1 - 1
pages/customer/components/ClauseNewListPopup.vue

@@ -3,7 +3,7 @@
     :title="title">
     <view class="popup-content">
       <scroll-view scroll-y class="clause-content">
-        <view v-html="content"></view>
+        <rich-text class="popup-text" :nodes="content"></rich-text>
       </scroll-view>
     </view>
     <template #footer>

+ 3 - 4
pages/ib/components/BonusAgreementPopup.vue

@@ -3,7 +3,7 @@
         <view class="popup-content clause-popup">
             <view class="clause-content" id="Agreement">
                 <scroll-view scroll-y="true" style="height: 60vh;">
-                    <view v-if="type === 'nzTwo'">
+                    <view v-if="type == 'nzTwo'">
                         <h4>{{ t('news_add_field1.activitiesNZTwo.item8') }}{{ tableData4Two.applicationStartTime }} -
                             {{ tableData4Two.applicationEndTime }}</h4>
                         <h4 style="margin-top: 20px">{{ t('news_add_field1.activitiesNZTwo.item10') }}</h4>
@@ -71,8 +71,8 @@
                             <li v-t="'news_add_field1.activitiesNZTwo.item21'"></li>
                         </ul>
                     </view>
-                    <view v-else-if="type === 'newList'">
-                        <div v-html="content"></div>
+                    <view v-else-if="type == 'newList'">
+                        <rich-text class="popup-text" :nodes="content"></rich-text>
                     </view>
                 </scroll-view>
             </view>
@@ -95,7 +95,6 @@ const props = defineProps({
     type: {
         type: String,
         default: 'nzTwo',
-        validator: (value) => ['nzTwo', 'newList'].includes(value)
     },
     title: {
         type: String,