提交 | 用户 | 时间
|
314507
|
1 |
// APP 链接分组 |
H |
2 |
export interface AppLinkGroup { |
|
3 |
// 分组名称 |
|
4 |
name: string |
|
5 |
// 链接列表 |
|
6 |
links: AppLink[] |
|
7 |
} |
|
8 |
// APP 链接 |
|
9 |
export interface AppLink { |
|
10 |
// 链接名称 |
|
11 |
name: string |
|
12 |
// 链接地址 |
|
13 |
path: string |
|
14 |
// 链接的类型 |
|
15 |
type?: APP_LINK_TYPE_ENUM |
|
16 |
} |
|
17 |
|
|
18 |
// APP 链接类型(需要特殊处理,例如商品详情) |
|
19 |
export const enum APP_LINK_TYPE_ENUM { |
|
20 |
// 拼团活动 |
|
21 |
ACTIVITY_COMBINATION, |
|
22 |
// 秒杀活动 |
|
23 |
ACTIVITY_SECKILL, |
|
24 |
// 文章详情 |
|
25 |
ARTICLE_DETAIL, |
|
26 |
// 优惠券详情 |
|
27 |
COUPON_DETAIL, |
|
28 |
// 自定义页面详情 |
|
29 |
DIY_PAGE_DETAIL, |
|
30 |
// 品类列表 |
|
31 |
PRODUCT_CATEGORY_LIST, |
|
32 |
// 商品列表 |
|
33 |
PRODUCT_LIST, |
|
34 |
// 商品详情 |
|
35 |
PRODUCT_DETAIL_NORMAL, |
|
36 |
// 拼团商品详情 |
|
37 |
PRODUCT_DETAIL_COMBINATION, |
|
38 |
// 秒杀商品详情 |
|
39 |
PRODUCT_DETAIL_SECKILL |
|
40 |
} |
|
41 |
|
|
42 |
// APP 链接列表(做一下持久化?) |
|
43 |
export const APP_LINK_GROUP_LIST = [ |
|
44 |
{ |
|
45 |
name: '商城', |
|
46 |
links: [ |
|
47 |
{ |
|
48 |
name: '首页', |
|
49 |
path: '/pages/index/index' |
|
50 |
}, |
|
51 |
{ |
|
52 |
name: '商品分类', |
|
53 |
path: '/pages/index/category', |
|
54 |
type: APP_LINK_TYPE_ENUM.PRODUCT_CATEGORY_LIST |
|
55 |
}, |
|
56 |
{ |
|
57 |
name: '购物车', |
|
58 |
path: '/pages/index/cart' |
|
59 |
}, |
|
60 |
{ |
|
61 |
name: '个人中心', |
|
62 |
path: '/pages/index/user' |
|
63 |
}, |
|
64 |
{ |
|
65 |
name: '商品搜索', |
|
66 |
path: '/pages/index/search' |
|
67 |
}, |
|
68 |
{ |
|
69 |
name: '自定义页面', |
|
70 |
path: '/pages/index/page', |
|
71 |
type: APP_LINK_TYPE_ENUM.DIY_PAGE_DETAIL |
|
72 |
}, |
|
73 |
{ |
|
74 |
name: '客服', |
|
75 |
path: '/pages/chat/index' |
|
76 |
}, |
|
77 |
{ |
|
78 |
name: '系统设置', |
|
79 |
path: '/pages/public/setting' |
|
80 |
}, |
|
81 |
{ |
|
82 |
name: '常见问题', |
|
83 |
path: '/pages/public/faq' |
|
84 |
} |
|
85 |
] |
|
86 |
}, |
|
87 |
{ |
|
88 |
name: '商品', |
|
89 |
links: [ |
|
90 |
{ |
|
91 |
name: '商品列表', |
|
92 |
path: '/pages/goods/list', |
|
93 |
type: APP_LINK_TYPE_ENUM.PRODUCT_LIST |
|
94 |
}, |
|
95 |
{ |
|
96 |
name: '商品详情', |
|
97 |
path: '/pages/goods/index', |
|
98 |
type: APP_LINK_TYPE_ENUM.PRODUCT_DETAIL_NORMAL |
|
99 |
}, |
|
100 |
{ |
|
101 |
name: '拼团商品详情', |
|
102 |
path: '/pages/goods/groupon', |
|
103 |
type: APP_LINK_TYPE_ENUM.PRODUCT_DETAIL_COMBINATION |
|
104 |
}, |
|
105 |
{ |
|
106 |
name: '秒杀商品详情', |
|
107 |
path: '/pages/goods/seckill', |
|
108 |
type: APP_LINK_TYPE_ENUM.PRODUCT_DETAIL_SECKILL |
|
109 |
} |
|
110 |
] |
|
111 |
}, |
|
112 |
{ |
|
113 |
name: '营销活动', |
|
114 |
links: [ |
|
115 |
{ |
|
116 |
name: '拼团订单', |
|
117 |
path: '/pages/activity/groupon/order' |
|
118 |
}, |
|
119 |
{ |
|
120 |
name: '营销商品', |
|
121 |
path: '/pages/activity/index' |
|
122 |
}, |
|
123 |
{ |
|
124 |
name: '拼团活动', |
|
125 |
path: '/pages/activity/groupon/list', |
|
126 |
type: APP_LINK_TYPE_ENUM.ACTIVITY_COMBINATION |
|
127 |
}, |
|
128 |
{ |
|
129 |
name: '秒杀活动', |
|
130 |
path: '/pages/activity/seckill/list', |
|
131 |
type: APP_LINK_TYPE_ENUM.ACTIVITY_SECKILL |
|
132 |
}, |
|
133 |
{ |
|
134 |
name: '签到中心', |
|
135 |
path: '/pages/app/sign' |
|
136 |
}, |
|
137 |
{ |
|
138 |
name: '优惠券中心', |
|
139 |
path: '/pages/coupon/list' |
|
140 |
}, |
|
141 |
{ |
|
142 |
name: '优惠券详情', |
|
143 |
path: '/pages/coupon/detail', |
|
144 |
type: APP_LINK_TYPE_ENUM.COUPON_DETAIL |
|
145 |
}, |
|
146 |
{ |
|
147 |
name: '文章详情', |
|
148 |
path: '/pages/public/richtext', |
|
149 |
type: APP_LINK_TYPE_ENUM.ARTICLE_DETAIL |
|
150 |
} |
|
151 |
] |
|
152 |
}, |
|
153 |
{ |
|
154 |
name: '分销商城', |
|
155 |
links: [ |
|
156 |
{ |
|
157 |
name: '分销中心', |
|
158 |
path: '/pages/commission/index' |
|
159 |
}, |
|
160 |
{ |
|
161 |
name: '推广商品', |
|
162 |
path: '/pages/commission/goods' |
|
163 |
}, |
|
164 |
{ |
|
165 |
name: '分销订单', |
|
166 |
path: '/pages/commission/order' |
|
167 |
}, |
|
168 |
{ |
|
169 |
name: '我的团队', |
|
170 |
path: '/pages/commission/team' |
|
171 |
} |
|
172 |
] |
|
173 |
}, |
|
174 |
{ |
|
175 |
name: '支付', |
|
176 |
links: [ |
|
177 |
{ |
|
178 |
name: '充值余额', |
|
179 |
path: '/pages/pay/recharge' |
|
180 |
}, |
|
181 |
{ |
|
182 |
name: '充值记录', |
|
183 |
path: '/pages/pay/recharge-log' |
|
184 |
} |
|
185 |
] |
|
186 |
}, |
|
187 |
{ |
|
188 |
name: '用户中心', |
|
189 |
links: [ |
|
190 |
{ |
|
191 |
name: '用户信息', |
|
192 |
path: '/pages/user/info' |
|
193 |
}, |
|
194 |
{ |
|
195 |
name: '用户订单', |
|
196 |
path: '/pages/order/list' |
|
197 |
}, |
|
198 |
{ |
|
199 |
name: '售后订单', |
|
200 |
path: '/pages/order/aftersale/list' |
|
201 |
}, |
|
202 |
{ |
|
203 |
name: '商品收藏', |
|
204 |
path: '/pages/user/goods-collect' |
|
205 |
}, |
|
206 |
{ |
|
207 |
name: '浏览记录', |
|
208 |
path: '/pages/user/goods-log' |
|
209 |
}, |
|
210 |
{ |
|
211 |
name: '地址管理', |
|
212 |
path: '/pages/user/address/list' |
|
213 |
}, |
|
214 |
{ |
|
215 |
name: '用户佣金', |
|
216 |
path: '/pages/user/wallet/commission' |
|
217 |
}, |
|
218 |
{ |
|
219 |
name: '用户余额', |
|
220 |
path: '/pages/user/wallet/money' |
|
221 |
}, |
|
222 |
{ |
|
223 |
name: '用户积分', |
|
224 |
path: '/pages/user/wallet/score' |
|
225 |
} |
|
226 |
] |
|
227 |
} |
|
228 |
] as AppLinkGroup[] |