huangsijun
2025-09-22 a78c011de350b188afb03beb2f26a73f35f71986
1
<view class="{{['article-list-wrap',$root.m0]}}" data-theme="{{$root.m1}}"><view class="top-tabbar"><scroll-view scroll-x="true" scroll-with-animation="true"><view class="type-list d-s-c"><view data-event-opts="{{[['tap',[['tabTypeFunc',[0]]]]]}}" class="{{[type_active==0?'tab-item  active':'tab-item ']}}" bindtap="__e">全部</view><block wx:for="{{categorys}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['tabTypeFunc',['$0'],[[['categorys','',index,'category_id']]]]]]]}}" class="{{[type_active==item.category_id?'tab-item  active':'tab-item ']}}" bindtap="__e">{{''+item.name+''}}</view></block></view></scroll-view></view><scroll-view class="scroll-Y" style="{{('height:'+scrollviewHigh+'px;')}}" scroll-y="true" lower-threshold="50" data-event-opts="{{[['scrolltolower',[['scrolltolowerFunc',['$event']]]]]}}" bindscrolltolower="__e"><view class="article-list"><block wx:for="{{listData}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['gotoDetail',['$0'],[[['listData','',index,'article_id']]]]]]]}}" class="item" bindtap="__e"><view class="info"><view class="title">{{item.article_title}}</view><view class="summary">{{item.dec}}</view><view class="datatime d-s-c"><text>{{item.create_time}}</text><text class="icon iconfont icon-chakan ml30"></text><text class="ml10">{{item.actual_views}}</text></view></view><block wx:if="{{item.image!=null}}"><view class="pic"><image src="{{item.image.file_path}}" mode="aspectFill"></image></view></block></view></block></view><block wx:if="{{$root.g0}}"><view class="d-c-c p30"><text class="iconfont icon-wushuju"></text><text class="cont">亲,暂无相关记录哦</text></view></block><block wx:else><uni-load-more vue-id="4d70ab39-1" loadingType="{{loadingType}}" bind:__l="__l"></uni-load-more></block></scroll-view><tab-bar vue-id="4d70ab39-2" bind:__l="__l"></tab-bar></view>