26 lines
965 B
JavaScript
26 lines
965 B
JavaScript
module.exports = {
|
|
BaseUrl: 'https://www.tujigu.net/',
|
|
AgentUrl: 'https://www.tujidao.com/index.php?m=Api',
|
|
InfoUrl: (id, page) => {
|
|
return page == 1 ? `https://www.tujigu.net/a/${id}/` : `https://www.tujigu.net/a/${id}/${page}.html`
|
|
},
|
|
// 机构的网址
|
|
jigou: function () {
|
|
return this.BaseUrl +'jigou/'
|
|
},
|
|
jigouList: function (id, page) {
|
|
return page == 0 ? `${this.BaseUrl}x/${id}/` : `${this.BaseUrl}x/${id}/index_${page}.html`
|
|
},
|
|
ClassList: function (id, page) {
|
|
return page == 0 ? `${this.BaseUrl}s/${id}/` : `${this.BaseUrl}s/${id}/index_${page}.html`
|
|
},
|
|
AllModel: function () {
|
|
return `${this.BaseUrl}mote/`;
|
|
},
|
|
ModelList: function (id, page) {
|
|
return page == 0 ? `${this.BaseUrl}t/${id}/` : `${this.BaseUrl}t/${id}/index_${page}.html`
|
|
},
|
|
Search: function (keyword) {
|
|
return `${this.BaseUrl}search/${encodeURIComponent(keyword)}`
|
|
}
|
|
} |