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

111

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