feat:mock 的对接了首页、分类、商家列表和详情的接口
This commit is contained in:
1 parent
87cf7dfbaa
commit
d723eb1232
20 files changed
+3948
-333
No files matched your search
+23
-21
@@ -26,18 +26,22 @@ export const BENEFIT_STATUS = {
|
||||
SOLD_OUT: "sold_out",
|
||||
};
|
||||
|
||||
/** 权益类型 → 展示名(用于筛选 chip 与卡片类型行) */
|
||||
/** 权益类型 → 展示名(用于筛选 chip 与卡片类型行);键与接口 section_key 同一套 */
|
||||
export const BENEFIT_TYPES = [
|
||||
{ key: "all", label: "全部" },
|
||||
{ key: "ticket", label: "景区游玩" },
|
||||
{ key: "lodging", label: "住宿" },
|
||||
{ key: "scenic", label: "景区游玩" },
|
||||
{ key: "stay", label: "住宿" },
|
||||
{ key: "food", label: "餐饮" },
|
||||
{ key: "specialty", label: "特产" },
|
||||
];
|
||||
|
||||
/**
|
||||
* 权益类型 → 展示名 / 图标(键 = 接口 section_key)。
|
||||
* 详情页权益取 `section_key`,权益中心取 `type`,两处取值同一套键。
|
||||
*/
|
||||
export const BENEFIT_TYPE_LABEL = {
|
||||
ticket: "景区 / 游玩权益",
|
||||
lodging: "住宿权益",
|
||||
scenic: "景区 / 游玩权益",
|
||||
stay: "住宿权益",
|
||||
food: "餐饮权益",
|
||||
specialty: "特产权益",
|
||||
general: "通用权益",
|
||||
@@ -45,8 +49,8 @@ export const BENEFIT_TYPE_LABEL = {
|
||||
|
||||
/** 权益类型 → 卡片类型行图标 */
|
||||
export const BENEFIT_TYPE_ICON = {
|
||||
ticket: "peak",
|
||||
lodging: "bed",
|
||||
scenic: "peak",
|
||||
stay: "bed",
|
||||
food: "food",
|
||||
specialty: "ticket",
|
||||
general: "gift",
|
||||
@@ -59,22 +63,20 @@ export const BENEFIT_SUB_TABS = [
|
||||
{ key: "invalid", label: "已失效" },
|
||||
];
|
||||
|
||||
/** 内容集合 → 详情页介绍标题(v0.9:按内容类型命名) */
|
||||
export const INTRO_TITLE = {
|
||||
attractions: "景区介绍",
|
||||
attraction_subprojects: "景区介绍",
|
||||
accommodations: "酒店介绍",
|
||||
foods: "美食介绍",
|
||||
specialties: "特产介绍",
|
||||
/** 板块 key → 详情页介绍卡标题(接口不提供,前端按 section_key 派生) */
|
||||
export const SECTION_INTRO_TITLE = {
|
||||
scenic: "景区介绍",
|
||||
stay: "酒店介绍",
|
||||
food: "美食介绍",
|
||||
specialty: "特产介绍",
|
||||
};
|
||||
|
||||
/** 集合 → 所属板块 key */
|
||||
export const SECTION_OF_COLLECTION = {
|
||||
attractions: "tourism",
|
||||
attraction_subprojects: "tourism",
|
||||
accommodations: "lodging",
|
||||
foods: "food",
|
||||
specialties: "specialties",
|
||||
/** 板块 key → 列表页大标题(接口不提供,前端自持) */
|
||||
export const SECTION_TITLE = {
|
||||
scenic: "龙里票根经济",
|
||||
stay: "旅居服务",
|
||||
food: "全域美食",
|
||||
specialty: "龙里特产",
|
||||
};
|
||||
|
||||
/** 运营信息 */
|
||||
|
||||
Reference in new issue
Block a user