itemCard.wxml 1.6 KB

1234567891011121314151617181920212223242526272829303132
  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-background-color white-text-color" catchtap="filterMsgType">
  9. {{item.attribute[0]}}
  10. </view>
  11. </view>
  12. <view class="title-time">
  13. <view class="title">{{item.title}}</view>
  14. <view class="time primary-text-color">{{item.time}}</view>
  15. </view>
  16. <view class="sub-title">{{item.subTitle}}</view>
  17. <imagePicker wx:if="{{item.poster != ''}}" images="{{[item.poster]}}" max="1" image-width="700" image-height="350"
  18. readonly />
  19. <imagePicker wx:if="{{item.poster == '' && item.photo.length != 0}}" images="{{item.photo}}" max="1"
  20. image-width="{{item.photo.length == 1 ? 696 : item.photo.length <= 4 ? 330 : 220}}"
  21. image-height="{{item.photo.length == 1 ? 696 : item.photo.length <= 4 ? 330 : 220}}" readonly />
  22. <view class="bottom-line">
  23. <view class="tags primary-text-color">
  24. <text style="font-size: 25rpx; margin: 0rpx 30rpx;" wx:for="{{item.tag}}" wx:for-item="tag"
  25. wx:key="_id">{{tag}}</text>
  26. </view>
  27. <view class="to-detail">
  28. <text class="primary-text-color" style="font-size: 20rpx;">查看详情</text>
  29. <image class="arrow" src="/images/hollow_arrow.png" mode="aspectFill"></image>
  30. </view>
  31. </view>
  32. </view>