Commit fb8b0f1f51a7a50b8fdba65d2d88ffc243c4d18f
1 parent
6155b5d2
全屏的修改
Showing
2 changed files
with
9 additions
and
1 deletions
components/full_screen/full_screen.js
... | ... | @@ -12,6 +12,7 @@ Component({ |
12 | 12 | url:o.imghost, |
13 | 13 | full_screen:0, |
14 | 14 | is_full_screen_men:1, |
15 | + hidden:0, | |
15 | 16 | }, |
16 | 17 | |
17 | 18 | pageLifetimes:{ |
... | ... | @@ -21,6 +22,13 @@ Component({ |
21 | 22 | }, |
22 | 23 | }, |
23 | 24 | |
25 | + ready: function () { | |
26 | + var th=this; | |
27 | + setTimeout(function(){ | |
28 | + th.setData({hidden:1,}) | |
29 | + },2600) | |
30 | + }, | |
31 | + | |
24 | 32 | properties: {}, |
25 | 33 | methods: { |
26 | 34 | close_full_screen(){ | ... | ... |
components/full_screen/full_screen.wxml
1 | 1 | <!-- 全屏控制 --> |
2 | -<view hidden="{{!is_full_screen_men}}" class="full_screen" style="background-color: #fff;"></view> | |
2 | +<view hidden="{{!is_full_screen_men || hidden}}" class="full_screen" style="background-color: #fff;"></view> | |
3 | 3 | <view wx:if="{{is_full_screen_show}}" class="full_screen" bindtap="go_full_ad" style="background-image: url('{{url+full_ad.ad_code}}');"> |
4 | 4 | <view catchtap="close_full_screen" class="skip_box">跳过 <text>{{sec_show}}</text></view> |
5 | 5 | </view> | ... | ... |