|
@@ -1,54 +1,54 @@
|
|
|
<!--为首页-信息详情页面-->
|
|
<!--为首页-信息详情页面-->
|
|
|
-<view class="card">
|
|
|
|
|
- <image wx:if="{{activityInfo.poster != ''}}" class="activity-poster" src="{{activityInfo.poster}}"
|
|
|
|
|
- mode="aspectFill" />
|
|
|
|
|
- <view class="activity-info">
|
|
|
|
|
- <view class="profile">
|
|
|
|
|
- <view class="avatar-name" catchtap="getPublisherInfo">
|
|
|
|
|
- <image class="publisher-avatar" src="{{activityInfo.publisherAvatar}}"></image>
|
|
|
|
|
- <view class="publisher-name">{{activityInfo.publisherName}}</view>
|
|
|
|
|
|
|
+<view class="page">
|
|
|
|
|
+ <view class="card">
|
|
|
|
|
+ <image wx:if="{{activityInfo.poster != ''}}" class="activity-poster" src="{{activityInfo.poster}}"
|
|
|
|
|
+ mode="aspectFill" />
|
|
|
|
|
+ <view class="activity-info">
|
|
|
|
|
+ <view class="profile">
|
|
|
|
|
+ <view class="avatar-name" catchtap="getPublisherInfo">
|
|
|
|
|
+ <image class="publisher-avatar" src="{{activityInfo.publisherAvatar}}"></image>
|
|
|
|
|
+ <view class="publisher-name">{{activityInfo.publisherName}}</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="activity-attribute primary-background-color white-text-color" catchtap="filterMsgType">
|
|
|
|
|
+ {{activityInfo.attribute[0]}}
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="activity-attribute primary-background-color white-text-color" catchtap="filterMsgType">
|
|
|
|
|
- {{activityInfo.attribute[0]}}
|
|
|
|
|
|
|
+ <view class="title-time">
|
|
|
|
|
+ <view class="title">{{activityInfo.title}}</view>
|
|
|
|
|
+ <view class="time primary-text-color">{{activityInfo.time}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view wx:if="{{activityInfo.activityTime != ''}}" class="line light-primary-color"></view>
|
|
|
|
|
+ <view wx:if="{{activityInfo.activityTime != ''}}" class="activity-time">{{activityInfo.activityTime}}</view>
|
|
|
|
|
+ <view wx:if="{{activityInfo.place != ''}}" class="line light-primary-color"></view>
|
|
|
|
|
+ <view wx:if="{{activityInfo.place != ''}}" class="activity-place">{{activityInfo.place}}</view>
|
|
|
|
|
+ <view wx:if="{{activityInfo.details != ''}}" class="line light-primary-color"></view>
|
|
|
|
|
+ <view wx:if="{{activityInfo.details != ''}}" class="activity-detail">
|
|
|
|
|
+ <rich-text class="sub-title">{{activityInfo.details}}</rich-text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <imagePicker wx:if="{{activityInfo.photo.length != 0}}" images="{{activityInfo.photo}}" max="1"
|
|
|
|
|
+ image-width="{{activityInfo.photo.length == 1 ? 696 : activityInfo.photo.length <= 4 ? 330 : 220}}"
|
|
|
|
|
+ image-height="{{activityInfo.photo.length == 1 ? 696 : activityInfo.photo.length <= 4 ? 330 : 220}}" readonly />
|
|
|
|
|
+ <view class="line light-primary-color"></view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="title-time">
|
|
|
|
|
- <view class="title">{{activityInfo.title}}</view>
|
|
|
|
|
- <view class="time primary-text-color">{{activityInfo.time}}</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view wx:if="{{activityInfo.activityTime != ''}}" class="line light-primary-color"></view>
|
|
|
|
|
- <view wx:if="{{activityInfo.activityTime != ''}}" class="activity-time">{{activityInfo.activityTime}}</view>
|
|
|
|
|
- <view wx:if="{{activityInfo.place != ''}}" class="line light-primary-color"></view>
|
|
|
|
|
- <view wx:if="{{activityInfo.place != ''}}" class="activity-place">{{activityInfo.place}}</view>
|
|
|
|
|
- <view wx:if="{{activityInfo.details != ''}}" class="line light-primary-color"></view>
|
|
|
|
|
- <view wx:if="{{activityInfo.details != ''}}" class="activity-detail">
|
|
|
|
|
- <rich-text class="sub-title">{{activityInfo.details}}</rich-text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <imagePicker wx:if="{{activityInfo.photo.length != 0}}" images="{{activityInfo.photo}}" max="1"
|
|
|
|
|
- image-width="{{activityInfo.photo.length == 1 ? 700 : activityInfo.photo.length <= 4 ? 330 : 220}}"
|
|
|
|
|
- image-height="{{activityInfo.photo.length == 1 ? 700 : activityInfo.photo.length <= 4 ? 330 : 220}}" readonly />
|
|
|
|
|
- <view class="line light-primary-color"></view>
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
-</view>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <image wx:if="{{like != -1}}" class="like" src="/images/like/{{like ? 'heart' : 'hollowheart'}}.png"
|
|
|
|
|
+ catchtap="toggleLike" />
|
|
|
|
|
|
|
|
-<image wx:if="{{like != -1}}" class="like" src="/images/like/{{like ? 'heart' : 'hollowheart'}}.png"
|
|
|
|
|
- catchtap="toggleLike" />
|
|
|
|
|
-
|
|
|
|
|
-<view class="message-block">
|
|
|
|
|
- <view class="dark-primary-color-font">{{activityComment.length == 0 ? "暂无问答" : "答疑区:"}}</view>
|
|
|
|
|
- <view class="card" wx:for="{{activityComment}}" wx:for-item="item" wx:key="_id">
|
|
|
|
|
- <itemActivityComment comment="{{item}}" time="{{item.time}}" />
|
|
|
|
|
|
|
+ <view class="message-block">
|
|
|
|
|
+ <view class="dark-primary-color-font">{{activityComment.length == 0 ? "暂无问答" : "答疑区:"}}</view>
|
|
|
|
|
+ <view class="card" wx:for="{{activityComment}}" wx:for-item="item" wx:key="_id">
|
|
|
|
|
+ <itemActivityComment comment="{{item}}" time="{{item.time}}" />
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
-</view>
|
|
|
|
|
|
|
|
|
|
-<view class="comment block-background-color">
|
|
|
|
|
- <view class="comment-inside" style="display: flex; align-items: center;">
|
|
|
|
|
- <icon type="info" size="20" color="#B0B0B0"></icon>
|
|
|
|
|
- <input class="comment-input primary-text-color" style="width: 550rpx;" model:value="{{commentText}}"
|
|
|
|
|
- placeholder="提问" confirm-type="send" bindconfirm="comment"></input>
|
|
|
|
|
|
|
+ <view class="comment block-background-color">
|
|
|
|
|
+ <view class="comment-inside" style="display: flex; align-items: center;">
|
|
|
|
|
+ <icon type="info" size="20" color="#B0B0B0"></icon>
|
|
|
|
|
+ <input class="comment-input primary-text-color" style="width: 550rpx;" model:value="{{commentText}}"
|
|
|
|
|
+ placeholder="提问" confirm-type="send" bindconfirm="comment"></input>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="comment-button {{commentText.length < 5 ? 'secondary-text-color' : 'dark-primary-color-font'}}"
|
|
|
|
|
+ bindtap="comment">发送</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="comment-button {{commentText.length < 5 ? 'secondary-text-color' : 'dark-primary-color-font'}}"
|
|
|
|
|
- bindtap="comment">发送</view>
|
|
|
|
|
</view>
|
|
</view>
|