1 |
- <view class="container"><scroll-view class="class-box flex b-t" scroll-x="true" scroll-left="{{scrollLeft}}" scroll-with-animation="{{true}}"><block wx:for="{{navList}}" wx:for-item="item" wx:for-index="idx" wx:key="idx"><view data-event-opts="{{[['tap',[['tabClick',[idx]]]]]}}" class="item" style="{{'width:'+(topNavWidth)+';'}}" bindtap="__e"><view class="{{['status',(idx==tabCurrentIndex)?'action':'']}}">{{item.title}}</view></view></block></scroll-view><swiper class="nav-swiper" style="{{'height:'+(height)+';'}}" interval="{{3000}}" duration="{{500}}" current="{{tabCurrentIndex}}" disable-touch="{{true}}" data-event-opts="{{[['change',[['changeTab',['$event']]]]]}}" bindchange="__e"><block wx:for="{{$root.l1}}" wx:for-item="navItem" wx:for-index="__i0__"><swiper-item><scroll-view style="{{'height:'+(height)+';'}}" scroll-y="true" data-event-opts="{{[['scrolltolower',[['getArtList']]]]}}" bindscrolltolower="__e"><view class="art-list"><block wx:for="{{navItem.l0}}" wx:for-item="item" wx:for-index="__i1__"><block wx:if="{{item.$orig.image_input.length==1}}"><view data-event-opts="{{[['tap',[['goToDetail',['$0'],[[['navList','',__i0__],['list','',__i1__,'id']]]]]]]}}" class="art-item-one flex art-item" bindtap="__e"><view class="art-left flex"><view class="art-tit clamp2">{{''+item.$orig.title+''}}</view><view class="art-time"><block wx:if="{{item.$orig.is_hot==1}}"><image class="hot" src="../../static/icon/hot.png" mode></image></block><text class="store-name">{{item.f0}}</text><text class="creat-time">{{item.f1}}</text></view></view><view class="art-right"><image src="{{item.$orig.image_input}}" mode></image></view></view></block><block wx:if="{{item.$orig.image_input.length==0}}"><view data-event-opts="{{[['tap',[['goToDetail',['$0'],[[['navList','',__i0__],['list','',__i1__,'id']]]]]]]}}" class="art-item-zero flex art-item" bindtap="__e"><view class="art-tit clamp2">{{''+item.$orig.title+''}}</view><view class="art-time"><image class="hot" src="../../static/icon/hot.png" mode></image><text class="store-name">{{item.f2}}</text><text class="creat-time">{{item.f3}}</text></view></view></block><block wx:if="{{item.$orig.image_input.length>1}}"><view data-event-opts="{{[['tap',[['goToDetail',['$0'],[[['navList','',__i0__],['list','',__i1__,'id']]]]]]]}}" class="art-item-three art-item flex" bindtap="__e"><view class="art-tit clamp2">{{''+item.$orig.title+''}}</view><view class="art-img-list"><block wx:for="{{item.$orig.image_input}}" wx:for-item="imgitem" wx:for-index="__i2__"><image src="{{imgitem}}" mode></image></block></view><view class="art-time"><image class="hot" src="../../static/icon/hot.png" mode></image><text class="store-name">{{item.f4}}</text><text class="creat-time">{{item.f5}}</text></view></view></block></block></view><uni-load-more vue-id="{{'2da5e81f-1-'+__i0__}}" status="{{navItem.$orig.loadingType}}" bind:__l="__l"></uni-load-more></scroll-view></swiper-item></block></swiper></view>
|