activity.wxml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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>
  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}}" value="{{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. <view class="message-block">
  35. <view class="title2">{{activityComment.length == 0 ? "暂无问答" : "答疑区:"}}</view>
  36. <image wx:if="{{like != -1}}" class="like" src="/images/like/{{like ? 'heart' : 'hollowheart'}}.png"
  37. catchtap="toggleLike" />
  38. <view class="card1" wx:for="{{activityComment}}" wx:for-item="item" wx:key="_id">
  39. <itemActivityComment comment="{{item}}" time="{{item.time}}" />
  40. </view>
  41. </view>
  42. <text>\n</text>
  43. <view class="comment block-background-color">
  44. <view class="comment-inside" style="display: flex; align-items: center;">
  45. <icon type="info" size="20" color="#B0B0B0"></icon>
  46. <input class="comment-input primary-text-color" style="width: 550rpx;" model:value="{{commentText}}"
  47. placeholder="提问" confirm-type="send" bindconfirm="comment"></input>
  48. </view>
  49. <view class="comment-button {{commentText.length < 5 ? 'secondary-text-color' : 'dark-primary-color-font'}}"
  50. bindtap="comment">发送</view>
  51. </view>
  52. </view>