Authored by 郭成尧

Merge remote-tracking branch 'remotes/origin/master' into hotfix/gNmPrcs

1 { 1 {
2 "name": "m-yohobuy-node", 2 "name": "m-yohobuy-node",
3 - "version": "5.2.20", 3 + "version": "5.2.21",
4 "private": true, 4 "private": true,
5 "description": "A New Yohobuy Project With Express", 5 "description": "A New Yohobuy Project With Express",
6 "repository": { 6 "repository": {
@@ -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