From dc934dfd63fecff84d0bf996418e041b9bd4ea59 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 30 四月 2024 18:16:13 +0800 Subject: [PATCH] bug修改 --- packagePersonal/pages/aboutUs/index.js | 29 +++++++++++++++++++---------- 1 files changed, 19 insertions(+), 10 deletions(-) diff --git a/packagePersonal/pages/aboutUs/index.js b/packagePersonal/pages/aboutUs/index.js index bb9c51c..9b0f351 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,15 @@ width: 750 }, }).then(res => { - console.log(res); - + // console.log(res.datas[0].content); + let modifiedContent = `<div class="richTextBox">${res.datas[0].content}</div>`; + // modifiedContent = modifiedContent.replace(/\<table/gi, '<table class="aboutUs-rich-table"').replace(/\<td/gi, '<table class="aboutUs-rich-td"').replace(/\<p/gi, '<p class="aboutUs-rich-p"') + console.log(modifiedContent); this.setData({ - aboutText: res.datas[0].content + aboutText: modifiedContent, + loading: false, + hidden: false, }) - - }) }, goBack() { -- Gitblit v1.9.1