| | |
| | | // pages/aboutUs/index.js |
| | | const app = getApp() |
| | | import drawQrcode from './js/weapp.qrcode' |
| | | // import drawQrcode from './js/weapp.qrcode' |
| | | Page({ |
| | | |
| | | /** |
| | |
| | | data: { |
| | | aboutText: null, |
| | | swiperList: null, |
| | | qrcodeWidth: 0, |
| | | current: 1,//轮播图参数 |
| | | autoplay: true, //轮播图参数 |
| | | duration: '500',//轮播图参数 |
| | |
| | | |
| | | }, |
| | | 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() { |
| | |
| | | fields: { |
| | | content: [] |
| | | }, |
| | | coverSize: { |
| | | width: 750 |
| | | }, |
| | | }).then(res => { |
| | | console.log(res); |
| | | |
| | |
| | | aboutText: res.datas[0].content |
| | | }) |
| | | |
| | | console.log(this.data.aboutText); |
| | | |
| | | }) |
| | | } |
| | | }) |