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
5.9 KiB
1 lines
5.9 KiB
<view class="wanlshop-classify-container"><block wx:if="{{categoryStyle===1}}"><block><scroll-view class="wanlshop-classify-container__one" style="{{'height:'+(mainHeight+'px')+';'}}" scroll-y="{{true}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view data-event-opts="{{[['tap',[['handleProduct',['$0','$1'],[[['categoryData','id',item.$orig.id,'id']],[['categoryData','id',item.$orig.id,'name']]]]]]]}}" class="item" bindtap="__e"><image class="list-image" src="{{item.g0}}"></image><view class="category-title"><view>{{item.$orig.description}}</view><text class="text-sm text-bold text-black">{{"- "+item.$orig.name+" -"}}</text></view></view></block></scroll-view></block></block><block wx:else><block wx:if="{{categoryStyle===2}}"><block><scroll-view class="wanlshop-classify-container__grid" style="{{'height:'+(mainHeight+'px')+';'}}" scroll-y="{{true}}"><view class="cu-list grid col-3 no-border"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view data-event-opts="{{[['tap',[['handleProduct',['$0','$1'],[[['categoryData','id',item.$orig.id,'id']],[['categoryData','id',item.$orig.id,'name']]]]]]]}}" class="cu-item" bindtap="__e"><image class="list-image" src="{{item.g1}}"></image><text>{{item.$orig.name}}</text></view></block><view class="safeAreaBottom"></view></view></scroll-view></block></block><block wx:else><block wx:if="{{categoryStyle===3}}"><block><view class="wanlshop-classify-container__list"><scroll-view class="left" style="{{'height:'+(mainHeight+'px')+';'}}" scroll-y="{{true}}" scroll-with-animation="{{true}}" scroll-top="{{scrollTop}}"><block wx:for="{{categoryData}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view class="{{['item',currentTab==index?'active':'']}}" data-current="{{index}}" data-event-opts="{{[['tap',[['handleNav',['$event']]]]]}}" catchtap="__e"><text>{{item.name}}</text></view></block></scroll-view><block wx:for="{{$root.l4}}" wx:for-item="item" wx:for-index="index" wx:key="id"><block><block wx:if="{{currentTab==index}}"><scroll-view class="right" style="{{'height:'+(mainHeight+'px')+';'}}" scroll-y="{{true}}"><view class="list-cat"><block wx:if="{{adverData&&adverData[item.$orig.id]}}"><swiper class="screen-swiper square-dot" indicator-dots="{{true}}" circular="{{true}}" autoplay="{{true}}" interval="4000" duration="500"><block wx:for="{{item.l2}}" wx:for-item="adverts" wx:for-index="adindex" wx:key="adindex"><swiper-item data-event-opts="{{[['tap',[['onAdvert',['$0'],[[['adverData.'+item.$orig.id+'','',adindex]]]]]]]}}" bindtap="__e"><image class="radius-bock" lazy-load="{{true}}" src="{{adverts.g2}}" mode="aspectFill"></image></swiper-item></block></swiper></block><view class="padding-top-sm"><view class="list-item radius-bock"><view class="list-container"><block wx:for="{{item.l3}}" wx:for-item="category" wx:for-index="infokey" wx:key="id"><view data-event-opts="{{[['tap',[['handleProduct',['$0','$1'],[[['categoryData','id',item.$orig.id],['childlist','id',category.$orig.id,'id']],[['categoryData','id',item.$orig.id],['childlist','id',category.$orig.id,'name']]]]]]]}}" class="list-box" bindtap="__e"><image class="list-image" lazy-load="{{true}}" src="{{category.g3}}"></image><view class="text-sm">{{category.$orig.name}}</view></view></block></view></view></view></view></scroll-view></block></block></block></view></block></block><block wx:else><block wx:if="{{categoryStyle===4}}"><block><view class="wanlshop-classify-container__list"><scroll-view class="left" style="{{'height:'+(mainHeight+'px')+';'}}" scroll-y="{{true}}" scroll-with-animation="{{true}}" scroll-top="{{scrollTop}}"><block wx:for="{{categoryData}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view class="{{['item',currentTab==index?'active':'']}}" data-current="{{index}}" data-event-opts="{{[['tap',[['handleNav',['$event']]]]]}}" catchtap="__e"><text>{{item.name}}</text></view></block><view class="edgeInsetBottom"></view></scroll-view><block wx:for="{{$root.l8}}" wx:for-item="item" wx:for-index="index" wx:key="id"><block><block wx:if="{{currentTab==index}}"><scroll-view class="right" style="{{'height:'+(mainHeight+'px')+';'}}" scroll-y="{{true}}"><view class="list-cat"><block wx:if="{{adverData&&adverData[item.$orig.id]}}"><swiper class="screen-swiper square-dot" indicator-dots="{{true}}" circular="{{true}}" autoplay="{{true}}" interval="4000" duration="500"><block wx:for="{{item.l5}}" wx:for-item="adverts" wx:for-index="adindex" wx:key="adindex"><swiper-item data-event-opts="{{[['tap',[['onAdvert',['$0'],[[['adverData.'+item.$orig.id+'','',adindex]]]]]]]}}" bindtap="__e"><image class="radius-bock" lazy-load="{{true}}" src="{{adverts.g4}}" mode="aspectFill"></image></swiper-item></block></swiper></block><view class="padding-top-sm"><block wx:for="{{item.l7}}" wx:for-item="childlist" wx:for-index="childkey" wx:key="id"><view class="list-item radius-bock"><view data-event-opts="{{[['tap',[['handleProduct',['$0','$1'],[[['categoryData','id',item.$orig.id],['childlist','id',childlist.$orig.id,'id']],[['categoryData','id',item.$orig.id],['childlist','id',childlist.$orig.id,'name']]]]]]]}}" class="flex justify-between text-sm" bindtap="__e"><text>{{childlist.$orig.name}}</text><text class="wlIcon-fanhui2 wanl-gray-light"></text></view><view class="list-container"><block wx:for="{{childlist.l6}}" wx:for-item="category" wx:for-index="infokey" wx:key="id"><view data-event-opts="{{[['tap',[['handleProduct',['$0','$1'],[[['categoryData','id',item.$orig.id],['childlist','id',childlist.$orig.id],['childlist','id',category.$orig.id,'id']],[['categoryData','id',item.$orig.id],['childlist','id',childlist.$orig.id],['childlist','id',category.$orig.id,'name']]]]]]]}}" class="list-box" bindtap="__e"><image class="list-image" lazy-load="{{true}}" src="{{category.g5}}"></image><view class="text-sm">{{category.$orig.name}}</view></view></block></view></view></block><view class="edgeInsetBottom"></view></view></view></scroll-view></block></block></block></view></block></block></block></block></block></view> |