|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <div class="page exam-notice">
|
|
|
|
|
|
+ <div class="page exam-notice p-16">
|
|
<div class="title">考试须知</div>
|
|
<div class="title">考试须知</div>
|
|
<div class="content" v-html="cutNbsp(ct)"></div>
|
|
<div class="content" v-html="cutNbsp(ct)"></div>
|
|
</div>
|
|
</div>
|
|
@@ -10,22 +10,17 @@ import { useRoute } from "vue-router";
|
|
import { getExamNotice } from "@/api/user";
|
|
import { getExamNotice } from "@/api/user";
|
|
|
|
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
-const ct = ref(
|
|
|
|
- `
|
|
|
|
- <p>Peter’s job was to examine cars when they crossed the frontier to make sure that they were not smuggling anything into the country. Every evening he would see a factory worker coming ___1___the hill towards the frontier, ___2___a bike with a pile of goods of old straw on it. When the bike___3___ the frontier, Peter would stop the man and___4___him take the straw off and untie it. Then he would examine the straw very___5___ to see___6___he could find anything, after which he would look in all the man’s pockets___7___he let him tie the straw again. The man would then put it on his bike and go off down the hill with it. Although Peter was always___8___to find gold or other valuable things ___9___in the straw, he never found ___10___. He was sure the man was smuggling something, but he was not able to think out what it could be. </p>
|
|
|
|
- `
|
|
|
|
-);
|
|
|
|
|
|
+const ct = ref("");
|
|
function cutNbsp(ct) {
|
|
function cutNbsp(ct) {
|
|
if (typeof ct !== "string") {
|
|
if (typeof ct !== "string") {
|
|
return ct;
|
|
return ct;
|
|
}
|
|
}
|
|
return ct.replace(/ /g, " ");
|
|
return ct.replace(/ /g, " ");
|
|
}
|
|
}
|
|
-
|
|
|
|
//获取考试须知
|
|
//获取考试须知
|
|
function _getExamNotice() {
|
|
function _getExamNotice() {
|
|
getExamNotice({ applyTaskId: route.params?.applyId }).then((res) => {
|
|
getExamNotice({ applyTaskId: route.params?.applyId }).then((res) => {
|
|
- // ct.value = res?.content || "";
|
|
|
|
|
|
+ ct.value = res?.content || "";
|
|
});
|
|
});
|
|
}
|
|
}
|
|
_getExamNotice();
|
|
_getExamNotice();
|