huangye-parking/miniapp/api/config.js
2026-02-28 17:35:49 +08:00

28 lines
533 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 配置相关 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}`)
}