|
@@ -36,7 +36,18 @@ Page({
|
|
})
|
|
})
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
- this.getminiProgramConfig();
|
|
|
|
|
|
+ if(!app.globalData.programConfig){
|
|
|
|
+ this.getminiProgramConfig();
|
|
|
|
+ }else{
|
|
|
|
+ this.setData({
|
|
|
|
+ banners:app.globalData.programConfig.carousels,
|
|
|
|
+ introduction:app.globalData.programConfig.marathon_event.introduction,
|
|
|
|
+ start_time:app.globalData.programConfig.marathon_event.start_time,
|
|
|
|
+ end_time:app.globalData.programConfig.marathon_event.end_time,
|
|
|
|
+ ad_img:app.globalData.programConfig.ad_img,
|
|
|
|
+ share_img:app.globalData.programConfig.share_img
|
|
|
|
+ })
|
|
|
|
+ }
|
|
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
|
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
|
this.getTabBar().setData({
|
|
this.getTabBar().setData({
|
|
selected: 0
|
|
selected: 0
|