修改湖畔好店的评价显示逻辑
This commit is contained in:
parent
0fdfc3ca41
commit
aee000cd6b
@ -1,40 +1,40 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<div class="Msg">
|
||||
<div class="Msg_Tit">
|
||||
<div class="Msg_Tit_left">
|
||||
<view class="container">
|
||||
<view class="Msg">
|
||||
<view class="Msg_Tit">
|
||||
<view class="Msg_Tit_left">
|
||||
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/user_ava.png"
|
||||
v-if="!info.user.avatar" mode="aspectFill">
|
||||
</image>
|
||||
<image :src="picUrl + info.user.avatar" v-if="info.user.avatar" mode="aspectFill"></image>
|
||||
{{ info.user.nick_name }}
|
||||
</div>
|
||||
<div class="Msg_Tit_right">
|
||||
</view>
|
||||
<view class="Msg_Tit_right">
|
||||
<image v-for="(item, index) in 5" :key="index"
|
||||
:src="indez < info.satisfaction ? 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/local_start1.png' : 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/local_start2.png'"
|
||||
mode="aspectFill"></image>
|
||||
</div>
|
||||
</div>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<div class="Msg_con">
|
||||
<view class="Msg_con">
|
||||
{{ info.comment }}
|
||||
<div class="Msg_con_img" v-if="info.image_url">
|
||||
<view class="Msg_con_img" v-if="info.image_url">
|
||||
<image v-for="(img, index) in info.image_url.split(',')" :key="index" :src="picUrl + img"
|
||||
mode="aspectFill"></image>
|
||||
<video class="Msg_con_video" v-if="info.video_url" :src="picUrl + info.video_url" controls></video>
|
||||
</div>
|
||||
</div>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<div class="Msg_iconList">
|
||||
<div class="Msg_iconList_left">
|
||||
<div class="Msg_iconList_leftIcon">
|
||||
<view class="Msg_iconList">
|
||||
<view class="Msg_iconList_left">
|
||||
<view class="Msg_iconList_leftIcon">
|
||||
<image
|
||||
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/local_review.png"
|
||||
mode="widthFix"></image>
|
||||
{{ info.merchant_evaluation_reply_list ? info.merchant_evaluation_reply_list.length : 0 }}
|
||||
</div>
|
||||
</view>
|
||||
|
||||
<div class="Msg_iconList_leftIcon">
|
||||
<view class="Msg_iconList_leftIcon">
|
||||
<image v-if="info.is_like == 2"
|
||||
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/com_likeIcon.png"
|
||||
mode="widthFix" @click="like(info)"></image>
|
||||
@ -42,42 +42,42 @@
|
||||
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/com_likeIcon2.png"
|
||||
mode="widthFix" @click="unlike(info)"></image>
|
||||
{{ info.merchant_evaluation_like_list ? info.merchant_evaluation_like_list.length : 0 }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="Msg_iconList_right">
|
||||
<div class="Msg_iconList_leftIcon" @click="deletes" v-if="isDelte">
|
||||
</view>
|
||||
</view>
|
||||
<view class="Msg_iconList_right">
|
||||
<view class="Msg_iconList_leftIcon" @click="deletes" v-if="isDelte">
|
||||
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/local_del.png"
|
||||
mode="widthFix"></image>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 回复列表 -->
|
||||
<div class="reply" v-for="(item, index) in replyList" :key="index">
|
||||
<div class="reply_tit">
|
||||
<div class="reply_tit_left">
|
||||
<view class="reply" v-for="(item, index) in replyList" :key="index">
|
||||
<view class="reply_tit">
|
||||
<view class="reply_tit_left">
|
||||
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/user_ava.png"
|
||||
v-if="!item.user.avatar" mode="aspectFill">
|
||||
</image>
|
||||
<image :src="picUrl + item.user.avatar" v-if="item.user.avatar" mode="aspectFill"></image>
|
||||
{{ item.user.nick_name }}
|
||||
</div>
|
||||
<div class="reply_tit_right">{{ item.reply_time }}</div>
|
||||
</div>
|
||||
<div class="reply_con">{{ item.reply_content }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</view>
|
||||
<view class="reply_tit_right">{{ item.reply_time }}</view>
|
||||
</view>
|
||||
<view class="reply_con">{{ item.reply_content }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<div class="comment">
|
||||
<div class="comment_con">
|
||||
<view class="comment">
|
||||
<view class="comment_con">
|
||||
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/local_send.png"
|
||||
mode="aspectFill"></image>
|
||||
<input type="text" v-model="reply_content" placeholder="说点什么">
|
||||
|
||||
<button id="send" @click="sendComment">发送</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@ -141,7 +141,7 @@ export default {
|
||||
request(apiArr.createUserReply, "POST", {
|
||||
evaluation_id: that.info.id,
|
||||
reply_content: that.reply_content,
|
||||
reply_user_type: "1"
|
||||
reply_user_type: 1
|
||||
}).then(res => {
|
||||
uni.showToast({
|
||||
title: "发送成功",
|
||||
|
||||
@ -159,7 +159,9 @@ export default {
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
// 已移至onLoad中执行,确保执行顺序
|
||||
if(this.info.id){
|
||||
this.getCommentList()
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
if (this.flag) {
|
||||
@ -191,9 +193,11 @@ export default {
|
||||
});
|
||||
|
||||
list.forEach(item => {
|
||||
item.merchant_evaluation_reply_list = item.merchant_evaluation_reply_list.filter((item) => {
|
||||
return item.status == 2;
|
||||
})
|
||||
if(item.merchant_evaluation_reply_list){
|
||||
item.merchant_evaluation_reply_list = item.merchant_evaluation_reply_list.filter((item) => {
|
||||
return item.status == 2;
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
this.commentList = this.commentList.concat(list);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user