stu_evaluating.vue 1.9 KB
<template>
	<view class="evaluating">
		<view class="evaluating-c">
			<view class="evaluating-c-i" v-for="(item, index) in info.xc" :key="index">
				<view class="evaluating-c-i-l">{{ item.name }}</view>
				<view class="evaluating-c-i-r">{{ item.num }}</view>
			</view>
			
		</view>
		<view class="evaluating-b" v-if="info.comment">
			<view class="evaluating-b-t">评语</view>
			<view class="evaluating-b-c">
				{{ info.comment }}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info: {
					xc: []
				}
			};
		},
		mounted() {
			this.getData()
		},
		methods: {
			getData() {
				var datas = {}
				var jkurl = '/study/ruxue_baogao'
				this.$service.P_post(jkurl, datas).then(res => {
					this.info = res.data
					this.info.comment = 2122;
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.evaluating{
	padding: 30rpx;
	.evaluating-c{
		background-color: #fff;
		border-radius: 20rpx;
		padding: 0 30rpx;
		.evaluating-c-i{
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 30rpx 0;
			border-bottom: 1rpx solid #F3F3F7;
			&-l {
				font-size: 30rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #000000;
			}
			&-r {
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #646464;
			}
			&:last-child{
				border-bottom: none;
			}
		}
	}
	.evaluating-b{
		padding: 30rpx;
		background-color: #fff;
		border-radius: 20rpx;
		margin-top: 30rpx;
		margin-bottom: 50rpx;
		.evaluating-b-c{
			border-radius: 20rpx;
			padding: 20rpx;
			background-color: #f8f8f8;
			min-height: 200rpx;
			font-size: 28rpx;
			font-family: PingFang SC;
			font-weight: 400;
			color: #646464;
		}
		.evaluating-b-t{
			
			margin-bottom: 20rpx;
			
			font-size: 30rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #000000;
		}
	}
}
</style>