Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
offical_web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangjie
offical_web
Commits
7c77730d
Commit
7c77730d
authored
Jul 19, 2022
by
zhangjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录
parent
30bbe18b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/views/home.vue
+8
-5
No files found.
src/views/home.vue
View file @
7c77730d
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
<el-form-item
prop=
"email"
>
<el-form-item
prop=
"email"
>
<el-input
<el-input
prefix-icon=
"el-icon-message"
prefix-icon=
"el-icon-message"
style=
"background:#fff"
style=
"background:
#fff"
v-model=
"ruleForm.email"
v-model=
"ruleForm.email"
placeholder=
"Email"
></el-input>
placeholder=
"Email"
></el-input>
</el-form-item>
</el-form-item>
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
<el-input
<el-input
:type=
"showPwd ? 'text' : 'password'"
:type=
"showPwd ? 'text' : 'password'"
prefix-icon=
"el-icon-lock"
prefix-icon=
"el-icon-lock"
style=
"background:#fff"
style=
"background:
#fff"
v-model=
"ruleForm.password"
v-model=
"ruleForm.password"
placeholder=
"Password"
placeholder=
"Password"
@
keyup
.
enter
.
native=
"submitForm('ruleForm')"
>
@
keyup
.
enter
.
native=
"submitForm('ruleForm')"
>
...
@@ -430,8 +430,11 @@ export default {
...
@@ -430,8 +430,11 @@ export default {
submitForm
()
{
submitForm
()
{
this
.
$refs
.
ruleForm
.
validate
((
valid
)
=>
{
this
.
$refs
.
ruleForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
let
url
=
`user/login?email=
${
this
.
ruleForm
.
email
}
&password=
${
this
.
ruleForm
.
password
}
`
let
url
=
`user/login`
post
(
url
).
then
((
res
)
=>
{
post
(
url
,
{
email
:
this
.
ruleForm
.
email
,
password
:
this
.
ruleForm
.
password
,
}).
then
((
res
)
=>
{
this
.
$message
.
success
(
res
.
message
)
this
.
$message
.
success
(
res
.
message
)
if
(
res
.
message
==
'操作成功'
)
{
if
(
res
.
message
==
'操作成功'
)
{
this
.
ruleForm
=
{}
this
.
ruleForm
=
{}
...
@@ -468,7 +471,7 @@ export default {
...
@@ -468,7 +471,7 @@ export default {
}
}
.login_content
{
.login_content
{
padding
:
18px
;
padding
:
18px
;
background
:
rgba
(
255
,
255
,
255
,
0.4
);
;
background
:
rgba
(
255
,
255
,
255
,
0.4
);
position
:
absolute
;
position
:
absolute
;
top
:
50%
;
top
:
50%
;
left
:
80%
;
left
:
80%
;
...
...
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