itemPublisher.wxml 1.2 KB

12345678910111213141516171819
  1. <!-- 为发布者详情界面中的活动卡片,数据在mainData.js 注:mainData.js在主界面和此界面都被引用 -->
  2. <view class="card" bindtap="getMessageInfo">
  3. <view class="profile">
  4. <view style="display: flex;">
  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="message-attribute accent-color white-text-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"
  14. readonly />
  15. <imagePicker wx:if="{{item.poster == '' && item.photo.length != 0}}" images="{{item.photo}}" max="1"
  16. image-width="{{item.photo.length == 1 ? 700 : item.photo.length <= 4 ? 330 : 220}}"
  17. image-height="{{item.photo.length == 1 ? 700 : item.photo.length <= 4 ? 330 : 220}}" readonly />
  18. <view class="line divider-color"></view>
  19. </view>