Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
dsk-cr20g
Commits
765afd0d
Commit
765afd0d
authored
Dec 28, 2023
by
tianhongyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录页兼容 手机端
parent
7c6487e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
5 deletions
+61
-5
login.vue
dsk-operate-ui/src/views/login.vue
+61
-5
No files found.
dsk-operate-ui/src/views/login.vue
View file @
765afd0d
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<img
class=
"img"
slot=
"prefix"
src=
"../assets/images/phone.png"
/>
<img
class=
"img"
slot=
"prefix"
src=
"../assets/images/phone.png"
/>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"captchaCode"
v-if=
"captchaEnabled"
>
<el-form-item
prop=
"captchaCode"
v-if=
"captchaEnabled"
class=
"el-item-with-code"
>
<el-input
<el-input
v-model=
"dxform.captchaCode"
v-model=
"dxform.captchaCode"
auto-complete=
"off"
auto-complete=
"off"
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<img
:src=
"codeUrl"
@
click=
"getCode"
class=
"login-code-img"
/>
<img
:src=
"codeUrl"
@
click=
"getCode"
class=
"login-code-img"
/>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"smsCode"
>
<el-form-item
prop=
"smsCode"
class=
"el-item-with-code"
>
<el-input
<el-input
v-model=
"dxform.smsCode"
v-model=
"dxform.smsCode"
auto-complete=
"off"
auto-complete=
"off"
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
<img
class=
"img"
slot=
"prefix"
src=
"../assets/images/password.png"
/>
<img
class=
"img"
slot=
"prefix"
src=
"../assets/images/password.png"
/>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"code"
v-if=
"captchaEnabled"
>
<el-form-item
prop=
"code"
v-if=
"captchaEnabled"
class=
"el-item-with-code"
>
<el-input
<el-input
v-model=
"loginForm.code"
v-model=
"loginForm.code"
auto-complete=
"off"
auto-complete=
"off"
...
@@ -127,7 +127,7 @@
...
@@ -127,7 +127,7 @@
<img
class=
"img"
slot=
"prefix"
src=
"../assets/images/phone.png"
/>
<img
class=
"img"
slot=
"prefix"
src=
"../assets/images/phone.png"
/>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"captchaCode"
v-if=
"captchaEnabled && showcode"
>
<el-form-item
prop=
"captchaCode"
v-if=
"captchaEnabled && showcode"
class=
"el-item-with-code"
>
<el-input
<el-input
v-model=
"dxform.captchaCode"
v-model=
"dxform.captchaCode"
@
focus=
"getCode"
@
focus=
"getCode"
...
@@ -141,7 +141,7 @@
...
@@ -141,7 +141,7 @@
<img
:src=
"codeUrl"
@
click=
"getCode"
class=
"login-code-img"
/>
<img
:src=
"codeUrl"
@
click=
"getCode"
class=
"login-code-img"
/>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"smsCode"
>
<el-form-item
prop=
"smsCode"
class=
"el-item-with-code"
>
<el-input
<el-input
v-model=
"dxform.smsCode"
v-model=
"dxform.smsCode"
auto-complete=
"off"
auto-complete=
"off"
...
@@ -633,4 +633,60 @@
...
@@ -633,4 +633,60 @@
background
:
#566380
;
background
:
#566380
;
}
}
}
}
@media
screen
and
(
max-width
:
750px
){
.left
{
display
:
none
;
}
.login-form
{
width
:
90%
;
position
:
absolute
;
left
:
50%
;
top
:
50%
;
transform
:
translate
(
-50%
,-
50%
);
margin-top
:
0px
;
box-sizing
:
border-box
;
box-shadow
:
0
2px
4px
rgba
(
0
,
0
,
0
,
.12
)
,
0
0
6px
rgba
(
0
,
0
,
0
,
.04
);
.el-input
{
width
:
100%
;
.
el-input__inner
:
:
placeholder
{
font-size
:
12px
!
important
;
}
}
.el-item-with-code
{
.el-form-item__content
{
display
:
flex
;
line-height
:
1
;
.el-input
{
float
:
unset
!
important
;
width
:
175px
!
important
;
min-width
:
175px
;
}
.login-code
{
height
:
48px
;
width
:
auto
;
flex
:
1
;
float
:
unset
!
important
;
&
>
img
{
width
:
100%
;
height
:
100%
;
}
.hqyzm
{
width
:
100%
;
font-size
:
12px
;
border
:
unset
;
border-radius
:
unset
;
}
}
}
}
}
}
</
style
>
</
style
>
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