itemCard.wxml 1.4 KB

12345678910111213141516171819202122232425
  1. <!-- 为首页消息通知的组件,数据在mainData.js -->
  2. <view class="card" bindtap="getActivityInfo">
  3. <view class="profile">
  4. <view class="avatar-name" catchtap="getPublisherInfo">
  5. <image class="publisher-avatar" src="{{item.publisherAvatar}}" mode="aspectFill"></image>
  6. <view class="publisher-name">{{item.publisherName}}</view>
  7. </view>
  8. <view class="activity-attribute primary-color-bg text-primary-color" catchtap="filterMsgType">{{item.attribute[0]}}</view>
  9. </view>
  10. <view class="title-time">
  11. <view class="title">{{item.title}}</view>
  12. <view class="time primary-color-fg">{{item.time}}</view>
  13. </view>
  14. <view class="sub-title">{{item.subTitle}}</view>
  15. <imagePicker wx:if="{{item.poster != ''}}" images="{{[item.poster]}}" max="1" image-width="700" image-height="365" readonly />
  16. <imagePicker wx:if="{{item.poster == '' && item.photo.length != 0}}" images="{{item.photo}}" max="1" image-width="{{item.photo.length == 1 ? 700 : item.photo.length <= 4 ? 330 : 220}}" image-height="{{item.photo.length == 1 ? 700 : item.photo.length <= 4 ? 330 : 220}}" readonly />
  17. <view class="bottom-line">
  18. <view class="tags primary-color-fg"></view>
  19. <view class="to-detail">
  20. <text class="primary-color-fg" style="font-size:20rpx;">查看详情</text>
  21. <image class="arrow" src="/images/hollow_arrow.png" mode="aspectFill"></image>
  22. </view>
  23. </view>
  24. </view>