syshxcx/pages/news/newsDetail.wxml
dong_bo0602 a1f9e23f6d 0607
2022-06-07 15:43:05 +08:00

45 lines
2.0 KiB
Plaintext

<view class="container">
<view class="news-title">
<view class="title">{{newsDetail.title}}</view>
<view class="from-date">
<view class="from">来源:{{newsDetail.source}}</view>
<view class="date">{{newsDetail.sendTime}}</view>
</view>
</view>
<view class="news-content">
<rich-text nodes="{{newsDetail.content}}"></rich-text>
</view>
<view class="comment" wx:if="{{replyList.length > 0}}">
<view class="comment-title">评论区</view>
<view class="comment-box" wx:for="{{replyList}}" wx:key="index" bindtap="getFocus" data-user="{{item.userName}}" data-id="{{item.newsCommentId}}" 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:key="index" wx:for="{{item.subCommentList}}" wx:for-item="child" catchtap="getFocus" data-user="{{child.userName}}" data-id="{{item.newsCommentId}}" data-name="{{child.userName}}">
<text>{{child.userName}}</text> 回复 <text>{{child.replyUserName}}</text> : {{child.content}}
</view>
</view>
</view>
</view>
</view>
<view class="do-reply">
<input type="text" placeholder="{{placeholder}}" model:value="{{reply}}" bindconfirm="doReply" focus="{{isGetFocus}}" bindblur="inputBlur"/>
<view class="collect" bindtap="toggleCollect">
<image src="{{sourceUrl}}collect.png" mode="heightFix" wx:if="{{isCollect == 'no'}}"></image>
<image src="{{sourceUrl}}collect-on.png" mode="heightFix" wx:else></image>
</view>
</view>