index.wxml 4.0 KB

1
  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}}" circular="{{true}}" 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"><block wx:if="{{tabCurrentIndex==0}}"><view class="top-swiper"><swiper class="banner-swiper" autoplay="{{true}}" interval="{{3000}}" duration="{{1000}}"><block wx:for="{{carouselList}}" wx:for-item="itemb" wx:for-index="__i1__"><swiper-item data-event-opts="{{[['tap',[['navTo',['$0'],[[['carouselList','',__i1__,'wap_url']]]]]]]}}" bindtap="__e"><image class="swiper-img" src="{{itemb.pic}}" mode></image></swiper-item></block></swiper><view data-event-opts="{{[['tap',[['navTo',['/pages/index/searchArt']]]]]}}" class="input-box flex" bindtap="__e"><view class=" input-content flex"><view class="iconfont iconsearch"></view><view class="input"><input type="text" disabled="{{true}}" placeholder="有什么新鲜事"/></view></view></view></view></block><block wx:if="{{zdArt&&tabCurrentIndex==0}}"><view data-event-opts="{{[['tap',[['goToDetail',['$0'],['zdArt.id']]]]]}}" class="zd-wrap flex" bindtap="__e"><view class="zd-tit clamp2"><text class="zd-tip">|置顶|</text>{{zdArt.title+''}}</view><view class="art-time"><block wx:if="{{zdArt.is_hot==1}}"><image class="hot" src="../../static/icon/hot.png" mode></image></block>{{$root.f0+''}}</view></view></block><view class="art-list"><block wx:for="{{navItem.l0}}" wx:for-item="item" wx:for-index="__i2__"><block wx:if="{{item.$orig.image_input.length==1}}"><view data-event-opts="{{[['tap',[['goToDetail',['$0'],[[['navList','',__i0__],['list','',__i2__,'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.f1}}</text><text class="creat-time">{{item.f2}}</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','',__i2__,'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.f3}}</text><text class="creat-time">{{item.f4}}</text></view></view></block><block wx:if="{{item.$orig.image_input.length>1}}"><view data-event-opts="{{[['tap',[['goToDetail',['$0'],[[['navList','',__i0__],['list','',__i2__,'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="__i3__"><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.f5}}</text><text class="creat-time">{{item.f6}}</text></view></view></block></block></view><uni-load-more vue-id="{{'8dd740cc-1-'+__i0__}}" status="{{navItem.$orig.loadingType}}" bind:__l="__l"></uni-load-more></scroll-view></swiper-item></block></swiper></view>