myCollection.wxml 1.7 KB

123456789101112131415161718192021222324252627
  1. <!--pages/myCollection/myCollection.wxml-->
  2. <view style="border-top: 2rpx solid #11111130;padding: 0 20rpx 20rpx 20rpx">
  3. <view wx:for="{{ collectionList }}" wx:for-index="index" wx:for-item="item" wx:for-index="index" style="height: 190rpx;border-bottom: 2rpx solid #11111130;" bindtap="toInfo" data-url="{{item.url}}">
  4. <view wx:if="{{ item.images&&item.images != ''}}" style="height: 100%;width: 100%;display: flex;">
  5. <view style="width: 70%;height: 100%">
  6. <view class="title-text" style="margin-top: 5%;height: 50%;font-size: 35rpx;font-weight: 600;">{{ item.title }}</view>
  7. <view style="height: 40%;display: flex;align-items: center;justify-content: space-between;font-size: 24rpx;color: #cccccc;">
  8. <view>浏览量 {{ item.viewCount }}</view>
  9. <view>{{ item.onlineDate }}</view>
  10. </view>
  11. </view>
  12. <view style="width: 30%;height: 100%;display: flex;align-items: center;justify-content: flex-end;">
  13. <image src="{{ item.images }}" style="height: 140rpx;width: 200rpx;border-radius: 10rpx;"></image>
  14. </view>
  15. </view>
  16. <view wx:else style="height: 100%;width: 100%;display: flex;flex-direction: column;">
  17. <view class="title-text" style="margin-top: 5%;height: 50%;font-size: 35rpx;font-weight: 600;">{{ item.title }}</view>
  18. <view style="height: 40%;display: flex;align-items: center;justify-content: space-between;font-size: 24rpx;color: #cccccc;">
  19. <view>浏览量 {{ item.viewCount }}</view>
  20. <view>{{ item.onlineDate }}</view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <view wx:if="{{show}}" style="display: flex;align-items: center;justify-content: center;height: 100vh;">
  26. <t-empty icon="info-circle-filled" description="暂无数据" />
  27. </view>