|
@@ -58,7 +58,7 @@ export default class Index extends Component {
|
58
|
58
|
videoPlayShow: 'flex',
|
59
|
59
|
}
|
60
|
60
|
|
61
|
|
- componentWillMount () {
|
|
61
|
+ componentWillMount() {
|
62
|
62
|
// const { id = '78c3dd489791dc1d29472fa344b08c45' } = this.$router.params
|
63
|
63
|
|
64
|
64
|
ready.queue(() => {
|
|
@@ -92,12 +92,12 @@ export default class Index extends Component {
|
92
|
92
|
})
|
93
|
93
|
}
|
94
|
94
|
|
95
|
|
- componentWillUnmount () {
|
|
95
|
+ componentWillUnmount() {
|
96
|
96
|
const { recordId } = this.state
|
97
|
97
|
recordId && updatePoint(recordId)
|
98
|
98
|
}
|
99
|
99
|
|
100
|
|
- loadHelpGroupList () {
|
|
100
|
+ loadHelpGroupList() {
|
101
|
101
|
const { buildingId } = this.state
|
102
|
102
|
|
103
|
103
|
queryHelpGroup({ buildingId: buildingId }).then(res => {
|
|
@@ -119,7 +119,7 @@ export default class Index extends Component {
|
119
|
119
|
)
|
120
|
120
|
}
|
121
|
121
|
|
122
|
|
- loadDetail () {
|
|
122
|
+ loadDetail() {
|
123
|
123
|
const { buildingId } = this.state
|
124
|
124
|
const { dispatchProjectDetail } = this.props
|
125
|
125
|
this.setState({
|
|
@@ -147,7 +147,7 @@ export default class Index extends Component {
|
147
|
147
|
})
|
148
|
148
|
}
|
149
|
149
|
|
150
|
|
- loadActivityData () {
|
|
150
|
+ loadActivityData() {
|
151
|
151
|
const { buildingId } = this.state
|
152
|
152
|
const payload = { pageSize: 999, pageNumber: 1, buildingId }
|
153
|
153
|
queryActivityList(payload).then(res => {
|
|
@@ -157,7 +157,7 @@ export default class Index extends Component {
|
157
|
157
|
})
|
158
|
158
|
}
|
159
|
159
|
|
160
|
|
- loadNewsData () {
|
|
160
|
+ loadNewsData() {
|
161
|
161
|
const { buildingId } = this.state
|
162
|
162
|
const payload = { pageSize: 2, pageNumber: 1, buildingId }
|
163
|
163
|
queryNewsList(payload).then(res => {
|
|
@@ -167,11 +167,11 @@ export default class Index extends Component {
|
167
|
167
|
})
|
168
|
168
|
}
|
169
|
169
|
|
170
|
|
- navigateTo (url) {
|
|
170
|
+ navigateTo(url) {
|
171
|
171
|
Taro.navigateTo({ url: url })
|
172
|
172
|
}
|
173
|
173
|
// 海报预览图
|
174
|
|
- previewImage (arr) {
|
|
174
|
+ previewImage(arr) {
|
175
|
175
|
// console.log('arr:' + arr)
|
176
|
176
|
if (arr[0].length > 1) {
|
177
|
177
|
Taro.previewImage({
|
|
@@ -198,7 +198,7 @@ export default class Index extends Component {
|
198
|
198
|
})
|
199
|
199
|
}
|
200
|
200
|
|
201
|
|
- openMap () {
|
|
201
|
+ openMap() {
|
202
|
202
|
const {
|
203
|
203
|
buildingName,
|
204
|
204
|
address,
|
|
@@ -225,12 +225,12 @@ export default class Index extends Component {
|
225
|
225
|
})
|
226
|
226
|
}
|
227
|
227
|
|
228
|
|
- toViewAlbum () {
|
|
228
|
+ toViewAlbum() {
|
229
|
229
|
const { buildingId } = this.state
|
230
|
230
|
this.navigateTo(`/pages/project/album/index?id=${buildingId}`)
|
231
|
231
|
}
|
232
|
232
|
|
233
|
|
- onViewFans () {
|
|
233
|
+ onViewFans() {
|
234
|
234
|
const { buildingId } = this.state
|
235
|
235
|
this.navigateTo('/pages/card/fans/index?type=item&id=' + buildingId)
|
236
|
236
|
}
|
|
@@ -259,7 +259,7 @@ export default class Index extends Component {
|
259
|
259
|
}
|
260
|
260
|
}
|
261
|
261
|
|
262
|
|
- getPhoneNumber (e, item) {
|
|
262
|
+ getPhoneNumber(e, item) {
|
263
|
263
|
getUserPhone(e, (phoneNumber) => {
|
264
|
264
|
const { userInfo: { person: { personId, nickname, name } } } = this.props
|
265
|
265
|
Taro.navigateTo({
|
|
@@ -268,7 +268,7 @@ export default class Index extends Component {
|
268
|
268
|
})
|
269
|
269
|
}
|
270
|
270
|
|
271
|
|
- getPosterData () {
|
|
271
|
+ getPosterData() {
|
272
|
272
|
return new Promise(resolve => {
|
273
|
273
|
const { posterData } = this.state
|
274
|
274
|
if (posterData.qrcode) {
|
|
@@ -339,14 +339,14 @@ export default class Index extends Component {
|
339
|
339
|
})
|
340
|
340
|
}
|
341
|
341
|
|
342
|
|
- handleTelClick (item, e) {
|
|
342
|
+ handleTelClick(item, e) {
|
343
|
343
|
e.stopPropagation()
|
344
|
344
|
Taro.makePhoneCall({
|
345
|
345
|
phoneNumber: item.phone
|
346
|
346
|
})
|
347
|
347
|
}
|
348
|
348
|
|
349
|
|
- handleChatClick (item, e) {
|
|
349
|
+ handleChatClick(item, e) {
|
350
|
350
|
e.stopPropagation()
|
351
|
351
|
const { userInfo: { person: { personId, nickname, name } } } = this.props
|
352
|
352
|
Taro.navigateTo({
|
|
@@ -354,24 +354,24 @@ export default class Index extends Component {
|
354
|
354
|
})
|
355
|
355
|
}
|
356
|
356
|
|
357
|
|
- handleConsuItemClick (item) {
|
|
357
|
+ handleConsuItemClick(item) {
|
358
|
358
|
Taro.navigateTo({
|
359
|
359
|
url: `/pages/card/index?id=${item.id}`
|
360
|
360
|
})
|
361
|
361
|
}
|
362
|
362
|
|
363
|
|
- handleMoreClick () {
|
|
363
|
+ handleMoreClick() {
|
364
|
364
|
// App.zhuge.track('查看置业顾问列表')
|
365
|
365
|
Taro.navigateTo({
|
366
|
366
|
url: `/pages/card/list/index?buildingId=${this.state.buildingId}`
|
367
|
367
|
})
|
368
|
368
|
}
|
369
|
369
|
|
370
|
|
- handleStopPropagation (e) {
|
|
370
|
+ handleStopPropagation(e) {
|
371
|
371
|
e.stopPropagation()
|
372
|
372
|
}
|
373
|
373
|
|
374
|
|
- toRecomonedPage () {
|
|
374
|
+ toRecomonedPage() {
|
375
|
375
|
const {
|
376
|
376
|
userInfo: { person: { personType } }
|
377
|
377
|
} = this.props
|
|
@@ -387,31 +387,31 @@ export default class Index extends Component {
|
387
|
387
|
}
|
388
|
388
|
}
|
389
|
389
|
|
390
|
|
- toHome () {
|
|
390
|
+ toHome() {
|
391
|
391
|
Taro.switchTab({
|
392
|
392
|
url: `/pages/project/index`
|
393
|
393
|
})
|
394
|
394
|
}
|
395
|
395
|
|
396
|
|
- HandleCircumTabClick (id) {
|
|
396
|
+ HandleCircumTabClick(id) {
|
397
|
397
|
this.setState({
|
398
|
398
|
curTab: id
|
399
|
399
|
})
|
400
|
400
|
}
|
401
|
401
|
|
402
|
|
- handleNewsMoreClick () {
|
|
402
|
+ handleNewsMoreClick() {
|
403
|
403
|
Taro.navigateTo({
|
404
|
404
|
url: `/pages/news/index?buildingId=` + this.state.buildingId
|
405
|
405
|
})
|
406
|
406
|
}
|
407
|
407
|
|
408
|
|
- handNewsItemClick (id) {
|
|
408
|
+ handNewsItemClick(id) {
|
409
|
409
|
Taro.navigateTo({
|
410
|
410
|
url: '/pages/news/detail/index?id=' + id
|
411
|
411
|
})
|
412
|
412
|
}
|
413
|
413
|
|
414
|
|
- handleActivityMoreClick () {
|
|
414
|
+ handleActivityMoreClick() {
|
415
|
415
|
Taro.navigateTo({
|
416
|
416
|
url: `/pages/activity/index?buildingId=` + this.state.buildingId
|
417
|
417
|
})
|
|
@@ -423,14 +423,14 @@ export default class Index extends Component {
|
423
|
423
|
})
|
424
|
424
|
}
|
425
|
425
|
|
426
|
|
- handlePreviewHxImage (current, urls) {
|
|
426
|
+ handlePreviewHxImage(current, urls) {
|
427
|
427
|
Taro.previewImage({
|
428
|
428
|
current,
|
429
|
429
|
urls
|
430
|
430
|
})
|
431
|
431
|
}
|
432
|
432
|
|
433
|
|
- handleFavor () {
|
|
433
|
+ handleFavor() {
|
434
|
434
|
const { buildingId, isSaved } = this.state
|
435
|
435
|
if (isSaved) {
|
436
|
436
|
cancelFavorProject(buildingId).then(res => {
|
|
@@ -460,18 +460,18 @@ export default class Index extends Component {
|
460
|
460
|
console.log('活动项目收藏')
|
461
|
461
|
})
|
462
|
462
|
}
|
463
|
|
- handleToolsClick () {
|
|
463
|
+ handleToolsClick() {
|
464
|
464
|
Taro.navigateTo({
|
465
|
465
|
url: `/pages/toolKit/index`
|
466
|
466
|
})
|
467
|
467
|
}
|
468
|
|
- moreFloor () {
|
|
468
|
+ moreFloor() {
|
469
|
469
|
Taro.navigateTo({
|
470
|
470
|
url: `/pages/project/floor/index`
|
471
|
471
|
})
|
472
|
472
|
}
|
473
|
473
|
|
474
|
|
- renderBottomMenu () {
|
|
474
|
+ renderBottomMenu() {
|
475
|
475
|
const { userInfo: { person: { personType } } } = this.props
|
476
|
476
|
const { posterShow } = this.state
|
477
|
477
|
return (
|
|
@@ -506,14 +506,14 @@ export default class Index extends Component {
|
506
|
506
|
)
|
507
|
507
|
}
|
508
|
508
|
|
509
|
|
- previewHouseImage (current, urls) {
|
|
509
|
+ previewHouseImage(current, urls) {
|
510
|
510
|
Taro.previewImage({
|
511
|
511
|
current,
|
512
|
512
|
urls
|
513
|
513
|
})
|
514
|
514
|
}
|
515
|
515
|
|
516
|
|
- renderBuildingProjectTypeList () {
|
|
516
|
+ renderBuildingProjectTypeList() {
|
517
|
517
|
const { statusOpts } = this.state
|
518
|
518
|
const { projectDetail: { buildingProjectType = [], status, marketStatus } } = this.props
|
519
|
519
|
return (
|
|
@@ -573,7 +573,7 @@ export default class Index extends Component {
|
573
|
573
|
}
|
574
|
574
|
|
575
|
575
|
|
576
|
|
- renderPhotoAlbum () {
|
|
576
|
+ renderPhotoAlbum() {
|
577
|
577
|
const { projectDetail: { buildingApartment } } = this.props
|
578
|
578
|
const list = buildingApartment.filter(item => item.apartmentType === 'photo')
|
579
|
579
|
// const imgList = list.reduce((prev, cur) => {
|
|
@@ -633,7 +633,7 @@ export default class Index extends Component {
|
633
|
633
|
</Block>
|
634
|
634
|
)
|
635
|
635
|
}
|
636
|
|
- rendercircum () {
|
|
636
|
+ rendercircum() {
|
637
|
637
|
const building = {
|
638
|
638
|
...this.props.projectDetail
|
639
|
639
|
}
|
|
@@ -650,7 +650,7 @@ export default class Index extends Component {
|
650
|
650
|
)
|
651
|
651
|
}
|
652
|
652
|
|
653
|
|
- renderConsuler () {
|
|
653
|
+ renderConsuler() {
|
654
|
654
|
const { userInfo: { person: { phone } } } = this.props
|
655
|
655
|
const { projectDetail: { consultants = [] } } = this.props
|
656
|
656
|
return (
|
|
@@ -659,11 +659,30 @@ export default class Index extends Component {
|
659
|
659
|
consultants.length > 0 && (
|
660
|
660
|
<View className="section counselor">
|
661
|
661
|
<View className="section-head">
|
662
|
|
- <Text className="section-head__title">推荐经纪人</Text>
|
|
662
|
+ <Text className="section-head__title">置业顾问</Text>
|
663
|
663
|
<View className="section-head__more" onClick={() => { this.handleMoreClick() }}>
|
664
|
664
|
更多<Text className="iconfont icon-more"></Text>
|
665
|
665
|
</View>
|
666
|
666
|
</View>
|
|
667
|
+ <View style="display:flex;align-items:center;justify-content:space-between;margin-top:30rpx">
|
|
668
|
+
|
|
669
|
+ <View style="display:flex;align-items:center;font-size: 26rpx;color: #999;">
|
|
670
|
+ <Image style="width:30rpx;height:30rpx;margin-right:10rpx" src={require('@assets/icons/baozhang.png')} />
|
|
671
|
+ 官方保障
|
|
672
|
+ </View>
|
|
673
|
+ <View style="display:flex;align-items:center;font-size: 26rpx;color: #999;">
|
|
674
|
+ <Image style="width:30rpx;height:30rpx;margin-right:10rpx" src={require('@assets/icons/zixun.png')} />
|
|
675
|
+ 免费咨询
|
|
676
|
+ </View>
|
|
677
|
+ <View style="display:flex;align-items:center;font-size: 26rpx;color: #999;">
|
|
678
|
+ <Image style="width:30rpx;height:30rpx;margin-right:10rpx" src={require('@assets/icons/jiedu.png')} />
|
|
679
|
+ 户型解读
|
|
680
|
+ </View>
|
|
681
|
+ <View style="display:flex;align-items:center;font-size: 26rpx;color: #999;">
|
|
682
|
+ <Image style="width:30rpx;height:30rpx;margin-right:10rpx" src={require('@assets/icons/fuwu.png')} />
|
|
683
|
+ 贴心服务
|
|
684
|
+ </View>
|
|
685
|
+ </View>
|
667
|
686
|
<View className="section-content">
|
668
|
687
|
{
|
669
|
688
|
consultants.slice(0, 3).map(item => (
|
|
@@ -704,7 +723,7 @@ export default class Index extends Component {
|
704
|
723
|
)
|
705
|
724
|
}
|
706
|
725
|
|
707
|
|
- renderStatement () {
|
|
726
|
+ renderStatement() {
|
708
|
727
|
return (
|
709
|
728
|
<View className='statement'>
|
710
|
729
|
免责条款:以上价格仅供参考,具体一房一价的信息以售楼处展示为准。本网显示房屋位置、交通、医疗、教育、商业等配套信息,来源于第三方网络数据,不作为要约,仅供参考,双方具体权利义务应以法律规定及买卖合同约定为准。<br></br>本平台对项目周边文化教育的介绍旨在提供相关信息,并不意味着信息发布方对就学安排作出承诺。相关教育资源就学信息存在调整的可能,应以政府教育主管部门及办学颁布的政策规定为准。
|
|
@@ -713,7 +732,7 @@ export default class Index extends Component {
|
713
|
732
|
}
|
714
|
733
|
|
715
|
734
|
|
716
|
|
- renderHelp () {
|
|
735
|
+ renderHelp() {
|
717
|
736
|
const { helpList } = this.state
|
718
|
737
|
return (
|
719
|
738
|
<Block>
|
|
@@ -734,17 +753,17 @@ export default class Index extends Component {
|
734
|
753
|
)
|
735
|
754
|
}
|
736
|
755
|
|
737
|
|
- handleHelpClick (item) {
|
|
756
|
+ handleHelpClick(item) {
|
738
|
757
|
Taro.navigateTo({
|
739
|
758
|
url: '/pages/activity/detail/assistance?id=' + item.activityId
|
740
|
759
|
})
|
741
|
760
|
}
|
742
|
|
- handleGroupClick (item) {
|
|
761
|
+ handleGroupClick(item) {
|
743
|
762
|
Taro.navigateTo({
|
744
|
763
|
url: '/pages/activity/detail/assemble?id=' + item.activityId
|
745
|
764
|
})
|
746
|
765
|
}
|
747
|
|
- renderGroup () {
|
|
766
|
+ renderGroup() {
|
748
|
767
|
const { groupList } = this.state
|
749
|
768
|
return (
|
750
|
769
|
<Block>
|
|
@@ -767,7 +786,7 @@ export default class Index extends Component {
|
767
|
786
|
)
|
768
|
787
|
}
|
769
|
788
|
|
770
|
|
- renderHouseTypeList () {
|
|
789
|
+ renderHouseTypeList() {
|
771
|
790
|
const { statusOpts } = this.state
|
772
|
791
|
const { projectDetail: { buildingApartment } } = this.props
|
773
|
792
|
const list = buildingApartment.filter(item => item.apartmentType === 'apart')
|
|
@@ -885,7 +904,7 @@ export default class Index extends Component {
|
885
|
904
|
</Block>
|
886
|
905
|
)
|
887
|
906
|
}
|
888
|
|
- renderNews () {
|
|
907
|
+ renderNews() {
|
889
|
908
|
const { newsList } = this.state
|
890
|
909
|
return (
|
891
|
910
|
<Block>
|
|
@@ -940,7 +959,7 @@ export default class Index extends Component {
|
940
|
959
|
// }
|
941
|
960
|
|
942
|
961
|
|
943
|
|
- renderVideo () {
|
|
962
|
+ renderVideo() {
|
944
|
963
|
const { videoPlayShow } = this.state
|
945
|
964
|
const { projectDetail } = this.props
|
946
|
965
|
const { videoImage } = projectDetail
|
|
@@ -989,13 +1008,13 @@ export default class Index extends Component {
|
989
|
1008
|
)
|
990
|
1009
|
}
|
991
|
1010
|
|
992
|
|
- changeCurrent (current) {
|
|
1011
|
+ changeCurrent(current) {
|
993
|
1012
|
this.setState({
|
994
|
1013
|
current: current + 1
|
995
|
1014
|
})
|
996
|
1015
|
}
|
997
|
1016
|
|
998
|
|
- render () {
|
|
1017
|
+ render() {
|
999
|
1018
|
const { posterStatus, posterData, loaded, btnstate } = this.state
|
1000
|
1019
|
const { projectDetail } = this.props
|
1001
|
1020
|
const { uvList = {} } = projectDetail
|