From cb6bb8bda31df75afe5a5bd50fe8e3ff6a3d34e2 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期一, 15 四月 2024 09:31:39 +0800 Subject: [PATCH] 详情页bug修改,资源购买页添加骨架屏 --- packagePersonal/pages/aboutUs/index.js | 22 +++++++++++++++------- 1 files changed, 15 insertions(+), 7 deletions(-) diff --git a/packagePersonal/pages/aboutUs/index.js b/packagePersonal/pages/aboutUs/index.js index b5e5956..3a6e4dc 100644 --- a/packagePersonal/pages/aboutUs/index.js +++ b/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: '', @@ -95,7 +99,10 @@ getBanner() { app.MG.resource.getItem({ path: 'jsek_banner\\jsek_aboutUsBanner', - paging: { start: 0, size: 9 }, + paging: { + start: 0, + size: 9 + }, fields: { jsek_link: [] } @@ -104,7 +111,6 @@ bannerList: res.datas[0].icon, swiperList: res.datas[0].icon }) - console.log(this.data.bannerList, 789); }) }, @@ -123,7 +129,9 @@ console.log(res); this.setData({ - aboutText: res.datas[0].content + aboutText: res.datas[0].content, + loading: false, + hidden: false, }) -- Gitblit v1.9.1