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

111

parent 87af904c
<template> <template>
<div id="app"> <div id="app">
<router-view/> <router-view />
</div> </div>
</template> </template>
<script> <script>
/* eslint-disable */
import {getCam} from "r/index/login"; import { getCam } from "r/index/login";
export default { export default {
name: "recruit", name: "recruit",
data() { data() {
return {}; return {};
}, },
created() { created() {
this.getCam(); this.getCam();
}, },
methods: { methods: {
getCam() { getCam() {
getCam({}).then((res) => { getCam({}).then((res) => {
console.log(res, "getCam"); console.log(res, "getCam");
let root = document.querySelector(":root"); let root = document.querySelector(":root");
root.style.setProperty("--color", res.data.system_color); root.style.setProperty("--color", res.data.system_color);
root.style.setProperty("--bk_pic", res.data.background_picture); //当前营地的背景图 root.style.setProperty("--bk_pic", res.data.background_picture); //当前营地的背景图
window.localStorage.setItem('bk_pic',res.data.background_picture) window.localStorage.setItem("bk_pic", res.data.background_picture);
//当前营地logo //当前营地logo
window.localStorage.setItem("system_logo", res.data.system_logo); window.localStorage.setItem("system_logo", res.data.system_logo);
window.localStorage.setItem( window.localStorage.setItem(
"doubt_code", "doubt_code",
res.data.fill_individual_Invitationcode res.data.fill_individual_Invitationcode
); //是否填写邀请码 ); //是否填写邀请码
window.localStorage.setItem( window.localStorage.setItem(
"doubt_info", "doubt_info",
res.data.fill_individual_information res.data.fill_individual_information
); //是否填写个人资料 ); //是否填写个人资料
window.localStorage.setItem( window.localStorage.setItem(
"doubt_check", "doubt_check",
res.data.audit_individual_information res.data.audit_individual_information
); //是否审核个人资料 ); //是否审核个人资料
}); });
},
}, },
}; },
};
</script> </script>
<style lang="scss"> <style lang="scss">
@import "a/scss/index"; @import "a/scss/index";
// @import "~a/css/base.css"; // @import "~a/css/base.css";
#app { #app {
font-family: Avenir, Helvetica, Arial, sans-serif; font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
position: relative; position: relative;
height: 100vh; height: 100vh;
background: #fff; background: #fff;
background: #f8f8f8; background: #f8f8f8;
} }
//滚动条的宽度 //滚动条的宽度
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 12px; width: 12px;
height: 12px; height: 12px;
} }
//滚动条的滑块 //滚动条的滑块
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background-color: #cccccc; background-color: #cccccc;
border-radius: 4px; border-radius: 4px;
} }
.el-dropdown-menu { .el-dropdown-menu {
.el-dropdown-menu__item { .el-dropdown-menu__item {
padding: 0 26px !important; padding: 0 30px !important;
&:hover { &:hover {
color: #ffffff !important; color: #ffffff !important;
background-color: var(--color) !important; background-color: var(--color) !important;
} }
i {
font-size: 19px;
} }
} }
}
.el-message-box {
width: 360px !important;
.el-message-box { .el-message-box__header {
width: 360px !important; .el-message-box__title {
color: red;
.el-message-box__header { }
.el-message-box__title { .el-message-box__close {
color: red; &:hover {
} color: var(--color);
.el-message-box__close{
&:hover{
color: var(--color);
}
} }
} }
}
.el-button{ .el-button {
&:nth-child(1):hover{ &:nth-child(1):hover {
color: #fff; color: #fff;
background-color: var(--color); background-color: var(--color);
border-color: var(--color); border-color: var(--color);
opacity: 0.6; opacity: 0.6;
} }
&:nth-child(2) { &:nth-child(2) {
color: #fff;
background-color: var(--color);
border-color: var(--color);
&:hover {
color: #fff; color: #fff;
background-color: var(--color); background-color: var(--color);
border-color: var(--color); border-color: var(--color);
&:hover { opacity: 0.9;
color: #fff;
background-color: var(--color);
border-color: var(--color);
opacity: 0.9;
}
} }
} }
} }
}
</style> </style>
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
font-family: PingFang SC; font-family: PingFang SC;
} }
.img { img {
margin: 0 15px 0 10px; margin: 0 15px 0 10px;
} }
} }
......
...@@ -12,7 +12,9 @@ ...@@ -12,7 +12,9 @@
<i class="el-icon-arrow-down el-icon--right"></i> <i class="el-icon-arrow-down el-icon--right"></i>
</div> </div>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item command="1">退出</el-dropdown-item> <el-dropdown-item command="1">
<i class="el-icon-switch-button"></i>退出</el-dropdown-item
>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
...@@ -63,10 +65,10 @@ export default { ...@@ -63,10 +65,10 @@ export default {
window.localStorage.removeItem("has_amount"); window.localStorage.removeItem("has_amount");
window.localStorage.removeItem("campsite_id"); window.localStorage.removeItem("campsite_id");
window.localStorage.removeItem("order_no"); window.localStorage.removeItem("order_no");
window.localStorage.removeItem("campindex_type");
this.$store.state.token = ""; this.$store.state.token = "";
// 使用编程式导航跳转到登录页面 // 使用编程式导航跳转到登录页面
this.$router.replace({ name: "recruit" }); this.$router.push({ name: "recruit" });
}, },
// 点击图片跳转到招生简章页面 // 点击图片跳转到招生简章页面
toRecruit() { toRecruit() {
...@@ -83,8 +85,9 @@ export default { ...@@ -83,8 +85,9 @@ export default {
window.localStorage.removeItem("has_amount"); window.localStorage.removeItem("has_amount");
window.localStorage.removeItem("campsite_id"); window.localStorage.removeItem("campsite_id");
window.localStorage.removeItem("order_no"); window.localStorage.removeItem("order_no");
window.localStorage.removeItem("campindex_type");
this.$store.state.token = ""; this.$store.state.token = "";
this.$router.replace({ name: "recruit" }); this.$router.push({ name: "recruit" });
}, },
}, },
}; };
......
...@@ -669,10 +669,12 @@ export default { ...@@ -669,10 +669,12 @@ export default {
return this.$message.info("chaochushuliamng"); return this.$message.info("chaochushuliamng");
} }
}, },
uploadSuccess(res, file) { uploadSuccess(res, file, fileList) {
// console.log(res, "111"); console.log(res, "res");
console.log(file, "file");
console.log(fileList, "fileList");
this.referForm.achievementPath = res; this.referForm.achievementPath = res;
this.fileList[0] = { this.fileList = {
name: file.name, name: file.name,
url: res, url: res,
}; };
...@@ -726,6 +728,9 @@ export default { ...@@ -726,6 +728,9 @@ export default {
savefile: res.data.config.savefile, savefile: res.data.config.savefile,
}; };
this.fileList.push(obj); this.fileList.push(obj);
// this.fileList = fileList
console.log(this.fileList, " this.fileList"); console.log(this.fileList, " this.fileList");
window.localStorage.setItem( window.localStorage.setItem(
"sign_up_file_" + window.localStorage.getItem("phone"), "sign_up_file_" + window.localStorage.getItem("phone"),
...@@ -931,6 +936,10 @@ export default { ...@@ -931,6 +936,10 @@ export default {
//去除upload组件过渡效果 css //去除upload组件过渡效果 css
.el-upload-list__item { .el-upload-list__item {
transition: none !important; transition: none !important;
.is-ready {
display: none;
}
div { div {
height: 100%; height: 100%;
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</div> </div>
<div class="btn"> <div class="btn">
<el-button >下载录取通知书</el-button> <el-button @click="handleDownload">下载录取通知书</el-button>
</div> </div>
</div> </div>
...@@ -23,27 +23,22 @@ ...@@ -23,27 +23,22 @@
<script> <script>
/* eslint-disable */ /* eslint-disable */
import {getCam} from "r/index/login"; import { getCam } from "r/index/login";
export default { export default {
name: "Sucess", name: "Sucess",
data() { data() {
return { return {};
pdf_address:'',
};
},
created() {
}, },
created() {},
methods: { methods: {
getCam() { handleDownload() {
getCam({}).then((res) => { getCam({}).then((res) => {
console.log(res, "getCam"); console.log(res, "getCam");
this.pdf_address=res.data.pdf_address window.location.href = res.data.pdf_address;
}); });
}, },
}, },
}; };
</script> </script>
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</div> </div>
<div class="camp_right" ref="rightBox"> <div class="camp_right" ref="rightBox">
<router-view @getType="getType" /> <router-view @getStatus="getStatus" />
</div> </div>
</div> </div>
</div> </div>
...@@ -72,17 +72,14 @@ export default { ...@@ -72,17 +72,14 @@ export default {
], ],
campindex_type: "", campindex_type: "",
index_type: "", index_status: "",
}; };
}, },
watch: { watch: {
type(val) { type(val) {
window.localStorage.setItem("campindex_type", val); window.localStorage.setItem("campindex_type", val);
}, },
getType(val) {
console.log(val, "index_type");
this.index_type = val;
},
}, },
created() { created() {
window.localStorage.setItem("campindex_type", 0); window.localStorage.setItem("campindex_type", 0);
...@@ -97,10 +94,16 @@ export default { ...@@ -97,10 +94,16 @@ export default {
window.removeEventListener("resize", this.onResize, true); window.removeEventListener("resize", this.onResize, true);
}, },
methods: { methods: {
getStatus(val) {
console.log(val, "index_type");
this.index_status = val;
this.ToSignUp()
},
ToSignUp(index) { ToSignUp(index) {
this.campindex_type = index; this.campindex_type = index;
if (this.campindex_type == 0) { if (this.campindex_type == 0) {
this.$router.push("/signUp/:index_type"); this.$router.push("/signUp/"+this.index_status);
// this.$router.replace({name: "index-signUp"}); // this.$router.replace({name: "index-signUp"});
} else if (this.campindex_type == 1) { } else if (this.campindex_type == 1) {
this.$router.push("/homework"); this.$router.push("/homework");
...@@ -169,61 +172,61 @@ export default { ...@@ -169,61 +172,61 @@ export default {
display: flex; display: flex;
flex-flow: row; flex-flow: row;
.camp_left {
.camp_left { position: relative;
position: relative; width: 22%;
width: 22%; max-width: 280px;
min-width: 200px;
height: 300px;
background-color: #ffffff;
border-radius: 8px;
padding: 20px 0;
margin-right: 25px;
.camp_left_box {
padding-inline-start: 0 !important;
}
&.is-fixed {
position: fixed;
top: 104px;
/*width: 14.4%;*/
max-width: 280px; max-width: 280px;
min-width: 200px; min-width: 216px;
height: 300px; }
background-color: #ffffff;
border-radius: 8px;
padding: 20px 0;
margin: 0;
&.is-fixed {
position: fixed;
top: 104px;
/*width: 14.4%;*/
max-width: 280px;
min-width: 216px;
}
&.is-absolute {
position: absolute;
bottom: 0;
width: 100%;
}
li { &.is-absolute {
position: relative; position: absolute;
padding: 0 23px; bottom: 0;
height: 44px; width: 100%;
line-height: 44px; }
margin: 10px 0; }
font-size: 15px;
list-style: none;
img { li {
vertical-align: middle; position: relative;
margin: -3px 8px 0 0; padding: 0 23px;
width: 20px; height: 44px;
} line-height: 44px;
margin: 10px 0;
font-size: 15px;
list-style: none;
img {
vertical-align: middle;
margin: -3px 8px 0 0;
width: 20px;
}
&.active, &.active,
&:hover { &:hover {
cursor: pointer; cursor: pointer;
background-color: #f8f8f8; background-color: #f8f8f8;
}
} }
} }
}
.camp_right { .camp_right {
flex: 1; flex: 1;
border-radius: 8px; border-radius: 8px;
background-color: #ffffff; background-color: #ffffff;
}
} }
} }
</style> </style>
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
} else if (this.status == 6) { } else if (this.status == 6) {
this.type = "success"; this.type = "success";
} }
this.$emit("getType",this.type) this.$emit("getStatus",this.type)
// console.log(this.status) // console.log(this.status)
//审核报名资料状态 //审核报名资料状态
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
"index-identity", "index-identity",
"c59086fdb37848e7a10765812d1da349" "c59086fdb37848e7a10765812d1da349"
); );
// this.getCam(); this.getCam();
}, },
methods: { methods: {
toLogin() { toLogin() {
......
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