"
}
}
//新闻news党建product公益goodsESG报告case招聘job
if(type=='goods'){
//商品
$("#goodList").append(goodHtm);
}else if(type=='news'){
//新闻
$("#newList").append(newHtm);
}else if(type=="channel"){
//栏目
$("#channelList").append(channelHtm);
}else if(type=="product"){
//产品
$("#productList").append(productHtm);
}else if(type=='other'){
//其他
$("#otherList").append(otherHtm);
}else if(type=='job'){
//招聘
$("#jobList").append(jobHtm);
}else if(type=='video'){
//视频
$("#videoList").append(videoHtm);
// 变量定义
var video_width,video_height;
// 屏幕类型改变后执行的代码
$('body').on("screenChanged",function(){
multiScreenJs(base.getType());
});
multiScreenJs(base.getType());
function multiScreenJs(tempType){
if (tempType == 'Pc') {
// 56.25%
video_width = 960;
video_height = 540;
}else if(tempType == "Pad" || tempType == "Padp"){
video_width = 760;
video_height = 427;
}else {
video_width = '100%';
video_height = 300;
}
}
$('.resultArea .content_form .content_video li').each(function(){
$(this).data('v').length > 0 ? $(this).addClass('hasVideo') : false;
});
var videoControl;
if (base.browser.ie > 8 || base.browser.ie == 0) {
videoControl = true
}else{
videoControl = false
}
$('body').on('click','.hasVideo',function(){
if($.trim($(this).data('v'))){
//e.preventDefault();
var tmp=$(this).data('v');
var videoId='video'+Math.floor(Math.random()*100000);
var _dom =''
+ ''
+ '';
$.box( _dom,{
width:video_width != '100%' ? video_width : $(window).width(),
height:video_height+40,
hook:'i_video_box',
layout:false,
// 第三方视频回调
onshow:function(){
$('.i_video_box').find('#about-close').click(function(){
$.box.hide();
})
}
});
}
});
}else if(type=='case'){
//案例
$("#caseList").append(caseHtm);
}
$('.searchArea .textDelBtn').click(function(event) {
$(".searchArea .content_form .form_box .search .input_wrap input").val('');
});
$(".searchArea .content_form .form_box .search .input_wrap input").keypress(function(e){
if(e.keyCode>=1){
$('.searchArea .content_form .form_box .search .btn_wrap .btns').removeAttr("disabled","disabled");
}
});
$("#keyword").html(keywords);
return true;
}
});
}
//ajax获取总数
function getCount(keywords){
//异步查询条数
$.ajax({
url : "/core/control/wcm_common_website/control.jsp",
cache : false ,
async : true ,
data : {
method:"num",
keywords:keywords
},
success :function(data){
var json = data;
var obj = null;
var goods = 0;
var channel = 0;
var news = 0;
var product = 0;
var job = 0;
var other = 0;
var video = 0;
var casenum = 0;
if(json.list.length>0){
/*开始*/
for(var i = 0;i