1 |
- <view class="content"><view class="navbar"><block wx:for="{{navList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['tabClick',[index]]]]]}}" class="{{['nav-item',(tabCurrentIndex===index)?'current':'']}}" bindtap="__e">{{item.text}}</view></block></view><swiper class="swiper-box" style="{{'height:'+(height)+';'}}" current="{{tabCurrentIndex}}" duration="300" data-event-opts="{{[['change',[['changeTab',['$event']]]]]}}" bindchange="__e"><block wx:for="{{$root.l0}}" wx:for-item="tabItem" wx:for-index="tabIndex" wx:key="tabIndex"><swiper-item class="tab-content"><scroll-view class="{{['list-scroll-content',(tabCurrentIndex==0)?'yan':'']}}" scroll-y="true" data-event-opts="{{[['scrolltolower',[['loadData',['$event']]]]]}}" bindscrolltolower="__e"><block wx:if="{{tabItem.g0}}"><empty vue-id="{{'2cec64cc-1-'+tabIndex}}" bind:__l="__l"></empty></block><block wx:else><view><block wx:for="{{tabItem.$orig.orderList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['navTo',['/pages/info/myarticle?id='+item.id+'&type='+tabCurrentIndex]]]]]}}" class="order-item flex" bindtap="__e"><view class="order-image"><image src="{{item.image_input[0]}}" mode></image></view><view class="order-info"><view class="order-title clamp2">{{item.title}}</view><view class="order-info-main flex"><view class="order-time">{{item.add_time}}</view><block wx:if="{{tabCurrentIndex==0}}"><view class="order-btnBox flex"><view data-event-opts="{{[['tap',[['navTo',['/pages/info/myarticle?id='+item.id]]]]]}}" class="order-btn-item" catchtap="__e"><view class="order-btn-icon"><image src="../../static/icon/bj.png" mode></image></view><view class="order-btn-font">编辑</view></view><view data-event-opts="{{[['tap',[['del',['$0'],[[['navList','',tabIndex],['orderList','',index,'id']]]]]]]}}" class="order-btn-item" catchtap="__e"><view class="order-btn-icon1"><image src="../../static/icon/sc.png" mode></image></view><view class="order-btn-font1">删除</view></view></view></block></view></view><block wx:if="{{item.check_status!=0}}"><view class="cgsb">{{''+(item.check_status==1?'审核成功':'审核失败')+''}}</view></block></view></block></view></block><block wx:if="{{!tabItem.g1}}"><uni-load-more vue-id="{{'2cec64cc-2-'+tabIndex}}" status="{{tabItem.$orig.loadingType}}" bind:__l="__l"></uni-load-more></block></scroll-view><block wx:if="{{tabCurrentIndex==0}}"><view data-event-opts="{{[['tap',[['navTo',['/pages/info/myarticle']]]]]}}" class="btn" bindtap="__e">发帖</view></block></swiper-item></block></swiper></view>
|