Showing
4 changed files
with
9 additions
and
6 deletions
@@ -25,7 +25,8 @@ | @@ -25,7 +25,8 @@ | ||
25 | <input name="mobile" id="mobile" type="hidden" value="{{mobile}}"> | 25 | <input name="mobile" id="mobile" type="hidden" value="{{mobile}}"> |
26 | <input name="verifyCode" id="captchaPic" type="hidden" value="{{verifyCode}}"> | 26 | <input name="verifyCode" id="captchaPic" type="hidden" value="{{verifyCode}}"> |
27 | <input name="refer" id="refer" type="hidden" value=""> | 27 | <input name="refer" id="refer" type="hidden" value=""> |
28 | - <input id="next-step" class="btn next-step disable" type="submit" value="下一步" disabled=""> | 28 | + <a id="next-step" class="btn next-step disable" href="javascript:;">下一步</a> |
29 | + <!-- <input id="next-step" class="btn next-step disable" type="submit" value="下一步" disabled=""> --> | ||
29 | </li> | 30 | </li> |
30 | </ul> | 31 | </ul> |
31 | </form> | 32 | </form> |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | {{/if}} | 5 | {{/if}} |
6 | {{#if preEnv}} | 6 | {{#if preEnv}} |
7 | <script src="http://cdn.yoho.cn/yohobuy/{{version}}/lib.js"></script> | 7 | <script src="http://cdn.yoho.cn/yohobuy/{{version}}/lib.js"></script> |
8 | - <script src="http://cdn.yoho.cn/yohobuy/{{version}}/index.js"></script> | 8 | + <script src="http://cdn.yoho.cn/yohobuy/{{version}}/index-debug.js"></script> |
9 | {{/if}} | 9 | {{/if}} |
10 | {{#if testEnv}} | 10 | {{#if testEnv}} |
11 | <script src="http://static.buy.test.yoho.cn/dist/yohobuy/{{version}}/lib.js"></script> | 11 | <script src="http://static.buy.test.yoho.cn/dist/yohobuy/{{version}}/lib.js"></script> |
@@ -89,11 +89,11 @@ $('#captcha').keyup(function() { | @@ -89,11 +89,11 @@ $('#captcha').keyup(function() { | ||
89 | if (res.code === 200) { | 89 | if (res.code === 200) { |
90 | 90 | ||
91 | //添加验证码正确验证 | 91 | //添加验证码正确验证 |
92 | - $next.removeClass('disable').removeAttr('disabled'); | 92 | + $next.removeClass('disable').attr('href', res.data); |
93 | $errTip.addClass('hide'); | 93 | $errTip.addClass('hide'); |
94 | $(that).removeClass('error'); | 94 | $(that).removeClass('error'); |
95 | } else { | 95 | } else { |
96 | - $next.addClass('disable').attr('disabled', true); | 96 | + $next.addClass('disable'); |
97 | $errTip.removeClass('hide').find('em').text('验证码输入错误'); | 97 | $errTip.removeClass('hide').find('em').text('验证码输入错误'); |
98 | $(that).addClass('error'); | 98 | $(that).addClass('error'); |
99 | } | 99 | } |
@@ -41,12 +41,14 @@ class BackController extends WebAction { | @@ -41,12 +41,14 @@ class BackController extends WebAction { | ||
41 | ); | 41 | ); |
42 | if (PassportModel::verifyCode($verifyCode)) { | 42 | if (PassportModel::verifyCode($verifyCode)) { |
43 | if (Helpers::verifyEmail($phoneNum)) { | 43 | if (Helpers::verifyEmail($phoneNum)) { |
44 | - if (empty(PassportModel::getUserInfoByEmail($phoneNum))) { | 44 | + $ret = PassportModel::getUserInfoByEmail($phoneNum); |
45 | + if (empty($ret)) { | ||
45 | $data['message'] = '该账户不存在'; | 46 | $data['message'] = '该账户不存在'; |
46 | $data['code'] = 400; | 47 | $data['code'] = 400; |
47 | } | 48 | } |
48 | } else if (Helpers::verifyMobile($phoneNum)) { | 49 | } else if (Helpers::verifyMobile($phoneNum)) { |
49 | - if (empty(PassportModel::getUserInfoByMobile($area, $phoneNum))) { | 50 | + $ret = PassportModel::getUserInfoByMobile($area, $phoneNum); |
51 | + if (empty($ret)) { | ||
50 | $data['message'] = '该账户不存在'; | 52 | $data['message'] = '该账户不存在'; |
51 | $data['code'] = 400; | 53 | $data['code'] = 400; |
52 | } | 54 | } |
-
Please register or login to post a comment