'; } $("#imgPer").html(htmlPer); $("#imgDiv").html(html); }else{ alert(data.resultInfo); } } }); } var setting = { data: { simpleData: { enable: true } } }; var zNodes = [{ id:'1', pId:'0', name:'垫片冲裁模设计【6张图纸】.rar', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00001', pId:'1', name:'冲孔凸模.dwg (36KB)', click:'getBookinfo(8139813)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00002', pId:'1', name:'凸模图.dwg (39KB)', click:'getBookinfo(8139814)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00003', pId:'1', name:'凹模图.dwg (58KB)', click:'getBookinfo(8139815)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00004', pId:'1', name:'垫片冲裁模设计说明书.doc (612KB)', click:'getBookinfo(8139816)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00005', pId:'1', name:'实习总结.doc (22KB)', click:'getBookinfo(8139817)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00006', pId:'1', name:'落料凸模.dwg (54KB)', click:'getBookinfo(8139818)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00007', pId:'1', name:'表格.doc (219KB)', click:'getBookinfo(8139819)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00008', pId:'1', name:'装配图.dwg (62KB)', click:'getBookinfo(8139820)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00009', pId:'1', name:'零件图.dwg (54KB)', click:'getBookinfo(8139821)', icon:'/Images/filetype/DOC16.PNG'}]; var zNodes2 = [{ id:'1', pId:'0', name:'垫片冲裁模设计【6张图纸】.rar', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00001', pId:'1', name:'冲孔凸模.dwg',url:'https://www.zsdocx.com/p-8139813.html', target:'_blank' },{ id:'00002', pId:'1', name:'凸模图.dwg',url:'https://www.zsdocx.com/p-8139814.html', target:'_blank' },{ id:'00003', pId:'1', name:'凹模图.dwg',url:'https://www.zsdocx.com/p-8139815.html', target:'_blank' },{ id:'00004', pId:'1', name:'垫片冲裁模设计说明书.doc',url:'https://www.zsdocx.com/p-8139816.html', target:'_blank' },{ id:'00005', pId:'1', name:'实习总结.doc',url:'https://www.zsdocx.com/p-8139817.html', target:'_blank' },{ id:'00006', pId:'1', name:'落料凸模.dwg',url:'https://www.zsdocx.com/p-8139818.html', target:'_blank' },{ id:'00007', pId:'1', name:'表格.doc',url:'https://www.zsdocx.com/p-8139819.html', target:'_blank' },{ id:'00008', pId:'1', name:'装配图.dwg',url:'https://www.zsdocx.com/p-8139820.html', target:'_blank' },{ id:'00009', pId:'1', name:'零件图.dwg',url:'https://www.zsdocx.com/p-8139821.html', target:'_blank' }]; $(document).ready(function(){ if(JSON.stringify(zNodes)=="{}") { $("#ysyl").hide(); }else { $.fn.zTree.init($("#treeDemo"), setting, zNodes); $.fn.zTree.init($("#treeDemo2"), setting, zNodes2); } }); $(function() { $("#jubao input[type='radio']").click(function() { $("#hidTypeID").val($(this).val()); }); }); function jubao() { var userid = '0'; if (userid != "" && userid != undefined && userid != "0") { $("#jubao").show(); } else { alert("请登录!");window.location.href='login.aspx'; } } function saveJuBao() { var bookid = '3524575'; var type = $("#hidTypeID").val(); if (type != "" && type != undefined && bookid != "" && bookid != undefined) { $.ajax({ type: "post", url: "View.aspx/JuBao", data: "{bookid: '" + bookid + "', type: '" + type + "' }", contentType: "application/json; charset=utf-8", dataType: "json", success: function(data) { $("#jubao").hide(); $("#jubaoResponse").show(); if (data.d != "0") { $("#jubaoResponse h4").html("您的举报提交成功"); } else { $("#jubaoResponse h4").html("您的举报提交失败"); } } }); } else { alert("请选择投诉类型或者数据错误请刷新重试!"); } } $(function(){ $(document).bind("contextmenu",function(e){ return false; }); });