All checks were successful
continuous-integration/drone/push Build is passing
- home_navigations 表新增 Position 和 ActionType 字段 - 小程序 API 支持按 position 筛选导航列表 - 首页拆分专业测评和更多区域,动态渲染+QR弹窗 - 后台管理支持 Position/ActionType 配置和筛选 - ActionType=1 时 LinkUrl 必填验证 - 状态简化为 0=禁用/1=启用
47 lines
845 B
JavaScript
47 lines
845 B
JavaScript
/**
|
|
* 首页接口模块
|
|
*/
|
|
|
|
import { get } from './request'
|
|
|
|
/**
|
|
* 获取Banner列表
|
|
* @returns {Promise<Object>}
|
|
*/
|
|
export function getBannerList() {
|
|
return get('/home/getBannerList')
|
|
}
|
|
|
|
/**
|
|
* 获取测评入口列表
|
|
* @returns {Promise<Object>}
|
|
*/
|
|
export function getAssessmentList() {
|
|
return get('/home/getAssessmentList')
|
|
}
|
|
|
|
/**
|
|
* 获取首页导航入口列表
|
|
* @param {Object} [params] - 查询参数
|
|
* @param {number} [params.position] - 区域标识
|
|
* @returns {Promise<Object>}
|
|
*/
|
|
export function getNavigationList(params) {
|
|
return get('/home/getNavigationList', params)
|
|
}
|
|
|
|
/**
|
|
* 获取宣传图列表
|
|
* @returns {Promise<Object>}
|
|
*/
|
|
export function getPromotionList() {
|
|
return get('/home/getPromotionList')
|
|
}
|
|
|
|
export default {
|
|
getBannerList,
|
|
getAssessmentList,
|
|
getNavigationList,
|
|
getPromotionList
|
|
}
|