<!-- 我的评价 -->
<template>
	<view class="evaluation">
		<z-paging
			ref="paging"
			v-model="evaluationList"
			@query="queryList"
		>
			<view class="evaluation-list">
				<view class="evaluation-list-item" v-for="(item, index) in evaluationList" :key="index">
					<view class="evaluation-list-item-title">{{ item.title }}</view>
					<view class="evaluation-list-item-content">
						<view class="left">
							<u-avatar :src="item.src" mode="square" size="96"/>
						</view>
						<view class="right">
							<view>{{ item.name }}</view>
							<view>
								<u-rate :count="5" v-model="item.star" active-color="#C4C4C4" disabled/>
								<text>{{ item.date }}</text>
							</view>
							<view>{{ item.remark }}</view>
						</view>
					</view>
				</view>
			</view>
		</z-paging>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// 评论列表
				evaluationList: []
			}
		},
		methods: {
			queryList(pageNo, pageSize) {
				this.$refs.paging.complete([
					{ title: '汽车检测与维修技能课程1', src: require('../../static/img/major-工商企业管理.png'), name: '李立萍', star: 4, date: '2021-07-21', remark: '老师给人感觉很专业，学习过程轻松愉快。' },
					{ title: '汽车检测与维修技能课程1', src: require('../../static/img/major-工商企业管理.png'), name: '李立萍', star: 4, date: '2021-07-21', remark: '老师给人感觉很专业，学习过程轻松愉快。' }
				])
			}
		}
	}
</script>

<style lang="scss" scoped>
@import './myEvaluation.scss';
</style>
