Merge remote-tracking branch 'remotes/origin/master' into hotfix/gNmPrcs
Showing
4 changed files
with
4 additions
and
4 deletions
@@ -210,7 +210,7 @@ Filter.prototype = { | @@ -210,7 +210,7 @@ Filter.prototype = { | ||
210 | return data; | 210 | return data; |
211 | } | 211 | } |
212 | return data.filter(function(item) { | 212 | return data.filter(function(item) { |
213 | - regex = new RegExp('^' + key, 'i'); | 213 | + regex = new RegExp(key, 'i'); |
214 | return regex.test(item[that.__feild__]); | 214 | return regex.test(item[that.__feild__]); |
215 | }); | 215 | }); |
216 | }, | 216 | }, |
@@ -75,7 +75,7 @@ $loginBtn.on('touchstart', function() { | @@ -75,7 +75,7 @@ $loginBtn.on('touchstart', function() { | ||
75 | 75 | ||
76 | $loginBtn.text('正在登录...').addClass('disable'); | 76 | $loginBtn.text('正在登录...').addClass('disable'); |
77 | 77 | ||
78 | - if (api.phoneRegx[areaCode].test(pn) && api.pwdValidate(pwd)) { | 78 | + if ((api.phoneRegx[areaCode].test(pn) || areaCode !== '+86') && api.pwdValidate(pwd)) { |
79 | $.ajax({ | 79 | $.ajax({ |
80 | type: 'POST', | 80 | type: 'POST', |
81 | url: '/passport/login/auth', | 81 | url: '/passport/login/auth', |
@@ -86,7 +86,7 @@ $btnNext.on('touchstart', function() { | @@ -86,7 +86,7 @@ $btnNext.on('touchstart', function() { | ||
86 | } | 86 | } |
87 | 87 | ||
88 | 88 | ||
89 | - if (api.phoneRegx[areaCode].test(pn)) { | 89 | + if (api.phoneRegx[areaCode].test(pn) || areaCode !== '+86') { |
90 | 90 | ||
91 | requested = true; | 91 | requested = true; |
92 | 92 |
-
Please register or login to post a comment