From 04acf6421dded7b6f6eef9d2cf41d0b4a0e8dd0d Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期日, 28 四月 2024 09:23:10 +0800
Subject: [PATCH] 设置表单的bug

---
 packagePersonal/pages/aboutUs/index.js |   28 ++++++++++++++++++----------
 1 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/packagePersonal/pages/aboutUs/index.js b/packagePersonal/pages/aboutUs/index.js
index bb9c51c..b0dd42c 100644
--- a/packagePersonal/pages/aboutUs/index.js
+++ b/packagePersonal/pages/aboutUs/index.js
@@ -7,13 +7,17 @@
    * 椤甸潰鐨勫垵濮嬫暟鎹�
    */
   data: {
+    loading: true,
+    hidden: true,
     aboutText: null,
     swiperList: null,
-    current: 1,//杞挱鍥惧弬鏁�
+    current: 1, //杞挱鍥惧弬鏁�
     autoplay: true, //杞挱鍥惧弬鏁�
-    duration: '500',//杞挱鍥惧弬鏁�
-    interval: 5000,//杞挱鍥惧弬鏁�
-    navigation: { type: 'dots' },//杞挱鍥惧弬鏁�
+    duration: '500', //杞挱鍥惧弬鏁�
+    interval: 5000, //杞挱鍥惧弬鏁�
+    navigation: {
+      type: 'dots'
+    }, //杞挱鍥惧弬鏁�
     bannerList: [], //杞挱鍥惧垪琛�
     navBarHeight: '',
     barHeight: '',
@@ -95,7 +99,10 @@
   getBanner() {
     app.MG.resource.getItem({
       path: 'jsek_banner\\jsek_aboutUsBanner',
-      paging: { start: 0, size: 9 },
+      paging: {
+        start: 0,
+        size: 9
+      },
       fields: {
         jsek_link: []
       }
@@ -119,13 +126,14 @@
         width: 750
       },
     }).then(res => {
-      console.log(res);
-
+      // console.log(res.datas[0].content);
+      let modifiedContent = `<div class="richTextBox">${res.datas[0].content}</div>`;
+      console.log(modifiedContent);
       this.setData({
-        aboutText: res.datas[0].content
+        aboutText: modifiedContent,
+        loading: false,
+        hidden: false,
       })
-
-
     })
   },
   goBack() {

--
Gitblit v1.9.1