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',[['tabClass',[idx]]]]]}}" class="item" style="{{'width:'+(topNavWidth)+';'}}" bindtap="__e"><view class="{{['status',(idx==classIndex)?'action':'']}}">{{item.title}}</view></view></block></scroll-view><swiper class="nav-swiper" style="{{'height:'+(height)+';'}}" interval="{{3000}}" duration="{{500}}" current="{{classIndex}}" disable-touch="{{true}}"><block wx:for="{{navList}}" wx:for-item="navItem" wx:for-index="__i0__"><swiper-item><scroll-view style="{{'height:'+(height)+';'}}" scroll-y="true" data-event-opts="{{[['scrolltolower',[['getZmtList']]]]}}" bindscrolltolower="__e"><view data-event-opts="{{[['tap',[['navTo',['/pages/index/searchZmt']]]]]}}" class="Search-box" bindtap="__e"><view class="Search-box-size"><image class="box-img" src="../../static/img/img01.png"></image><input class="box-word" type="text" disabled="{{true}}" placeholder="请输入关键字" data-event-opts="{{[['input',[['__set_model',['','keyword','$event',[]]]]]]}}" value="{{keyword}}" bindinput="__e"/></view></view><block wx:for="{{navItem.list}}" wx:for-item="item" wx:for-index="__i1__"><view data-event-opts="{{[['tap',[['navTo',['/pages/user/dydetail?id='+item.id]]]]]}}" class="dy-wrap flex" bindtap="__e"><view class="user-logo"><image src="{{item.headimg}}" mode></image></view><view class="user-num"><view class="user-name">{{''+item.name+''}}</view><view class="sub-num">{{'发表文章:'+item.count+''}}</view><view class="read-num">{{'阅读量:'+item.visit+''}}</view></view><view class="flex flex_direction"><view data-event-opts="{{[['tap',[['dingYue',['$0'],[[['navList','',__i0__],['list','',__i1__]]]]]]]}}" class="{{['dy-btn',(item.is_sub==1)?'dying':'']}}" catchtap="__e">{{''+(item.is_sub==1?'已订阅':'订阅')+''}}</view><view data-event-opts="{{[['tap',[['toJoin',['$0'],[[['navList','',__i0__],['list','',__i1__]]]]]]]}}" class="{{['jr-btn',(merId)?'dying':'']}}" catchtap="__e">{{''+(merId?'已加入':'加入')+''}}</view></view></view></block></scroll-view></swiper-item></block></swiper></view>
|