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

11

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