Commit 1df78caa authored by 杨梦雪's avatar 杨梦雪

11

parent ec83e2ce
......@@ -283,7 +283,7 @@ export function request(config) {
return res
},
(error) => {
// console.log(error, 'err')
console.log(error, 'err')
// console.log(error.response.status, '5555')
Message.closeAll()
if (error.response.status === 404) {
......
export default [{
path: '/signUp/:type',
name: 'index-signUp',
component: () => import(/* webpackChunkName: "login" */ 'v/index/camp/SignUp.vue'),
component: () => import('v/index/camp/SignUp.vue'),
meta: {
title: '营地报名'
}
},
{
},
{
path: '/homework',
name: 'index-homework',
component: () => import(/* webpackChunkName: "reset" */ 'v/index/camp/Homework.vue'),
component: () => import('v/index/camp/Homework.vue'),
meta: {
title: '营地作业'
}
},
{
},
children: [{
path: '/refer',
name: 'refer',
component: () => import('v/index/camp/homework/refer.vue'),
meta: {
title: '提交作业'
},
},
]
},
{
path: '/certificate',
name: 'index-certificate',
component: () => import(/* webpackChunkName: "reset" */ 'v/index/camp/Certificate.vue'),
component: () => import('v/index/camp/Certificate.vue'),
meta: {
title: '营地证书'
}
}
}
]
......@@ -12,13 +12,13 @@
<p>请于2021年XX年XX月XX日 前往网站查看作业</p>
</div> -->
<div class="home_content">
<div >
<div class="each_content">
<div class="top flex">
<div class="homework_name flex">
<div>作业名称:第一次课程论文</div>
<span>未完成</span>
</div>
<div>查看作业</div>
<el-button size="mini" round @click="toRefer()">查看作业</el-button>
</div>
<div class="line"></div>
<div class="bottom">
......@@ -45,18 +45,18 @@ export default {
name: "homework",
data() {
return {
};
return {};
},
created() {
// this.$emit("getStatus", false, 1);
},
watch: {},
methods: {},
methods: {
toRefer() {
let code = this.$store.state.indexIdentity;
this.$router.push("/homework/refer?code=" + code);
},
},
};
</script>
......@@ -94,9 +94,16 @@ export default {
.home_content {
padding-bottom: 200px;
font-size: 14px;
.each_content {
padding: 25px 30px;
background-color: #eceaea;
.top {
justify-content: space-between;
}
.line {
border-bottom: 1px solid;
}
}
}
}
</style>
......
<template>
<div>
1111111
</div>
</template>
\ No newline at end of file
......@@ -46,7 +46,7 @@
</template>
<script>
/* eslint-disable */
import Cookie from "js-cookie";
import Header from "@/components/index/Header.vue";
import Footer from "@/components/index/Footer.vue";
import {
......@@ -63,9 +63,10 @@ export default {
created() {
this.info = this.$store.state.info;
let code =this.$store.state.indexIdentity
// console.log(code)
getCamInfo(code).then((res) => {
// console.log(res, '33333')
console.log(res.data.name, 'res.name')
// console.log(res.data.name, 'res.name')
document.title = res.data.name
return false;
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment