部分接口替换

This commit is contained in:
@fawn-nine
2023-10-13 13:19:22 +08:00
parent 2bf77d52a4
commit e01398f4a1
4 changed files with 176 additions and 55 deletions

View File

@@ -9,6 +9,7 @@
var apiUrl = "/"; var apiUrl = "/";
var apiUrlTG = "/"; var apiUrlTG = "/";
var apiUrlImg = "/public/"; var apiUrlImg = "/public/";
var apiSubmission = "https://submission.tmrjournals.com/";
// var apiUrlImg = "http://journalapi.tmrjournals.com/public/"; // var apiUrlImg = "http://journalapi.tmrjournals.com/public/";

View File

@@ -205,7 +205,7 @@ if (footer_map_ID == '125') {
'<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>'); '<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>');
$.ajax({ $.ajax({
type: 'post', url: apiUrl + 'api/Journal/getBWGJH', type: 'post', url: apiUrl + 'api/Journal/getBWGJH1',
data: { data: {
"journal_id": Jour_num "journal_id": Jour_num
}, },
@@ -320,7 +320,7 @@ if (footer_map_ID == '125') {
'<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>'); '<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>');
$.ajax({ $.ajax({
type: 'post', url: apiUrl + 'api/Journal/getBWGJH', type: 'post', url: apiUrl + 'api/Journal/getBWGJH1',
data: { data: {
"journal_id": Jour_num "journal_id": Jour_num
}, },
@@ -431,7 +431,7 @@ if (footer_map_ID == '125') {
'<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>'); '<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>');
$.ajax({ $.ajax({
type: 'post', url: apiUrl + 'api/Journal/getBWGJH', type: 'post', url: apiUrl + 'api/Journal/getBWGJH1',
data: { data: {
"journal_id": Jour_num "journal_id": Jour_num
}, },
@@ -540,7 +540,7 @@ if (footer_map_ID == '125') {
'<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>'); '<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>');
$.ajax({ $.ajax({
type: 'post', url: apiUrl + 'api/Journal/getBWGJH', type: 'post', url: apiUrl + 'api/Journal/getBWGJH1',
data: { data: {
"journal_id": Jour_num "journal_id": Jour_num
}, },
@@ -649,7 +649,7 @@ if (footer_map_ID == '125') {
'<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>'); '<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>');
$.ajax({ $.ajax({
type: 'post', url: apiUrl + 'api/Journal/getBWGJH', type: 'post', url: apiUrl + 'api/Journal/getBWGJH1',
data: { data: {
"journal_id": Jour_num "journal_id": Jour_num
}, },
@@ -758,7 +758,7 @@ if (footer_map_ID == '125') {
'<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>'); '<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>');
$.ajax({ $.ajax({
type: 'post', url: apiUrl + 'api/Journal/getBWGJH', type: 'post', url: apiUrl + 'api/Journal/getBWGJH1',
data: { data: {
"journal_id": Jour_num "journal_id": Jour_num
}, },
@@ -867,7 +867,7 @@ if (footer_map_ID == '125') {
'<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>'); '<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>');
$.ajax({ $.ajax({
type: 'post', url: apiUrl + 'api/Journal/getBWGJH', type: 'post', url: apiUrl + 'api/Journal/getBWGJH1',
data: { data: {
"journal_id": Jour_num "journal_id": Jour_num
}, },
@@ -976,7 +976,7 @@ if (footer_map_ID == '125') {
'<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>'); '<p style="padding: 20px;line-height: 20px;border-bottom: 1px solid #eee;margin-bottom: 25px;font-size: 16px;color: #888">The geographic diversity of the Editorial Board is marked on the world map. All members of the Editorial Board have identified their affiliated institutions and academic titles, along with the corresponding country or geographic region. TMR Publishing Group remains neutral with regard to any jurisdictional claims.</p>');
$.ajax({ $.ajax({
type: 'post', url: apiUrl + 'api/Journal/getBWGJH', type: 'post', url: apiUrl + 'api/Journal/getBWGJH1',
data: { data: {
"journal_id": Jour_num "journal_id": Jour_num
}, },

View File

@@ -181,13 +181,17 @@ function notice_con() {
if (arr.title == 'Editorial Board') { if (arr.title == 'Editorial Board') {
$.ajax({ $.ajax({
type: 'post', url: apiUrl + 'api/Journal/getBoard', type: 'post', url: apiUrl + 'api/Journal/getBoard1',
data: { data: {
"journal_id": Jour_num "journal_id": Jour_num
}, },
success: function (result) { success: function (result) {
if (result.code == 0) { if (result.code == 0) {
var arg = result.data.boards; // 编委会成员
var arg = result.data.data.boards;
// 期刊委员会
var committees = result.data.data.committees;
var editors = result.data.data.editors;
var str = ''; var str = '';
if (arg.main == undefined) { if (arg.main == undefined) {
@@ -195,20 +199,27 @@ function notice_con() {
} else { } else {
str += '<b>Editor-in-Chief</b><br><br>' str += '<b>Editor-in-Chief</b><br><br>'
for (var i = 0; i < arg.main.length; i++) { for (var i = 0; i < arg.main.length; i++) {
if (arg.main[i].board_icon == '') { if (arg.main[i].icon == '') {
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px;height: 75px;border-radius: 10px;">' var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
} else { } else {
var icon_img = '<img src="' + apiUrlImg + arg.main[i].board_icon + '" style="position: absolute;left: 0;top: 0;width: 75px;height: 75px;border-radius: 10px;">' var icon_img = '<img src="' + apiSubmission + 'public/usericon/' + arg.main[i].icon + '" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
} }
if (arg.main[i].field == '') { if (arg.main[i].research_areas == '') {
var dis_line = '' var dis_line = ''
} else { } else {
var dis_line = 'Research areas: ' + arg.main[i].field var dis_line = '<b>Research areas: </b>' + arg.main[i].research_areas
} }
if(arg.main[i].website != ''){
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' + str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
'<a href="' + arg.main[i].website + '" target="_blank" style="color: #006699">' + arg.main[i].name + '</a>, ' '<a href="' + arg.main[i].website + '" target="_blank" style="color: #006699">' + arg.main[i].realname + '</a>, Ph.D. '
+ arg.main[i].dr + ' ' + arg.main[i].title + '<br/>' + arg.main[i].email + '<br/>' + arg.main[i].technical + '<br/>' + arg.main[i].email + '<br/>'
+ arg.main[i].address + ' ' + arg.main[i].country + '<br/>' + dis_line + icon_img + '</li><br><br>' + arg.main[i].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
}else{
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
arg.main[i].realname + ', Ph.D. '
+ arg.main[i].technical + '<br/>' + arg.main[i].email + '<br/>'
+ arg.main[i].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
}
} }
} }
if (arg.remain == undefined) { if (arg.remain == undefined) {
@@ -216,20 +227,27 @@ function notice_con() {
} else { } else {
str += '<b>Vice Editor-in-Chief</b><br><br>' str += '<b>Vice Editor-in-Chief</b><br><br>'
for (var i = 0; i < arg.remain.length; i++) { for (var i = 0; i < arg.remain.length; i++) {
if (arg.remain[i].board_icon == '') { if (arg.remain[i].icon == '') {
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px;height: 75px;border-radius: 10px;">' var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
} else { } else {
var icon_img = '<img src="' + apiUrlImg + arg.remain[i].board_icon + '" style="position: absolute;left: 0;top: 0;width: 75px;height: 75px;border-radius: 10px;">' var icon_img = '<img src="' + apiSubmission + 'public/usericon/' + arg.remain[i].icon + '" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
} }
if (arg.remain[i].field == '') { if (arg.remain[i].research_areas == '') {
var dis_line = '' var dis_line = ''
} else { } else {
var dis_line = 'Research areas: ' + arg.remain[i].field var dis_line = '<b>Research areas: </b>' + arg.remain[i].research_areas
} }
if(arg.remain[i].website != ''){
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' + str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
'<a href="' + arg.remain[i].website + '" target="_blank" style="color: #006699">' + arg.remain[i].name + '</a>, ' '<a href="' + arg.remain[i].website + '" target="_blank" style="color: #006699">' + arg.remain[i].realname + '</a>, Ph.D. '
+ arg.remain[i].dr + ' ' + arg.remain[i].title + '<br/>' + arg.remain[i].email + '<br/>' + arg.remain[i].technical + '<br/>' + arg.remain[i].email + '<br/>'
+ arg.remain[i].address + ' ' + arg.remain[i].country + '<br/>' + dis_line + icon_img + '</li><br><br>' + arg.remain[i].company + ' <br/>' + dis_line + icon_img + '</li><br><br>'
}else{
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
arg.remain[i].realname + ', Ph.D. '
+ arg.remain[i].technical + '<br/>' + arg.remain[i].email + '<br/>'
+ arg.remain[i].company + ' <br/>' + dis_line + icon_img + '</li><br><br>'
}
} }
str += '<br>' str += '<br>'
} }
@@ -237,52 +255,154 @@ function notice_con() {
str += '' str += ''
} else { } else {
str += '<b>Editorial Board Members</b><br><br>' str += '<b>Editorial Board Members</b><br><br>'
// 未分组
$.each(arg.member, function (key, value) { //遍历键值对 $.each(arg.member, function (key, value) { //遍历键值对
if ($.isArray(arg.member[key]) == true) { if ($.isArray(arg.member[key]) == true) {
if(key == 'nogroup'){
for (var j = 0; j < arg.member[key].length; j++) {
if (arg.member[key][j].icon == '') {
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
} else {
var icon_img = '<img src="' + apiSubmission + 'public/usericon/' + arg.member[key][j].icon + '" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
}
if (arg.member[key][j].research_areas == '') {
var dis_line = ''
} else {
var dis_line = '<b>Research areas: </b>' + arg.member[key][j].research_areas
}
if (arg.member[key][j].realname == 'Jian Hao' || arg.member[key][j].realname == 'Mathew Goss' || arg.member[key][j].realname == 'Lucy Pi (Nuo-Xi Pi)' || arg.member[key][j].realname == 'Richard Shane Palmer' || arg.member[key][j].realname == 'Xin-Yun Zhang') {
if(arg.member[key][j].website != ''){
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
'<a href="' + arg.member[key][j].website + '" target="_blank" style="color: #006699">' + arg.member[key][j].realname + '</a>, Ph.D. '
+ arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
+ arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
}else{
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
arg.member[key][j].realname + ', Ph.D. '
+ arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
+ arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
}
} else {
if(arg.member[key][j].website != ''){
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
'<a href="' + arg.member[key][j].website + '" target="_blank" style="color: #006699">' + arg.member[key][j].realname + '</a>, Ph.D. '
+ arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
+ arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
}else{
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
arg.member[key][j].realname + ', Ph.D. '
+ arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
+ arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
}
}
}
}
}
})
// 有分组
$.each(arg.member, function (key, value) { //遍历键值对
if ($.isArray(arg.member[key]) == true) {
if(key != 'nogroup'){
str += '<b>' + key + '</b><br><br>' str += '<b>' + key + '</b><br><br>'
for (var j = 0; j < arg.member[key].length; j++) { for (var j = 0; j < arg.member[key].length; j++) {
if (arg.member[key][j].board_icon == '') { if (arg.member[key][j].icon == '') {
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px;height: 75px;border-radius: 10px;">' var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
} else { } else {
var icon_img = '<img src="' + apiUrlImg + arg.member[key][j].board_icon + '" style="position: absolute;left: 0;top: 0;width: 75px;height: 75px;border-radius: 10px;">' var icon_img = '<img src="' + apiSubmission + 'public/usericon/' + arg.member[key][j].icon + '" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
} }
if (arg.member[key][j].field == '') { if (arg.member[key][j].research_areas == '') {
var dis_line = '' var dis_line = ''
} else { } else {
var dis_line = 'Research areas: ' + arg.member[key][j].field var dis_line = '<b>Research areas: </b>' + arg.member[key][j].research_areas
} }
if (arg.member[key][j].name == 'Jian Hao' || arg.member[key][j].name == 'Mathew Goss' || arg.member[key][j].name == 'Lucy Pi (Nuo-Xi Pi)' || arg.member[key][j].name == 'Richard Shane Palmer' || arg.member[key][j].name == 'Xin-Yun Zhang') { if (arg.member[key][j].realname == 'Jian Hao' || arg.member[key][j].realname == 'Mathew Goss' || arg.member[key][j].realname == 'Lucy Pi (Nuo-Xi Pi)' || arg.member[key][j].realname == 'Richard Shane Palmer' || arg.member[key][j].realname == 'Xin-Yun Zhang') {
if(arg.member[key][j].website != ''){
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' + str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
'<a href="' + arg.member[key][j].website + '" target="_blank" style="color: #006699">' + arg.member[key][j].name + '</a>, ' '<a href="' + arg.member[key][j].website + '" target="_blank" style="color: #006699">' + arg.member[key][j].realname + '</a>, Ph.D. '
+ arg.member[key][j].dr + ' ' + arg.member[key][j].title + '<br/>' + arg.member[key][j].email + '<br/>' + arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
+ arg.member[key][j].address + '<br/>' + dis_line + icon_img + '</li><br><br>' + arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
}else{
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
arg.member[key][j].realname + ', Ph.D. '
+ arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
+ arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
}
} else { } else {
if(arg.member[key][j].website != ''){
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' + str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
'<a href="' + arg.member[key][j].website + '" target="_blank" style="color: #006699">' + arg.member[key][j].name + '</a>, ' '<a href="' + arg.member[key][j].website + '" target="_blank" style="color: #006699">' + arg.member[key][j].realname + '</a>, Ph.D. '
+ arg.member[key][j].dr + ' ' + arg.member[key][j].title + '<br/>' + arg.member[key][j].email + '<br/>' + arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
+ arg.member[key][j].address + ' ' + arg.member[key][j].country + '<br/>' + dis_line + icon_img + '</li><br><br>' + arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
}else{
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
arg.member[key][j].realname + ', Ph.D. '
+ arg.member[key][j].technical + '<br/>' + arg.member[key][j].email + '<br/>'
+ arg.member[key][j].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
}
} }
} }}
} else {
if (arg.member[key].board_icon == '') {
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px;height: 75px;border-radius: 10px;">'
} else {
var icon_img = '<img src="' + apiUrlImg + arg.member[key].board_icon + '" style="position: absolute;left: 0;top: 0;width: 75px;height: 75px;border-radius: 10px;">'
}
if (arg.member[key].field == '') {
var dis_line = ''
} else {
var dis_line = 'Research areas: ' + arg.member[key].field
}
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
'<a href="' + arg.member[key].website + '" target="_blank" style="color: #006699">' + arg.member[key].name + '</a>, '
+ arg.member[key].dr + ' ' + arg.member[key].title + '<br/>' + arg.member[key].email + '<br/>'
+ arg.member[key].address + ' ' + arg.member[key].country + '<br/>' + dis_line + icon_img + '</li><br><br>'
} }
}) })
str += '<br>' str += '<br>'
} }
// 期刊委员会
if(committees && committees.length > 0){
str += '<b>Academic Integrity Committee</b><br><br>'
for (var i = 0; i < committees.length; i++) {
if (committees[i].icon == '') {
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
} else {
var icon_img = '<img src="' + apiSubmission + 'public/usericon/' + committees[i].icon + '" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
}
if (committees[i].research_areas == '') {
var dis_line = ''
} else {
var dis_line = '<b>Research areas: </b>' + committees[i].research_areas
}
if(committees[i].website != ''){
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
'<a href="' + committees[i].website + '" target="_blank" style="color: #006699">' + committees[i].realname + '</a>, Ph.D. '
+ committees[i].technical + '<br/>' + committees[i].email + '<br/>'
+ committees[i].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
}else{
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px;width: 605px;">' +
committees[i].realname + ', Ph.D. '
+ committees[i].technical + '<br/>' + committees[i].email + '<br/>'
+ committees[i].company + '<br/>' + dis_line + icon_img + '</li><br><br>'
}
}
}else{
str += '';
}
// 期刊编辑
if(editors && editors.length > 0){
str += '<b>Editors & Staff</b><br><br>'
for (var i = 0; i < editors.length; i++) {
if (editors[i].icon == '') {
var icon_img = '<img src="img/rev_user.png" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
} else {
var icon_img = '<img src="' + apiSubmission + 'public/usericon/' + editors[i].icon + '" style="position: absolute;left: 0;top: 0;width: 75px; height:auto; border-radius: 10px;">'
}
if(editors[i].website != ''){
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px; width: 200px; float:left; margin-right:10px;">' +
'<a href="' + editors[i].website + '" target="_blank" style="color: #006699">' + editors[i].realname + '</a>,'
+ editors[i].editor_title + '<br/>' + editors[i].email + '<br/>'
+ icon_img + '</li>'
}else{
str += '<li style="position: relative;padding-left: 100px;margin-bottom: 30px; width: 200px; float:left; margin-right:10px;">' +
editors[i].realname + ', '
+ editors[i].editor_title + '<br/>' + editors[i].email + '<br/>'
+ icon_img + '</li>'
}
}
str += '<li style="clear:both">';
}else{
str += ''
}
$('.topics>div').append('<ul style="overflow: hidden;">' + str + '</ul>'); $('.topics>div').append('<ul style="overflow: hidden;">' + str + '</ul>');

View File

@@ -97,7 +97,7 @@ function sy_index() {
if (result.code == 0) { if (result.code == 0) {
var arr = result.data.specials; var arr = result.data.specials;
var str = ""; var str = "";
for (var i = 0; i < 2; i++) { for (var i = 0; i < 1; i++) {
if ($.cookie("username") != undefined && $.cookie("user_id") != undefined) { if ($.cookie("username") != undefined && $.cookie("user_id") != undefined) {
var co_sp_user = 'contribu_list.html?J_num=' + arr[i].journal_id + '&&special_id=' + arr[i].journal_special_id; var co_sp_user = 'contribu_list.html?J_num=' + arr[i].journal_id + '&&special_id=' + arr[i].journal_special_id;
} else { } else {