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
10cbb1a8
Commit
10cbb1a8
authored
Nov 03, 2021
by
孟飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
021af906
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
19 deletions
+10
-19
src/router/index.js
src/router/index.js
+1
-0
src/store/index.js
src/store/index.js
+1
-0
src/views/index/login/Index.vue
src/views/index/login/Index.vue
+7
-1
src/views/index/recruit/Index.vue
src/views/index/recruit/Index.vue
+1
-18
No files found.
src/router/index.js
View file @
10cbb1a8
...
...
@@ -114,6 +114,7 @@ function checkCam(code, cb) {
"
doubt_check
"
,
res
.
data
.
audit_individual_information
);
//是否审核个人资料
store
.
state
.
info
=
res
.
data
;
cb
&&
cb
(
true
);
}).
catch
(()
=>
{
cb
&&
cb
(
false
);
...
...
src/store/index.js
View file @
10cbb1a8
...
...
@@ -15,6 +15,7 @@ let state = {
token
:
''
,
showDialog
:
false
,
dialogType
:
0
,
info
:{},
isLogin
:
localStorage
.
getItem
(
"
isLogin
"
)
||
"
0
"
,
// 只有1为已登录
};
...
...
src/views/index/login/Index.vue
View file @
10cbb1a8
<
template
>
<div
class=
"login-index"
>
<div
class=
"big-img"
>
<div
class=
"big-img"
@
click=
"toHome"
>
<img
:src=
"bigImg"
/>
</div>
<div
class=
"big-right"
>
...
...
@@ -27,6 +27,12 @@ export default {
this
.
$emit
(
"
getStatus
"
,
false
);
},
methods
:
{
toHome
()
{
let
code
=
localStorage
.
getItem
(
"
index-identity
"
);
this
.
$router
.
push
(
"
/
"
+
code
);
}
},
};
</
script
>
...
...
src/views/index/recruit/Index.vue
View file @
10cbb1a8
...
...
@@ -48,7 +48,6 @@
/* eslint-disable */
import
Header
from
"
@/components/index/Header.vue
"
;
import
Footer
from
"
@/components/index/Footer.vue
"
;
import
{
getCam
}
from
"
r/index/login
"
;
export
default
{
name
:
"
recruit
"
,
...
...
@@ -58,29 +57,13 @@ export default {
};
},
created
()
{
this
.
getCams
();
},
mounted
()
{
// 只刷新一次
if
(
location
.
href
.
indexOf
(
"
#reloaded
"
)
==
-
1
)
{
location
.
href
=
location
.
href
+
"
#reloaded
"
;
location
.
reload
();
}
this
.
info
=
this
.
$store
.
state
.
info
;
},
methods
:
{
toLogin
()
{
let
code
=
localStorage
.
getItem
(
"
index-identity
"
);
this
.
$router
.
push
(
"
/login?code=
"
+
code
);
},
getCams
()
{
getCam
(
false
).
then
((
res
)
=>
{
// console.log(res, "res");
if
(
res
.
data
.
code
!=
200
)
{
return
this
.
$message
.
error
(
res
.
data
.
message
);
}
this
.
info
=
res
.
data
;
});
},
},
components
:
{
Header
,
...
...
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