app-goods-banner.wxml 2.7 KB

1
  1. <view class="app-goods-banner data-v-7cfc703f"><block wx:if="{{mallConfig.mall.setting.is_official_account==1}}"><view class="account-box data-v-7cfc703f"><official-account class="data-v-7cfc703f"></official-account></view></block><swiper class="swiper data-v-7cfc703f" autoplay="{{autoplay}}" indicator-dots="{{picList.length>1}}" circular="{{true}}" indicator-color="rgba(255,255,255,.3)" indicator-active-color="#30353c" data-event-opts="{{[['change',[['bannerChange',['$event']]]]]}}" bindchange="__e"><block wx:if="{{videoUrl&&getVideo==1&&sign!=='lottery'&&sign!=='bargain'}}"><swiper-item class="data-v-7cfc703f"><view data-event-opts="{{[['tap',[['routeJumpT',['$event']]]]]}}" class="swiper-img data-v-7cfc703f" style="{{'background-image:'+('url('+picList[0].pic_url+')')+';'}}" bindtap="__e"><image class="video-play data-v-7cfc703f" src="/static/image/video-play.png"></image></view></swiper-item></block><block wx:for="{{picList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item class="data-v-7cfc703f"><view data-event-opts="{{[['tap',[['clickImage',[index]]]]]}}" class="swiper-img data-v-7cfc703f" style="{{'background-image:'+('url('+item.pic_url+')')+';'}}" bindtap="__e"><block wx:if="{{index===0&&videoUrl&&getVideo==0}}"><app-video vue-id="{{'7e46d2b9-1-'+index}}" pic-url="{{item.pic_url}}" height="750rpx" url="{{videoUrl}}" data-event-opts="{{[['^videoStart',[['videoStart']]],['tap',[['preventD',['$event']]]]]}}" bind:videoStart="__e" catchtap="__e" class="data-v-7cfc703f" bind:__l="__l"></app-video></block><block wx:if="{{index===0&&videoUrl&&getVideo==1&&(sign==='lottery'||sign==='bargain')}}"><app-video vue-id="{{'7e46d2b9-2-'+index}}" pic-url="{{item.pic_url}}" height="750rpx" url="{{videoUrl}}" data-event-opts="{{[['^videoStart',[['videoStart']]],['tap',[['preventD',['$event']]]]]}}" bind:videoStart="__e" catchtap="__e" class="data-v-7cfc703f" bind:__l="__l"></app-video></block></view></swiper-item></block></swiper><view class="data-v-7cfc703f"><block wx:if="{{isCart}}"><app-jump-button vue-id="7e46d2b9-3" url="/pages/cart/cart" class="data-v-7cfc703f" bind:__l="__l" vue-slots="{{['default']}}"><view class="cart data-v-7cfc703f" style="{{'top:'+(isScanQrCode?'250rpx':'60rpx')+';'}}"><image load-lazy="{{true}}" src="../../../static/image/icon/nav-icon-cart.png" class="data-v-7cfc703f"></image></view></app-jump-button></block></view><block wx:if="{{share>0}}"><view class="share-commission dir-left-nowrap cross-center data-v-7cfc703f"><image load-lazy="{{true}}" src="../../../static/image/icon/share/share_commission.png" class="data-v-7cfc703f"></image><view class="text data-v-7cfc703f"><view class="data-v-7cfc703f">分销最高可赚</view><view class="data-v-7cfc703f">{{"¥"+share}}</view></view></view></block></view>