syshxcx/pages/neighbor/circle/circleDetail.wxml
dong_bo0602 c7f6c43f46 0609
2022-06-09 15:40:43 +08:00

68 lines
3.4 KiB
Plaintext

<view class="help-detail">
<view class="talk-user">
<view class="user-info">
<image src="{{circleDetail.headPortrait}}"></image>
<view class="user-name">
<view class="name">{{circleDetail.nickName}}</view>
<view class="time">{{circleDetail.gmtCreate}}</view>
</view>
</view>
<view class="good" bindtap="toggleGood">
<image src="{{sourceUrl}}good-on.png" wx:if="{{isClickedGood == 'yes'}}"></image>
<image src="{{sourceUrl}}good.png" wx:else></image>
<text>{{goodCount}}</text>
</view>
</view>
<view class="talk-content">
{{circleDetail.content}}
</view>
<view class="help-type">{{circleDetail.problemTypeName}}</view>
<view class="help-photo" wx:if="{{circleDetail.photo.length > 0}}">
<view class="photo-box help-photo-box photo-one" wx:for="{{circleDetail.photo}}" wx:for-item="photo" wx:key="photo" wx:if="{{circleDetail.photo.length == 1}}" bindtap="viewImg" data-id="{{photo}}">
<image src="{{serviceUrl + baseImgUrl + photo}}" mode="widthFix"></image>
</view>
<view class="photo-box help-photo-box photo-four" wx:for="{{circleDetail.photo}}" wx:for-item="photo" wx:key="photo" wx:if="{{circleDetail.photo.length == 4}}" bindtap="viewImg" data-id="{{photo}}">
<image src="{{serviceUrl + baseImgUrl + photo}}" mode="widthFix"></image>
</view>
<view class="photo-box help-photo-box photo-more" wx:for="{{circleDetail.photo}}" wx:for-item="photo" wx:key="photo" wx:if="{{circleDetail.photo.length > 1 && circleDetail.photo.length != 4}}" bindtap="viewImg" data-id="{{photo}}">
<image src="{{serviceUrl + baseImgUrl + photo}}" mode="widthFix"></image>
</view>
</view>
<view class="help-video" wx:if="{{circleDetail.video}}">
<video src="{{serviceUrl + baseImgUrl + circleDetail.video}}"></video>
</view>
<!-- <view class="help-date">{{helpDetail.gmtCreate}}</view> -->
</view>
<!-- <view class="explain">
<view class="explain-title">补充说明</view>
<view class="explain-detail">{{circleDetail.contentSupplement}}</view>
</view> -->
<view class="reply" wx:if="{{replyList.length > 0}}">
<view class="reply-title">回复</view>
<view class="reply-box" wx:for="{{replyList}}" wx:key="index" bindtap="getFocus" data-user="{{item.userName}}" data-id="{{item.neighborCircleCommentId}}" data-name="{{item.userName}}">
<view class="talk-user">
<view class="user-info">
<image src="{{item.headPortrait}}"></image>
<view class="user-name">
<view class="name">{{item.userName}}</view>
<view class="time">{{item.gmtCreate}}</view>
</view>
</view>
<!-- <view class="good">
<image src="/images/good.png"></image>
<text>100</text>
</view> -->
</view>
<view class="talk-content">
{{item.content}}
</view>
<view class="reply-reply">
<view class="reply-row" wx:for="{{item.subCommentList}}" wx:for-item="child" catchtap="getFocus" data-user="{{child.userName}}" data-id="{{item.neighborCircleCommentId}}" data-name="{{child.userName}}">
<text>{{child.userName}}</text> 回复 <text>{{child.replyUserName}}</text> : {{child.content}}
</view>
</view>
</view>
</view>
<view class="answer">
<input type="text" model:value="{{reply}}" bindconfirm="doReply" placeholder="{{placeholder}}" model:value="{{reply}}" bindconfirm="doReply" focus="{{isGetFocus}}" bindblur="inputBlur"/>
</view>