新疆正宗大盘鸡的做法做法的详细图解

':'')+
''+(iskw==1?'问:':'')+''+title+''+
''+(iskw==1?'答:':'')+summary+'[查看全文]'+
'';
return listContent;
}
//生成数据源接口
function createKSDataSourceUrl(searchWord,theSearchTimeB,theSearchTimeE,theSearchScope,sort,pageNo,pageSize){
var theUrl = 'http://ks.pcbaby.com.cn/search.jsp?appName=kids_fastknowledge&returnType=json&func=theCallbackFunction';
theUrl += '&return=account_id,account_name,url,title,TYPE_NAME,TYPE_ID,date,summary,answer_nums';
theUrl += ('&pageNo='+pageNo);
theUrl += ('&perPage='+pageSize);
theUrl += '&highlight=title,summary';
if(sort!=''){
theUrl += '&sort='+sort;
}
var qParam = '';
if (parseInt(theSearchScope) == 2) {
qParam += ('title:' + searchWord);
} else if (parseInt(theSearchScope) == 3) {
qParam += ('summary:' + searchWord);
} else {
qParam += ('title:' + searchWord + ' OR summary:' + searchWord);
}
if(theSearchTimeB != '' && theSearchTimeE != ''){
qParam = '('+ qParam +')'+ ' AND time:['+ getDealDate(theSearchTimeB)+' TO '+getDealDate(theSearchTimeE)+']';
}
return theUrl+'&q='+escape(qParam);
}
var theCallbackFunction = function(data){
var listContent
= '';
if(data.total > 0){
$.each(data.documents,function(i,n){
var url = "http://k.pcbaby.com.cn/question/"+n.url+".html";
listContent +=
createSingleRecord(n.account_id,n.account_name,url,n.title,n.summary,1);
});
$("#li_k").html(listContent);
}
}
var theJsonUrl = createKSDataSourceUrl('保健汤','','',1,'time',1,1)+ "&callback=?";
$.getJSON(theJsonUrl,theCallbackFunction);
//生成数据源接口
function createBBSDataSourceUrl(searchWord,theSearchTimeB,theSearchTimeE,theSearchScope,sort,pageNo,pageSize){
var theUrl = 'http://ks.pcbaby.com.cn/search.jsp?appName=kids_bbs&returnType=json&func=theBBSCallbackFunction';
theUrl += '&return=authorId,login,id,title,date,summary,access,replycount';
theUrl += ('&pageNo='+pageNo);
theUrl += ('&perPage='+pageSize);
theUrl += '&highlight=title,summary';
if(sort!=''){
theUrl += '&sort='+sort;
}
var qParam = '';
if (parseInt(theSearchScope) == 2) {
qParam += ('title:' + searchWord);
} else if (parseInt(theSearchScope) == 3) {
qParam += ('summary:' + searchWord);
} else {
qParam += ('title:' + searchWord + ' OR summary:' + searchWord);
}
if(theSearchTimeB != '' && theSearchTimeE != ''){
qParam = '('+ qParam +')'+ ' AND time:['+ getDealDate(theSearchTimeB)+' TO '+getDealDate(theSearchTimeE)+']';
}
return theUrl+'&q='+escape(qParam);
}
var theBBSCallbackFunction = function(data){
var listContent
= '';
if(data.total > 0){
$.each(data.documents,function(i,n){
var url = "http://bbs.pcbaby.com.cn/topic-"+n.id+".html";
listContent +=
createSingleRecord(n.authorId,n.login,url,n.title,n.summary,0);
});
$("#li_bbs").html(listContent);
}
}
var theBBSJsonUrl = createBBSDataSourceUrl('保健汤','','',1,'time',1,1)+ "&callback=?";
$.getJSON(theBBSJsonUrl,theBBSCallbackFunction);
//生成数据源接口
function createSNSDataSourceUrl(searchWord,searchScope,time_b,time_e,sort,pageNo,theSysType,pageSize){
theSysType = $.trim(theSysType);
var theUrl = 'http://ks.pcbaby.com.cn/search.jsp?appName=kids_blog_diary&returnType=json&func=theSNSCallbackFunction';
theUrl += '&return=id,accountId,nickName,title,createTime,summary,tag,replyCount';
theUrl += ('&pageNo='+pageNo);
theUrl += ('&perPage='+pageSize);
theUrl += '&highlight=title,summary';
theUrl += '&sort='+sort+':desc';
var qParam = '';
if(theSysType == '0'){
if (parseInt(searchScope) == 2) {
qParam += ('title:' + searchWord);
} else if (parseInt(searchScope) == 3) {
qParam += ('summary:' + searchWord);
} else if (parseInt(searchScope) == 4) {
qParam += ('nickName:' + searchWord);
} else if (parseInt(searchScope) == 5) {
qParam += ('tag:' + searchWord);
} else if (parseInt(searchScope) == 6) {
qParam += ('sysTypeId:' + searchWord);
} else if(parseInt(searchScope) == 7){
qParam += ('title:' + searchWord + 'OR summary:' + searchWord);
}else{
qParam += ('title:' + searchWord + ' OR nickName:' + searchWord+ ' OR tag:' + searchWord + ' OR summary:' + searchWord);
}
if(time_b != '' && time_e != ''){
qParam = '('+ qParam +')'+ ' AND createTime:['+ time_b+' TO '+time_e+']';
}
}else{
qParam='sysTypeId:'+theSysType;
}
return theUrl+'&q='+qParam;
}
var theSNSCallbackFunction = function(data){
var listContent
= '';
if(data.total > 0){
$.each(data.documents,function(i,n){
var url = "http://my.pcbaby.com.cn/d/"+n.id+".html";
listContent +=
createSingleRecord(n.accountId,n.nickName,url,n.title,n.summary,0);
});
$("#li_sns").html(listContent);
}
}
var theSNSJsonUrl = createSNSDataSourceUrl('保健汤','','',7,'time',1,'0',1)+ "&callback=?";
$.getJSON(theSNSJsonUrl,theSNSCallbackFunction);
}

我要回帖

更多关于 正宗大盘鸡的做法 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信