li.shaoyi vor 2 Monaten
Ursprung
Commit
015cdfd9a0

+ 6 - 4
src/packages/mobile/views/rules/fxgzs/Index.vue

@@ -3,13 +3,15 @@
         <template #header>
             <app-navbar title="用户开户风险告知书" />
         </template>
-        <component :is="asyncComponent" :url="getHtmlFileUrl('yhkhfxgzs.htm')" />
+        <HtmlContainer style="padding: 15px;" class="content" :context="formatHtmlString(document?.documentcontent)" />
     </app-view>
 </template>
 
 <script lang="ts" setup>
-import { defineAsyncComponent } from 'vue'
-import { getHtmlFileUrl } from '@/filters'
+import { useCommonStore } from '@/stores/modules/common'
+import HtmlContainer from '@mobile/components/base/html-container/index.vue'
+import { formatHtmlString } from '@/filters'
 
-const asyncComponent = defineAsyncComponent(() => import('@mobile/components/base/html-panel/index.vue'))
+const commonStore = useCommonStore()
+const document = commonStore.getDocumentById(5)
 </script>

+ 6 - 4
src/packages/mobile/views/rules/yszc/Index.vue

@@ -3,13 +3,15 @@
         <template #header>
             <app-navbar :title="$t('rules.ryszc')" />
         </template>
-        <component :is="asyncComponent" :url="getHtmlFileUrl('yszc.htm')" />
+        <HtmlContainer style="padding: 15px;" class="content" :context="formatHtmlString(document?.documentcontent)" />
     </app-view>
 </template>
 
 <script lang="ts" setup>
-import { defineAsyncComponent } from 'vue'
-import { getHtmlFileUrl } from '@/filters'
+import { useCommonStore } from '@/stores/modules/common'
+import HtmlContainer from '@mobile/components/base/html-container/index.vue'
+import { formatHtmlString } from '@/filters'
 
-const asyncComponent = defineAsyncComponent(() => import('@mobile/components/base/html-panel/index.vue'))
+const commonStore = useCommonStore()
+const document = commonStore.getDocumentById(4)
 </script>

+ 0 - 15
src/packages/mobile/views/rules/yszc/index.less

@@ -1,15 +0,0 @@
-.rules{
-    .van-tabs{
-        display: flex;
-        flex-direction: column;
-        height: 100%;
-
-        &__content{
-            flex: 1;
-        }
-
-        .van-tab__panel{
-            height: 100%;
-        }
-    }
-}