baike.wxml 964 B

123456789101112131415161718192021
  1. <wxs module="filters" src="../../utils/toFixed.wxs" />
  2. <view class="top_bg">
  3. <image mode="widthFix" src="../../xiao/titlebg@2x.png"></image>
  4. <view class="top_title">短 线 百 科 <text>吃瓜群众</text></view>
  5. </view>
  6. <view class="tab">
  7. <view wx:for="{{cat}}" bindtap="tab" data-id='{{item.id}}' class="{{cur==item.id?'act':''}}">{{item.name}}</view>
  8. </view>
  9. <scroll-view scroll-y="{{true}}" bindscrolltolower='next'>
  10. <navigator wx:for="{{list}}" class="list" url="../detail/detail?id={{item.category_id}}&type=百科">
  11. <view>{{item.name}}</view>
  12. <view class="info">
  13. <image wx:if='{{item.img}}' mode="aspectFill" src="{{item.img}}"></image>
  14. <image wx:else mode="aspectFill" src="../../xiao/default_img@2x.png"></image>
  15. <text>{{item.intro}}</text>
  16. </view>
  17. </navigator>
  18. <block wx:if='{{total >= 20}}'>
  19. <view class='loading' wx:if='{{list.length < total}}'>加载更多...</view>
  20. </block>
  21. </scroll-view>