This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
hly
/
aluminium-trading-uniapp-240925
generated from
hly/uniapp-shop-templates
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
获取验证码
master
chenkun
4 months ago
parent
6bb4f9efdd
commit
ad3fd2df22
1 changed files
with
11 additions
and
8 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+11
-8
pages_order/auth/loginAndRegisterAndForgetPassword.vue
+ 11
- 8
pages_order/auth/loginAndRegisterAndForgetPassword.vue
View File
@ -183,17 +183,20 @@
}
,
getCode
(
)
{
if
(
this
.
$refs
.
code
.
canGetCode
)
{
/
/
模
拟
向
后
端
请
求
验
证
码
uni
.
showLoading
(
{
title
:
'正在获取验证码'
}
)
setTimeout
(
(
)
=>
{
uni
.
hideLoading
(
)
;
/
/
这
里
此
提
示
会
被
t
h
i
s
.
s
t
a
r
t
(
)
方
法
中
的
提
示
覆
盖
uni
.
$uv
.
toast
(
'验证码已发送'
)
;
/
/
通
知
验
证
码
组
件
内
部
开
始
倒
计
时
this
.
$refs
.
code
.
start
(
)
;
}
,
2000
)
;
this
.
$api
(
'sendSms'
,
{
username
:
this
.
form1
.
userName
,
}
,
res
=>
{
if
(
res
.
code
==
200
)
{
uni
.
hideLoading
(
)
;
/
/
这
里
此
提
示
会
被
t
h
i
s
.
s
t
a
r
t
(
)
方
法
中
的
提
示
覆
盖
uni
.
$uv
.
toast
(
'验证码已发送'
)
;
/
/
通
知
验
证
码
组
件
内
部
开
始
倒
计
时
this
.
$refs
.
code
.
start
(
)
;
}
}
)
}
else
{
uni
.
$uv
.
toast
(
'请勿重复发送'
)
;
}
Write
Preview
Loading…
Cancel
Save