索引展示形式
This commit is contained in:
@@ -6878,10 +6878,25 @@ function article_con() {
|
||||
var str = '';
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (arr[i].width == 0) {
|
||||
str += '<p>' + arr[i].content + '</p>'
|
||||
if(arr[i].is_title == 1){
|
||||
if(arr[i].content.indexOf("<p>") >= 0){
|
||||
str += "<div class='Ptitle'>"+arr[i].content+"</div>"
|
||||
}else{
|
||||
str += '<div class="Ptitle"><p>' + arr[i].content + '</p></div>'
|
||||
}
|
||||
}else{
|
||||
if(arr[i].content.indexOf("<p>") >= 0){
|
||||
str += arr[i].content
|
||||
}else{
|
||||
str += '<p>' + arr[i].content + '</p>'
|
||||
}
|
||||
}
|
||||
} else {
|
||||
str += '<div class="imgHnkl"><img src="https://submission.tmrjournals.com/public/mainimg/'
|
||||
+ arr[i].content + '" width="'+arr[i].width+'"/><p>' + arr[i].note + '</p></div>'
|
||||
var picsrc = 'https://submission.tmrjournals.com/public/mainimg/' + arr[i].content;
|
||||
var fun = "picPreview('"+ picsrc +"');"
|
||||
// console.log(fun)
|
||||
str += "<div class='imgHnkl'><img class='mainPicItem' onclick="+ fun +" src='https://submission.tmrjournals.com/public/mainimg/"
|
||||
+ arr[i].content + "' width='"+arr[i].width+"'/><p>" + arr[i].note + "</p></div>"
|
||||
}
|
||||
}
|
||||
$('.wen_rong .content-box .conthtmn').html(str);
|
||||
@@ -6894,18 +6909,18 @@ function article_con() {
|
||||
if(result.data.refers[rr].refer_type=='journal' && result.data.refers[rr].doilink != '' ){
|
||||
// journal
|
||||
xuhao ++
|
||||
item = "<div><p>"+ xuhao + '.' + result.data.refers[rr].author + result.data.refers[rr].title + "<i>" + result.data.refers[rr].joura +"</i>" + result.data.refers[rr].dateno + ". <br/>Available at:<a class='refsLink' href='"+ result.data.refers[rr].doilink +"' target='_blank' style='color:#006699'>"+ result.data.refers[rr].doilink +"</a></p></div>"
|
||||
item = "<div><p>"+ xuhao + '.' + result.data.refers[rr].author + result.data.refers[rr].title + ".<i>" + result.data.refers[rr].joura +"</i>" + result.data.refers[rr].dateno + ". <br/>Available at:<a class='refsLink' href='"+ result.data.refers[rr].doilink +"' target='_blank' style='color:#006699; word-wrap:break-word;'>"+ result.data.refers[rr].doilink +"</a></p></div>"
|
||||
refs += item
|
||||
}else if(result.data.refers[rr].refer_type=='book' && result.data.refers[rr].isbn != ''){
|
||||
// book
|
||||
xuhao ++
|
||||
item = "<div><p>"+ xuhao + '.' + result.data.refers[rr].author + result.data.refers[rr].title + result.data.refers[rr].dateno + ". <br/>Available at:<a target='_blank' href='" + result.data.refers[rr].isbn + "'> </p></div>"
|
||||
item = "<div><p>"+ xuhao + '.' + result.data.refers[rr].author + result.data.refers[rr].title+"." + result.data.refers[rr].dateno + ". <br/>Available at:<a target='_blank' style='color:#006699; word-wrap:break-word;' href='" + result.data.refers[rr].isbn + "'> </p></div>"
|
||||
refs += item
|
||||
|
||||
}else if(result.data.refers[rr].refer_type=='other' && result.data.refers[rr].refer_frag != '' && result.data.refers[rr].refer_frag.length > 15){
|
||||
// other
|
||||
xuhao ++
|
||||
item = "<div><p>"+ xuhao + '.' + result.data.refers[rr].refer_frag +"</p></div>"
|
||||
item = "<div><p>"+ xuhao + '.' + result.data.refers[rr].refer_frag +".</p></div>"
|
||||
refs += item
|
||||
}else{
|
||||
continue;
|
||||
@@ -7369,3 +7384,12 @@ function article_con() {
|
||||
})
|
||||
}
|
||||
|
||||
// 图片预览
|
||||
function picPreview(src){
|
||||
console.log(src)
|
||||
$('.PicPreview img').attr('src', src)
|
||||
$('.PicPreview').show()
|
||||
}
|
||||
$('.PicPreview').on('click', function () {
|
||||
$('.PicPreview').hide()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user