1、自定义属性: 

 

 

2、自定义事件:

 

示例:

<!-- 试卷讲评页面 -->
<template>

	<div class="Content">
		<div v-if="typeof(iteamDatas) === undefined || iteamDatas.length === 0" class="PaperDiv2" >
			<image src="../../static/images/data_empty.png"></image>
		</div>
		<div v-else class="PaperDiv" v-for="iteamData in iteamDatas">
			<paper-iteam v-bind:paperData="iteamData" @IteamClick="paperIteamClick"> </paper-iteam>
		</div>
	</div>

</template>


<script>
	// import yu from '../../yu.js'
	import PaperIteam from '../../components/custom/PaperIteam.vue'

	export default {
		components: {
			PaperIteam,
			// TabHeader,
		},

		data() {
			return {
				iteamDatas: [{
						tiMu: '一.1 (4分)',
						deFenLv: 75,
						image: 'http://dev.xfkj.cc/upload/pic/1.png',
						avgClass: 3.745,
						avgGrade: 3.845,
						allRight: 44,
						allWrong: 3,
						anserDetail: 'Detail_1',
					},
					{
						tiMu: '二.1 (5分)',
						deFenLv: 95.3,
						image: 'http://dev.xfkj.cc/upload/pic/2.png',
						avgClass: 6.745,
						avgGrade: 3.845,
						allRight: 44,
						allWrong: 3,
						anserDetail: 'Detail_2',
					},
					{
						tiMu: '三.1 (5分)',
						deFenLv: 35.3,
						image: 'http://dev.xfkj.cc/upload/pic/3.png',
						avgClass: 6.745,
						avgGrade: 3.845,
						allRight: 44,
						allWrong: 3,
						anserDetail: 'Detail_2',
					},
					{
						tiMu: '四.1 (5分)',
						deFenLv: 90.3,
						image: 'http://dev.xfkj.cc/upload/pic/4.png',
						avgClass: 6.745,
						avgGrade: 3.845,
						allRight: 44,
						allWrong: 3,
						anserDetail: 'Detail_2',
					},
				],
			}
		},
		onLoad(param) {
			// console.log(param.id)
			// this.examId = param.id;
		},
		onShow() {},
		methods: {
			
			// 示例数据:
			// {
			// 	"state": 1,
			// 	"msg": "",
			// 	"data": {
			// 		"ExamName": "第二波测试",
			// 		"QuestionName": "一.3",
			// 		"Answer": "",
			// 		"QuestionTh": "3",
			// 		"GradePassRate": 0,
			// 		"ClassPassRate": 0,
			// 		"QuestionUrl": "",
			// 		"GradeAvg": 0,
			// 		"ClassAvg": 0,
			// 		"OptionRates": [{
			// 				"OptionName": "A",
			// 				"OptionNum": 1,
			// 				"OptionRate": 50
			// 			},
			// 			{
			// 				"OptionName": "B",
			// 				"OptionNum": 1,
			// 				"OptionRate": 50
			// 			},
			// 		],
			// 	},
			// }

			// 点击题目详情
			paperIteamClick(paperData) {
				console.log("iteamClick已经调用!" + paperData.tiMu);
				// uni.setStorageSync("paperIteamData", paperData);	// 存储当前点击列表项的数据

				// let that = this;
				// yu.dpost(208, (result) => {
				// 	if (result.state == 1) {

				// 		let dataI = result.data;

				// 		// 获取题目详情信息
				// 		let detail = {
				// 			tiMu: dataI.QuestionName,
				// 			deFenLv: dataI.ClassPassRate,
				// 			deFenLvGrade: dataI.GradePassRate,
				// 			image: dataI.QuestionUrl,
				// 			avgClass: dataI.ClassAvg,
				// 			avgGrade: dataI.GradeAvg,
				// 			allRight: paperData.allRight,
				// 			allWrong: paperData.allWrong,
				// 			anser: dataI.Answer,
				// 			append: dataI,
				// 		};

				// 		// 题目图表信息
				// 		var tmp = [];
				// 		var valCount = 0;
				// 		var valMax = 0;
				// 		for (let i = 0; i < result.data.OptionRates.length; i++) {
				// 			dataI = result.data.OptionRates[i];
				// 			valCount += dataI.OptionNum;
				// 			if(dataI.OptionRate > valMax) valMax = dataI.OptionRate;	// 记录最大值
				// 		}

				// 		for (let i = 0; i < result.data.OptionRates.length; i++) {
				// 			dataI = result.data.OptionRates[i];

				// 			// var rate = that.FloatN(dataI.OptionNum * 100 / valCount, 2);
				// 			var rate = dataI.OptionRate;
				// 			var showWidth= rate * 100.0 / valMax;
							
				// 			let iteam = {
				// 				name: dataI.OptionName,
				// 				val: showWidth,
				// 				msg: dataI.OptionNum + '人 占比' + rate + '%',
				// 			};

				// 			tmp.push(iteam)
				// 		}
				// 		detail.chatData = tmp;

				// 		uni.setStorageSync("paperIteamData", detail); // 存储当前点击列表项的数据

				// 		// 跳转答题详情页
				// 		yu.tz('../fenxi/paper_iteam_detail');

				// 	} else {
				// 		yu.alert(result.msg);
				// 	}

				// }, {
				// 	examid: this.examId,
				// 	gradeid: this.grade,
				// 	classid: this.class,
				// 	subjectid: this.subjectId,
				// 	th: paperData.id,
				// });

			},

			// 将float值保留,小数点后n位
			FloatN(fValue, n) {
				let val = parseFloat(fValue).toFixed(n);
				return val;
			},

		}
	}
</script>


<style scoped>
	.Content {
		width: 90%;
		height: 100%;
		margin: 5rpx auto;
	}

	.HeadDiv {
		width: 100%;
		height: auto;
	}

	.PaperDiv {
		margin-top: 0px;
		width: 100%;
		height: 90%;
		overflow: auto;
	}
	
	.PaperDiv2 {
		text-align: center;  
		width: 100%;
		/* box-shadow: 0 0 5px 0px rgb(126, 125, 125); */
	}
	
	.PaperDiv2 image {
		margin-top: 360rpx;
		/* margin-bottom: 360rpx; */
		width: 346rpx;
		height: 346rpx;
	}
</style>

<style>
	/* 边框底部划线 */
	.bottomLine {
		border-bottom: 1px solid #ccc;
	}

	/* 边框线 */
	.boxShadow {
		box-shadow: 0 0 5px 0px rgb(126, 125, 125);
	}
</style>

PaperIteam.vue

 <template>

 	<div class="Content">

		<div class="tittle">
			{{ paperData.tiMu }}
			
			<div class="deFenlv" v-bind:style="'color:' + deFenLvColor + '; background-color:' + deFenLvColorBg">
				班级得分率{{ paperData.deFenLv }}%
			</div>
		</div>

 		<div v-if="paperData.image !== ''" class="ImageDiv">
 			<img class= "Image" v-bind:src="paperData.image">
 			<!-- <img class="Image" v-bind:src="'data:image/png;base64,' + image"> -->
 		</div>

 		<div class="avgInfo">
			
 			<pre v-if="paperData.tiMuType==0">
				班级/年级平均分:<span></span> <text>  {{paperData.avgClass}}</text>/{{paperData.avgGrade}}  全对{{paperData.allRight}}人  全错{{paperData.allWrong}}人
			</pre>
			<pre v-else>
				班级/年级平均分:<span></span> <text>  {{paperData.avgClass}}</text>/{{paperData.avgGrade}} 
			</pre>
			
 		</div>

 		<div class="details" @click="openDetails(paperData)">
			<div v-if="paperData.tiMuType==0">
				答题详情 >
			</div>
			<div v-else class="details2">
			</div>
 		</div>
 	</div>

 </template>

 <script>
 	export default {
 		name: 'PaperIteam',
 		props: {
 			// soft: String,
 			paperData: {},
 		},
 		data() {
 			return {
 				tiMu: '一.1 (4分)',
 				deFenLv: 75,
				// 从Base64编码的字符串,载入图像
 				// image: 'iVBORw0KGgoAAAANSUhEUgAAAcwAAAAqCAIAAACx0/z6AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACmYSURBVHhe7Z35k5XF1cf9L/IfJKkyViqapJJUJRVNUlghRiQERAzKNizKvo0ssg0gi+wg+74My4AM+8g2w7A7MIjsiIpREzUxi5rtrfd9P09/z9PT97n3ztw7c2cY43x+eKqf06dPnz7dfbqfYYD7/i8T/1sgzNxXBhu2w0QOE6Vh1W208RXGNkMmTKOxmJVMmEaL0LxJFsxi/lh7h4kyYRpOx0qppMtduwxCK9XbncdU07Dq7Aq5Y4YawrRTyatKkoyYRoxJ22gjE7ZKAqwixqRNxsw1hGnng7VsFGYijfv+JxP/KRD/+te/Pv3003/+85//+Mc//vrXv/L673//+8MPP7xz585bMZ988gnyP/7xj++9997f//53WqH/wQcfoB8a+fzzzyn/+c9/Dtu+//77WEZOk48++ujjjz9G2TWKoK+//OUvf/jDH2hLWUIUUKNhKMQIDvztb39Dgh1ev/jiC3xQL7dv37558+bvf/97ekHn3XfflZ8ogwzSilpZg7xi+Nlnn2GTsGCNV5nFAXrEE5Ant27dwo0bN24g1zBx5u7du4xRDUOIHm4z9jAgQBMCiMNhExwgIAyKUdARvQh6JCyhBS2PEIREEv/piwigjEsYwSuvT4EeGWBk4j//QRMf6FSvwPzSykvURIVsUMsQWA8MU8uA5vSr2fGjQ8i6kmVr2QqQb/ZSIGQTwtf0co6oiTBRDliDGJMGSM7sCMpMVrhx0jHVGAm9KV8oCM7HxmNWUkF+H+ubldocsM3YWrW1tSQFttAbb7xBsmDTHj16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TOHvDBx4kTuZSRiMgW5GAtMFk+yNlC2PloTmpQmYrZST3peGTXBNCVHWVkZN/2tW7eSUufNm3fo0KGFCxciHDp0aGlp6YEDB4YMGbJy5UqOrpKSEmoHDRrESaY/fuRUi1KsQ7vgvwkiVvcHX4pmo/FGeGrZ8Wwm1FcL40ZZt3YTr18RGLJ2WohC0crBeTIs8Fl67tw50mi/fv1IAeXl5VzKqquryaerV6/mRlZTU0NWpbZPnz5kXq5dW7ZsoZZPYO5f5Bddh3liTTlXwblX2Ahzw+YsFatLxaw7EhL2oP4Iwb/u3LlzzJgx06ZN46Dat28fYeG44lhasmQJHwFIyKfTp0/nU4DMq99n0N+AOHr0aGjKZdq6eCJPR1VyqTXj/fziiy/+H3bQaReLREIRAAAAAElFTkSuQmCC',
 				image: 'http://dev.xfkj.cc/upload/pic/1.png',
 				avgClass: 3.745,
 				avgGrade: 3.845,
 				allRight: 44,
 				allWrong: 3,
 				id: 'Detail_1',
 			}
 		},

 		// filters: {

 		//   contentFormat(content)
 		//   {
 		//       if(content.length > 56)
 		//       {
 		//           return content.substring(0, 56) + '...';
 		//       }
 		//       else return content;
 		//   }
 		// },

 		mounted() {},
 		created() {

 		},
 		computed: {
 			// 当得分率变动时,颜色值自动随之变动 
 			deFenLvColor() {
 				if (this.paperData.deFenLv >= 80) return "#3b9d70";
 				else if (this.paperData.deFenLv >= 60) return "#e4b04c";
 				else return "#e22121";
 			},
			deFenLvColorBg() {
				if (this.paperData.deFenLv >= 80) return "#e7fce3";
				else if (this.paperData.deFenLv >= 60) return "#fdf4d6";
				else return "#f3e2e2";
			}
 		},
 		methods: {

			// 题目详情
 			openDetails(paperData) {
				
				this.$emit('IteamClick', paperData)
				
 				// uni.removeStorageSync("token");
 				// uni.removeStorageSync("name");
 				// uni.removeStorageSync("pass");
 				// uni.reLaunch({
 				// 	url: '../fenxi/paper_review?id=' + id
 				// });
 			}

 		}

 	}
 </script>

 <style scoped>
 	.Content {
 		position: relative;
 		text-align: left;
 		display: inline-block;

 		width: 100%;
 		/* background-color: gray; */
 		vertical-align: middle;

 		border-bottom: 1px solid #ccc;
 		padding: 4rpx 0px 4rpx 0px;
		margin-bottom: 10rpx;
 	}
	.ImageDiv{
		width: 100%;
		height: max-content;
		overflow: auto;
		/* min-height: 200rpx; */
	}
 	.Image {
 		width: 90%;
 		max-height: 50px;
		/* 修改为auto微信小程序中未显示 */
		/* height:auto; */
		/* min-height: 50rpx; */
 		margin: 20px;
		object-fit: cover;
 	}

 	.tittle {
		width: 100%;
		display: inline-block;
 		/* position: absolute; */
 	}

 	.deFenlv {
 		/* position: absolute; */
 		float: right;
 		font-size: small;
		font-weight: 500;
 		/* color: seagreen; */
 		/* color: #7ccd7d; */
 		/* background-color: rgb(228, 226, 226); */
 		border-radius: 5px;
 		padding: 3px;
 		/* margin-right: 5px; */
 	}

 	.avgInfo {
 		font-size: small;
 		color: rgb(162, 162, 162);
		margin-top: 20rpx;
 	}

 	.avgInfo text {
 		font-size: small;
 		color: rgb(213, 83, 80);
 	}

 	.details {
 		float: right;
 		font-size: small;
 		color: rgb(66, 165, 245);
		padding: 20rpx 0rpx 30rpx 0rpx;
 	}
	
	.details2 {
		float: right;
		height: 40rpx;
	}
 </style>

Logo

前往低代码交流专区

更多推荐