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
d0f3c6d5
Commit
d0f3c6d5
authored
Dec 04, 2023
by
wuwangwolihui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营地2.0-路由添加公共query
parent
248ce87b
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
75 additions
and
27 deletions
+75
-27
src/components/base/myInfo/campList.vue
src/components/base/myInfo/campList.vue
+7
-1
src/components/index/Header.vue
src/components/index/Header.vue
+7
-1
src/components/index/Homework/Header.vue
src/components/index/Homework/Header.vue
+12
-2
src/views/base/active/ActiveInfo.vue
src/views/base/active/ActiveInfo.vue
+19
-3
src/views/base/home/Home.vue
src/views/base/home/Home.vue
+0
-1
src/views/base/login/Login.vue
src/views/base/login/Login.vue
+18
-3
src/views/base/login/Register.vue
src/views/base/login/Register.vue
+6
-2
src/views/base/login/Reset.vue
src/views/base/login/Reset.vue
+6
-1
src/views/index/Info/Index.vue
src/views/index/Info/Index.vue
+0
-10
src/views/index/Info/personalInfo.vue
src/views/index/Info/personalInfo.vue
+0
-3
No files found.
src/components/base/myInfo/campList.vue
View file @
d0f3c6d5
...
@@ -65,7 +65,13 @@
...
@@ -65,7 +65,13 @@
return
false
;
return
false
;
}
}
this
.
$store
.
commit
(
'
setIndexIdentity
'
,
code
)
this
.
$store
.
commit
(
'
setIndexIdentity
'
,
code
)
this
.
$router
.
push
(
'
/signUp/undefined?code=
'
+
code
)
this
.
$router
.
push
({
path
:
"
/signUp/undefined
"
,
query
:
{
...
this
.
$store
.
state
.
query
,
code
:
code
}
});
}
}
},
},
watch
:
{
watch
:
{
...
...
src/components/index/Header.vue
View file @
d0f3c6d5
...
@@ -62,7 +62,13 @@
...
@@ -62,7 +62,13 @@
methods
:
{
methods
:
{
toLogin
()
{
toLogin
()
{
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
$router
.
push
(
"
/login?code=
"
+
code
);
this
.
$router
.
replace
({
path
:
"
/login
"
,
query
:
{
...
this
.
$store
.
state
.
query
,
code
:
code
}
});
},
},
handleCommand
(
command
)
{
handleCommand
(
command
)
{
if
(
command
==
2
)
{
if
(
command
==
2
)
{
...
...
src/components/index/Homework/Header.vue
View file @
d0f3c6d5
...
@@ -56,7 +56,12 @@ export default {
...
@@ -56,7 +56,12 @@ export default {
// 清除本地缓存除了大学logo
// 清除本地缓存除了大学logo
window
.
localStorage
.
clear
();
window
.
localStorage
.
clear
();
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
await
this
.
$router
.
replace
(
"
/
"
+
code
);
await
this
.
$router
.
replace
({
path
:
"
/
"
+
code
,
query
:
{
...
this
.
$store
.
state
.
query
,
}
});
this
.
$message
.
success
(
"
退出成功
"
);
this
.
$message
.
success
(
"
退出成功
"
);
await
logout
({});
await
logout
({});
},
},
...
@@ -64,7 +69,12 @@ export default {
...
@@ -64,7 +69,12 @@ export default {
toRecruit
()
{
toRecruit
()
{
// 清除本地缓存除了大学logo
// 清除本地缓存除了大学logo
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
$router
.
replace
(
"
/
"
+
code
);
this
.
$router
.
replace
({
path
:
"
/
"
+
code
,
query
:
{
...
this
.
$store
.
state
.
query
,
}
});
},
},
},
},
};
};
...
...
src/views/base/active/ActiveInfo.vue
View file @
d0f3c6d5
...
@@ -250,14 +250,30 @@
...
@@ -250,14 +250,30 @@
let
allToken
=
window
.
localStorage
.
getItem
(
'
index-token-all
'
);
let
allToken
=
window
.
localStorage
.
getItem
(
'
index-token-all
'
);
if
(
allToken
)
{
if
(
allToken
)
{
this
.
$store
.
commit
(
'
setIndexIdentity
'
,
this
.
activeInfo
.
identity
)
this
.
$store
.
commit
(
'
setIndexIdentity
'
,
this
.
activeInfo
.
identity
)
this
.
$router
.
push
(
'
/signUp/undefined?code=
'
+
this
.
activeInfo
.
identity
);
this
.
$router
.
push
({
path
:
'
/signUp/undefined
'
,
query
:
{
...
this
.
$store
.
state
.
query
,
code
:
this
.
activeInfo
.
identity
}
});
}
else
{
}
else
{
this
.
$router
.
push
(
'
/baseLogin
'
);
this
.
$router
.
push
({
path
:
'
/baseLogin
'
,
query
:
{
...
this
.
$store
.
state
.
query
,
}
});
}
}
},
},
// 去活动详情页面(当前活动/往期活动回顾区域)
// 去活动详情页面(当前活动/往期活动回顾区域)
toActiveInfo
(
id
)
{
toActiveInfo
(
id
)
{
this
.
$router
.
push
(
'
/active/
'
+
id
);
this
.
$router
.
push
({
path
:
'
/active/
'
+
id
,
query
:
{
...
this
.
$store
.
state
.
query
,
}
});
},
},
// 锚点跳转方法
// 锚点跳转方法
anchorSkip
(
id
)
{
anchorSkip
(
id
)
{
...
...
src/views/base/home/Home.vue
View file @
d0f3c6d5
...
@@ -59,7 +59,6 @@
...
@@ -59,7 +59,6 @@
</div>
</div>
<div
class=
"active-list-item-cont-txt3"
>
报名截止时间:
{{
formatYMDChina
(
item
.
bmEndTime
)
}}
</div>
<div
class=
"active-list-item-cont-txt3"
>
报名截止时间:
{{
formatYMDChina
(
item
.
bmEndTime
)
}}
</div>
</div>
</div>
<!-- $router.push('/active/'+item.id)-->
<div
@
click=
"toActive(item.id)"
class=
"active-list-item-bottom"
>
<div
@
click=
"toActive(item.id)"
class=
"active-list-item-bottom"
>
<div>
查看详情
</div>
<div>
查看详情
</div>
<i
class=
"el-icon-right"
></i>
<i
class=
"el-icon-right"
></i>
...
...
src/views/base/login/Login.vue
View file @
d0f3c6d5
...
@@ -257,11 +257,21 @@
...
@@ -257,11 +257,21 @@
},
},
// 忘记账号/密码
// 忘记账号/密码
forgetPwd
()
{
forgetPwd
()
{
this
.
$router
.
push
(
"
/baseReset
"
);
this
.
$router
.
push
({
path
:
'
/baseReset
'
,
query
:
{
...
this
.
$store
.
state
.
query
,
}
});
},
},
// 去注册
// 去注册
register
()
{
register
()
{
this
.
$router
.
push
(
"
/baseRegister
"
);
this
.
$router
.
push
({
path
:
'
/baseRegister
'
,
query
:
{
...
this
.
$store
.
state
.
query
,
}
});
},
},
// 改变密码显示状态
// 改变密码显示状态
changePwdStatus
()
{
changePwdStatus
()
{
...
@@ -305,7 +315,12 @@
...
@@ -305,7 +315,12 @@
window
.
localStorage
.
setItem
(
"
index-phone-all
"
,
this
.
loginForm
.
phone
);
window
.
localStorage
.
setItem
(
"
index-phone-all
"
,
this
.
loginForm
.
phone
);
window
.
localStorage
.
setItem
(
"
index-email-all
"
,
res
.
data
.
email
);
window
.
localStorage
.
setItem
(
"
index-email-all
"
,
res
.
data
.
email
);
let
previousPath
=
this
.
$store
.
state
.
previousPath
;
let
previousPath
=
this
.
$store
.
state
.
previousPath
;
this
.
$router
.
push
(
previousPath
);
this
.
$router
.
push
({
path
:
previousPath
,
query
:
{
...
this
.
$store
.
state
.
query
,
}
});
this
.
$store
.
commit
(
'
setPreviousPath
'
,
'
/
'
);
this
.
$store
.
commit
(
'
setPreviousPath
'
,
'
/
'
);
});
});
});
});
...
...
src/views/base/login/Register.vue
View file @
d0f3c6d5
...
@@ -254,7 +254,6 @@
...
@@ -254,7 +254,6 @@
intervalHandle
(
startTime
,
endTime
)
{
intervalHandle
(
startTime
,
endTime
)
{
// 时间差
// 时间差
const
timeLag
=
intervalTime
(
startTime
,
endTime
);
const
timeLag
=
intervalTime
(
startTime
,
endTime
);
console
.
log
(
timeLag
);
if
(
!
this
.
timer
)
{
if
(
!
this
.
timer
)
{
this
.
count
=
timeLag
-
1
;
this
.
count
=
timeLag
-
1
;
this
.
showCode
=
false
;
this
.
showCode
=
false
;
...
@@ -310,7 +309,12 @@
...
@@ -310,7 +309,12 @@
window
.
localStorage
.
setItem
(
"
index-phone-all
"
,
this
.
registerForm
.
phone
);
window
.
localStorage
.
setItem
(
"
index-phone-all
"
,
this
.
registerForm
.
phone
);
let
previousPath
=
this
.
$store
.
state
.
previousPath
;
let
previousPath
=
this
.
$store
.
state
.
previousPath
;
this
.
$router
.
push
(
previousPath
);
this
.
$router
.
push
({
path
:
previousPath
,
query
:
{
...
this
.
$store
.
state
.
query
,
}
});
this
.
$store
.
commit
(
'
setPreviousPath
'
,
'
/
'
);
this
.
$store
.
commit
(
'
setPreviousPath
'
,
'
/
'
);
});
});
});
});
...
...
src/views/base/login/Reset.vue
View file @
d0f3c6d5
...
@@ -219,7 +219,12 @@
...
@@ -219,7 +219,12 @@
methods
:
{
methods
:
{
// 去注册
// 去注册
toLogin
()
{
toLogin
()
{
this
.
$router
.
push
(
"
/baseLogin
"
);
this
.
$router
.
push
({
path
:
'
/baseLogin
'
,
query
:
{
...
this
.
$store
.
state
.
query
,
}
});
},
},
// 改变密码显示状态
// 改变密码显示状态
changePwdStatus
()
{
changePwdStatus
()
{
...
...
src/views/index/Info/Index.vue
View file @
d0f3c6d5
...
@@ -90,9 +90,7 @@ export default {
...
@@ -90,9 +90,7 @@ export default {
},
},
watch
:
{},
watch
:
{},
created
()
{
created
()
{
// this.ToSignUp(this.index);
this
.
ToSignUp
(
this
.
index
);
this
.
ToSignUp
(
this
.
index
);
// this.$refs.child.signUpInit();
},
},
mounted
()
{
mounted
()
{
window
.
addEventListener
(
"
scroll
"
,
this
.
handleScrollX
,
true
);
window
.
addEventListener
(
"
scroll
"
,
this
.
handleScrollX
,
true
);
...
@@ -104,16 +102,8 @@ export default {
...
@@ -104,16 +102,8 @@ export default {
},
},
methods
:
{
methods
:
{
ToSignUp
(
index
)
{
ToSignUp
(
index
)
{
console
.
log
(
index
,
"
index
"
);
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
campindex_type
=
index
;
this
.
campindex_type
=
index
;
// if (this.campindex_type == 0) {
// this.$router.push("Info/personalInfo?code=" + code);
// } else
// if (this.campindex_type == 1) {
// this.$router.push("/password?code=" + code);
// }
},
},
onResize
()
{
onResize
()
{
const
refLeft
=
this
.
$refs
[
"
leftBox
"
];
const
refLeft
=
this
.
$refs
[
"
leftBox
"
];
...
...
src/views/index/Info/personalInfo.vue
View file @
d0f3c6d5
...
@@ -807,14 +807,11 @@ export default {
...
@@ -807,14 +807,11 @@ export default {
this
.
$message
.
error
(
err
);
this
.
$message
.
error
(
err
);
});
});
}
else
{
}
else
{
// console.log(this.schoolName, 111);
for
(
let
key
in
this
.
schoolName
)
{
for
(
let
key
in
this
.
schoolName
)
{
// console.log(key, this.schoolName[key]);
if
(
this
.
schoolName
[
key
].
city_id
==
val
)
{
if
(
this
.
schoolName
[
key
].
city_id
==
val
)
{
currentSchool
.
push
(
this
.
schoolName
[
key
]);
currentSchool
.
push
(
this
.
schoolName
[
key
]);
}
}
}
}
// console.log(currentSchool, 222);
return
currentSchool
;
return
currentSchool
;
}
}
return
currentSchool
;
return
currentSchool
;
...
...
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