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
6e42c0ed
Commit
6e42c0ed
authored
Sep 08, 2023
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录注册
parent
0d002cae
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1186 additions
and
958 deletions
+1186
-958
src/request/base/register.js
src/request/base/register.js
+55
-0
src/router/base/login.js
src/router/base/login.js
+1
-1
src/router/index.js
src/router/index.js
+3
-1
src/views/base/login/Index.vue
src/views/base/login/Index.vue
+40
-45
src/views/base/login/Login.vue
src/views/base/login/Login.vue
+457
-266
src/views/base/login/Register.vue
src/views/base/login/Register.vue
+326
-335
src/views/base/login/Reset.vue
src/views/base/login/Reset.vue
+304
-310
No files found.
src/request/base/register.js
0 → 100644
View file @
6e42c0ed
/* eslint-disable */
import
{
request
}
from
'
./network
'
// 通过邮箱验证码注册
export
function
registerEmailCode
(
data
)
{
return
request
({
method
:
'
post
'
,
url
:
'
web/code/registerEmailCode
'
,
params
:
data
})
}
// 通过邮箱验证码找回密码(忘记密码)
export
function
passwordEmailCode
(
data
)
{
return
request
({
method
:
'
post
'
,
url
:
'
web/code/passwordEmailCode
'
,
params
:
data
})
}
// 发送注册时候验证码
export
function
registerCode
(
data
)
{
return
request
({
method
:
'
post
'
,
url
:
'
/web/code/registerCode
'
,
params
:
data
})
}
export
function
passwordCode
(
data
)
{
return
request
({
method
:
'
post
'
,
url
:
'
/web/code/passwordCode
'
,
params
:
data
})
}
// 填写注册信息
export
function
setAccountInfo
(
data
)
{
return
request
({
method
:
'
post
'
,
url
:
'
/web/register/setAccountInfo
'
,
data
})
}
// 获取注册信息
export
function
getAccountInfo
(
data
)
{
return
request
({
method
:
'
post
'
,
url
:
'
/web/register/getAccountInfo
'
,
data
})
}
src/router/base/login.js
View file @
6e42c0ed
...
@@ -15,7 +15,7 @@ export default [{
...
@@ -15,7 +15,7 @@ export default [{
}
}
},
},
{
{
path
:
'
/
r
eset
'
,
path
:
'
/
baseR
eset
'
,
name
:
'
base-reset
'
,
name
:
'
base-reset
'
,
component
:
()
=>
import
(
/* webpackChunkName: "reset" */
'
v/base/login/Reset.vue
'
),
component
:
()
=>
import
(
/* webpackChunkName: "reset" */
'
v/base/login/Reset.vue
'
),
meta
:
{
meta
:
{
...
...
src/router/index.js
View file @
6e42c0ed
...
@@ -204,7 +204,9 @@ router.beforeEach((to, from, next) => {
...
@@ -204,7 +204,9 @@ router.beforeEach((to, from, next) => {
toLogin
=
"
/login
"
,
toLogin
=
"
/login
"
,
toBaseLogin
=
"
/baseLogin
"
,
toBaseLogin
=
"
/baseLogin
"
,
toRegister
=
"
/register
"
,
toRegister
=
"
/register
"
,
toBaseRegister
=
"
/baseRegister
"
,
toReset
=
"
/reset
"
,
toReset
=
"
/reset
"
,
toBaseReset
=
"
/baseReset
"
,
toHome
=
"
/home
"
,
toHome
=
"
/home
"
,
toActive
=
"
/active
"
;
toActive
=
"
/active
"
;
let
toMyInfo
;
let
toMyInfo
;
...
@@ -225,7 +227,7 @@ router.beforeEach((to, from, next) => {
...
@@ -225,7 +227,7 @@ router.beforeEach((to, from, next) => {
// }
// }
// });
// });
return
next
();
return
next
();
}
else
if
(
to
.
path
==
toBaseLogin
||
to
.
path
==
toMyInfo
||
to
.
path
==
toHome
||
to
.
path
==
toActive
||
to
.
path
.
indexOf
(
toActive
)
!=
-
1
)
{
}
else
if
(
to
.
path
==
toBaseLogin
||
to
.
path
==
toBaseRegister
||
to
.
path
==
toBaseReset
||
to
.
path
==
toMyInfo
||
to
.
path
==
toHome
||
to
.
path
==
toActive
||
to
.
path
.
indexOf
(
toActive
)
!=
-
1
)
{
return
next
();
return
next
();
}
else
if
(
to
.
name
==
"
recruit
"
)
{
}
else
if
(
to
.
name
==
"
recruit
"
)
{
code
=
to
.
params
.
code
;
code
=
to
.
params
.
code
;
...
...
src/views/base/login/Index.vue
View file @
6e42c0ed
<
template
>
<
template
>
<div
class=
"login-index"
>
<div
class=
"login-index"
>
<Header></Header>
<div
class=
"big-right"
>
<div
class=
"big-right"
>
<div
class=
"info-box"
>
<div
class=
"info-box"
>
<router-view
/>
<router-view/>
</div>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
/* eslint-disable */
/* eslint-disable */
import
Cookie
from
"
js-cookie
"
import
Header
from
"
@/components/base/Header.vue
"
;
export
default
{
export
default
{
name
:
"
loginBase
"
,
name
:
"
loginBase
"
,
data
()
{
data
()
{
return
{
return
{};
};
},
},
components
:
{
created
()
{
Header
,
},
this
.
$emit
(
"
getStatus
"
,
false
);
created
()
{
},
},
methods
:
{
methods
:
{},
toHome
()
{
};
let
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
$router
.
push
(
"
/
"
+
code
);
}
},
};
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
.login-index
{
@media
(
min-width
:
1024px
)
{
position
:
relative
;
.login-index
.big-right
.info-box
{
min-width
:
1104px
;
width
:
32%
!
important
;
background
:
#f8f8f8
;
top
:
60%
!
important
;
display
:
flex
;
flex-flow
:
row
;
min-height
:
100%
;
.big-img
{
width
:
(
500
/
1920
*
100%
);
min-width
:
350px
;
min-height
:
100%
;
img
{
width
:
100%
;
min-height
:
100%
;
}
}
}
}
.big-right
{
flex
:
1
;
.login-index
{
position
:
relative
;
position
:
relative
;
.info-box
{
min-width
:
1104px
;
width
:
520px
;
background
:
#f8f8f8
;
height
:
auto
;
min-height
:
100%
;
position
:
absolute
;
width
:
100%
;
top
:
50%
;
left
:
50%
;
.big-right
{
transform
:
translate
(
-50%
,
-50%
);
height
:
calc
(
100%
-
80px
);
.info-box
{
width
:
520px
;
height
:
auto
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
}
}
}
}
}
}
</
style
>
</
style
>
src/views/base/login/Login.vue
View file @
6e42c0ed
This diff is collapsed.
Click to expand it.
src/views/base/login/Register.vue
View file @
6e42c0ed
This diff is collapsed.
Click to expand it.
src/views/base/login/Reset.vue
View file @
6e42c0ed
This diff is collapsed.
Click to expand it.
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