var jiliduixiang=0; function checkgongjuxiang(){ var va1169=$('input:radio[name="timu_1169"]:checked').val();if(va1169==null){Page.tip("第1.拟分配股权激励总量没选。");huadongmao("timu_1169");return false;} var va1170=$('input:radio[name="timu_1170"]:checked').val();if(va1170==null){Page.tip("第2.请选择股权激励对象的数量() 没选。");huadongmao("timu_1170");return false;} if($('input:radio[name="timu_1169"]:checked').val()=="A"){ if($('#timu_1169_1').val()==""){ Page.tip("请填写要分配股数,请认真选择"); huadongmao("timu_1169"); return false; } }else{ if($('#timu_1169_2').val()==""){ Page.tip("请填写拿出来多少比例分红,请认真选择"); huadongmao("timu_1169"); return false; } } //遍历所有 for(var k=1;k<=jiliduixiang;k++){ if($('input:radio[name="timu_1171_'+k+'"]:checked').val()==null){ Page.tip("有漏选,请认真选择"); huadongmao("timu_1171_"+k); return false; } if($('input:radio[name="timu_1172_'+k+'"]:checked').val()==null){ Page.tip("有漏选,请认真选择"); huadongmao("timu_1172_"+k); return false; } if($('#timu_1173_1_'+k).val()==""){ Page.tip("有漏填,请认真选择"); huadongmao("timu_1173_1_"+k); return false; } if($('input:radio[name="timu_1174_'+k+'"]:checked').val()==null){ Page.tip("有漏选,请认真选择"); huadongmao("timu_1174_"+k); return false; } } return true; } function huadongmao(mao){ $("html,body").animate({scrollTop: $("#"+mao).offset().top}, 1000); } //timu_1170 //$("input:radio[name='timu_1170']").change(function (){ $("input:radio[name='timu_1170']").on('ifChanged', function(event){ //拨通 // alert('ok'); var chkRadio = $('input:radio[name="timu_1170"]:checked').val(); //alert(chkRadio); if(chkRadio=="A"){jiliduixiang=2;} if(chkRadio=="B"){jiliduixiang=3;} if(chkRadio=="C"){jiliduixiang=4;} if(chkRadio=="D"){jiliduixiang=5;} $.post("/gongjuxiangajax/4383.html",{"duixiangnum":chkRadio,"groupname":"1170"},function(result){ $("#rongqi").html(""); for(var i=0;i

激励对象"+(i+1)+"

"+result.replace(/{id}/g, (i+1)).replace(/子标题/g,(i+1))+""); } //重新渲染 $('input').iCheck({ checkboxClass: 'icheckbox_square-red', radioClass: 'iradio_square-red', increaseArea: '20%' // optional }); },'html'); }); $('#tijiao').on('click', function() { if(checkgongjuxiang()){ $('#qydc').ajaxSubmit(function(data) { if(data.indexOf("|")>0){ var xinxistr=data.split('|'); var gujiainfo=xinxistr[1].split(','); var nianfeninfo=xinxistr[0].split(','); var jijia= parseFloat(xinxistr[2]); //document.getElementById('main').style.width = window.innerWidth+'px'; $('#main').show(); var myChart = echarts.init(document.getElementById('main')); var arry2=[]; for(var i=0;i{b}" }, legend: { orient: 'vertical', left: 'left', data: gujiainfo }, series : [ { name: '股权分配', type: 'pie', radius : '55%', center: ['50%', '60%'], data:arry2, itemStyle: { emphasis: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: 'rgba(0, 0, 0, 0.5)' } } } ] }; // 使用刚指定的配置项和数据显示图表。 myChart.setOption(option); }else{ if(browserRedirect()){ location.href="/login_mobile.html"; }else{ location.href="/login.html"; } //alert("请登录再测试"); } }); } });