You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.1 KiB
50 lines
1.1 KiB
import { HTTP, Method } from '../utils/http.js'
|
|
|
|
const PolicyConst = {
|
|
policy_tag_url: '/api/apicategory/childList',
|
|
policy_list_url: '/api/content/getListByCode',
|
|
policy_artice_url: '/api/content/getOneListByCode'
|
|
}
|
|
class PolicyModel extends HTTP {
|
|
constructor() {
|
|
super()
|
|
}
|
|
// 获取人才政策 Tags
|
|
fetchPolicyTags(success) {
|
|
const params = {
|
|
url: PolicyConst.policy_tag_url,
|
|
success: success,
|
|
method: Method.POST,
|
|
data: {
|
|
code: 'sc-rczc'
|
|
}
|
|
}
|
|
this.request(params)
|
|
}
|
|
// 获取政策相关文章列表
|
|
fetchPolicyList (page, title='', success) {
|
|
const params = {
|
|
url: PolicyConst.policy_list_url + '?pageNo=' + page,
|
|
success: success,
|
|
method: Method.POST,
|
|
data: {
|
|
typeCode: 'sc-rczc',
|
|
title: title
|
|
}
|
|
}
|
|
this.request(params)
|
|
}
|
|
fetchPolicyArtice (code, success) {
|
|
const params = {
|
|
url: PolicyConst.policy_artice_url,
|
|
success: success,
|
|
method: Method.POST,
|
|
data: {
|
|
typeCode: code
|
|
}
|
|
}
|
|
this.request(params)
|
|
}
|
|
}
|
|
|
|
export { PolicyModel }
|