bug
litian
2024-09-10 99dfeb5fc86bce593a5d3f43f45c26eedc00ab0a
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: '',
@@ -24,22 +28,17 @@
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    const systInfo = wx.getSystemInfoSync();
    const menu = wx.getMenuButtonBoundingClientRect(); // 胶囊信息
    const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 导航栏高度
    this.setData({
      navBarHeight: navBarHeight,
      barHeight: systInfo.statusBarHeight,
      types: options.types
    })
    console.log(this.data.types);
    // this.getBanner()
    wx.setNavigationBarTitle({
      title: options.types == 'jsek_aboutUs' ? '关于我们' : '联系我们',
    })
    this.getAboutText()
  },
@@ -91,22 +90,6 @@
  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() {
@@ -119,13 +102,13 @@
        width: 750
      },
    }).then(res => {
      console.log(res);
      let modifiedContent = res.datas[0].content
      modifiedContent = modifiedContent.replace(/<table/g, '<table class="table"').replace(/<tr/g, '<tr class="tr"').replace(/<td/g, '<td class="td"')
      this.setData({
        aboutText: res.datas[0].content
        aboutText: modifiedContent,
        loading: false,
        hidden: false,
      })
    })
  },
  goBack() {