1234567891011121314151617181920212223242526272829 |
- import {
- getBannerList
- } from '~/api/global'
- Component({
- properties: {
- },
- data: {
- bannerList: []
- },
- lifetimes: {
- attached() {
- console.log('111');
- },
- },
- /**
- * 组件的方法列表
- */
- methods: {
- async getBannerList() {
- let bannerList = await getBannerList(1)
- console.log(bannerList);
- this.setData({
- bannerList
- })
- },
- bannelEvent() {},
- }
- })
|