|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <div class="container">
|
|
|
|
|
|
+ <div class="container">
|
|
<div style="background: #f4f3ef">
|
|
<div style="background: #f4f3ef">
|
|
<div class="header-text-left">Sub of a Driver Training System</div>
|
|
<div class="header-text-left">Sub of a Driver Training System</div>
|
|
<div class="headerImg">
|
|
<div class="headerImg">
|
|
@@ -28,17 +28,14 @@
|
|
考生姓名:{{ query.username || '张三' }}
|
|
考生姓名:{{ query.username || '张三' }}
|
|
</div>
|
|
</div>
|
|
<div class="pl124 exam-container">
|
|
<div class="pl124 exam-container">
|
|
- <div
|
|
|
|
- @click="
|
|
|
|
- () => {
|
|
|
|
- push({
|
|
|
|
- name: 'examTest',
|
|
|
|
- query: query,
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- "
|
|
|
|
- class="exam-button"
|
|
|
|
- >
|
|
|
|
|
|
+ <div @click="
|
|
|
|
+ () => {
|
|
|
|
+ push({
|
|
|
|
+ name: 'examTest',
|
|
|
|
+ query: query,
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ " class="exam-button">
|
|
开始考试
|
|
开始考试
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -60,6 +57,7 @@ import { useRouter, useRoute } from 'vue-router';
|
|
import Phone from '@/utils/phone';
|
|
import Phone from '@/utils/phone';
|
|
import subject4Img from '@/assets/img/subject4@2x.png';
|
|
import subject4Img from '@/assets/img/subject4@2x.png';
|
|
import subject1Img from '@/assets/img/subject1@2x.png';
|
|
import subject1Img from '@/assets/img/subject1@2x.png';
|
|
|
|
+import { Toast } from 'vant';
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
setup() {
|
|
setup() {
|
|
document.title = '真实模拟考试'
|
|
document.title = '真实模拟考试'
|
|
@@ -84,11 +82,15 @@ export default defineComponent({
|
|
// window.localStorage.setItem("token",res.data.token)
|
|
// window.localStorage.setItem("token",res.data.token)
|
|
// })
|
|
// })
|
|
const visible = ref(true)
|
|
const visible = ref(true)
|
|
- const backViewH5 = (e:TouchEvent)=>{
|
|
|
|
|
|
+ const backViewH5 = (e: TouchEvent) => {
|
|
|
|
|
|
e.preventDefault();
|
|
e.preventDefault();
|
|
// visible.value =false
|
|
// visible.value =false
|
|
- alert('进入返回方法前')
|
|
|
|
|
|
+ Toast({
|
|
|
|
+ message: '进入核心方法前',
|
|
|
|
+ position: 'top',
|
|
|
|
+ duration: 4000
|
|
|
|
+ })
|
|
backView()
|
|
backView()
|
|
|
|
|
|
}
|
|
}
|
|
@@ -108,20 +110,26 @@ export default defineComponent({
|
|
.font11 {
|
|
.font11 {
|
|
font-size: 11px;
|
|
font-size: 11px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.mt14 {
|
|
.mt14 {
|
|
margin-top: 14px;
|
|
margin-top: 14px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.pl138 {
|
|
.pl138 {
|
|
padding-left: 138px;
|
|
padding-left: 138px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.pl124 {
|
|
.pl124 {
|
|
padding-left: 124px;
|
|
padding-left: 124px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.pl24 {
|
|
.pl24 {
|
|
padding-left: 24px;
|
|
padding-left: 24px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.exam-container {
|
|
.exam-container {
|
|
margin-top: 18px;
|
|
margin-top: 18px;
|
|
|
|
+
|
|
.exam-button {
|
|
.exam-button {
|
|
width: 106px;
|
|
width: 106px;
|
|
height: 27px;
|
|
height: 27px;
|
|
@@ -144,6 +152,7 @@ export default defineComponent({
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
background: #fff;
|
|
background: #fff;
|
|
position: relative;
|
|
position: relative;
|
|
|
|
+
|
|
.backButton {
|
|
.backButton {
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 28px;
|
|
top: 28px;
|
|
@@ -154,6 +163,7 @@ export default defineComponent({
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
.header {
|
|
.header {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 21.8vh;
|
|
height: 21.8vh;
|
|
@@ -162,6 +172,7 @@ export default defineComponent({
|
|
line-height: 21.8vh;
|
|
line-height: 21.8vh;
|
|
color: white;
|
|
color: white;
|
|
}
|
|
}
|
|
|
|
+
|
|
.header-text-left {
|
|
.header-text-left {
|
|
color: #a9a9a1;
|
|
color: #a9a9a1;
|
|
text-align: left;
|
|
text-align: left;
|
|
@@ -169,6 +180,7 @@ export default defineComponent({
|
|
line-height: 13px;
|
|
line-height: 13px;
|
|
font-size: 8px;
|
|
font-size: 8px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.header-text-right {
|
|
.header-text-right {
|
|
color: #a9a9a1;
|
|
color: #a9a9a1;
|
|
text-align: right;
|
|
text-align: right;
|
|
@@ -177,18 +189,21 @@ export default defineComponent({
|
|
border-bottom: 1px solid #d8d7d3;
|
|
border-bottom: 1px solid #d8d7d3;
|
|
padding-right: 15px;
|
|
padding-right: 15px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.headerImg {
|
|
.headerImg {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: auto;
|
|
height: auto;
|
|
|
|
|
|
- > img {
|
|
|
|
|
|
+ >img {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: auto;
|
|
height: auto;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
.mt15 {
|
|
.mt15 {
|
|
margin-top: 15px;
|
|
margin-top: 15px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.content {
|
|
.content {
|
|
width: 723px;
|
|
width: 723px;
|
|
height: 67vh;
|
|
height: 67vh;
|
|
@@ -199,6 +214,7 @@ export default defineComponent({
|
|
flex-wrap: wrap;
|
|
flex-wrap: wrap;
|
|
border: 1px solid #eae9e5;
|
|
border: 1px solid #eae9e5;
|
|
background: #f5f6f8;
|
|
background: #f5f6f8;
|
|
|
|
+
|
|
.box1 {
|
|
.box1 {
|
|
width: 50%;
|
|
width: 50%;
|
|
height: 100%;
|
|
height: 100%;
|
|
@@ -206,18 +222,21 @@ export default defineComponent({
|
|
padding-left: 20px;
|
|
padding-left: 20px;
|
|
color: #3d3c38;
|
|
color: #3d3c38;
|
|
border-right: 1px solid #eae9e5;
|
|
border-right: 1px solid #eae9e5;
|
|
|
|
+
|
|
.info {
|
|
.info {
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
margin-bottom: 7px;
|
|
margin-bottom: 7px;
|
|
font-weight: 700;
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
+
|
|
div {
|
|
div {
|
|
text-align: left;
|
|
text-align: left;
|
|
font-size: 13px;
|
|
font-size: 13px;
|
|
margin-bottom: 4px;
|
|
margin-bottom: 4px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
.box2 {
|
|
.box2 {
|
|
width: 50%;
|
|
width: 50%;
|
|
height: 100%;
|
|
height: 100%;
|
|
@@ -225,21 +244,26 @@ export default defineComponent({
|
|
padding-top: 18px;
|
|
padding-top: 18px;
|
|
padding-left: 17px;
|
|
padding-left: 17px;
|
|
font-size: 13px;
|
|
font-size: 13px;
|
|
|
|
+
|
|
.box2-space1 {
|
|
.box2-space1 {
|
|
height: 5px;
|
|
height: 5px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.box2-id {
|
|
.box2-id {
|
|
font-weight: 700;
|
|
font-weight: 700;
|
|
font-size: 13px;
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.box2-name {
|
|
.box2-name {
|
|
font-weight: 700;
|
|
font-weight: 700;
|
|
font-size: 13px;
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.box2-tip {
|
|
.box2-tip {
|
|
margin-top: 7px;
|
|
margin-top: 7px;
|
|
font-size: 11px;
|
|
font-size: 11px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.info {
|
|
.info {
|
|
margin-bottom: 7px;
|
|
margin-bottom: 7px;
|
|
font-size: 14px;
|
|
font-size: 14px;
|