Files
Jaya 322dd10a43 feat(routes): add 南京晓庄学院图书馆通知公告、江苏海洋大学通知公告、江苏海洋大学研招网通知公告 (#12176)
* feat: add jou yztzgg

* feat: add njxzc lib tzgg

* feat: add jou index and yz && njxzc lib

* docs: update university.md

* fix: fix typos in jou and njxzc

* docs: remove the  extra backslash

* fix: fix university.md

* refactor: Extract common getItems function into utils/index.js

* fix: fix typos in njxzc/radar.js

* refactor: filter the tr items with css selector

* fix: fix invalid date

* style: format jou utils

* fix: add timeStyleClass2 in jou yz
2023-03-27 20:11:01 +08:00

27 lines
579 B
JavaScript

const { getNoticeList } = require('./utils');
const url = 'https://lib.njxzc.edu.cn/pxyhd/list.htm';
const host = 'https://lib.njxzc.edu.cn';
module.exports = async (ctx) => {
const out = await getNoticeList(
ctx,
url,
host,
'a',
'.news_meta',
{
title: '.arti_title',
content: '.wp_articlecontent',
date: '.arti_update',
},
'.news'
);
ctx.state.data = {
title: '南京晓庄学院 -- 图书馆通知公告',
link: url,
item: out,
};
};