wenzhang.wxml 1.3 KB

1234567891011121314151617181920212223242526
  1. <view class="search">
  2. <input bindinput="search" placeholder-style='color:#C8C8C8;' value="{{keyword}}" placeholder="输入名称/关键字搜索"></input>
  3. <image bindtap="getData" mode="widthFix" src="../images/search.png"></image>
  4. </view>
  5. <scroll-view wx:if='{{list.length>0}}' scroll-y="true" scroll-into-view="{{scroll}}" class="content" bindscrolltolower='next'>
  6. <navigator url="../actDetail/actDetail?id={{item.id}}" class="list" wx:for='{{list}}'>
  7. <image src="{{item.img}}"></image>
  8. <view>
  9. <view class="title"> <rich-text nodes="{{item.name}}"></rich-text></view>
  10. <view class="ly">
  11. <view>
  12. <text>{{item.publish_time}}</text>
  13. </view>
  14. <text>作者:{{item.author}}</text>
  15. <text></text>
  16. </view>
  17. <text class="">{{item.desc}}</text>
  18. </view>
  19. </navigator>
  20. <block wx:if='{{list.length >= 20}}'>
  21. <view class='more' wx:if='{{loading}}'>上拉加载更多...</view>
  22. <view class='more' wx:else>已加载全部数据!</view>
  23. </block>
  24. </scroll-view>