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.
36 lines
793 B
36 lines
793 B
import {HTTP, Method} from '../utils/http.js'
|
|
|
|
const BaillConst = {
|
|
bail_list_url:'/api/content/getListByCode',
|
|
bail_tag_url: '/api/apicategory/childList', // 获取子分类和标题
|
|
}
|
|
class BillboardModel extends HTTP {
|
|
constructor () {
|
|
super()
|
|
}
|
|
// 根据不同的code获取 列表
|
|
fetchBailList (code, page, success) {
|
|
const params = {
|
|
url: BaillConst.bail_list_url + '?pageNo=' + page,
|
|
method: Method.POST,
|
|
success: success,
|
|
data: {
|
|
typeCode: code
|
|
}
|
|
}
|
|
this.request(params)
|
|
}
|
|
fetchTagsByCode(code, success) {
|
|
const params = {
|
|
url: BaillConst.bail_tag_url,
|
|
success: success,
|
|
method: Method.POST,
|
|
data: {
|
|
code: code
|
|
}
|
|
}
|
|
this.request(params)
|
|
}
|
|
}
|
|
|
|
export {BillboardModel}
|