activity.wxml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!--为首页-信息详情页面-->
  2. <view class="page">
  3. <view class="card">
  4. <image wx:if="{{activityInfo.poster != ''}}" class="activity-poster" src="{{activityInfo.poster}}"
  5. mode="aspectFill" />
  6. <view class="activity-info">
  7. <view class="profile">
  8. <view class="avatar-name" catchtap="getPublisherInfo">
  9. <image class="publisher-avatar" src="{{activityInfo.publisherAvatar}}"></image>
  10. <view class="publisher-name">{{activityInfo.publisherName}}</view>
  11. </view>
  12. <view class="activity-attribute primary-background-color white-text-color" catchtap="filterMsgType">
  13. {{activityInfo.attribute[0]}}
  14. </view>
  15. </view>
  16. <view class="title-time">
  17. <view class="title">{{activityInfo.title}}</view>
  18. <view class="time primary-text-color">{{activityInfo.time}}</view>
  19. </view>
  20. <view wx:if="{{activityInfo.activityTime != ''}}" class="line light-primary-color"></view>
  21. <view wx:if="{{activityInfo.activityTime != ''}}" class="activity-time">{{activityInfo.activityTime}}</view>
  22. <view wx:if="{{activityInfo.place != ''}}" class="line light-primary-color"></view>
  23. <view wx:if="{{activityInfo.place != ''}}" class="activity-place">{{activityInfo.place}}</view>
  24. <view wx:if="{{activityInfo.details != ''}}" class="line light-primary-color"></view>
  25. <view wx:if="{{activityInfo.details != ''}}" class="activity-detail">
  26. <rich-text class="sub-title">{{activityInfo.details}}</rich-text>
  27. </view>
  28. <imagePicker wx:if="{{activityInfo.photo.length != 0}}" images="{{activityInfo.photo}}" max="1"
  29. image-width="{{activityInfo.photo.length == 1 ? 696 : activityInfo.photo.length <= 4 ? 330 : 220}}"
  30. image-height="{{activityInfo.photo.length == 1 ? 696 : activityInfo.photo.length <= 4 ? 330 : 220}}" readonly />
  31. <view class="line light-primary-color"></view>
  32. </view>
  33. </view>
  34. <image wx:if="{{like != -1}}" class="like" src="/images/like/{{like ? 'heart' : 'hollowheart'}}.png"
  35. catchtap="toggleLike" />
  36. <view class="message-block">
  37. <view class="dark-primary-color-font">{{activityComment.length == 0 ? "暂无问答" : "答疑区:"}}</view>
  38. <view class="card" wx:for="{{activityComment}}" wx:for-item="item" wx:key="_id">
  39. <itemActivityComment comment="{{item}}" time="{{item.time}}" />
  40. </view>
  41. </view>
  42. <view class="comment block-background-color">
  43. <view class="comment-inside" style="display: flex; align-items: center;">
  44. <icon type="info" size="20" color="#B0B0B0"></icon>
  45. <input class="comment-input primary-text-color" style="width: 550rpx;" model:value="{{commentText}}"
  46. placeholder="提问" confirm-type="send" bindconfirm="comment"></input>
  47. </view>
  48. <view class="comment-button {{commentText.length < 5 ? 'secondary-text-color' : 'dark-primary-color-font'}}"
  49. bindtap="comment">发送</view>
  50. </view>
  51. </view>