28 lines
533 B
JavaScript
28 lines
533 B
JavaScript
/**
|
||
* 配置相关 API
|
||
*/
|
||
import { get } from '@/utils/request'
|
||
|
||
/**
|
||
* 获取 Banner 列表
|
||
*/
|
||
export function getBanners() {
|
||
return get('/api/config/banners')
|
||
}
|
||
|
||
/**
|
||
* 获取弹窗内容
|
||
* @param {string} type - 弹窗类型:verify-flow / points-desc
|
||
*/
|
||
export function getPopup(type) {
|
||
return get(`/api/config/popups/${type}`)
|
||
}
|
||
|
||
/**
|
||
* 获取协议内容
|
||
* @param {string} type - 协议类型:user-agreement / privacy-policy
|
||
*/
|
||
export function getAgreement(type) {
|
||
return get(`/api/config/agreement/${type}`)
|
||
}
|