kaoshiresult.vue
2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<template>
<div class="resultbox">
<div class="resulttop">
<div class="resultname">{{ score }}分</div>
<div class="resulttext" v-if="is_pass == 2">
对不起您没有通过本次考试,请重新答题
</div>
<div class="resulttext" v-else>恭喜您通过本次考试!</div>
</div>
<div class="lingzheng" @click="lingzheng">点击领证</div>
<div class="register" v-if="miangongshow" @click="hidezheng">
<div class="zhengbox">
<img src="../../../assets/zhengbox.png" alt="" />
<div class="miangongbox">
<div class="miangongtop flex">
<div class="miangongtopleft">
<div class="mianleftitem flexone">
<div class="mianleftname">姓名</div>
<div class="mianleftnamek">陈廷冲</div>
</div>
<div class="mianleftitem flexone">
<div class="mianleftname">籍贯</div>
<div class="mianleftnamek">陈廷冲</div>
</div>
<div class="mianleftitem flexone">
<div class="mianleftname">手机号</div>
<div class="mianleftnamek">123456789</div>
</div>
<div class="mianleftitem flexone">
<div class="mianleftname">发证日期</div>
<div class="mianleftnamek">
2020 <span class="year">年</span> 9
<span class="year">月</span>7 <span class="year">日</span>
</div>
</div>
<div class="mianleftitem flexone gonghao">
<div class="mianleftname">面工证号</div>
<div class="mianleftnamek">202034943934909</div>
</div>
</div>
<div class="mianright">
<img src="../../../assets/zhaopian_Img@2x.png" alt="" />
<img
src="../../../assets/zhang_img@2x.png"
alt=""
class="zhangimg"
/>
</div>
</div>
</div>
</div>
<div class="fanhui">返回首页 10s</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
miangongshow: false,
score: '',
id: '',
is_pass: ''
};
},
created() {
this.score = this.$route.query.score;
console.log(this.score)
this.id = this.$route.query.id;
this.is_pass = this.$route.query.is_pass
},
methods: {
lingzheng() {
this.miangongshow = true;
},
hidezheng() {
this.miangongshow = false;
}
}
};
</script>
<style scoped>
@import "../../style/homepage.css";
</style>