newList.wxml 1.2 KB

12345678910111213141516171819202122232425262728
  1. <view class="toptip {{tipStaus}} text-white {{tipType}}" style='top:{{CustomBar}}px;'>{{tipText}}</view>
  2. <cu-custom bgColor="bg-color" isBack="{{true}}" title="新闻列表"></cu-custom>
  3. <view class="worker_search">
  4. <view class="worker_search_con">
  5. <input type="text" placeholder="请输入搜索内容" value="{{keyword}}" bindinput="setKeyword"></input>
  6. <view class="text-color" bindtap="searchList"><text class="cuIcon-search"></text>搜索</view>
  7. </view>
  8. </view>
  9. <scroll-view scroll-y enable-back-to-top bindscrolltolower="bindscrolltolower" style="height:{{scrollHeight}}px" lower-threshold="180">
  10. <view class="newsList" wx:if="{{newsList}}">
  11. <view wx:for="{{newsList}}" wx:for-item="item" bindtap="goNewsInfo" data-id="{{item.id}}">
  12. <view class="newsListInfo">
  13. <text>{{item.abstracts}}</text>
  14. <view>
  15. <text>{{item.source}} {{item.hitTotal}}万阅读</text>
  16. <text>{{item.createTime}}</text>
  17. </view>
  18. </view>
  19. <view class="newsListImg">
  20. <image src="{{item.imageUrl}}"></image>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="no_data" wx:else>
  25. <image src="/img/nodata_img2.png"></image>
  26. <view class="no_data_txt">暂无数据</view>
  27. </view>
  28. </scroll-view>