Commit ee7a5caa authored by 孟飞's avatar 孟飞

11

parent 61ae9d3c
...@@ -24,10 +24,12 @@ export default { ...@@ -24,10 +24,12 @@ export default {
created() {}, created() {},
methods: { methods: {
toLogin() { toLogin() {
this.$router.replace({ name: "index-login" }); let code = localStorage.getItem("index-identity");
this.$router.push("/login?code="+code);
}, },
toRegister() { toRegister() {
this.$router.replace({ name: "index-register" }); let code = localStorage.getItem("index-identity");
this.$router.push("/register?code="+code);
}, },
onMouserEnter(val){ onMouserEnter(val){
this.isHover = val; this.isHover = val;
......
...@@ -235,7 +235,8 @@ export default { ...@@ -235,7 +235,8 @@ export default {
this.$emit("closeCFSUDialog", this.dialogVisible, true); this.$emit("closeCFSUDialog", this.dialogVisible, true);
// status=6,跳转到报名成功页面 // status=6,跳转到报名成功页面
// this.$emit("getstatus", res.data.status.status); // this.$emit("getstatus", res.data.status.status);
this.$router.push("/signUp/success"); let code = localStorage.getItem("index-identity");
this.$router.push("/signUp/success?code="+code);
} else { } else {
//收到服务器信息,心跳重置 //收到服务器信息,心跳重置
this.reset(); this.reset();
......
...@@ -68,7 +68,9 @@ export default { ...@@ -68,7 +68,9 @@ export default {
window.localStorage.removeItem("campindex_type"); window.localStorage.removeItem("campindex_type");
// this.$store.state.token = ""; // this.$store.state.token = "";
// 使用编程式导航跳转到登录页面 // 使用编程式导航跳转到登录页面
this.$router.push({ name: "recruit" }); // this.$router.push({ name: "recruit" });
let code = localStorage.getItem("index-identity");
this.$router.replace("/"+code);
}, },
// 点击图片跳转到招生简章页面 // 点击图片跳转到招生简章页面
toRecruit() { toRecruit() {
...@@ -87,7 +89,8 @@ export default { ...@@ -87,7 +89,8 @@ export default {
// window.localStorage.removeItem("order_no"); // window.localStorage.removeItem("order_no");
// window.localStorage.removeItem("campindex_type"); // window.localStorage.removeItem("campindex_type");
// this.$store.state.token = ""; // this.$store.state.token = "";
this.$router.replace({ name: "recruit" }); let code = localStorage.getItem("index-identity");
this.$router.replace("/"+code);
}, },
}, },
}; };
......
...@@ -52,7 +52,8 @@ export default { ...@@ -52,7 +52,8 @@ export default {
if (res.data.code !== 200) return this.$message.error(res.data.message); if (res.data.code !== 200) return this.$message.error(res.data.message);
this.$emit("getstatus", res.data.status); this.$emit("getstatus", res.data.status);
this.$message.success(res.data.message); this.$message.success(res.data.message);
this.$router.push("/signUp/invitation"); let code = localStorage.getItem("index-identity");
this.$router.push("/signUp/invitation?code="+code);
}); });
}, },
getCams() { getCams() {
......
...@@ -964,7 +964,8 @@ export default { ...@@ -964,7 +964,8 @@ export default {
// console.log(3333); // console.log(3333);
this.$emit("getstatus", res.data.status); this.$emit("getstatus", res.data.status);
this.$message.success(res.data.message); this.$message.success(res.data.message);
this.$router.push("/signUp/check"); let code = localStorage.getItem("index-identity");
this.$router.push("/signUp/check?code="+code);
this.referForm = res.data.data; this.referForm = res.data.data;
}); });
}); });
......
...@@ -49,7 +49,7 @@ export default { ...@@ -49,7 +49,7 @@ export default {
}, },
data() { data() {
return { return {
isPosition: 0, // 左侧box是否浮动 isPosition: 0, // 左侧box是否浮动
pageYOffset: 0, // 左侧box浮动时,滚动的高度 pageYOffset: 0, // 左侧box浮动时,滚动的高度
scorllHeight: 0, // 最大滚动高度 scorllHeight: 0, // 最大滚动高度
...@@ -103,13 +103,14 @@ export default { ...@@ -103,13 +103,14 @@ export default {
this.ToSignUp(); this.ToSignUp();
}, },
ToSignUp(index) { ToSignUp(index) {
let code = localStorage.getItem("index-identity");
this.campindex_type = index; this.campindex_type = index;
if (this.campindex_type == 0) { if (this.campindex_type == 0) {
this.$router.push("/signUp/" + this.index_status); this.$router.push("/signUp/" + this.index_status+"?code="+code);
} else if (this.campindex_type == 1) { } else if (this.campindex_type == 1) {
this.$router.push("/homework"); this.$router.push("/homework?code="+code);
} else if (this.campindex_type == 2) { } else if (this.campindex_type == 2) {
this.$router.push("/certificate"); this.$router.push("/certificate?code="+code);
} }
}, },
onResize() { onResize() {
......
...@@ -134,12 +134,14 @@ export default { ...@@ -134,12 +134,14 @@ export default {
methods: { methods: {
// 忘记账号/密码 // 忘记账号/密码
forgetPwd() { forgetPwd() {
this.$router.replace({ name: "index-reset" }); let code = localStorage.getItem("index-identity");
this.$router.push("/reset?code="+code);
}, },
// 去注册 // 去注册
register() { register() {
this.$router.replace({ name: "index-register" }); let code = localStorage.getItem("index-identity");
this.$router.push("/register?code="+code);
}, },
// 改变密码显示状态 // 改变密码显示状态
changePwdStatus() { changePwdStatus() {
...@@ -169,8 +171,8 @@ export default { ...@@ -169,8 +171,8 @@ export default {
res.data.cam.system_color res.data.cam.system_color
); );
// 跳转到报名 // 跳转到报名
this.$router.push({ path: "/signUp/examInfo" }); let code = localStorage.getItem("index-identity");
this.$router.push("/signUp/examInfo?code="+code);
}); });
}); });
}, },
......
...@@ -188,7 +188,8 @@ export default { ...@@ -188,7 +188,8 @@ export default {
methods: { methods: {
// 去注册 // 去注册
toLogin() { toLogin() {
this.$router.replace({ name: "index-login" }); let code = localStorage.getItem("index-identity");
this.$router.push("/login?code="+code);
}, },
// 改变密码显示状态 // 改变密码显示状态
changePwdStatus() { changePwdStatus() {
...@@ -204,7 +205,7 @@ export default { ...@@ -204,7 +205,7 @@ export default {
this.show = false; this.show = false;
this.timer = setInterval(() => { this.timer = setInterval(() => {
if (this.count > 0 && this.count <= timeLag) { if (this.count > 0 && this.count <= timeLag) {
this.count--; this.count--;
} else { } else {
this.show = true; this.show = true;
...@@ -269,7 +270,9 @@ export default { ...@@ -269,7 +270,9 @@ export default {
); );
// 跳转到报名 // 跳转到报名
this.$router.push({ path: "/signUp/examInfo" }); let code = localStorage.getItem("index-identity");
this.$router.push("/signUp/examInfo?code="+code);
}); });
}); });
}, },
......
...@@ -189,7 +189,8 @@ export default { ...@@ -189,7 +189,8 @@ export default {
methods: { methods: {
// 去注册 // 去注册
toLogin() { toLogin() {
this.$router.replace({ name: "index-login" }); let code = localStorage.getItem("index-identity");
this.$router.push("/login?code="+code);
}, },
// 改变密码显示状态 // 改变密码显示状态
changePwdStatus() { changePwdStatus() {
...@@ -259,7 +260,8 @@ export default { ...@@ -259,7 +260,8 @@ export default {
this.$message.success(res.data.message); this.$message.success(res.data.message);
// token存储 // token存储
window.localStorage.setItem("index-token", res.token); window.localStorage.setItem("index-token", res.token);
this.$router.replace({ name: "index-login" }); let code = localStorage.getItem("index-identity");
this.$router.push("/login?code="+code);
}); });
}); });
}, },
......
...@@ -69,7 +69,8 @@ export default { ...@@ -69,7 +69,8 @@ export default {
}, },
methods: { methods: {
toLogin() { toLogin() {
this.$router.replace({ name: "index-login" }); let code = localStorage.getItem("index-identity");
this.$router.push("/login?code="+code);
}, },
getCams() { getCams() {
getCam(false).then((res) => { getCam(false).then((res) => {
......
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