$(function(){ getaddfxcpshow(); }) function getaddfxcpshow() { $.post("/mall/zltriskestimateaction!getrisksupplementshow.do?ajax=yes", {}, function(data) { if (data.result == 1) { var show_flag = data.data.show_flag; if (show_flag == "1") { showaddfxcp(); } } },"json"); } function showaddfxcp() { $("#addfxcp").modal("show"); $("body").css("overflow","hidden"); $("#addfxcpxieyi").click(function() { $("#fxjss").show(); }); // 绑定取消按钮事件 $("#fxjsf_indown").click(function(){ $("#fxjss").hide(); }); // 绑定确定按钮事件 $("#addfxcp_sure").click(function(){ var addfxcpa = $("input[name='addfxcpq1']:checked").val(); if(addfxcpa == null || addfxcpa == "") { zhejiang_alert("提示信息", "请选择答案"); return false; } if(!$('#addfxcpcheck').is(':checked')) { zhejiang_alert("提示信息", "请仔细阅读并勾选《风险揭示书》"); return false; } if (addfxcpa == "2") { zhejiang_confirm("消息提示", "很抱歉,您提交的信息,不符合合格个人投资者认定标准,确定提交后您的账户将不再具有查看产品专区(新品、转让)和购买产品等权限,是否继续提交?", function() { submitrisksupplement(addfxcpa); }, function() { $("#addfxcpa1").attr('checked', false); $("#addfxcpa2").attr('checked', false); $('#addfxcpcheck').attr("checked", false); } ); } else { submitrisksupplement(addfxcpa); } }); } function submitrisksupplement(addfxcpa) { $.post("/mall/zltriskestimateaction!addrisksupplement.do?ajax=yes", {questionnaire0:addfxcpa}, function(data) { if (data.result == 1) { zhejiang_alert("提示信息", data.message, function(){ window.location.reload(); }); } else { zhejiang_alert("提示信息", data.message, function(){ window.location.reload(); }); } },"json"); }