Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
campSite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨梦雪
campSite
Commits
ee7a5caa
Commit
ee7a5caa
authored
Nov 03, 2021
by
孟飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
61ae9d3c
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
38 additions
and
21 deletions
+38
-21
src/components/index/Header.vue
src/components/index/Header.vue
+4
-2
src/components/index/SignUp/ConfirmSignUp.vue
src/components/index/SignUp/ConfirmSignUp.vue
+2
-1
src/components/index/SignUp/Header.vue
src/components/index/SignUp/Header.vue
+5
-2
src/components/index/SignUp/confirm.vue
src/components/index/SignUp/confirm.vue
+2
-1
src/components/index/SignUp/referInfo.vue
src/components/index/SignUp/referInfo.vue
+2
-1
src/views/index/camp/Index.vue
src/views/index/camp/Index.vue
+5
-4
src/views/index/login/Login.vue
src/views/index/login/Login.vue
+6
-4
src/views/index/login/Register.vue
src/views/index/login/Register.vue
+6
-3
src/views/index/login/Reset.vue
src/views/index/login/Reset.vue
+4
-2
src/views/index/recruit/Index.vue
src/views/index/recruit/Index.vue
+2
-1
No files found.
src/components/index/Header.vue
View file @
ee7a5caa
...
...
@@ -24,10 +24,12 @@ export default {
created
()
{},
methods
:
{
toLogin
()
{
this
.
$router
.
replace
({
name
:
"
index-login
"
});
let
code
=
localStorage
.
getItem
(
"
index-identity
"
);
this
.
$router
.
push
(
"
/login?code=
"
+
code
);
},
toRegister
()
{
this
.
$router
.
replace
({
name
:
"
index-register
"
});
let
code
=
localStorage
.
getItem
(
"
index-identity
"
);
this
.
$router
.
push
(
"
/register?code=
"
+
code
);
},
onMouserEnter
(
val
){
this
.
isHover
=
val
;
...
...
src/components/index/SignUp/ConfirmSignUp.vue
View file @
ee7a5caa
...
...
@@ -235,7 +235,8 @@ export default {
this
.
$emit
(
"
closeCFSUDialog
"
,
this
.
dialogVisible
,
true
);
// status=6,跳转到报名成功页面
// 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
{
//收到服务器信息,心跳重置
this
.
reset
();
...
...
src/components/index/SignUp/Header.vue
View file @
ee7a5caa
...
...
@@ -68,7 +68,9 @@ export default {
window
.
localStorage
.
removeItem
(
"
campindex_type
"
);
// 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
()
{
...
...
@@ -87,7 +89,8 @@ export default {
// window.localStorage.removeItem("order_no");
// window.localStorage.removeItem("campindex_type");
// this.$store.state.token = "";
this
.
$router
.
replace
({
name
:
"
recruit
"
});
let
code
=
localStorage
.
getItem
(
"
index-identity
"
);
this
.
$router
.
replace
(
"
/
"
+
code
);
},
},
};
...
...
src/components/index/SignUp/confirm.vue
View file @
ee7a5caa
...
...
@@ -52,7 +52,8 @@ export default {
if
(
res
.
data
.
code
!==
200
)
return
this
.
$message
.
error
(
res
.
data
.
message
);
this
.
$emit
(
"
getstatus
"
,
res
.
data
.
status
);
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
()
{
...
...
src/components/index/SignUp/referInfo.vue
View file @
ee7a5caa
...
...
@@ -964,7 +964,8 @@ export default {
// console.log(3333);
this
.
$emit
(
"
getstatus
"
,
res
.
data
.
status
);
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
;
});
});
...
...
src/views/index/camp/Index.vue
View file @
ee7a5caa
...
...
@@ -49,7 +49,7 @@ export default {
},
data
()
{
return
{
isPosition
:
0
,
// 左侧box是否浮动
pageYOffset
:
0
,
// 左侧box浮动时,滚动的高度
scorllHeight
:
0
,
// 最大滚动高度
...
...
@@ -103,13 +103,14 @@ export default {
this
.
ToSignUp
();
},
ToSignUp
(
index
)
{
let
code
=
localStorage
.
getItem
(
"
index-identity
"
);
this
.
campindex_type
=
index
;
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
)
{
this
.
$router
.
push
(
"
/homework
"
);
this
.
$router
.
push
(
"
/homework
?code=
"
+
code
);
}
else
if
(
this
.
campindex_type
==
2
)
{
this
.
$router
.
push
(
"
/certificate
"
);
this
.
$router
.
push
(
"
/certificate
?code=
"
+
code
);
}
},
onResize
()
{
...
...
src/views/index/login/Login.vue
View file @
ee7a5caa
...
...
@@ -134,12 +134,14 @@ export default {
methods
:
{
// 忘记账号/密码
forgetPwd
()
{
this
.
$router
.
replace
({
name
:
"
index-reset
"
});
let
code
=
localStorage
.
getItem
(
"
index-identity
"
);
this
.
$router
.
push
(
"
/reset?code=
"
+
code
);
},
// 去注册
register
()
{
this
.
$router
.
replace
({
name
:
"
index-register
"
});
let
code
=
localStorage
.
getItem
(
"
index-identity
"
);
this
.
$router
.
push
(
"
/register?code=
"
+
code
);
},
// 改变密码显示状态
changePwdStatus
()
{
...
...
@@ -169,8 +171,8 @@ export default {
res
.
data
.
cam
.
system_color
);
// 跳转到报名
this
.
$router
.
push
({
path
:
"
/signUp/examInfo
"
}
);
let
code
=
localStorage
.
getItem
(
"
index-identity
"
);
this
.
$router
.
push
(
"
/signUp/examInfo?code=
"
+
code
);
});
});
},
...
...
src/views/index/login/Register.vue
View file @
ee7a5caa
...
...
@@ -188,7 +188,8 @@ export default {
methods
:
{
// 去注册
toLogin
()
{
this
.
$router
.
replace
({
name
:
"
index-login
"
});
let
code
=
localStorage
.
getItem
(
"
index-identity
"
);
this
.
$router
.
push
(
"
/login?code=
"
+
code
);
},
// 改变密码显示状态
changePwdStatus
()
{
...
...
@@ -204,7 +205,7 @@ export default {
this
.
show
=
false
;
this
.
timer
=
setInterval
(()
=>
{
if
(
this
.
count
>
0
&&
this
.
count
<=
timeLag
)
{
this
.
count
--
;
}
else
{
this
.
show
=
true
;
...
...
@@ -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
);
});
});
},
...
...
src/views/index/login/Reset.vue
View file @
ee7a5caa
...
...
@@ -189,7 +189,8 @@ export default {
methods
:
{
// 去注册
toLogin
()
{
this
.
$router
.
replace
({
name
:
"
index-login
"
});
let
code
=
localStorage
.
getItem
(
"
index-identity
"
);
this
.
$router
.
push
(
"
/login?code=
"
+
code
);
},
// 改变密码显示状态
changePwdStatus
()
{
...
...
@@ -259,7 +260,8 @@ export default {
this
.
$message
.
success
(
res
.
data
.
message
);
// 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
);
});
});
},
...
...
src/views/index/recruit/Index.vue
View file @
ee7a5caa
...
...
@@ -69,7 +69,8 @@ export default {
},
methods
:
{
toLogin
()
{
this
.
$router
.
replace
({
name
:
"
index-login
"
});
let
code
=
localStorage
.
getItem
(
"
index-identity
"
);
this
.
$router
.
push
(
"
/login?code=
"
+
code
);
},
getCams
()
{
getCam
(
false
).
then
((
res
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment