|
@@ -419,5 +419,66 @@
|
|
|
}
|
|
|
});
|
|
|
</script>
|
|
|
+ <script>
|
|
|
+ $('#btnMoilbPhoneRegister').val('注册中...').addClass('btn_disabled').prop('disabled', !0);
|
|
|
+ $.ajax({
|
|
|
+ url: person_register_url,
|
|
|
+ type: 'POST',
|
|
|
+ dataType: 'json',
|
|
|
+ data: $('#regMobileForm').serialize(),
|
|
|
+ success: function (data) {
|
|
|
+ disapperTooltip("success","注册成功,正在为你跳转..");
|
|
|
+ setTimeout(function () {
|
|
|
+ window.location.href = data.data.url;
|
|
|
+ },1000)
|
|
|
+
|
|
|
+ },
|
|
|
+ error:function(data) {
|
|
|
+ console.log(data);
|
|
|
+ var error_obj=eval('(' + data.responseText + ')');
|
|
|
+ if ($('#regMobileForm input[name="agreement"]').is(':checked')) {
|
|
|
+ $('#btnMoilbPhoneRegister').val('注册').removeClass('btn_disabled').prop('disabled', 0);
|
|
|
+ }
|
|
|
+ if (data.status == 422) {//验证错误
|
|
|
+ $.each(error_obj.errors, function (key, val) {
|
|
|
+ disapperTooltip("remind", val[0]);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ else if (data.status == 400) {//业务错误
|
|
|
+ disapperTooltip("remind", error_obj.message);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ $('#btnEmailRegister').val('注册中...').addClass('btn_disabled').prop('disabled', !0);
|
|
|
+ $.ajax({
|
|
|
+ url: person_register_url,
|
|
|
+ type: 'POST',
|
|
|
+ dataType: 'json',
|
|
|
+ data: $('#regEmailForm').serialize(),
|
|
|
+ success: function (data) {
|
|
|
+ disapperTooltip("success","注册成功,正在为你跳转..");
|
|
|
+ setTimeout(function () {
|
|
|
+ window.location.href = data.data.url;
|
|
|
+ },1000)
|
|
|
+
|
|
|
+ },
|
|
|
+ error:function(data) {
|
|
|
+ console.log(data);
|
|
|
+ var error_obj=eval('(' + data.responseText + ')');
|
|
|
+ if ($('#regEmailForm input[name="agreement"]').is(':checked')) {
|
|
|
+ $('#btnEmailRegister').val('注册').removeClass('btn_disabled').prop('disabled', 0);
|
|
|
+ }
|
|
|
+ if (data.status == 422) {//验证错误
|
|
|
+ $.each(error_obj.errors, function (key, val) {
|
|
|
+ disapperTooltip("remind", val[0]);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ else if (data.status == 400) {//业务错误
|
|
|
+ disapperTooltip("remind", error_obj.message);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ </script>
|
|
|
{{-- <script type="text/javascript" src="{{ theme_asset('app/js/members/jquery.validate.regpersonal.js') }}?v=1"></script>--}}
|
|
|
@endsection
|