|
|
|
@ -49,6 +49,7 @@ import settingStore from "@/store/modules/setting"; |
|
|
|
|
import {subTestapi,checkapi} from '@/api/index.ts' |
|
|
|
|
import { ref,computed,onMounted, onUnmounted} from "vue" |
|
|
|
|
import { ElMessage } from 'element-plus' |
|
|
|
|
import { useRouter } from 'vue-router'; |
|
|
|
|
const setting = settingStore(); |
|
|
|
|
//左箭头 |
|
|
|
|
const SubLeft =()=>{ |
|
|
|
@ -153,8 +154,9 @@ import { ElMessage } from 'element-plus' |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
// 退出答题 |
|
|
|
|
const router = useRouter() |
|
|
|
|
const resetAnswers = () => { |
|
|
|
|
|
|
|
|
|
router.push('/spacePage') |
|
|
|
|
}; |
|
|
|
|
// 计时器相关变量 |
|
|
|
|
const timer = ref<number | null>(null); // 用于存储 setInterval 的返回值 |
|
|
|
@ -273,12 +275,12 @@ import { ElMessage } from 'element-plus' |
|
|
|
|
font-size: 55px; /* 数字字体大小 */ |
|
|
|
|
} |
|
|
|
|
.timer{ |
|
|
|
|
font-size: 20px; /* 字体大小 */ |
|
|
|
|
font-size: 19.5px; /* 字体大小 */ |
|
|
|
|
letter-spacing: 3px; /* 字符间距 */ |
|
|
|
|
text-align: right; |
|
|
|
|
position: absolute; /* 使用绝对定位 */ |
|
|
|
|
top: 24.5%; /* 距离顶部 */ |
|
|
|
|
left: 71.4%; /* 距离左侧 */ |
|
|
|
|
top: 22%; /* 距离顶部 */ |
|
|
|
|
left: 69%; /* 距离左侧 */ |
|
|
|
|
} |
|
|
|
|
.questions{ |
|
|
|
|
font-size: 23px; /* 字体大小 */ |
|
|
|
@ -293,7 +295,7 @@ import { ElMessage } from 'element-plus' |
|
|
|
|
} |
|
|
|
|
.txt { |
|
|
|
|
margin-top: 18px; |
|
|
|
|
font-size: 18px; /* 字体大小 */ |
|
|
|
|
font-size: 22px; /* 字体大小 */ |
|
|
|
|
font-family: Consolas, sans-serif; /* 字体样式 */ |
|
|
|
|
letter-spacing: 1.5px; /* 字符间距,单位可以是 px、em 等 */ |
|
|
|
|
line-height: 1.5; /* 行间距,1.5 表示字体大小的 1.5 倍 */ |
|
|
|
@ -310,7 +312,7 @@ import { ElMessage } from 'element-plus' |
|
|
|
|
/* 单个选项样式 */ |
|
|
|
|
.option { |
|
|
|
|
padding: 5px 10px; /* 内边距,让按钮看起来更舒适 */ |
|
|
|
|
font-size: 18px; /* 字体大小 */ |
|
|
|
|
font-size: 20px; /* 字体大小 */ |
|
|
|
|
letter-spacing: 1.5px; /* 字符间距,单位可以是 px、em 等 */ |
|
|
|
|
text-align: left; /* 设置文字左对齐 */ |
|
|
|
|
margin-top: 5px; |
|
|
|
@ -348,7 +350,7 @@ import { ElMessage } from 'element-plus' |
|
|
|
|
cursor: pointer; /* 鼠标悬停时显示手型 */ |
|
|
|
|
width: 300px; |
|
|
|
|
height: 41px; |
|
|
|
|
font-size: 17px; |
|
|
|
|
font-size: 18px; |
|
|
|
|
font-weight: bold; /* 文字加粗 */ |
|
|
|
|
color: #fff; |
|
|
|
|
} |
|
|
|
|