This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
[3-9]
tags/v1.22.7.1^2
chenshihai
3 years ago
parent
f793b63b01
commit
04663b11b4
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
templates/user/auth/bind_phone.tmpl
+1
-1
web_src/js/standalone/phoneverify.js
+ 1
- 1
templates/user/auth/bind_phone.tmpl
View File
@@ -40,7 +40,7 @@
var verifyCode = bindPhoneEl.find('input.verifyCode').val();
if (phoneNumber && verifyCode) {
e.preventDefault();
if (!/^1[3
578
]\d{9}$/.test(phoneNumber)) {
if (!/^1[3
-9
]\d{9}$/.test(phoneNumber)) {
bindPhoneEl.find('.ui.negative.message').show().find('p').text({{.i18n.Tr "phone.please_enter_the_correct_mobile_number"}});
return;
}
+ 1
- 1
web_src/js/standalone/phoneverify.js
View File
@@ -153,7 +153,7 @@
return;
}
var phoneNumber = self.dom.find('.phone-num-c input').val();
if (!/^1[3
578
]\d{9}$/.test(phoneNumber)) {
if (!/^1[3
-9
]\d{9}$/.test(phoneNumber)) {
self.dom.find('.phone-num-c').addClass('error');
return;
} else {
Write
Preview
Loading…
Cancel
Save