| | |
| | | barHeight: systInfo.statusBarHeight, |
| | | types: options.types |
| | | }) |
| | | // this.getBanner() |
| | | this.getAboutText() |
| | | }, |
| | | |
| | |
| | | onShareAppMessage() { |
| | | |
| | | }, |
| | | //轮播图 |
| | | getBanner() { |
| | | app.MG.resource.getItem({ |
| | | path: 'jsek_banner\\jsek_aboutUsBanner', |
| | | paging: { |
| | | start: 0, |
| | | size: 9 |
| | | }, |
| | | fields: { |
| | | jsek_link: [] |
| | | } |
| | | }).then(res => { |
| | | this.setData({ |
| | | bannerList: res.datas[0].icon, |
| | | swiperList: res.datas[0].icon |
| | | }) |
| | | }) |
| | | }, |
| | | |
| | | //文字 jsek_aboutUs 关于我们 |
| | | //jsek_contactUs 联系我们 |
| | | getAboutText() { |
| | |
| | | width: 750 |
| | | }, |
| | | }).then(res => { |
| | | // console.log(res.datas[0].content); |
| | | // let modifiedContent = `<div class="richTextBox">${res.datas[0].content}</div>`; |
| | | let modifiedContent = res.datas[0].content |
| | | // modifiedContent = modifiedContent.replace(/\<table/gi, '<table class="aboutUs-rich-table"').replace(/\<td/gi, '<table class="aboutUs-rich-td"').replace(/\<tr/gi, '<tr class="aboutUs-rich-tr"').replace(/\<p/gi, '<p class="aboutUs-rich-p"') |
| | | modifiedContent = modifiedContent.replace(/<table/g, '<table class="table"').replace(/<tr/g, '<tr class="tr"').replace(/<td/g, '<td class="td"') |
| | | this.setData({ |
| | | aboutText: modifiedContent, |
| | | loading: false, |