itemCard.wxml 1.1 KB

12345678910111213141516
  1. <!-- 为首页消息通知的组件,数据在mainData.js -->
  2. <view class="card" bindtap="getActivityInfo">
  3. <view class="profile">
  4. <view style="display: flex;" catchtap="getPublisherInfo">
  5. <image class="publisher-avatar" src="{{item.publisherAvatar}}" mode="aspectFill"></image>
  6. <view class="publisher-name dark-primary-color-font">{{item.publisherName}}</view>
  7. <view class="time">{{item.time}}</view>
  8. </view>
  9. <view class="activity-attribute accent-color text-primary-color" catchtap="filterMsgType">{{item.attribute[0]}}</view>
  10. </view>
  11. <view class="title">{{item.title}}</view>
  12. <view class="sub-title">{{item.subTitle}}</view>
  13. <imagePicker wx:if="{{item.poster != ''}}" images="{{[item.poster]}}" max="1" image-width="700" image-height="365" readonly />
  14. <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 />
  15. <view class="line divider-color"></view>
  16. </view>