|
@@ -81,7 +81,6 @@ export default class Person extends Component {
|
81
|
81
|
Taro.showToast({ title: '暂无客户', icon: 'none' })
|
82
|
82
|
return
|
83
|
83
|
}
|
84
|
|
- // App.zhuge.track('推荐客户')
|
85
|
84
|
|
86
|
85
|
Taro.navigateTo({
|
87
|
86
|
url: '/pages/person/myGuest/index'
|
|
@@ -93,6 +92,11 @@ export default class Person extends Component {
|
93
|
92
|
url: '/pages/person/favorite/index'
|
94
|
93
|
})
|
95
|
94
|
}
|
|
95
|
+ toAgentClient() {
|
|
96
|
+ Taro.navigateTo({
|
|
97
|
+ url: '/pages/agent/client/index'
|
|
98
|
+ })
|
|
99
|
+ }
|
96
|
100
|
toAssemble() {
|
97
|
101
|
Taro.navigateTo({
|
98
|
102
|
url: '/pages/activity/assemblePage'
|
|
@@ -108,6 +112,36 @@ export default class Person extends Component {
|
108
|
112
|
url: '/pages/person/profile/index'
|
109
|
113
|
})
|
110
|
114
|
}
|
|
115
|
+ toAgent() {
|
|
116
|
+ Taro.navigateTo({
|
|
117
|
+ url: '/pages/agent/index'
|
|
118
|
+ })
|
|
119
|
+ }
|
|
120
|
+ toAgentInvitation() {
|
|
121
|
+ Taro.navigateTo({
|
|
122
|
+ url: '/pages/agent/invitation/index'
|
|
123
|
+ })
|
|
124
|
+ }
|
|
125
|
+ toActivity() {
|
|
126
|
+ Taro.navigateTo({
|
|
127
|
+ url: '/pages/activity/index?from=mine'
|
|
128
|
+ })
|
|
129
|
+ }
|
|
130
|
+ toRecord() {
|
|
131
|
+ Taro.navigateTo({
|
|
132
|
+ url: '/pages/shop/record/index'
|
|
133
|
+ })
|
|
134
|
+ }
|
|
135
|
+ toToolkit() {
|
|
136
|
+ Taro.navigateTo({
|
|
137
|
+ url: '/pages/toolKit/index'
|
|
138
|
+ })
|
|
139
|
+ }
|
|
140
|
+ toFeedback() {
|
|
141
|
+ Taro.navigateTo({
|
|
142
|
+ url: '/pages/person/feedback/index'
|
|
143
|
+ })
|
|
144
|
+ }
|
111
|
145
|
|
112
|
146
|
getRoleName(type) {
|
113
|
147
|
switch (type) {
|
|
@@ -124,7 +158,6 @@ export default class Person extends Component {
|
124
|
158
|
return '渠道经纪人'
|
125
|
159
|
break;
|
126
|
160
|
default:
|
127
|
|
-
|
128
|
161
|
return '普通用户'
|
129
|
162
|
break;
|
130
|
163
|
}
|
|
@@ -176,7 +209,7 @@ export default class Person extends Component {
|
176
|
209
|
<View className="info-text__name">{user.name ? user.name : user.nickname} {/* <Text className="iconfont icon-more"></Text> */}</View>
|
177
|
210
|
<View className="info-text__intro">积分 {user.points || 0}</View>
|
178
|
211
|
</View>
|
179
|
|
- <Navigator url={`/pages/person/spread/index`} className="tuiguang">
|
|
212
|
+ <Navigator url={`/pages/person/spread/index`} className="tuiguang">
|
180
|
213
|
<Image style="width:40px;height:36px" src={require('@assets/mine/tuiguangma.png')} ></Image>
|
181
|
214
|
<View className="info-text__intro" style="margin:4px 0 0 4px">推广码</View>
|
182
|
215
|
</Navigator>
|
|
@@ -196,18 +229,32 @@ export default class Person extends Component {
|
196
|
229
|
</View>
|
197
|
230
|
</View>
|
198
|
231
|
<View>
|
199
|
|
- {/* <View></View> */}
|
200
|
|
- <View style=" display: flex;align-items: center;justify-content: space-between;margin: 0 20px;padding:10px 0;box-shadow:0px 1px 0px 0px rgba(0,0,0,0.12);">
|
|
232
|
+ <View onClick={this.toAgent} style=" display: flex;align-items: center;justify-content: space-between;margin: 0 20px;padding:10px 0;box-shadow:0px 1px 0px 0px rgba(0,0,0,0.12);">
|
201
|
233
|
<View style="display: flex;align-items: center;">
|
202
|
234
|
<Image style="width:22px;height:22px;margin-right:10px" src={require('@assets/mine/homepage.png')} ></Image>
|
203
|
235
|
<Text >我的主页</Text>
|
204
|
236
|
</View>
|
205
|
237
|
<Text style=" width:10px;height:10px;border-top: 1px solid #999;border-right: 1px solid #999;transform:rotate(45deg);"></Text>
|
206
|
238
|
</View>
|
207
|
|
- <View style=" display: flex;align-items: center;justify-content: space-between;margin: 0 20px;padding:10px 0;box-shadow:0px 1px 0px 0px rgba(0,0,0,0.12);">
|
|
239
|
+ <View onClick={this.toAgentClient} style=" display: flex;align-items: center;justify-content: space-between;margin: 0 20px;padding:10px 0;box-shadow:0px 1px 0px 0px rgba(0,0,0,0.12);">
|
208
|
240
|
<View style="display: flex;align-items: center;">
|
209
|
|
- <Image style="width:22px;height:22px;margin-right:10px" src={require('@assets/mine/homepage.png')} ></Image>
|
210
|
|
- <Text >我的收藏</Text>
|
|
241
|
+ <Image style="width:22px;height:22px;margin-right:10px" src={require('@assets/mine/recommend.png')} ></Image>
|
|
242
|
+ <Text >推荐客户</Text>
|
|
243
|
+ </View>
|
|
244
|
+ <Text style=" width:10px;height:10px;border-top: 1px solid #999;border-right: 1px solid #999;transform:rotate(45deg);"></Text>
|
|
245
|
+ </View>
|
|
246
|
+ <View onClick={this.toAgentInvitation} style=" display: flex;align-items: center;justify-content: space-between;margin: 0 20px;padding:10px 0;box-shadow:0px 1px 0px 0px rgba(0,0,0,0.12);">
|
|
247
|
+ <View style="display: flex;align-items: center;">
|
|
248
|
+ <Image style="width:22px;height:22px;margin-right:10px" src={require('@assets/mine/development.png')} ></Image>
|
|
249
|
+ <Text >发展经纪人</Text>
|
|
250
|
+ </View>
|
|
251
|
+ <Text style=" width:10px;height:10px;border-top: 1px solid #999;border-right: 1px solid #999;transform:rotate(45deg);"></Text>
|
|
252
|
+ </View>
|
|
253
|
+ <View className='line'></View>
|
|
254
|
+ <View onClick={this.toActivity} style=" display: flex;align-items: center;justify-content: space-between;margin: 0 20px;padding:10px 0;box-shadow:0px 1px 0px 0px rgba(0,0,0,0.12);">
|
|
255
|
+ <View style="display: flex;align-items: center;">
|
|
256
|
+ <Image style="width:22px;height:22px;margin-right:10px" src={require('@assets/mine/activities.png')} ></Image>
|
|
257
|
+ <Text >我的活动</Text>
|
211
|
258
|
</View>
|
212
|
259
|
<Text style=" width:10px;height:10px;border-top: 1px solid #999;border-right: 1px solid #999;transform:rotate(45deg);"></Text>
|
213
|
260
|
</View>
|
|
@@ -218,6 +265,28 @@ export default class Person extends Component {
|
218
|
265
|
</View>
|
219
|
266
|
<Text style=" width:10px;height:10px;border-top: 1px solid #999;border-right: 1px solid #999;transform:rotate(45deg);"></Text>
|
220
|
267
|
</View>
|
|
268
|
+ <View onClick={this.toAssistance} style=" display: flex;align-items: center;justify-content: space-between;margin: 0 20px;padding:10px 0;box-shadow:0px 1px 0px 0px rgba(0,0,0,0.12);">
|
|
269
|
+ <View style="display: flex;align-items: center;">
|
|
270
|
+ <Image style="width:22px;height:22px;margin-right:10px" src={require('@assets/mine/help.png')} ></Image>
|
|
271
|
+ <Text >我的助力</Text>
|
|
272
|
+ </View>
|
|
273
|
+ <Text style=" width:10px;height:10px;border-top: 1px solid #999;border-right: 1px solid #999;transform:rotate(45deg);"></Text>
|
|
274
|
+ </View>
|
|
275
|
+ <View className='line'></View>
|
|
276
|
+ <View onClick={this.toFavor} style=" display: flex;align-items: center;justify-content: space-between;margin: 0 20px;padding:10px 0;box-shadow:0px 1px 0px 0px rgba(0,0,0,0.12);">
|
|
277
|
+ <View style="display: flex;align-items: center;">
|
|
278
|
+ <Image style="width:22px;height:22px;margin-right:10px" src={require('@assets/mine/collection.png')} ></Image>
|
|
279
|
+ <Text >我的收藏</Text>
|
|
280
|
+ </View>
|
|
281
|
+ <Text style=" width:10px;height:10px;border-top: 1px solid #999;border-right: 1px solid #999;transform:rotate(45deg);"></Text>
|
|
282
|
+ </View>
|
|
283
|
+ <View onClick={this.toRecord} style=" display: flex;align-items: center;justify-content: space-between;margin: 0 20px;padding:10px 0;box-shadow:0px 1px 0px 0px rgba(0,0,0,0.12);">
|
|
284
|
+ <View style="display: flex;align-items: center;">
|
|
285
|
+ <Image style="width:22px;height:22px;margin-right:10px" src={require('@assets/mine/exchange.png')} ></Image>
|
|
286
|
+ <Text >兑换记录</Text>
|
|
287
|
+ </View>
|
|
288
|
+ <Text style=" width:10px;height:10px;border-top: 1px solid #999;border-right: 1px solid #999;transform:rotate(45deg);"></Text>
|
|
289
|
+ </View>
|
221
|
290
|
<View onClick={this.toProfile} style=" display: flex;align-items: center;justify-content: space-between;margin: 0 20px;padding:10px 0;box-shadow:0px 1px 0px 0px rgba(0,0,0,0.12);">
|
222
|
291
|
<View style="display: flex;align-items: center;">
|
223
|
292
|
<Image style="width:22px;height:22px;margin-right:10px" src={require('@assets/mine/regiment.png')} ></Image>
|
|
@@ -225,25 +294,43 @@ export default class Person extends Component {
|
225
|
294
|
</View>
|
226
|
295
|
<Text style=" width:10px;height:10px;border-top: 1px solid #999;border-right: 1px solid #999;transform:rotate(45deg);"></Text>
|
227
|
296
|
</View>
|
228
|
|
- <View onClick={this.toAssistance} style=" display: flex;align-items: center;justify-content: space-between;margin: 0 20px;padding:10px 0;box-shadow:0px 1px 0px 0px rgba(0,0,0,0.12);">
|
|
297
|
+ <View onClick={this.toToolkit} style=" display: flex;align-items: center;justify-content: space-between;margin: 0 20px;padding:10px 0;box-shadow:0px 1px 0px 0px rgba(0,0,0,0.12);">
|
229
|
298
|
<View style="display: flex;align-items: center;">
|
230
|
|
- <Image style="width:22px;height:22px;margin-right:10px" src={require('@assets/mine/help.png')} ></Image>
|
231
|
|
- <Text >我的助力</Text>
|
|
299
|
+ <Image style="width:22px;height:22px;margin-right:10px" src={require('@assets/mine/calculator.png')} ></Image>
|
|
300
|
+ <Text >房贷计算器</Text>
|
|
301
|
+ </View>
|
|
302
|
+ <Text style=" width:10px;height:10px;border-top: 1px solid #999;border-right: 1px solid #999;transform:rotate(45deg);"></Text>
|
|
303
|
+ </View>
|
|
304
|
+ <View onClick={this.toToolkit} style=" display: flex;align-items: center;justify-content: space-between;margin: 0 20px;padding:10px 0;box-shadow:0px 1px 0px 0px rgba(0,0,0,0.12);">
|
|
305
|
+ <View style="display: flex;align-items: center;">
|
|
306
|
+ <Image style="width:22px;height:22px;margin-right:10px" src={require('@assets/mine/encyclopedia.png')} ></Image>
|
|
307
|
+ <Text >购房百科</Text>
|
|
308
|
+ </View>
|
|
309
|
+ <Text style=" width:10px;height:10px;border-top: 1px solid #999;border-right: 1px solid #999;transform:rotate(45deg);"></Text>
|
|
310
|
+ </View>
|
|
311
|
+ <View onClick={this.toFeedback} style=" display: flex;align-items: center;justify-content: space-between;margin: 0 20px;padding:10px 0;box-shadow:0px 1px 0px 0px rgba(0,0,0,0.12);">
|
|
312
|
+ <View style="display: flex;align-items: center;">
|
|
313
|
+ <Image style="width:22px;height:22px;margin-right:10px" src={require('@assets/mine/feedback.png')} ></Image>
|
|
314
|
+ <Text >意见反馈</Text>
|
232
|
315
|
</View>
|
233
|
316
|
<Text style=" width:10px;height:10px;border-top: 1px solid #999;border-right: 1px solid #999;transform:rotate(45deg);"></Text>
|
234
|
317
|
</View>
|
235
|
|
- <View className='line'></View>
|
236
|
318
|
</View>
|
237
|
319
|
{/* <View className="list-item">
|
238
|
320
|
<Image src={require('@assets/person/shouye.png')} className="icon" ></Image>
|
239
|
321
|
<Text className='menu-item_txt'>我的主页</Text>
|
240
|
322
|
</View> */}
|
241
|
323
|
{/* <View className="menu menu1"> */}
|
242
|
|
- {/* 经纪人我的主页 */}
|
|
324
|
+ {/* 经纪人的主页 */}
|
243
|
325
|
{/* {(user.personType == ROLE_CODE['ESTATE_AGENT'] || user.personType == ROLE_CODE['CHANNEL_AGENT']) && (<Navigator className="menu-item" hover-class="none" url={`/pages/agent/index`}>
|
244
|
326
|
<Image src={require('@assets/person/shouye.png')} className='menu-item_img' mode="widthFix"></Image>
|
245
|
327
|
<Text className='menu-item_txt'>我的主页</Text>
|
246
|
328
|
</Navigator>)} */}
|
|
329
|
+ {/* 置业顾问主页 */}
|
|
330
|
+ {/* {user.personType == 'Realty Consultant' && (<Navigator className="menu-item" hover-class="none" url={`/pages/card/index?id=${user.id}`}>
|
|
331
|
+ <Image src={require('@assets/person/shouye.png')} className='menu-item_img' mode="widthFix"></Image>
|
|
332
|
+ <Text className='menu-item_txt'>我的主页</Text>
|
|
333
|
+ </Navigator>)} */}
|
247
|
334
|
|
248
|
335
|
{/* 经纪人推荐客户 */}
|
249
|
336
|
{/* {(user.personType == ROLE_CODE['ESTATE_AGENT'] || user.personType == ROLE_CODE['CHANNEL_AGENT']) && (<Navigator className="menu-item" hover-class="none" url={`/pages/agent/client/index`}>
|
|
@@ -251,11 +338,7 @@ export default class Person extends Component {
|
251
|
338
|
<Text className='menu-item_txt'>推荐客户</Text>
|
252
|
339
|
</Navigator>)} */}
|
253
|
340
|
|
254
|
|
- {/* 置业顾问主页 */}
|
255
|
|
- {/* {user.personType == 'Realty Consultant' && (<Navigator className="menu-item" hover-class="none" url={`/pages/card/index?id=${user.id}`}>
|
256
|
|
- <Image src={require('@assets/person/shouye.png')} className='menu-item_img' mode="widthFix"></Image>
|
257
|
|
- <Text className='menu-item_txt'>我的主页</Text>
|
258
|
|
- </Navigator>)} */}
|
|
341
|
+
|
259
|
342
|
|
260
|
343
|
{/* 游客主页 */}
|
261
|
344
|
{/* {(user.personType == ROLE_CODE['CUSTOMER'] || !user.personType) && (<Navigator className="menu-item" hover-class="none" url={`/pages/agent/become/index`}>
|
|
@@ -289,14 +372,7 @@ export default class Person extends Component {
|
289
|
372
|
<Image src={require('@assets/person/shou.png')} className='menu-item_img' mode="widthFix"></Image>
|
290
|
373
|
<Text className='menu-item_txt'>我的收藏</Text>
|
291
|
374
|
</View>
|
292
|
|
- <View className='menu-item' onClick={this.toAssemble}>
|
293
|
|
- <Image src={require('@assets/person/shou.png')} className='menu-item_img' mode="widthFix"></Image>
|
294
|
|
- <Text className='menu-item_txt'>我的拼团</Text>
|
295
|
|
- </View>
|
296
|
|
- <View className='menu-item' onClick={this.toAssistance}>
|
297
|
|
- <Image src={require('@assets/person/shou.png')} className='menu-item_img' mode="widthFix"></Image>
|
298
|
|
- <Text className='menu-item_txt'>我的助力</Text>
|
299
|
|
- </View> */}
|
|
375
|
+ */}
|
300
|
376
|
|
301
|
377
|
{/* 经纪人我的邀请 */}
|
302
|
378
|
{/* {(user.personType == ROLE_CODE['ESTATE_AGENT'] || user.personType == ROLE_CODE['CHANNEL_AGENT']) && (<Navigator className="menu-item" hover-class="none" url={`/pages/agent/invitation/index`}>
|