Commit 7aaba81c0cce709110fb17db839df771fadccd5a

Authored by yvan.ni
1 parent fb8b0f1f

全屏的显示方法

Showing 1 changed file with 7 additions and 4 deletions
pages/index/index/index.js
... ... @@ -228,12 +228,15 @@ Page({
228 228  
229 229 var th = this
230 230 var show=getApp().globalData.isLoad_ad;
231   - if(!show){
232   - var full_screen = this.selectComponent("#full_screen"); //组件的id
233   - full_screen.get_the_full_screen();
  231 + var userInfo=getApp().globalData.userInfo;
  232 + //有加载过一次首页,就显示.或者有会员就显示
  233 + if(show || userInfo || getApp().globalData.user_id){
  234 + var full_screen = th.selectComponent("#full_screen"); //组件的id
  235 + full_screen.get_the_full_screen();
234 236 }else{
235 237 getApp().globalData.isLoad_ad=1;
236   - }
  238 + }
  239 +
237 240  
238 241 },
239 242 //当隐藏的时候就关闭计时器
... ...