|
@@ -109,10 +109,6 @@ $(function() {
|
|
|
submitflag=false;
|
|
|
}
|
|
|
})
|
|
|
- //点击超级搜索按钮
|
|
|
- $(".superSearch").click(function(){
|
|
|
- $("#labModal").modal("show");
|
|
|
- })
|
|
|
})
|
|
|
//
|
|
|
function next(){
|
|
@@ -208,13 +204,13 @@ function appendDatas(datas,flag){
|
|
|
title = keyWordHighlight(title,searchvalueArray.join("|"),"<font class='com-highlight'>$1</font>");
|
|
|
detail = keyWordHighlight(detail,searchvalueArray.join("|"),"<font class='com-highlight'>$1</font>");
|
|
|
}
|
|
|
- var href = datas[i].href.replace(/\n/g,"");
|
|
|
- var aHref = '/article/content/'+datas[i]._id;
|
|
|
- if(searchvalue != ""){
|
|
|
- aHref += '.html?kds='+searchvalue;
|
|
|
- }else{
|
|
|
- aHref += '.html';
|
|
|
- }
|
|
|
+// var href = datas[i].href.replace(/\n/g,"");
|
|
|
+// var aHref = '/article/content/'+datas[i]._id;
|
|
|
+// if(searchvalue != ""){
|
|
|
+// aHref += '.html?kds='+searchvalue;
|
|
|
+// }else{
|
|
|
+// aHref += '.html';
|
|
|
+// }
|
|
|
var type = datas[i].subtype;
|
|
|
if(typeof(type) == "undefined" || type == null || type == ""){
|
|
|
type = datas[i].toptype;
|
|
@@ -235,7 +231,7 @@ function appendDatas(datas,flag){
|
|
|
+'<div class="liLuceneList" style="border-bottom: 1px solid #EBEBEB;">'
|
|
|
+'<div class="luce-left"><em>'+index+'.</em>'
|
|
|
+'<div class="left-title">'
|
|
|
- +'<a href="'+aHref+'"> '+title+'</a>'
|
|
|
+ +'<a onclick="noIn(this)" dataid="'+datas[i]._id+'" target="_blank"> '+title+'</a>'
|
|
|
+'</div>'
|
|
|
if(flag&&selectType == "all"&&detail!=""){
|
|
|
listHtml += '<div class="left-content">'
|
|
@@ -268,7 +264,7 @@ function appendDatas(datas,flag){
|
|
|
}
|
|
|
}
|
|
|
listHtml += '</div></li>';
|
|
|
- tableHtml +='<tr>'
|
|
|
+ tableHtml +='<tr onclick="noIn(this)" dataid="'+datas[i]._id+'" target="_blank">'
|
|
|
+'<td><div>'+index+'</div></td>'
|
|
|
if(typeof(datas[i].publishtime) != "undefined" && datas[i].publishtime != null && datas[i].publishtime != ""){
|
|
|
var diff = formatDate(Number(datas[i].publishtime),"s");
|
|
@@ -318,12 +314,12 @@ function appendDatas(datas,flag){
|
|
|
tableHtml += '<td class="tt-l"><div></div></td>';
|
|
|
}
|
|
|
if(typeof(datas[i].bidamount) != "undefined" && datas[i].bidamount != null && datas[i].bidamount != ""){
|
|
|
- var bidamount = parseInt(datas[i].bidamount)/10000
|
|
|
+ var bidamount = parseInt(datas[i].bidamount)/10000;
|
|
|
if(bidamount.toString().length>6){
|
|
|
if(bidamount.toString().indexOf(".")==5){
|
|
|
- bidamount=bidamount.toString().substr(0,7)
|
|
|
+ bidamount=bidamount.toString().substr(0,7);
|
|
|
}else{
|
|
|
- bidamount=bidamount.toString().substr(0,6)
|
|
|
+ bidamount=bidamount.toString().substr(0,6);
|
|
|
}
|
|
|
}
|
|
|
tableHtml += '<td class="tt-r"><div>'+bidamount+'</div></td>';
|
|
@@ -344,19 +340,32 @@ function appendDatas(datas,flag){
|
|
|
submitflag=true;
|
|
|
backTopAdjust();
|
|
|
}
|
|
|
+//关闭遮罩层
|
|
|
+function layerClose(){
|
|
|
+ $("#myModal").modal("hide");
|
|
|
+}
|
|
|
//
|
|
|
+function noIn(p){
|
|
|
+ var thisId = $(p).attr("dataId");
|
|
|
+ dataId = thisId;
|
|
|
+ if(loginflag){
|
|
|
+ var aHref = "";
|
|
|
+ if(searchvalue != ""){
|
|
|
+ aHref += '.html?kds='+searchvalue;
|
|
|
+ }else{
|
|
|
+ aHref += '.html';
|
|
|
+ }
|
|
|
+ window.open("/article/content/"+thisId+aHref);
|
|
|
+ }else{
|
|
|
+ $('#myModal').modal("show");
|
|
|
+ }
|
|
|
+}
|
|
|
//
|
|
|
function formatDate(date,sl) {
|
|
|
var myDate = new Date(date*1000);
|
|
|
var year=myDate.getFullYear();
|
|
|
var month=myDate.getMonth()+1;
|
|
|
-// if(month<10){
|
|
|
-// month="0"+month
|
|
|
-// }
|
|
|
- var date=myDate.getDate();
|
|
|
-// if(date<10){
|
|
|
-// date="0"+date
|
|
|
-// }
|
|
|
+ var date=myDate.getDate();
|
|
|
var hour = myDate.getHours()
|
|
|
var min = myDate.getMinutes()
|
|
|
if(sl=="l"){
|