";
}
}
if(type=='goods'){
//商品
$("#goodList").append(goodHtm);
}else if(type=='news'){
//新闻
// $('.resultArea .content_form .area').addClass("hide");
// $('.resultArea .content_form .area .content_news').attr("style","display:block");
$("#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=='network'){
//招聘
$("#networkList").append(networkHtm);
}else if(type=='img'){
//招聘
$("#imgList").append(imgHtm);
}else if(type=='doc'){
//招聘
$("#docList").append(docHtm);
}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 = evals("["+$.trim(data)+"]")[0];
var obj = null;
var goods = 0;
var channel = 0;
var news = 0;
var product = 0;
var job = 0;
var network = 0;
var other = 0;
var video = 0;
var casenum = 0;
var imgnum = 0;
var docnum = 0;
if(json.list.length>0){
/*开始*/
for(var i = 0;i]*)\\s*>", "").replace("<[^<|^>]+>", "").replace("delete","").replace("insert", "").replace("update", "").replace("select", "").replace("<", "").replace(">","").replace("script", "").replace(" or ", "").replace("and", "").replace("iframe", "").replace(" href ","").replace(".*([';]+|(--)+).*", " ").replace("if","").replace("now","").replace("sleep","").replace("\\","").replace("\'","").replace("\'","").replace("\"","").replace("(","").replace(")","").replace("&","").replace("/","").replace("%","").replace("alert","").trim();
if(keywords==keyword){
return false;
}else{
keywords = keyword;
$('.searchArea .content_form .form_box .search .btn_wrap .btns').removeAttr("disabled","disabled");
}
});
function checkKey(keywords){
if(keywords==''||keywords=='请输入搜索词'){
alert("请输入关键词");
return false;
}else{
//$('.searchArea .content_form .form_box .search .btn_wrap .btns').attr("disabled","disabled");
$('.resultArea .content_form').attr("style","display:blank");
return true;
}
}
//console.log(decodeURI(GetQueryString("keywords"),'utf-8'));
function GetQueryString(name){
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
var r = window.locations.search.substr(1).match(reg);
if(r!=null)return r[2]; return null;
}
$(document).keyup(function(event){
if(event.keyCode ==13){
$(".searchArea .content_form .form_box .search .btn_wrap .btns").trigger("click");
}
});
});
seajs.use("channel-content-408");
var jrChannel='0#0';
seajs.use('js/channel_content');