Merge branch 'develop/wap' of http://git.dev.yoho.cn/web/yohobuy into develop/wap
Showing
1 changed file
with
25 additions
and
25 deletions
@@ -21,32 +21,32 @@ var nickname = $('#nickname').val(), | @@ -21,32 +21,32 @@ var nickname = $('#nickname').val(), | ||
21 | areaCode = $('#area-code').val().replace('+', ''); | 21 | areaCode = $('#area-code').val().replace('+', ''); |
22 | 22 | ||
23 | function startBind(password) { | 23 | function startBind(password) { |
24 | - $.ajax({ | ||
25 | - url: '/passport/bind/bindMobile', | ||
26 | - type: 'post', | ||
27 | - data: { | ||
28 | - areaCode: areaCode.replace('+', ''), | ||
29 | - phoneNum: phoneNum, | ||
30 | - openId: openId, | ||
31 | - sourceType: sourceType, | ||
32 | - nickname: nickname, | ||
33 | - password: password | ||
34 | - }, | ||
35 | - success: function(res) { | ||
36 | - if (res.code === 200) { | ||
37 | - tip.show('登录成功'); | ||
38 | - setTimeout(function() { | ||
39 | - location.href = res.data.refer; | ||
40 | - }, 2000); | ||
41 | - } else { | ||
42 | - tip.show(res.message); | ||
43 | - } | ||
44 | - }, | ||
45 | - error: function(err) { | ||
46 | - tip.show('登录失败,请重试!'); | 24 | + $.ajax({ |
25 | + url: '/passport/bind/bindMobile', | ||
26 | + type: 'post', | ||
27 | + data: { | ||
28 | + areaCode: areaCode.replace('+', ''), | ||
29 | + phoneNum: phoneNum, | ||
30 | + openId: openId, | ||
31 | + sourceType: sourceType, | ||
32 | + nickname: nickname, | ||
33 | + password: password | ||
34 | + }, | ||
35 | + success: function(res) { | ||
36 | + if (res.code === 200) { | ||
37 | + tip.show('登录成功'); | ||
38 | + setTimeout(function() { | ||
39 | + location.href = res.data.refer; | ||
40 | + }, 2000); | ||
41 | + } else { | ||
42 | + tip.show(res.message); | ||
47 | } | 43 | } |
48 | - }); | ||
49 | - } | 44 | + }, |
45 | + error: function(err) { | ||
46 | + tip.show('登录失败,请重试!'); | ||
47 | + } | ||
48 | + }); | ||
49 | +} | ||
50 | 50 | ||
51 | api.bindEyesEvt({ | 51 | api.bindEyesEvt({ |
52 | status: 'open' //默认眼睛打开 | 52 | status: 'open' //默认眼睛打开 |
-
Please register or login to post a comment