$(document).ready(function () {
function getUrl(wjtype = 1, currpage = 1, pagesize = 10, jdtype = '') {
return `/consultfront/common/getoldageManuscriptList/?check=do&wjtype=${wjtype}&pagesize=${pagesize}&currpage=${currpage}&jdtype=${jdtype}`
}
//鏀跨瓥瑙h鍒楄〃
$.ajax({
url: getUrl(2, 1, 7),
type: "get",
dataType: 'json',
success: function (res) {
//console.log(data)
if (res?.retCode == 0) {
var htmlStr = ''
if (res.infolist?.length) {
res.infolist.forEach(function (item) {
htmlStr += '
' + item.title + '' + item.ptime + ''
})
}
$('.zcjdlist').html(htmlStr)
}
}
});
//鏀跨瓥瑙h鍥剧墖
$.ajax({
url: getUrl(2, 1, 1, 't_pic'),
type: "get",
dataType: 'json',
success: function (res) {
//console.log(data)
if (res?.retCode == 0) {
var htmlStr = ''
if (res.infolist?.length) {
res.infolist.forEach(function (item) {
htmlStr += '' + item.title + ''
})
}
$('.sp-pic').html(htmlStr)
}
}
});
//鏀跨瓥鏂囦欢
$.ajax({
url: getUrl(1, 1, 3, ''),
type: "get",
dataType: 'json',
success: function (res) {
//console.log(data)
if (res?.retCode == 0) {
var htmlStr = ''
if (res.infolist?.length) {
res.infolist.forEach(function (item) {
htmlStr += '' + item.title + ''
})
}
$('.zcwj-links .icons').html(htmlStr)
}
}
});
})