Commit 21dd87271f8d99a253f1dff020c91f5b99b68885
1 parent
ff26e6f4
1. 控制权益没有开通不显示,
Showing
2 changed files
with
10 additions
and
0 deletions
pages/index/index/index.js
... | ... | @@ -90,6 +90,12 @@ Page({ |
90 | 90 | th.setData({ |
91 | 91 | is_boot: is_init |
92 | 92 | }); |
93 | + | |
94 | + if(!is_init){ | |
95 | + th.setData({ | |
96 | + swiperimage: [] | |
97 | + }); | |
98 | + } | |
93 | 99 | } |
94 | 100 | }) |
95 | 101 | |
... | ... | @@ -408,6 +414,7 @@ Page({ |
408 | 414 | this.setData({ |
409 | 415 | ishow: 1 |
410 | 416 | }); |
417 | + | |
411 | 418 | //---先获取会员--- |
412 | 419 | t.getUserFir(function() { |
413 | 420 | th.is_festival(); |
... | ... | @@ -723,6 +730,7 @@ Page({ |
723 | 730 | var user_info = getApp().globalData.userInfo; |
724 | 731 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
725 | 732 | wx.navigateTo({ |
733 | + //url: '/pages/togoin/togoin', | |
726 | 734 | url: '/pages/getphone/getphone', |
727 | 735 | }) |
728 | 736 | return false; | ... | ... |
pages/index/index/index.wxml
... | ... | @@ -111,6 +111,7 @@ |
111 | 111 | </view> |
112 | 112 | </view> |
113 | 113 | <!-- 轮播 --> |
114 | + <block wx:if="{{swiperimage.length>0}}"> | |
114 | 115 | <swiper class="swiper" autoplay="true" interval="5000" circular="{{true}}" indicator-dots="{{true}}" indicator-active-color="rgb(255,255,255)"> |
115 | 116 | <!-- 活动轮播 --> |
116 | 117 | <block wx:for="{{swiperimage}}" wx:for-item="adver" wx:for-index="key"> |
... | ... | @@ -121,6 +122,7 @@ |
121 | 122 | </swiper-item> |
122 | 123 | </block> |
123 | 124 | </swiper> |
125 | + </block> | |
124 | 126 | |
125 | 127 | <view class="split-line"></view> |
126 | 128 | ... | ... |