Commit 55b51e2aabc83d37c9c26116fb88ae970fc281f9
1 parent
ca872e18
没有广告的bug优化
Showing
1 changed file
with
5 additions
and
3 deletions
packageA/pages/cardList/cardList.wxml
... | ... | @@ -58,9 +58,11 @@ |
58 | 58 | |
59 | 59 | <block wx:else> |
60 | 60 | <view class="page"> |
61 | - <swiper class="swiper" autoplay indicator-dots circular easing-function="easeOutCubic"> | |
62 | - <swiper-item wx:for="{{banner}}"><image src="{{item.ad_code ? item.ad_code : (imghost + default_img)}}" class="swiper-img"/></swiper-item> | |
63 | - </swiper> | |
61 | + <block wx:if="{{banner}}"> | |
62 | + <swiper class="swiper" autoplay indicator-dots circular easing-function="easeOutCubic"> | |
63 | + <swiper-item wx:for="{{banner}}"><image src="{{item.ad_code ? item.ad_code : (imghost + default_img)}}" class="swiper-img"/></swiper-item> | |
64 | + </swiper> | |
65 | + </block> | |
64 | 66 | <scroll-view class="scroll-view" scroll-y> |
65 | 67 | <view class="bg-white"> |
66 | 68 | <view class="flex pd20" wx:for="{{list.pageData}}" bindtap="go_goods" data-gid="{{item.id}}"> | ... | ... |