feat:详情也调整优化
This commit is contained in:
1 parent
4bf7b52918
commit
e93946c971
5 files changed
+139
-14
No files matched your search
+69
-2
@@ -56,7 +56,7 @@ export const BENEFIT_TYPE_SHORT = {
|
||||
general: "通用",
|
||||
};
|
||||
|
||||
/** 权益类型 → 卡片类型行图标 */
|
||||
/** 权益类型 → 卡片类型行图标(板块级兜底) */
|
||||
export const BENEFIT_TYPE_ICON = {
|
||||
scenic: "peak",
|
||||
stay: "bed",
|
||||
@@ -65,6 +65,73 @@ export const BENEFIT_TYPE_ICON = {
|
||||
general: "gift",
|
||||
};
|
||||
|
||||
/**
|
||||
* 权益 `type_label`(中文,接口字段)→ 卡片类型行图标
|
||||
* 同一商家下权益类型可能不同(如云从朵花既有「住宿」又有「温泉」),故按权益自己的标签取图标。
|
||||
*/
|
||||
export const BENEFIT_LABEL_ICON = {
|
||||
住宿: "bed",
|
||||
美食: "food",
|
||||
餐饮: "food",
|
||||
宴席: "table",
|
||||
景区: "peak",
|
||||
温泉: "hotspring",
|
||||
加油: "fuel",
|
||||
商超: "cart",
|
||||
特产: "ticket",
|
||||
通用: "gift",
|
||||
};
|
||||
|
||||
/** 权益 `type_icon`(英文,接口字段)→ 本地图标名,兼容常见写法 */
|
||||
export const BENEFIT_ICON_ALIAS = {
|
||||
bed: "bed",
|
||||
hotel: "bed",
|
||||
room: "bed",
|
||||
stay: "bed",
|
||||
sleep: "bed",
|
||||
lodging: "bed",
|
||||
food: "food",
|
||||
meal: "food",
|
||||
restaurant: "food",
|
||||
dining: "food",
|
||||
eat: "food",
|
||||
table: "table",
|
||||
banquet: "table",
|
||||
feast: "table",
|
||||
dinner: "table",
|
||||
peak: "peak",
|
||||
scenic: "peak",
|
||||
mountain: "peak",
|
||||
view: "peak",
|
||||
spot: "peak",
|
||||
hotspring: "hotspring",
|
||||
hot_spring: "hotspring",
|
||||
"hot-spring": "hotspring",
|
||||
"hot spring": "hotspring",
|
||||
spring: "hotspring",
|
||||
spa: "hotspring",
|
||||
onsen: "hotspring",
|
||||
fuel: "fuel",
|
||||
gas: "fuel",
|
||||
gas_station: "fuel",
|
||||
"gas-station": "fuel",
|
||||
oil: "fuel",
|
||||
petrol: "fuel",
|
||||
gasoline: "fuel",
|
||||
station: "fuel",
|
||||
cart: "cart",
|
||||
shop: "cart",
|
||||
store: "cart",
|
||||
market: "cart",
|
||||
supermarket: "cart",
|
||||
super_market: "cart",
|
||||
mall: "cart",
|
||||
shopping: "cart",
|
||||
ticket: "ticket",
|
||||
specialty: "ticket",
|
||||
gift: "gift",
|
||||
};
|
||||
|
||||
/** 我的权益状态子分段(全部 / 可使用 / 已失效) */
|
||||
export const BENEFIT_SUB_TABS = [
|
||||
{ key: "all", label: "全部" },
|
||||
@@ -72,7 +139,7 @@ export const BENEFIT_SUB_TABS = [
|
||||
{ key: "invalid", label: "已失效" },
|
||||
];
|
||||
|
||||
/** 板块 key → 详情页介绍卡标题(接口不提供,前端按 section_key 派生) */
|
||||
/** 板块 key → 详情页介绍卡标题(type_label 缺失时的兜底;正常取 type_label + 介绍) */
|
||||
export const SECTION_INTRO_TITLE = {
|
||||
scenic: "景区介绍",
|
||||
stay: "酒店介绍",
|
||||
|
||||
Reference in new issue
Block a user