collect.wxml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <block wx:for='{{list}}'>
  2. <navigator url="../actDetail/actDetail?id={{item.id}}" class="list" wx:key="journals{{index}}" wx:if='{{item.target_type== "article"}}'>
  3. <image src="{{item.img}}"></image>
  4. <view>
  5. <view class="title">{{item.name}}</view>
  6. <view class="ly">
  7. <view>
  8. <text>{{item.publish_time}}</text>
  9. </view>
  10. <text class="nowrap">作者:{{item.author}}</text>
  11. </view>
  12. <text class="">{{item.desc}}</text>
  13. </view>
  14. </navigator>
  15. <navigator class="list" url="../eventDetail/eventDetail?id={{item.id}}" wx:key="conference{{index}}" wx:if='{{item.target_type== "conference"}}'>
  16. <image style="height:60px;" src="{{item.img}}"></image>
  17. <view>
  18. <view class="title">{{item.name}}</view>
  19. <view class="ly" style="text-align:right;">
  20. <text>{{item.begin_time}}</text>
  21. </view>
  22. <text class="">{{item.desc}}</text>
  23. </view>
  24. </navigator>
  25. <navigator class="list" url="../news/news?id={{item.id}}" wx:key="conference{{index}}" wx:if='{{item.target_type== "news"}}'>
  26. <image style="height:60px;" src="{{item.img}}"></image>
  27. <view>
  28. <view class="title">{{item.name}}</view>
  29. <view class="ly">
  30. <view>
  31. <text>{{item.publish_time}}</text>
  32. </view>
  33. <text class="nowrap">来源:{{item.journal_name}}</text>
  34. </view>
  35. <text class="">{{item.desc}}</text>
  36. </view>
  37. </navigator>
  38. </block>
  39. <view wx:if='{{list.length==0}}' style="text-align:center;color:#999;padding:200rpx 0;">暂无收藏</view>