city_card/pages/news/newsDetail.wxml

39 lines
2.0 KiB
Plaintext
Raw Permalink Normal View History

2023-07-15 14:25:28 +08:00
<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 bindtap="getFocus" class="comment-box" data-id="{{item.newsCommentId}}" data-name="{{item.userName}}" data-user="{{item.userName}}" wx:for="{{replyList}}" wx:key="index">
<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>
<view class="talk-content"> {{item.content}} </view>
<view class="reply-reply">
<view catchtap="getFocus" class="reply-row" data-id="{{item.newsCommentId}}" data-name="{{child.userName}}" data-user="{{child.userName}}" wx:for="{{item.subCommentList}}" wx:for-item="child" wx:key="index">
<text>{{child.userName}}</text> 回复 <text>{{child.replyUserName}}</text> : {{child.content}} </view>
</view>
</view>
</view>
</view>
<view class="do-reply">
<input bindblur="inputBlur" bindconfirm="doReply" focus="{{isGetFocus}}" value="{{reply}}" placeholder="{{placeholder}}" type="text"></input>
<view bindtap="toggleCollect" class="collect">
<image mode="heightFix" src="{{sourceUrl}}collect.png" wx:if="{{isCollect=='no'}}"></image>
<image mode="heightFix" src="{{sourceUrl}}collect-on.png" wx:else></image>
</view>
</view>