软测宝小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

139 lines
2.8 KiB

<template>
<view class="peixunbanpage">
<block v-if="reviewList.length">
<view class="pxitembox" v-for="it in reviewList" :key="it.comment_id">
<view class="pxitemboxt">
<view class="pxitemboxtl">
<image class="pxitemboxtlimg" src="../../../static/crowd/defaultAva.jpg" mode=""></image>
<!-- {来自{{it.from_city}}的伙伴} -->
{{it.user_name}}
</view>
<view class="pxitemboxtr">
{{dateFormat(new Date(it.create_time)) }}
</view>
</view>
<view class="pxitemboxc">
<view class="ratebox">
<u-rate v-model="it.star" :current="2" :disabled="true" active-color="#fa9c22" inactive-color="#CDCECE"></u-rate>
</view>
<view class="pxitemboxcremark">
{{it.content}}
</view>
<view class="pxitemboxctask" @click="goTaskDetail">
{{it.project_name}}
</view>
</view>
</view>
</block>
<view v-else class="noreview">
暂无评价
</view>
</view>
</template>
<script>
import { dateFormat} from '@/utils/util.js'
export default {
data() {
return {
reviewList: []
}
},
onLoad() {
this.getList()
},
methods: {
dateFormat,
getList() {
const phoneuserinfo = uni.getStorageSync('wxUserInfo');
const userId = phoneuserinfo.userId
this.http.quickGet(`/comment/myComment/${userId}`, true).then(res=>{
this.reviewList=res.data.rows
})
},
// 跳转订单详情
goTaskDetail() {
}
}
}
</script>
<style lang="scss" scoped>
.noreview {
font-size: 23px;
font-weight: bold;
color: #9D9D9D;
text-align: center;
margin-top: 40rpx;
}
.peixunbanpage {
width: 100vw;
height: 100%;
background: #f5f7fa;
padding: 25rpx 25rpx 0 25rpx;
box-sizing: border-box;
.pxitembox {
width: 100%;
background: #FFFFFF;
border-radius: 10rpx;
.pxitemboxt {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid rgba(153, 153, 153, 0.2);
padding: 0 25rpx;
box-sizing: border-box;
}
.pxitemboxtl {
height: 89rpx;
display: flex;
align-items: center;
font-weight: 500;
font-size: 28rpx;
color: #1A1A1A;
.pxitemboxtlimg {
width: 60rpx;
height: 60rpx;
border-radius: 50%;
margin-right: 10rpx;
}
}
.pxitemboxtr {
font-weight: 500;
font-size: 22rpx;
color: #808080;
}
.pxitemboxc {
width: 100%;
padding: 25rpx;
box-sizing: border-box;
.ratebox {
margin-bottom: 20rpx;
}
.ratebox ::v-deep .u-icon {
font-size: 20px !important;
}
.pxitemboxcremark {
font-weight: 500;
font-size: 22rpx;
color: #333333;
}
.pxitemboxctask {
margin-top: 20rpx;
font-weight: 500;
font-size: 22rpx;
color: #2084F9;
}
}
}
}
</style>