/* * 基金理财产品购买跳转 */ function trunBuy(obj1,obj2,obj3){ var url; if(obj3=='fd'){ url="https://www.yypt.net.cn/financial/portal/purchOrSube.do?fundId="+obj1+"&chargeType="+obj2+"&purchaseFlag=0"; }else if(obj3=='pf'){ url="https://www.yypt.net.cn/financial/portal/purchaseFincProd.do?prodCode="+obj1+"&purchaseFlag=1"; } window.open(url); } function goldBuy(){ var url = "https://www.yypt.net.cn/financial/login.do"; window.open(url); } function clearInput(){ document.getElementById("textfield2").value=""; document.getElementById("textfield3").value=""; document.getElementById("textfield5").value=""; } /* *获取代理基金 */ function getProxyFundByType(obj){ var type = $(obj).html(); if(type=='股票型'){ type='gpx'; }else if(type=='混合型'){ type='hhx'; }else if(type=='债券型'){ type='zqx'; }else if(type=='货币型'){ type='hbx'; }else if(type=='保本型'){ type='bbx'; } var url=$("#webapp").val()+"/fund/proxy.action?type="+type; $.post(url,null, function(callback){ //document.getElementById("proxyFundTab").innerHTML=callback; $("#proxyFundTab").html(callback); },"html" ); } /* * 基金组合分析 */ function fundAnaly(){ for(var i=1;i<=5;i++){ var name=$("#name"+i).val(); var scale=$("#scale"+i).val(); if(name==0 || scale==null || scale==""){ alert("存在未选择项或输入项,无法分析!"); return false; } $("#fundCode"+i).val(name); } if(document.getElementById("sel3").checked==true){ var date1=$("#dateselect1").val(); var date2=$("#dateselect2").val(); if(date1==null || date1=="" || date2==null || date2==""){ alert("请选择自定义区间时间"); return false; } } document.analy.submit(); }