Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
H
hr_book_store
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
袁龙涛
hr_book_store
Commits
5e0e85cd
提交
5e0e85cd
authored
5月 25, 2020
作者:
liupengfei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
忘记密码 发送短信增加滑块验证码
上级
f9e06108
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
18 行增加
和
5 行删除
+18
-5
pwSec.vue
src/views/login/pwSec.vue
+18
-5
没有找到文件。
src/views/login/pwSec.vue
浏览文件 @
5e0e85cd
...
...
@@ -40,6 +40,13 @@
<span
class=
"dffgspan"
>
{{
validateBy
===
'phone'
?
userInfo
.
phone
:
userInfo
.
email
}}
</span>
</div>
<Verify
@
success=
"getVertifyCodeSuccess"
:captchaType=
"'blockPuzzle'"
:imgSize=
"
{width:'400px',height:'200px'}"
ref="verify"
>
</Verify>
<div
class=
"miloginbox_s01"
>
<span
class=
"dffgspan"
>
验证码:
</span>
<div
class=
"dofjojojijiiugfd"
>
...
...
@@ -62,6 +69,7 @@
import
{
getFindPwAPI
,
msgCaptchaAPI
,
validateCaptchaAPI
}
from
'@/API'
import
store
from
'@/store'
;
import
{
Message
}
from
'element-ui'
import
Verify
from
'@/components/verifition/Verify'
export
default
{
data
()
{
...
...
@@ -77,6 +85,9 @@
blankNo
:
false
,
}
},
components
:
{
Verify
},
mounted
()
{
this
.
getCaptcha
()
this
.
userInfo
=
store
.
getters
.
userInfo
...
...
@@ -126,11 +137,7 @@
}
})
},
getVertifyCode
()
{
this
.
$validator
.
validate
(
'ifGetVertify.*'
).
then
(
res
=>
{
if
(
res
)
{
getVertifyCodeSuccess
(
params
)
{
this
.
blankNo
=
true
;
const
type
=
this
.
validateBy
===
'phone'
?
1
:
2
;
...
...
@@ -139,6 +146,7 @@
type
:
type
,
smsEnum
:
1
,
phone
:
this
.
userInfo
.
phone
,
captchaVerification
:
params
.
captchaVerification
,
email
:
this
.
userInfo
.
email
}).
then
(
res
=>
{
this
.
gettingCode
=
true
;
...
...
@@ -163,6 +171,11 @@
//Message.error(`短信验证码发送失败`)
}
})
},
getVertifyCode
()
{
this
.
$validator
.
validate
(
'ifGetVertify.*'
).
then
(
res
=>
{
if
(
res
)
{
this
.
$refs
.
verify
.
show
();
}
})
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论