Authored by 郝肖肖

Merge branch 'feature/leak' into feature/veriCodeInvalid

@@ -189,6 +189,8 @@ const bind = { @@ -189,6 +189,8 @@ const bind = {
189 let area = req.body.area || '86'; 189 let area = req.body.area || '86';
190 let sourceType = req.body.sourceType; 190 let sourceType = req.body.sourceType;
191 191
  192 + req.session.captchaCount = 4; // 防止用户多次单击下一步,而发送短信
  193 +
192 if (req.session.type !== 'relateStep1') { 194 if (req.session.type !== 'relateStep1') {
193 return res.json({code: 400, message: '非法请求'}); 195 return res.json({code: 400, message: '非法请求'});
194 } 196 }
@@ -170,6 +170,7 @@ function closeMask() { @@ -170,6 +170,7 @@ function closeMask() {
170 $('.backdrop').hide(); 170 $('.backdrop').hide();
171 } 171 }
172 }); 172 });
  173 +
173 $(document).on('click', '#bindconfirm', function(e) { 174 $(document).on('click', '#bindconfirm', function(e) {
174 $target = $(e.target); 175 $target = $(e.target);
175 if ($target.hasClass('mask') || $target.hasClass('backdrop')) { 176 if ($target.hasClass('mask') || $target.hasClass('backdrop')) {
@@ -189,6 +190,7 @@ function yohoBindBtn() { @@ -189,6 +190,7 @@ function yohoBindBtn() {
189 $('#bindconfirm').hide(); 190 $('#bindconfirm').hide();
190 $('.backdrop').hide(); 191 $('.backdrop').hide();
191 }); 192 });
  193 +
192 $(document).on('click', '#yohobindbtn2', function() { 194 $(document).on('click', '#yohobindbtn2', function() {
193 $('.phonenum').val(''); 195 $('.phonenum').val('');
194 $('#alreayregist').hide(); 196 $('#alreayregist').hide();
@@ -228,8 +230,6 @@ function circleTime() { @@ -228,8 +230,6 @@ function circleTime() {
228 * @return {[type]} [description] 230 * @return {[type]} [description]
229 */ 231 */
230 function sendMessageValidate() { 232 function sendMessageValidate() {
231 - circleTime($('#mobile').val());  
232 -  
233 $(document).on('click', '#sendmessage', function() { 233 $(document).on('click', '#sendmessage', function() {
234 if ($('#sendmessage').attr('disabled') === 'disabled') { 234 if ($('#sendmessage').attr('disabled') === 'disabled') {
235 return; 235 return;
@@ -375,6 +375,9 @@ function nextStep() { @@ -375,6 +375,9 @@ function nextStep() {
375 'padding-top': winHeight > 440 ? winHeight / 2 : 217 375 'padding-top': winHeight > 440 ? winHeight / 2 : 217
376 }); 376 });
377 $('#alreayregist').show(); 377 $('#alreayregist').show();
  378 +
  379 + // 201 code send msg
  380 + circleTime($('#mobile').val());
378 } else if (data.code === 203) { 381 } else if (data.code === 203) {
379 // 已注册 可关联 382 // 已注册 可关联
380 $('#bindmobileform').attr('action', data.data.next); 383 $('#bindmobileform').attr('action', data.data.next);