|
|
@ -194,23 +194,25 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<!-- 空白页 --> |
|
|
|
|
|
<view class="blank-space"></view> |
|
|
</view> |
|
|
</view> |
|
|
<!--评论区--> |
|
|
<!-- |
|
|
|
|
|
评论区 |
|
|
<view class="comments-section"> |
|
|
<view class="comments-section"> |
|
|
<view class="comments-header"> |
|
|
<view class="comments-header"> |
|
|
<view class="comments-title"> |
|
|
<view class="comments-title"> |
|
|
<text class="comments-label">商品评价</text> |
|
|
<text class="comments-label">商品评价</text> |
|
|
<text class="comments-count">({{comments.length}}条)</text> |
|
|
<text class="comments-count">({{comments.length}}条)</text> |
|
|
</view> |
|
|
</view> |
|
|
<!-- 评论按钮 --> |
|
|
评论按钮 |
|
|
<view class="comment-action" style="display: flex; justify-content: center; margin: 10rpx ;"> |
|
|
<view class="comment-action" style="display: flex; justify-content: center; margin: 10rpx ;"> |
|
|
<button class="comment-button" bindtap="showCommentModal"> |
|
|
<button class="comment-button" bindtap="showCommentModal"> |
|
|
发表评论 |
|
|
发表评论 |
|
|
</button> |
|
|
</button> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
评论列表 |
|
|
<!-- 评论列表 --> |
|
|
|
|
|
<view class="comments-list"> |
|
|
<view class="comments-list"> |
|
|
<block wx:if="{{comments.length > 0}}"> |
|
|
<block wx:if="{{comments.length > 0}}"> |
|
|
<view wx:for="{{comments}}" wx:key="id" class="comment-item"> |
|
|
<view wx:for="{{comments}}" wx:key="id" class="comment-item"> |
|
|
@ -220,7 +222,7 @@ |
|
|
<text class="user-nickname">{{item.nickname || '匿名用户'}}</text> |
|
|
<text class="user-nickname">{{item.nickname || '匿名用户'}}</text> |
|
|
<text wx:if="{{!item.isDefault}}" class="comment-time">{{item.time || '刚刚'}}</text> |
|
|
<text wx:if="{{!item.isDefault}}" class="comment-time">{{item.time || '刚刚'}}</text> |
|
|
</view> |
|
|
</view> |
|
|
<!-- 删除按钮,仅当前用户的评论显示且非默认评论 --> |
|
|
删除按钮,仅当前用户的评论显示且非默认评论 |
|
|
<view wx:if="{{!item.isDefault && item.phoneNumber === currentUserPhone}}" class="comment-actions"> |
|
|
<view wx:if="{{!item.isDefault && item.phoneNumber === currentUserPhone}}" class="comment-actions"> |
|
|
<text class="delete-btn" bindtap="showDeleteConfirmModal" data-comment="{{item}}">删除</text> |
|
|
<text class="delete-btn" bindtap="showDeleteConfirmModal" data-comment="{{item}}">删除</text> |
|
|
</view> |
|
|
</view> |
|
|
@ -237,9 +239,7 @@ |
|
|
</block> |
|
|
</block> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
--> |
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 登录弹窗 --> |
|
|
<!-- 登录弹窗 --> |
|
|
|