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
b8bed64d
Commit
b8bed64d
authored
Sep 15, 2023
by
liuChang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zuhuduan' of 192.168.60.201:root/dsk-operate-sys into zuhuduan
parents
8c9222ef
3f8f3d11
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
login.vue
dsk-operate-ui/src/views/login.vue
+17
-14
No files found.
dsk-operate-ui/src/views/login.vue
View file @
b8bed64d
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<img
class=
"img"
slot=
"prefix"
src=
"../assets/images/validCode.png"
/>
<img
class=
"img"
slot=
"prefix"
src=
"../assets/images/validCode.png"
/>
</el-input>
</el-input>
<div
class=
"login-code"
>
<div
class=
"login-code"
>
<div
class=
"hqyzm"
@
click=
"getsms"
:class=
"
{'disableds':smstitle!='获取验证码'}">
{{
smstitle
}}
</div>
<div
class=
"hqyzm"
@
click=
"getsms"
:class=
"
{'disableds':smstitle!='获取验证码'
&&
smstitle!='重新获取'
}">
{{
smstitle
}}
</div>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
style=
"width:100%;margin-top: 42px"
>
<el-form-item
style=
"width:100%;margin-top: 42px"
>
...
@@ -151,7 +151,7 @@
...
@@ -151,7 +151,7 @@
<img
class=
"img"
slot=
"prefix"
src=
"../assets/images/validCode.png"
/>
<img
class=
"img"
slot=
"prefix"
src=
"../assets/images/validCode.png"
/>
</el-input>
</el-input>
<div
class=
"login-code"
>
<div
class=
"login-code"
>
<div
class=
"hqyzm"
@
click=
"getsms"
:class=
"
{'disableds':smstitle!='获取验证码'}">
{{
smstitle
}}
</div>
<div
class=
"hqyzm"
@
click=
"getsms"
:class=
"
{'disableds':smstitle!='获取验证码'
&&
smstitle!='重新获取'
}">
{{
smstitle
}}
</div>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
style=
"width:100%;margin-top: 42px"
>
<el-form-item
style=
"width:100%;margin-top: 42px"
>
...
@@ -247,6 +247,7 @@
...
@@ -247,6 +247,7 @@
immediate
:
true
immediate
:
true
},
},
isDXlogin
(){
isDXlogin
(){
this
.
smstitle
=
'获取验证码'
this
.
resetForm
(
'dxform'
)
this
.
resetForm
(
'dxform'
)
this
.
resetForm
(
'loginForm'
)
this
.
resetForm
(
'loginForm'
)
this
.
getCode
()
this
.
getCode
()
...
@@ -271,28 +272,30 @@
...
@@ -271,28 +272,30 @@
if
(
this
.
nosend
==
true
){
if
(
this
.
nosend
==
true
){
return
false
return
false
}
}
logincaptchaSms
(
this
.
dxform
).
then
(
res
=>
{
// logincaptchaSms(this.dxform).then(res=>{
if
(
res
.
code
==
200
){
// if(res.code == 200){
this
.
$message
.
success
(
'已发送短信!'
)
this
.
$message
.
success
(
'已发送短信!'
)
let
_this
=
this
let
_this
=
this
_this
.
nosend
=
true
_this
.
nosend
=
true
this
.
timers
=
setInterval
(()
=>
{
this
.
timers
=
setInterval
(()
=>
{
_this
.
smstitle
=
_this
.
smstime
+
'秒后重试'
_this
.
smstitle
=
_this
.
smstime
+
'秒后重试'
_this
.
smstime
--
;
_this
.
smstime
--
;
if
(
_this
.
smstime
<
=
0
){
if
(
_this
.
smstime
<
0
){
_this
.
smstitle
=
'
获取验证码
'
_this
.
smstitle
=
'
重新获取
'
clearInterval
(
_this
.
timers
)
clearInterval
(
_this
.
timers
)
_this
.
nosend
=
false
_this
.
nosend
=
false
_this
.
smstime
=
60
}
}
},
1000
)
},
1000
)
}
else
{
//
}else{
this
.
$message
.
error
(
res
.
msg
)
//
this.$message.error(res.msg)
this
.
getCode
()
//
this.getCode()
this
.
showcode
=
true
//
this.showcode = true
}
//
}
}).
catch
(
res
=>
{
//
}).catch(res=>{
this
.
$message
.
error
(
res
.
msg
)
//
this.$message.error(res.msg)
})
//
})
},
},
handleLogin
()
{
handleLogin
()
{
this
.
$refs
.
loginForm
.
validate
(
valid
=>
{
this
.
$refs
.
loginForm
.
validate
(
valid
=>
{
...
...
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