Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
htoooth
9 years ago
Commit
fca518f1f76355466df680c141d1991cda14a6e4
1 parent
8f8efca7
fix
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
config/common.js
public/js/passport/login/index.js
config/common.js
View file @
fca518f
...
...
@@ -26,9 +26,9 @@ module.exports = {
useOneapm
:
false
,
useCache
:
false
,
memcache
:
{
master
:
[
'192.168.102.222:11213'
],
slave
:
[
'192.168.102.222:11213'
],
session
:
[
'192.168.102.222:11213'
],
master
:
[
'172.16.6.157:11211'
],
slave
:
[
'172.16.6.157:11211'
],
session
:
[
'172.16.6.157:11211'
],
timeout
:
1000
,
retries
:
0
},
...
...
public/js/passport/login/index.js
View file @
fca518f
...
...
@@ -60,7 +60,7 @@ function errTip(ele, msg) {
// 验证账户名
function
validateAccountLocal
()
{
var
phoneNum
=
$
.
trim
(
$phoneNumInput
.
val
()),
regionCode
=
$regionCodeText
.
val
();
regionCode
=
$regionCodeText
.
text
();
if
(
phoneNum
!==
''
)
{
if
(
/^
[
0-9
]
+$/
.
test
(
phoneNum
))
{
...
...
@@ -107,7 +107,7 @@ function validateAccountAsync() {
url
:
'/passport/login/user'
,
data
:
{
phoneNum
:
$phoneNumInput
.
val
(),
area
:
$regionCodeText
.
val
().
replace
(
'+'
,
''
)
area
:
$regionCodeText
.
text
().
replace
(
'+'
,
''
)
}
}).
then
(
function
(
data
)
{
if
(
data
.
code
&&
data
.
code
===
200
)
{
...
...
@@ -194,7 +194,7 @@ function login() {
url
:
'/passport/login/auth'
,
type
:
'POST'
,
data
:
{
areaCode
:
$regionCodeText
.
val
().
replace
(
'+'
,
''
),
areaCode
:
$regionCodeText
.
text
().
replace
(
'+'
,
''
),
account
:
$
.
trim
(
$phoneNumInput
.
val
()),
password
:
$
.
trim
(
$passwordInput
.
val
()),
captcha
:
$
.
trim
(
$captchaInput
.
val
()),
...
...
@@ -263,7 +263,7 @@ $('[placeholder]').placeholder();
$regionSelectCtrl
.
change
(
function
()
{
var
$this
=
$
(
this
);
$regionCodeText
.
text
(
$this
.
val
());
$regionCodeText
.
text
(
$this
.
text
());
});
// 密码
...
...
Please
register
or
login
to post a comment