|
@@ -256,7 +256,36 @@
|
|
|
|
|
|
</script>
|
|
|
<script>
|
|
|
+ $('#mobile_reset').click(function(){
|
|
|
+ $('#mobile_reset').val('处理中...').addClass('btn_disabled').prop('disabled', !0);
|
|
|
+ $.ajax({
|
|
|
+ url: $('#getPassByMobileForm').action,
|
|
|
+ type: 'POST',
|
|
|
+ dataType: 'json',
|
|
|
+ data: $('#getPassByMobileForm').serialize(),
|
|
|
+ success: function (data) {
|
|
|
+ //disapperTooltip("success","注册成功,正在为你跳转..");
|
|
|
+ setTimeout(function () {
|
|
|
+ window.location.href = data.data.url;
|
|
|
+ }, 1000)
|
|
|
|
|
|
+ },
|
|
|
+ error: function (data) {
|
|
|
+ var error_obj = eval('(' + data.responseText + ')');
|
|
|
+ $('#mobile_reset').val('下一步').removeClass('btn_disabled').prop('disabled', 0);
|
|
|
+ if (data.status == 422) {//验证错误
|
|
|
+ $.each(error_obj.errors, function (key, val) {
|
|
|
+ disapperTooltip("remind", val[0]);
|
|
|
+ return;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ else if (data.status == 400) {//业务错误
|
|
|
+ disapperTooltip("remind", error_obj.message);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ });
|
|
|
</script>
|
|
|
{{--<script type="text/javascript" src="{{ theme_asset('app/js/members/jquery.validate.getpass.js') }}"></script>--}}
|
|
|
@endsection
|