This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
Augcl
/
novel-front-app
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
fix(auth): 在H5端添加手机号格式验证
为wxUserInfo.vue和Modifyinformation.vue添加H5端的手机号格式验证,确保用户输入正确的手机号格式
master
主管理员
5 days ago
parent
31be7a0312
commit
b9cbdad6ba
2 changed files
with
22 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+11
-0
pages_order/auth/Modifyinformation.vue
+11
-0
pages_order/auth/wxUserInfo.vue
+ 11
- 0
pages_order/auth/Modifyinformation.vue
View File
@ -168,6 +168,17 @@
return
}
/
/
#
i
f
d
e
f
H
5
/
/
H
5
端
需
要
验
证
手
机
号
格
式
if
(
!
self
.
$utils
.
verificationPhone
(
self
.
userInfoForm
.
phone
)
)
{
uni
.
showToast
(
{
title
:
'请输入正确的手机号格式'
,
icon
:
'none'
}
)
return
}
/
/
#
e
n
d
i
f
self
.
$api
(
'updateInfo'
,
{
avatarUrl
:
self
.
userInfoForm
.
headImage
,
nickName
:
self
.
userInfoForm
.
nickName
,
+ 11
- 0
pages_order/auth/wxUserInfo.vue
View File
@ -177,6 +177,17 @@
return
}
/
/
#
i
f
d
e
f
H
5
/
/
H
5
端
需
要
验
证
手
机
号
格
式
if
(
!
self
.
$utils
.
verificationPhone
(
self
.
userInfoForm
.
phone
)
)
{
uni
.
showToast
(
{
title
:
'请输入正确的手机号格式'
,
icon
:
'none'
}
)
return
}
/
/
#
e
n
d
i
f
self
.
$api
(
'updateInfo'
,
{
avatarUrl
:
self
.
userInfoForm
.
headImage
,
nickName
:
self
.
userInfoForm
.
nickName
,
Write
Preview
Loading…
Cancel
Save