返回千库网首页
千库网 >  ppt模板下载 >  var globaluid = 0; var kid = 0; //下载路径 var rootUrl = '/index.php'; var sp = '1'; var mykeyword = '颁奖'; //加载时间 $(function(){ var key="颁奖"; var pinyin="banjiang"; // $.ajax({ // url:"//ajax2.w1wt.com/index.php?m=searchtips&a=searchAbout&kw=" + key + "&select_index=" + 13 + "&py="+pinyin+"&callback=?", // dataType:'jsonp', // jsonp:'callback', // xhrFields:{withCredentials:true}, // success:function(data){ // if (data != "") { // $(".wp-relatedSec").find('.keyword-box').html(data) // $(".wp-relatedSec").show(); // } else { // $(".wp-relatedSec").hide(); // } // } // }) }) $(window).load(function() { var d = new Date(); var a = d.getTime(); var c = (a - beginTime) / 1000; $("#exectime").html(" " + c + " 秒"); var tp_cost_time = 0.0092; $.getJSON("//ajax.w1wt.com/index.php?m=ajax&a=page_cost&exec_time=" + c + "&tp_cost_time=" + tp_cost_time + "&type=" + b + "&callback=?", function(e) { }); $.ajax({ url:"//ajax.w1wt.com/?m=ajax&a=totalOffice", dataType:'jsonp', jsonp:'callback', jsonpCallback:'getName', xhrFields:{withCredentials:true}, success:function(data){ } }) $.getJSON("//ajax2.w1wt.com/?m=searchAnaly&a=sidGatherOffice&keyword="+mykeyword+"&sp="+sp+"&callback=?", function(e) {}); }); function page(pos,picid){ $.getJSON("//ajax2.w1wt.com/?m=searchAnaly&a=office&pos="+pos+"&sp="+sp+"&keyword="+mykeyword+"&picid="+picid+"&callback=?", function(e) {}); } function changjClick(){ if(!globaluid) { return false; } $.post('/index.php?m=ajaxone&a=changjClick', { uid:globaluid}, function(data) { if (data.status == 200){ return; } else { return; } },'json'); } $('.nonofavgwj').click(function(){ if(!globaluid) { qqweixin(); return false; } var picid = $(this).attr('data'); var act = 1; var collectBool = $(this).attr('data-collectBool'); var that=$(this); //var showtext = '已收藏'; if (collectBool == '1') { act = 2; $(this).removeClass('on').attr('data-collectBool','0'); //showtext = '收藏'; //that.html(showtext); }else{ $(this).addClass('on').attr('data-collectBool','1'); //that.html(showtext + ''); } $.post('/index.php?m=Office&a=addCollect', {picid:picid, act:act}, function(data) { if (data.status == 200){ return; } else { // alert(data.info); return; } },'json'); return; }) $('.download').click(function(){ if(!globaluid) { qqweixin(); return false; } // var picid = $(this).attr('data'); // window.open('//w1wt.com/office/'+picid+'.html') ;//带上用户id验证 }) //更新搜索词的最大搜索数