Browse Source

fix: 绑定手机号验证码错误修复

cuiyalong 4 months ago
parent
commit
f335504aa6
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/web/staticres/js/login.js

+ 6 - 2
src/web/staticres/js/login.js

@@ -1139,12 +1139,16 @@ $(function(){
         },
         ajaxLoginSms: function (e, arr) {
             if ($('#bidLogin').attr('data-name') === 'bind-phone') {
-                $.post("/jypay/user/phone/bind",{
+                var captInfo = getCaptchaInfo()
+                var payload = {
                   step: 2,
                   phone: arr[0].value,
                   code: arr[arr.length-1].value,
+                  identCode:arr[arr.length-1].value,
+                  captchaKey: captInfo.captKey,
                   mode: isBindPage ? 'mergeBind' : ''
-                },function(r){
+                }
+                $.post("/jypay/user/phone/bind",payload,function(r){
                     e.setAttribute('data-loading', 'false')
                     if (r && r.error_code > -1) {
                         if(r.data.state==1){