yiming
2024-03-05 0375a599e25b7f27c57d8c00f801761d9cce8aa2
pages/aboutUs/index.js
@@ -1,6 +1,6 @@
// pages/aboutUs/index.js
const app = getApp()
import drawQrcode from './js/weapp.qrcode'
// import drawQrcode from './js/weapp.qrcode'
Page({
  /**
@@ -9,7 +9,6 @@
  data: {
    aboutText: null,
    swiperList: null,
    qrcodeWidth: 0,
    current: 1,//轮播图参数
    autoplay: true, //轮播图参数
    duration: '500',//轮播图参数
@@ -104,22 +103,21 @@
  },
  getBanner() {
    app.MG.resource.getItem({
      path: 'jsek_banner\\jsek_aboutUsBanner',
      paging: { start: 0, size: 9 },
      coverSize: {
        width: 250
      },
      fields: {
        jsek_link: []
      }
    }).then(res => {
      // console.log(res.datas[0].icon, 'res');
      this.setData({
        bannerList: res.datas[0].icon,
        swiperList: res.datas[0].icon
      })
      // console.log(this.data.swiperList);
      console.log(this.data.bannerList, 789);
    })
  },
  getAboutText() {
@@ -128,6 +126,9 @@
      fields: {
        content: []
      },
      coverSize: {
        width: 750
      },
    }).then(res => {
      console.log(res);
@@ -135,7 +136,7 @@
        aboutText: res.datas[0].content
      })
      console.log(this.data.aboutText);
    })
  }
})