article.wxml 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. <view class="search">
  2. <wux-search-bar clear bind:confirm="onConfirm" bind:change="onChange" bind:clear="onClear" value="{{ value }}" placeholder="请搜索相应的文章" />
  3. </view>
  4. <wux-spin nested spinning="{{ spinning }}" size="large" tip="加载中...">
  5. <view class="tabs">
  6. <view class="tabs-bgc">
  7. <scroll-view class="tabs-wrap" scroll-x="true">
  8. <view wx:for="{{ classify }}" wx:key="index" class="item flex-center {{current == index ? 'active' : ''}}" bindtap="onTabsChange" data-id="{{index}}">{{ item.name }}</view>
  9. </scroll-view>
  10. </view>
  11. <!-- 瀑布流 -->
  12. <view class="main">
  13. <view wx:for="{{columns}}" wx:key="index" class="column">
  14. <view wx:for="{{item}}" wx:key="index" class="column_item" wx:for-item="pics" bindtap="goArticleDetail" data-id='{{pics.id}}'>
  15. <view class="main-box">
  16. <image src="{{pics.cover}}" class="column_pic" mode="widthFix" />
  17. <view class="main-content">
  18. <view class="main-title">{{pics.title}}</view>
  19. <view class="main-bottom">
  20. <view class="main-author">{{pics.author_name}}</view>
  21. <view class="main-time">{{pics.create_time}}</view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="hide">
  29. <image wx:for="{{tempPics}}" wx:key="index" src="{{item.cover}}" bindload="loadPic" binderror="loadPicError" data-index="{{index}}" />
  30. </view>
  31. </view>
  32. </wux-spin>