Authored by 毕凯

增加第三方注册

@@ -23,7 +23,7 @@ module.exports = function(useInRegister, useForBind, useForRelate) { @@ -23,7 +23,7 @@ module.exports = function(useInRegister, useForBind, useForRelate) {
23 23
24 var urlMid = useInRegister ? 'reg' : 'back'; 24 var urlMid = useInRegister ? 'reg' : 'back';
25 25
26 - // var isReg = parseInt($('#isReg').val()); 26 + var isReg = parseInt($('#isReg').val());
27 27
28 function startBind() { 28 function startBind() {
29 $.ajax({ 29 $.ajax({
@@ -133,8 +133,15 @@ module.exports = function(useInRegister, useForBind, useForRelate) { @@ -133,8 +133,15 @@ module.exports = function(useInRegister, useForBind, useForRelate) {
133 } 133 }
134 134
135 if (useForBind || useForRelate) { 135 if (useForBind || useForRelate) {
  136 + if (isReg) {
136 startBind(); 137 startBind();
137 } else { 138 } else {
  139 + location.href = '/passport/bind/password?phoneNum=' +
  140 + phoneNum + '&areaCode=' + areaCode + '&openId=' +
  141 + openId + '&sourceType=' + sourceType + '&nickname=' + nickname;
  142 + }
  143 +
  144 + } else {
138 startReg(); 145 startReg();
139 } 146 }
140 }); 147 });