|
@@ -48,16 +48,55 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <div class="link-box flex-h-between">
|
|
|
|
+ <van-cell-group inset class="cell-group">
|
|
|
|
+ <van-cell
|
|
|
|
+ is-link
|
|
|
|
+ @click="
|
|
|
|
+ router.push({ name: 'ExamNotice', params: { applyId: applyId } })
|
|
|
|
+ "
|
|
|
|
+ >
|
|
|
|
+ <template #title>
|
|
|
|
+ <img
|
|
|
|
+ src="../assets/imgs/ksxz.png"
|
|
|
|
+ style="height: 20px; margin-top: -4px; margin-right: 6px"
|
|
|
|
+ />
|
|
|
|
+ <span class="custom-title">考试须知</span>
|
|
|
|
+ </template>
|
|
|
|
+ </van-cell>
|
|
|
|
+ </van-cell-group>
|
|
|
|
+ <van-cell-group inset class="cell-group ml-16" v-if="info.examRoomId">
|
|
|
|
+ <van-cell
|
|
|
|
+ is-link
|
|
|
|
+ @click="
|
|
|
|
+ router.push({
|
|
|
|
+ name: 'ExamGuidance',
|
|
|
|
+ params: { examRoomId: info.examRoomId },
|
|
|
|
+ })
|
|
|
|
+ "
|
|
|
|
+ >
|
|
|
|
+ <template #title>
|
|
|
|
+ <img
|
|
|
|
+ src="../assets/imgs/kcyd.png"
|
|
|
|
+ style="height: 20px; margin-top: -4px; margin-right: 6px"
|
|
|
|
+ />
|
|
|
|
+ <span class="custom-title">考场引导</span>
|
|
|
|
+ </template>
|
|
|
|
+ </van-cell>
|
|
|
|
+ </van-cell-group>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script name="AdmissionCard" setup>
|
|
<script name="AdmissionCard" setup>
|
|
import { ref } from "vue";
|
|
import { ref } from "vue";
|
|
-import { useRoute } from "vue-router";
|
|
|
|
-import { getAdmissionInfo, getExamNotice, getRoomGuide } from "@/api/user";
|
|
|
|
|
|
+import { useRoute, useRouter } from "vue-router";
|
|
|
|
+import { getAdmissionInfo } from "@/api/user";
|
|
import { useAppStore } from "@/store";
|
|
import { useAppStore } from "@/store";
|
|
|
|
|
|
const appStore = useAppStore();
|
|
const appStore = useAppStore();
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
|
|
+const router = useRouter();
|
|
const applyId = route.params.applyId;
|
|
const applyId = route.params.applyId;
|
|
const info = ref({
|
|
const info = ref({
|
|
applyId: "",
|
|
applyId: "",
|
|
@@ -89,15 +128,6 @@ function _getAdmissionInfo() {
|
|
}
|
|
}
|
|
_getAdmissionInfo();
|
|
_getAdmissionInfo();
|
|
|
|
|
|
-//获取考试须知
|
|
|
|
-function _getExamNotice() {
|
|
|
|
- getExamNotice({ applyTaskId: applyId }).then((res) => {});
|
|
|
|
-}
|
|
|
|
-//获取考场引导
|
|
|
|
-function _getRoomGuide() {
|
|
|
|
- getRoomGuide({ examRoomId: info.value.examRoomId }).then((res) => {});
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
function getWeek(time) {
|
|
function getWeek(time) {
|
|
if (!time) return "";
|
|
if (!time) return "";
|
|
const arr = ["日", "一", "二", "三", "四", "五", "六"];
|
|
const arr = ["日", "一", "二", "三", "四", "五", "六"];
|
|
@@ -106,6 +136,12 @@ function getWeek(time) {
|
|
</script>
|
|
</script>
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
.admission-card {
|
|
.admission-card {
|
|
|
|
+ .link-box {
|
|
|
|
+ margin-top: 16px;
|
|
|
|
+ .cell-group {
|
|
|
|
+ width: calc(50% - 10px);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.card {
|
|
.card {
|
|
border-radius: 8px;
|
|
border-radius: 8px;
|
|
background-color: #fff;
|
|
background-color: #fff;
|