2020-08-13 08:12:57 +00:00
|
|
|
|
<template>
|
2021-11-15 02:16:11 +00:00
|
|
|
|
<view class="evaluateWtapper" v-if="reply.length > 0">
|
2023-06-09 16:17:07 +00:00
|
|
|
|
<view class="evaluateItem" v-for="(item, index) in reply" :key="index">
|
2021-06-11 09:41:16 +00:00
|
|
|
|
<view class="pic-text acea-row">
|
2020-08-13 08:12:57 +00:00
|
|
|
|
<view class="pictrue">
|
2023-06-09 16:17:07 +00:00
|
|
|
|
<image :src="item.userAvatar"></image>
|
2020-08-13 08:12:57 +00:00
|
|
|
|
</view>
|
2021-06-11 09:41:16 +00:00
|
|
|
|
<view class="content">
|
|
|
|
|
<view>
|
|
|
|
|
<view class="acea-row row-between">
|
|
|
|
|
<view class="acea-row">
|
2023-06-09 16:17:07 +00:00
|
|
|
|
<view class="name line1">{{ item.userNickname }}</view>
|
|
|
|
|
<view class="start" :class="'star' + item.scores"></view>
|
2021-06-11 09:41:16 +00:00
|
|
|
|
</view>
|
2023-06-09 16:17:07 +00:00
|
|
|
|
<view class="time">{{ formatDate(item.createTime) }}</view>
|
2021-06-11 09:41:16 +00:00
|
|
|
|
</view>
|
2023-06-10 01:57:20 +00:00
|
|
|
|
<view class="sku">规格:
|
|
|
|
|
<text v-for="(property, propertyIndex) in item.skuProperties" :key="propertyIndex" style="padding-right: 2px">
|
|
|
|
|
{{ property.valueName }}
|
|
|
|
|
</text>
|
|
|
|
|
</view>
|
2021-06-11 09:41:16 +00:00
|
|
|
|
</view>
|
2023-06-09 16:17:07 +00:00
|
|
|
|
<view class="evaluate-infor">{{ item.content }}</view>
|
|
|
|
|
<view class="imgList acea-row" v-if="item.picUrls && item.picUrls.length > 0">
|
|
|
|
|
<view class="pictrue" v-for="(picUrl, indexn) in item.picUrls" :key="indexn">
|
|
|
|
|
<image :src="picUrl" class="image" @click='getpreviewImage(index, indexn)'></image>
|
2021-06-11 09:41:16 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2023-06-09 16:17:07 +00:00
|
|
|
|
<view class="reply" v-if="item.replyContent">
|
|
|
|
|
<text class="font-color">店小二</text>:{{ item.replyContent }}
|
2020-12-23 07:56:45 +00:00
|
|
|
|
</view>
|
2020-08-13 08:12:57 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
2023-06-09 16:17:07 +00:00
|
|
|
|
import dayjs from "@/plugin/dayjs/dayjs.min.js";
|
2020-08-13 08:12:57 +00:00
|
|
|
|
export default {
|
|
|
|
|
props: {
|
|
|
|
|
reply: {
|
|
|
|
|
type: Array,
|
2021-11-15 02:16:11 +00:00
|
|
|
|
default: []
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
data: function() {
|
|
|
|
|
return {};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getpreviewImage: function(indexw, indexn) {
|
|
|
|
|
uni.previewImage({
|
2023-06-09 16:17:07 +00:00
|
|
|
|
urls: this.reply[indexw].picUrls,
|
|
|
|
|
current: this.reply[indexw].picUrls[indexn]
|
2020-08-13 08:12:57 +00:00
|
|
|
|
});
|
2023-06-09 16:17:07 +00:00
|
|
|
|
},
|
|
|
|
|
formatDate: function(date) {
|
|
|
|
|
return dayjs(date).format("YYYY-MM-DD HH:mm:ss");
|
|
|
|
|
}
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style scoped lang='scss'>
|
|
|
|
|
.evaluateWtapper .evaluateItem {
|
|
|
|
|
background-color: #fff;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
padding: 24rpx;
|
|
|
|
|
border-bottom-left-radius: 14rpx;
|
|
|
|
|
border-bottom-right-radius: 14rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
2023-06-09 16:17:07 +00:00
|
|
|
|
|
2020-08-13 08:12:57 +00:00
|
|
|
|
.evaluateWtapper .evaluateItem~.evaluateItem {
|
|
|
|
|
border-top: 1rpx solid #f5f5f5;
|
|
|
|
|
}
|
2023-06-09 16:17:07 +00:00
|
|
|
|
|
2020-08-13 08:12:57 +00:00
|
|
|
|
.evaluateWtapper .evaluateItem .pic-text {
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
color: #282828;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
.content{
|
|
|
|
|
width: 84%;
|
|
|
|
|
margin-left: 20rpx;
|
|
|
|
|
}
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
2023-06-09 16:17:07 +00:00
|
|
|
|
|
2020-08-13 08:12:57 +00:00
|
|
|
|
.evaluateWtapper .evaluateItem .pic-text .pictrue {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
width: 62rpx;
|
|
|
|
|
height: 62rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
2023-06-09 16:17:07 +00:00
|
|
|
|
|
2020-08-13 08:12:57 +00:00
|
|
|
|
.evaluateWtapper .evaluateItem .pic-text .pictrue image {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
}
|
2023-06-09 16:17:07 +00:00
|
|
|
|
|
2020-08-13 08:12:57 +00:00
|
|
|
|
.evaluateWtapper .evaluateItem .pic-text .name {
|
|
|
|
|
max-width: 450rpx;
|
|
|
|
|
}
|
2023-06-09 16:17:07 +00:00
|
|
|
|
|
2020-08-13 08:12:57 +00:00
|
|
|
|
.evaluateWtapper .evaluateItem .time {
|
|
|
|
|
font-size: 24rpx;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
color: #999999;
|
2023-06-09 16:17:07 +00:00
|
|
|
|
|
2021-06-11 09:41:16 +00:00
|
|
|
|
}
|
|
|
|
|
.sku{
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #999999;
|
|
|
|
|
margin: 10rpx 0;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
|
|
|
|
.evaluateWtapper .evaluateItem .evaluate-infor {
|
|
|
|
|
font-size: 28rpx;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
color: #333;
|
|
|
|
|
margin-bottom: 14rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
2023-06-09 16:17:07 +00:00
|
|
|
|
|
|
|
|
|
.evaluateWtapper .evaluateItem .imgList {/*
|
2021-06-11 09:41:16 +00:00
|
|
|
|
padding: 0 24rpx;
|
|
|
|
|
margin-top: 16rpx; */
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
2023-06-09 16:17:07 +00:00
|
|
|
|
|
2020-08-13 08:12:57 +00:00
|
|
|
|
.evaluateWtapper .evaluateItem .imgList .pictrue {
|
2021-06-11 09:41:16 +00:00
|
|
|
|
width: 102rpx;
|
|
|
|
|
height: 102rpx;
|
|
|
|
|
margin-right: 14rpx;
|
|
|
|
|
border-radius: 14rpx;
|
|
|
|
|
margin-bottom: 16rpx;
|
|
|
|
|
/* margin: 0 0 15rpx 15rpx; */
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
2023-06-09 16:17:07 +00:00
|
|
|
|
|
2020-08-13 08:12:57 +00:00
|
|
|
|
.evaluateWtapper .evaluateItem .imgList .pictrue image {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
2020-12-23 07:56:45 +00:00
|
|
|
|
background-color: #f7f7f7;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
border-radius: 14rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
}
|
2023-06-09 16:17:07 +00:00
|
|
|
|
|
2020-08-13 08:12:57 +00:00
|
|
|
|
.evaluateWtapper .evaluateItem .reply {
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
color: #454545;
|
|
|
|
|
background-color: #f7f7f7;
|
2021-06-11 09:41:16 +00:00
|
|
|
|
border-radius: 14rpx;
|
|
|
|
|
margin: 20rpx 30rpx 0 0rpx;
|
2020-12-23 07:56:45 +00:00
|
|
|
|
padding: 20rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
position: relative;
|
|
|
|
|
}
|
2023-06-09 16:17:07 +00:00
|
|
|
|
|
2020-08-13 08:12:57 +00:00
|
|
|
|
.evaluateWtapper .evaluateItem .reply::before {
|
|
|
|
|
content: "";
|
|
|
|
|
width: 0;
|
|
|
|
|
height: 0;
|
|
|
|
|
border-left: 20rpx solid transparent;
|
|
|
|
|
border-right: 20rpx solid transparent;
|
|
|
|
|
border-bottom: 30rpx solid #f7f7f7;
|
|
|
|
|
position: absolute;
|
2020-12-23 07:56:45 +00:00
|
|
|
|
top: -14rpx;
|
2020-08-13 08:12:57 +00:00
|
|
|
|
left: 40rpx;
|
|
|
|
|
}
|
|
|
|
|
</style>
|