You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
2.9 KiB
1 lines
2.9 KiB
<view><block wx:if="{{type=='swiper'}}"><view class="column-box" style="{{'padding-top:'+(whiteSpace+'rpx')+';'+('padding-bottom:'+(whiteSpace+'rpx')+';')+('padding-left:'+(wingBlank+'rpx')+';')+('padding-right:'+(wingBlank+'rpx')+';')}}"><swiper data-event-opts="{{[['change',[['handerChange',['$event']]]]]}}" class="swiper-category" style="{{'height:'+(146*formatRowNum+20*(formatRowNum-1)+'rpx')+';'}}" bindchange="__e"><block wx:for="{{$root.l1}}" wx:for-item="pitem" wx:for-index="pindex" wx:key="pindex"><swiper-item class="swiper-category-item"><block wx:for="{{pitem.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['change',['$0'],[[['formatList','',pindex],['','',index]]]]]]]}}" class="column-item" style="{{'width:'+(100/colNum+'%')+';'+('margin-top:'+(index<colNum?'0':'20rpx')+';')}}" bindtap="__e"><block wx:if="{{item.$orig.cover}}"><image class="column-img radius" mode="aspectFill" src="{{item.$orig.cover}}"></image></block><block wx:else><view class="column-no-img" style="{{'background:'+(item.$orig.icon?primaryColor:colorList[index%4])+';'+('border-radius:'+('50%')+';')+('margin:'+('0rpx auto')+';')}}"><block wx:if="{{item.$orig.icon}}"><view class="{{['iconfont','_i',item.$orig.icon]}}"></view></block><block wx:else><view>{{item.m0}}</view></block></view></block><view class="column-text">{{item.$orig.title}}</view></view></block></swiper-item></block></swiper><block wx:if="{{$root.g0>1}}"><view class="dots"><block wx:for="{{formatList.length}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="dot" style="{{'background:'+(index==current?indicatorActiveColor:indicatorColor)+';'+('width:'+(index==current?'20rpx':'8rpx')+';')}}"></view></block></view></block></view></block><block wx:if="{{type=='scroll'}}"><view class="column-box" style="{{'padding-top:'+(whiteSpace+'rpx')+';'+('padding-bottom:'+(whiteSpace+'rpx')+';')+('padding-left:'+(wingBlank+'rpx')+';')+('padding-right:'+(wingBlank+'rpx')+';')}}"><scroll-view class="scroll-x" scroll-x="{{true}}" data-event-opts="{{[['scroll',[['handerScroll',['$event']]]]]}}" bindscroll="__e"><block wx:for="{{formatList}}" wx:for-item="pItem" wx:for-index="pindex" wx:key="pindex"><view class="scroll-x-item"><block wx:for="{{pItem}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['change',['$0'],[[['formatList','',pindex],['','',index]]]]]]]}}" class="column-item" style="{{'width:'+(750/colNum+'rpx')+';'}}" bindtap="__e"><image class="column-img" mode="aspectFill" src="{{item.icon}}"></image><view class="column-text">{{item.cate_name}}</view></view></block></view></block></scroll-view><block wx:if="{{$root.g1>formatRowNum*colNum}}"><view class="ink-bar-box"><view class="ui-tabs-ink-bar-wrapper"><view class="ui-tabs-ink-bar" style="{{'left:'+(left+'rpx')+';'+('background:'+(indicatorActiveColor)+';')}}"></view></view></view></block></view></block></view> |