|
@@ -0,0 +1,164 @@
|
|
1
|
+import { ROLE_CODE } from '@/constants/user'
|
|
2
|
+
|
|
3
|
+const icons = {
|
|
4
|
+ shop: require('@/assets/index/mall-icon.png'),
|
|
5
|
+ encyclopedia: require('@/assets/index/encyclopedia-icon.png'),
|
|
6
|
+ recommend: require('@/assets/index/recommend-icon.png'),
|
|
7
|
+ map: require('@/assets/index/map-icon.png'),
|
|
8
|
+ calculator: require('@/assets/index/calculator-icon.png'),
|
|
9
|
+ Highlyrecommented: require('@/assets/index/recommend.png'),
|
|
10
|
+}
|
|
11
|
+
|
|
12
|
+const DRIFT = ROLE_CODE['DRIFT']
|
|
13
|
+const CUSTOMER = ROLE_CODE['CUSTOMER']
|
|
14
|
+const CONSULTANT = ROLE_CODE['CONSULTANT']
|
|
15
|
+// const ESTATE_AGENT = ROLE_CODE['ESTATE_AGENT']
|
|
16
|
+// const CHANNEL_AGENT = ROLE_CODE['CHANNEL_AGENT']
|
|
17
|
+
|
|
18
|
+const menus = [
|
|
19
|
+
|
|
20
|
+ {
|
|
21
|
+ name: '积分商城',
|
|
22
|
+ url: '/pages/shop/index',
|
|
23
|
+ icon: icons.shop,
|
|
24
|
+ userTypes: [CUSTOMER, CONSULTANT, DRIFT],
|
|
25
|
+ // style: '',
|
|
26
|
+ switchTab: true,
|
|
27
|
+ code: 'integralMall',
|
|
28
|
+ },
|
|
29
|
+ {
|
|
30
|
+ name: '购房百科',
|
|
31
|
+ url: '/pages/policy/index?from=mine',
|
|
32
|
+ icon: icons.encyclopedia,
|
|
33
|
+ userTypes: [CUSTOMER, CONSULTANT],
|
|
34
|
+ code: 'buyingEncyclopedia'
|
|
35
|
+ },
|
|
36
|
+ {
|
|
37
|
+ name: '推荐客户',
|
|
38
|
+ url: '/useless/pages/agent/recommend/index?type=index&cityId=',
|
|
39
|
+ icon: icons.recommend,
|
|
40
|
+ userTypes: [CUSTOMER, DRIFT],
|
|
41
|
+ code: 'refercustomers',
|
|
42
|
+ city: true,
|
|
43
|
+ },
|
|
44
|
+ {
|
|
45
|
+ name: '地图找房',
|
|
46
|
+ url: '/pages/project/map/index',
|
|
47
|
+ icon: icons.map,
|
|
48
|
+ userTypes: [CUSTOMER, CONSULTANT, DRIFT],
|
|
49
|
+ code: 'findRoom'
|
|
50
|
+ },
|
|
51
|
+ {
|
|
52
|
+ name: '重点推荐',
|
|
53
|
+ url: '/pages/project/highlyRecommented',
|
|
54
|
+ icon: icons.Highlyrecommented,
|
|
55
|
+ userTypes: [CUSTOMER, CONSULTANT],
|
|
56
|
+ code: 'Highlyrecommented'
|
|
57
|
+ },
|
|
58
|
+ {
|
|
59
|
+ name: '房贷计算器',
|
|
60
|
+ url: '/pages/toolKit/index',
|
|
61
|
+ icon: icons.calculator,
|
|
62
|
+ userTypes: [CUSTOMER, CONSULTANT],
|
|
63
|
+ code: 'MortgageCalculator'
|
|
64
|
+ },
|
|
65
|
+
|
|
66
|
+ {
|
|
67
|
+ name: '楼盘列表',
|
|
68
|
+ // url: '/pages/toolKit/index',
|
|
69
|
+ // icon: icons.calculator,
|
|
70
|
+ userTypes: [CUSTOMER, CONSULTANT],
|
|
71
|
+ code: 'PropertyListing'
|
|
72
|
+ },
|
|
73
|
+ {
|
|
74
|
+ name: '活动资讯',
|
|
75
|
+ // url: '/pages/toolKit/index',
|
|
76
|
+ // icon: icons.calculator,
|
|
77
|
+ userTypes: [CUSTOMER, CONSULTANT],
|
|
78
|
+ code: 'EventInformation',
|
|
79
|
+ switchTab: true,
|
|
80
|
+ },
|
|
81
|
+ {
|
|
82
|
+ name: '热门活动',
|
|
83
|
+ // url: '/pages/toolKit/index',
|
|
84
|
+ // icon: icons.calculator,
|
|
85
|
+ userTypes: [CUSTOMER, CONSULTANT],
|
|
86
|
+ code: 'Popularactivities',
|
|
87
|
+ switchTab: true,
|
|
88
|
+ },
|
|
89
|
+ {
|
|
90
|
+ name: '最新资讯',
|
|
91
|
+ // url: '/pages/toolKit/index',
|
|
92
|
+ // icon: icons.calculator,
|
|
93
|
+ userTypes: [CUSTOMER, CONSULTANT],
|
|
94
|
+ code: 'LatestInformation',
|
|
95
|
+ switchTab: true,
|
|
96
|
+ },
|
|
97
|
+ {
|
|
98
|
+ name: '我的客户',
|
|
99
|
+ // url: '/pages/toolKit/index',
|
|
100
|
+ // icon: icons.calculator,
|
|
101
|
+ userTypes: [CUSTOMER, CONSULTANT],
|
|
102
|
+ code: 'Myclient',
|
|
103
|
+ },
|
|
104
|
+ {
|
|
105
|
+ name: '我的活动',
|
|
106
|
+ url: '/pages/activity/myActivity?from=mine',
|
|
107
|
+ icon: icons.activities,
|
|
108
|
+ userTypes: [CUSTOMER, CONSULTANT],
|
|
109
|
+ code: 'MyActivities'
|
|
110
|
+ },
|
|
111
|
+ {
|
|
112
|
+ name: '我的助力',
|
|
113
|
+ url: '/pages/activity/assistancePage',
|
|
114
|
+ icon: icons.help,
|
|
115
|
+ userTypes: [CUSTOMER, CONSULTANT],
|
|
116
|
+ code: 'Myhelp'
|
|
117
|
+ },
|
|
118
|
+ {
|
|
119
|
+ name: '我的拼团',
|
|
120
|
+ url: '/pages/activity/assemblePage',
|
|
121
|
+ icon: icons.regiment,
|
|
122
|
+ userTypes: [CUSTOMER, CONSULTANT],
|
|
123
|
+ code: 'Mygroup'
|
|
124
|
+ },
|
|
125
|
+ {
|
|
126
|
+ name: '我的收藏',
|
|
127
|
+ url: '/pages/person/favorite/index',
|
|
128
|
+ icon: icons.collection,
|
|
129
|
+ userTypes: [CUSTOMER, CONSULTANT],
|
|
130
|
+ code: 'MyFavorites'
|
|
131
|
+ },
|
|
132
|
+ {
|
|
133
|
+ name: '我的资料',
|
|
134
|
+ url: '/useless/pages/person/profile/index',
|
|
135
|
+ icon: icons.profile,
|
|
136
|
+ userTypes: [CUSTOMER, CONSULTANT],
|
|
137
|
+ code: 'MyInformation'
|
|
138
|
+ },
|
|
139
|
+ {
|
|
140
|
+ name: '我的消息',
|
|
141
|
+ url: '/useless/pages/person/profile/index',
|
|
142
|
+ icon: icons.profile,
|
|
143
|
+ userTypes: [CUSTOMER, CONSULTANT],
|
|
144
|
+ code: 'Mymessage'
|
|
145
|
+ },
|
|
146
|
+ {
|
|
147
|
+ name: '兑换记录',
|
|
148
|
+ url: '/useless/pages/shop/record/index',
|
|
149
|
+ icon: icons.exchange,
|
|
150
|
+ userTypes: [CUSTOMER, CONSULTANT],
|
|
151
|
+ code: 'Exchangerecords'
|
|
152
|
+ },
|
|
153
|
+ {
|
|
154
|
+ name: '意见反馈',
|
|
155
|
+ url: '/useless/pages/person/feedback/index',
|
|
156
|
+ icon: icons.feedback,
|
|
157
|
+ userTypes: [CUSTOMER, CONSULTANT],
|
|
158
|
+ code: 'Feedback'
|
|
159
|
+ },
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+]
|
|
163
|
+
|
|
164
|
+export { icons, menus }
|