examineresult.vue 1.9 KB
<template>
	<view class="content">
		<view class="examineresult">考试结果</view>
		<view class="examinefen">{{score}}分</view>
		<view class='examinestate' v-if="is_pass==2">对不起您没有通过本次考试,请重新答题</view>
		<view class='examinestate' v-if="is_pass==1">恭喜您通过本次考试</view>
		
		<view class="examinebot flexone">
			<view class='examinebotleft' @click="backluntan">返回论坛</view>
			<view class='examinebotright' @click="renewkaoshi">重新考试</view>
		</view>
	</view>
</template>

<script>
	import app from "../../App.vue";
	    export default {
	        data() {
	            return {
	                score:'',
					id:'',
					is_pass:''
	            }
	        },
	        onLoad(options) {
				this.score=options.score;
				this.id=options.id;
				this.is_pass=options.is_pass
	
	        },
	        methods: {
	           backluntan(){
				   uni.navigateTo({
				   	
				  
				  
				   	url:'/pages/luntan/examine'
				   })
			   },
			   // 重新考试
			   renewkaoshi(){
				 uni.navigateTo({
				 	url:'/pages/luntan/examintext?id='+this.id
				 })  
			   }
			   
			   
	      
	        }
	
	    }
</script>

<style>
	.examineresult{
		color:#08121F;
		font-size: 60rpx;
		text-align: center;
		margin-top:60rpx;
	}
	.examinefen{
		color:#C29445;
		font-size: 72rpx;
		margin-top:32rpx;
		text-align: center;
	}
	.examinestate{
		color:#232323;
		font-size: 28rpx;
		margin-top:20rpx;
		text-align: center;
	}
	.examinebot{
		padding: 0 32rpx;
		box-sizing: border-box;
		margin-top:32rpx;
	}
	.examinebotleft{
		width:328rpx;
		height:88rpx;
		border-radius:16rpx;
		border:1rpx solid rgba(194,148,69,1);
		color:#C29445;
		font-size: 28rpx;
		text-align: center;
		line-height: 88rpx;
	}
	.examinebotright{
		width:328rpx;
		height:88rpx;
		background:rgba(194,148,69,1);
		border-radius:16rpx;
		color:#fff;
		font-size: 28rpx;
		text-align: center;
		line-height: 88rpx;
		margin-left:30rpx
	}
</style>