Commit a3ca3264 authored by 杨梦雪's avatar 杨梦雪

11

parent 2b4c7f6d
.flex{
display: flex;
}
.referHome {
padding: 20px ;
.lf {
float: left;
}
.rt {
float: right;
}
::v-deep .readForm {
flex: 1;
.cont_title {
position: relative;
height: 38px;
line-height: 38px;
font-size: 16px;
font-family: PingFang SC;
font-weight: 500;
color: #12141c;
padding-left: 10px;
margin-top: 10px;
span {
margin-right: 15px;
}
.line {
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 3px;
height: 14px;
background-color: #12141c;
opacity: 0.4;
}
}
.cont_title_2 {
height: 28px;
line-height: 28px;
font-size: 14px;
font-family: PingFang SC;
font-weight: 500;
color: #12141c;
padding: 0 10px;
}
.cont_info {
line-height: 20px;
font-size: 12px;
font-family: PingFang SC;
font-weight: 500;
color: #999999;
padding: 0 10px 10px 10px;
}
.fj_info {
line-height: 24px;
font-size: 12px;
font-family: PingFang SC;
font-weight: 500;
color: #999999;
}
.el-form-item {
margin-bottom: 15px;
padding: 0 10px;
.el-form-item__label {
height: 32px;
line-height: 32px;
font-size: 12px;
font-family: PingFang SC;
font-weight: 500;
color: #12141c;
}
.el-form-item__content {
.el-input,
.el-input-number {
width: 100%;
height: 36px;
.el-input__inner {
text-align: left;
height: 36px;
border-radius: 4px;
border: 1px solid #e1e3e6;
background-color: #ffffff;
color: #656872;
&:hover {
border-color: #4d75f3;
}
&:focus {
border-color: #4d75f3;
}
}
}
.el-textarea__inner {
min-height: 100px !important;
}
}
&.btn {
margin-top: 50px;
.el-form-item__content {
text-align: center;
}
}
}
.upload_box {
.img_list {
position: relative;
float: left;
width: 160px;
height: 120px;
text-align: center;
background: transparent;
border-radius: 4px;
border: 2px dashed #e1e3e6;
margin: 0 8px 8px 0;
padding: 5px;
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
> div {
width: 100%;
.el-image {
width: 30px;
height: 30px;
display: block;
margin: 0 auto;
img {
width: auto;
height: auto;
max-width: 100% !important;
max-height: 100% !important;
}
}
.item_name {
font-size: 12px;
color: #999999;
line-height: 16px;
word-wrap: break-word;
margin: 5px 0 10px;
}
.item_remove {
width: 40px;
font-size: 12px;
color: #999999;
font-weight: bold;
line-height: 16px;
margin: 0 auto;
&:hover {
cursor: pointer;
color: red;
}
}
}
}
.el-upload {
width: 160px !important;
height: 120px !important;
line-height: 120px !important;
background: transparent;
border-radius: 4px;
border: 2px dashed #e1e3e6;
text-align: center !important;
}
}
}
}
\ No newline at end of file
......@@ -552,16 +552,9 @@ export default {
bdDay: "", //选择的生日日期
//入学年份(初中高中)
gradeArrs: [
"初一",
"初二",
"初三",
"高一",
"高二",
"高三",
"大一",
"大二",
"大三",
"大四",
"初中",
"高中",
"大学",
],
//选择年级
start_grade: "",
......
//bus.js
import Vue from 'vue'
export default new Vue()
......@@ -158,8 +158,8 @@ function checkCam(code, cb) {
}
router.beforeEach((to, from, next) => {
console.log(to, 'to')
console.log(from, 'from')
// console.log(to, 'to')
// console.log(from, 'from')
let
toLogin = "/login",
toRegister = "/register",
......
......@@ -14,8 +14,9 @@ let state = {
data: [],
token: '',
indexIdentity:"",
// showDialog: false,
// dialogType: 0,
work_context:"",
enclosure_url:"",
info:{},
isLogin: localStorage.getItem("isLogin") || "0", // 只有1为已登录
};
......
......@@ -82,7 +82,7 @@ export default {
url: svg2,
},
],
campindex_type: "",
campindex_type: 0,
index_status: "",
};
},
......
<template>
<div class="camp-index">
weweaaaa
</div>
<div class="camp-index">aaaa</div>
</template>
\ No newline at end of file
This diff is collapsed.
......@@ -12,26 +12,23 @@
<p>请于2021年XX年XX月XX日 前往网站查看作业</p>
</div> -->
<div class="home_content">
<div class="each_content">
<div class="each_content" v-for="item in homeworkList" :key="item.id">
<div class="top flex">
<div class="homework_name flex">
<div>作业名称:第一次课程论文</div>
<div>作业名称:{{ item.work_name }}</div>
<span>未完成</span>
</div>
<el-button size="mini" round @click="toRefer()">查看作业</el-button>
<el-button size="mini" round @click="toRefer(item)"
>查看作业</el-button
>
</div>
<div class="line"></div>
<div class="bottom">
<p>
简介:Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus
accumsan et viverra justo commodo. Proin sodales pulvinar sic
tempor. Sociis natoque penatibus et magnis dis parturient montes,
nascetur ridiculus mus. Nam fermentum。
</p>
<div v-html="item.work_context">></div>
<div class="time flex">
<div>发布时间:2021-8-21 19:00</div>
<div>截止日期:2021-8-21 19:00</div>
<div>发布时间:{{ item.create_time }}</div>
<div>截止日期:{{ item.end_time }}</div>
</div>
</div>
</div>
......@@ -44,22 +41,29 @@
<script>
/* eslint-disable */
import { getTeacherWork } from "r/index/homework";
import Bus from "config/bus.js";
export default {
name: "homework",
data() {
return {};
return {
homeworkList: {},
};
},
created() {
this.getTeacherWork();
},
watch: {},
methods: {
toRefer() {
toRefer(item) {
// console.log(val,'val')
let code = this.$store.state.indexIdentity;
this.$router.push("/homework/refer?code=" + code);
this.$emit("torefer", 3);
window.localStorage.setItem("work_context" + code, item.work_context);
window.localStorage.setItem("enclosure_url" + code, item.enclosure_url);
// Bus.$emit("work_context", item.work_context);
// Bus.$emit("enclosure_url", item.enclosure_url);
},
getTeacherWork() {
getTeacherWork({ page: 1 }).then((res) => {
......@@ -67,6 +71,7 @@ export default {
if (res.data.code != 200) {
return this.$message.error(res.data.message);
}
this.homeworkList = res.data.data;
this.$message.success(res.data.message);
});
},
......
......@@ -101,12 +101,7 @@ export default {
homework_val: "",
};
},
watch: {
// type(val) {
// console.log(val,'val')
// window.localStorage.setItem("campindex_type", val);
// },
},
watch: {},
created() {
this.getStatus();
this.torefer();
......@@ -137,10 +132,10 @@ export default {
this.$router.push("/signUp/" + this.index_status + "?code=" + code);
this.homework_val == "";
} else if (this.campindex_type == 1) {
console.log(this.$route)
this.$router.push("/homework?code=" + code);
} else if (this.campindex_type == 2) {
this.$router.push("/certificate?code=" + code);
}
},
onResize() {
......
This diff is collapsed.
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