1 |
- <view><block wx:if="{{carousel&&flag==0}}"><view class="menu-category-box " style="{{(detail.length<=menu?'height:150rpx':'height:300rpx')}}"><swiper class="menu-swiper-box" style="{{(detail.length<=menu?'height:150rpx':'height:300rpx')}}" circular="{{true}}" autoplay="{{false}}" interval="{{3000}}" duration="{{1000}}" data-event-opts="{{[['change',[['onSwiper',['$event']]]]]}}" bindchange="__e"><block wx:for="{{carousel}}" wx:for-item="itemList" wx:for-index="index" wx:key="index"><swiper-item class="menu-swiper-item" style="{{(detail.length<=menu?'height:150rpx':'height:300rpx')}}"><view class="menu-tab-box dffs"><block wx:for="{{itemList}}" wx:for-item="item" wx:for-index="ind" wx:key="ind"><view data-event-opts="{{[['tap',[['navTo',['$0'],[[['carousel','',index],['','',ind]]]]]]]}}" class="tab-list dffd y-f" style="{{'width:'+(690/menu+'rpx')+';'}}" bindtap="__e"><image class="tab-img shopro-selector-circular" style="{{'width:'+(imgW+'rpx')+';'+('height:'+(imgW+'rpx')+';')}}" src="{{item.logo}}"></image><text class="shopro-selector-rect oneelli">{{item.name}}</text></view></block></view></swiper-item></block></swiper><block wx:if="{{carousel.length>1}}"><view class="menu-category-dots"><block wx:for="{{carousel.length}}" wx:for-item="dot" wx:for-index="index" wx:key="index"><text class="{{[categoryCurrent===index?'category-dot-active':'category-dot']}}"></text></block></view></block></view></block></view>
|