activity.wxml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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="activity-time">时间:{{activityInfo.activityTime}}</view>
  21. <view wx:if="{{activityInfo.place != ''}}" class="activity-place">地点:{{activityInfo.place}}</view>
  22. <view wx:if="{{activityInfo.details != ''}}" class="activity-detail">
  23. <rich-text>{{activityInfo.details}}</rich-text>
  24. </view>
  25. <imagePicker wx:if="{{activityInfo.photo.length != 0}}" images="{{activityInfo.photo}}" max="1"
  26. image-width="{{activityInfo.photo.length == 1 ? 696 : activityInfo.photo.length <= 4 ? 330 : 220}}"
  27. image-height="{{activityInfo.photo.length == 1 ? 696 : activityInfo.photo.length <= 4 ? 330 : 220}}" readonly />
  28. <view class="line light-primary-color"></view>
  29. </view>
  30. </view>
  31. <view class="message-block">
  32. <view class="title2">{{activityComment.length == 0 ? "暂无问答" : "答疑区:"}}</view>
  33. <image wx:if="{{like != -1}}" class="like" src="/images/like/{{like ? 'heart' : 'hollowheart'}}.png"
  34. catchtap="toggleLike" />
  35. <view class="card1" wx:for="{{activityComment}}" wx:for-item="item" wx:key="_id">
  36. <itemActivityComment comment="{{item}}" time="{{item.time}}" />
  37. </view>
  38. </view>
  39. <text>\n</text>
  40. <view class="comment block-background-color">
  41. <view class="comment-inside" style="display: flex; align-items: center;">
  42. <icon type="info" size="20" color="#B0B0B0"></icon>
  43. <input class="comment-input primary-text-color" style="width: 550rpx;" model:value="{{commentText}}"
  44. placeholder="提问" confirm-type="send" bindconfirm="comment"></input>
  45. </view>
  46. <view class="comment-button {{commentText.length < 5 ? 'secondary-text-color' : 'dark-primary-color-font'}}"
  47. bindtap="comment">发送</view>
  48. </view>
  49. </view>