|
@@ -57,7 +57,7 @@ export default class Index extends Component {
|
57
|
57
|
albumCurrent: 0,
|
58
|
58
|
}
|
59
|
59
|
|
60
|
|
- componentWillMount () {
|
|
60
|
+ componentWillMount() {
|
61
|
61
|
// const { id = '78c3dd489791dc1d29472fa344b08c45' } = this.$router.params
|
62
|
62
|
ready.queue(() => {
|
63
|
63
|
const router = Taro.getStorageSync('router')
|
|
@@ -90,12 +90,12 @@ export default class Index extends Component {
|
90
|
90
|
})
|
91
|
91
|
}
|
92
|
92
|
|
93
|
|
- componentWillUnmount () {
|
|
93
|
+ componentWillUnmount() {
|
94
|
94
|
const { recordId } = this.state
|
95
|
95
|
recordId && updatePoint(recordId)
|
96
|
96
|
}
|
97
|
97
|
|
98
|
|
- loadHelpGroupList () {
|
|
98
|
+ loadHelpGroupList() {
|
99
|
99
|
const { buildingId } = this.state
|
100
|
100
|
queryHelpGroup({ buildingId: buildingId }).then(res => {
|
101
|
101
|
console.log(res, "buildingId")
|
|
@@ -116,7 +116,7 @@ export default class Index extends Component {
|
116
|
116
|
)
|
117
|
117
|
}
|
118
|
118
|
|
119
|
|
- loadDetail () {
|
|
119
|
+ loadDetail() {
|
120
|
120
|
const { buildingId } = this.state
|
121
|
121
|
const { dispatchProjectDetail } = this.props
|
122
|
122
|
this.setState({
|
|
@@ -144,7 +144,7 @@ export default class Index extends Component {
|
144
|
144
|
})
|
145
|
145
|
}
|
146
|
146
|
|
147
|
|
- loadActivityData () {
|
|
147
|
+ loadActivityData() {
|
148
|
148
|
const { buildingId } = this.state
|
149
|
149
|
const payload = { pageSize: 999, pageNumber: 1, buildingId }
|
150
|
150
|
queryActivityList(payload).then(res => {
|
|
@@ -154,7 +154,7 @@ export default class Index extends Component {
|
154
|
154
|
})
|
155
|
155
|
}
|
156
|
156
|
|
157
|
|
- loadNewsData () {
|
|
157
|
+ loadNewsData() {
|
158
|
158
|
const { buildingId } = this.state
|
159
|
159
|
const payload = { pageSize: 2, pageNumber: 1, buildingId }
|
160
|
160
|
queryNewsList(payload).then(res => {
|
|
@@ -164,11 +164,11 @@ export default class Index extends Component {
|
164
|
164
|
})
|
165
|
165
|
}
|
166
|
166
|
|
167
|
|
- navigateTo (url) {
|
|
167
|
+ navigateTo(url) {
|
168
|
168
|
Taro.navigateTo({ url: url })
|
169
|
169
|
}
|
170
|
170
|
// 海报预览图
|
171
|
|
- previewImage (arr) {
|
|
171
|
+ previewImage(arr) {
|
172
|
172
|
// console.log('arr:' + arr)
|
173
|
173
|
if (arr[0].length > 1) {
|
174
|
174
|
Taro.previewImage({
|
|
@@ -195,7 +195,7 @@ export default class Index extends Component {
|
195
|
195
|
})
|
196
|
196
|
}
|
197
|
197
|
|
198
|
|
- openMap () {
|
|
198
|
+ openMap() {
|
199
|
199
|
const {
|
200
|
200
|
buildingName,
|
201
|
201
|
address,
|
|
@@ -222,12 +222,12 @@ export default class Index extends Component {
|
222
|
222
|
})
|
223
|
223
|
}
|
224
|
224
|
|
225
|
|
- toViewAlbum () {
|
|
225
|
+ toViewAlbum() {
|
226
|
226
|
const { buildingId } = this.state
|
227
|
227
|
this.navigateTo(`/pages/project/album/index?id=${buildingId}`)
|
228
|
228
|
}
|
229
|
229
|
|
230
|
|
- onViewFans () {
|
|
230
|
+ onViewFans() {
|
231
|
231
|
const { buildingId } = this.state
|
232
|
232
|
this.navigateTo('/pages/card/fans/index?type=item&id=' + buildingId)
|
233
|
233
|
}
|
|
@@ -256,7 +256,7 @@ export default class Index extends Component {
|
256
|
256
|
}
|
257
|
257
|
}
|
258
|
258
|
|
259
|
|
- getPhoneNumber (e, item) {
|
|
259
|
+ getPhoneNumber(e, item) {
|
260
|
260
|
getUserPhone(e, (phoneNumber) => {
|
261
|
261
|
const { userInfo: { person: { personId, nickname, name } } } = this.props
|
262
|
262
|
Taro.navigateTo({
|
|
@@ -265,7 +265,7 @@ export default class Index extends Component {
|
265
|
265
|
})
|
266
|
266
|
}
|
267
|
267
|
|
268
|
|
- getPosterData () {
|
|
268
|
+ getPosterData() {
|
269
|
269
|
return new Promise(resolve => {
|
270
|
270
|
const { posterData } = this.state
|
271
|
271
|
if (posterData.qrcode) {
|
|
@@ -336,14 +336,14 @@ export default class Index extends Component {
|
336
|
336
|
})
|
337
|
337
|
}
|
338
|
338
|
|
339
|
|
- handleTelClick (item, e) {
|
|
339
|
+ handleTelClick(item, e) {
|
340
|
340
|
e.stopPropagation()
|
341
|
341
|
Taro.makePhoneCall({
|
342
|
342
|
phoneNumber: item.phone
|
343
|
343
|
})
|
344
|
344
|
}
|
345
|
345
|
|
346
|
|
- handleChatClick (item, e) {
|
|
346
|
+ handleChatClick(item, e) {
|
347
|
347
|
e.stopPropagation()
|
348
|
348
|
const { userInfo: { person: { personId, nickname, name } } } = this.props
|
349
|
349
|
Taro.navigateTo({
|
|
@@ -351,24 +351,24 @@ export default class Index extends Component {
|
351
|
351
|
})
|
352
|
352
|
}
|
353
|
353
|
|
354
|
|
- handleConsuItemClick (item) {
|
|
354
|
+ handleConsuItemClick(item) {
|
355
|
355
|
Taro.navigateTo({
|
356
|
356
|
url: `/pages/card/index?id=${item.id}`
|
357
|
357
|
})
|
358
|
358
|
}
|
359
|
359
|
|
360
|
|
- handleMoreClick () {
|
|
360
|
+ handleMoreClick() {
|
361
|
361
|
// App.zhuge.track('查看置业顾问列表')
|
362
|
362
|
Taro.navigateTo({
|
363
|
363
|
url: `/pages/card/list/index?buildingId=${this.state.buildingId}`
|
364
|
364
|
})
|
365
|
365
|
}
|
366
|
366
|
|
367
|
|
- handleStopPropagation (e) {
|
|
367
|
+ handleStopPropagation(e) {
|
368
|
368
|
e.stopPropagation()
|
369
|
369
|
}
|
370
|
370
|
|
371
|
|
- toRecomonedPage () {
|
|
371
|
+ toRecomonedPage() {
|
372
|
372
|
const {
|
373
|
373
|
userInfo: { person: { personType } }
|
374
|
374
|
} = this.props
|
|
@@ -384,50 +384,50 @@ export default class Index extends Component {
|
384
|
384
|
}
|
385
|
385
|
}
|
386
|
386
|
|
387
|
|
- toHome () {
|
|
387
|
+ toHome() {
|
388
|
388
|
Taro.switchTab({
|
389
|
389
|
url: `/pages/project/index`
|
390
|
390
|
})
|
391
|
391
|
}
|
392
|
392
|
|
393
|
|
- HandleCircumTabClick (id) {
|
|
393
|
+ HandleCircumTabClick(id) {
|
394
|
394
|
this.setState({
|
395
|
395
|
curTab: id
|
396
|
396
|
})
|
397
|
397
|
}
|
398
|
398
|
|
399
|
|
- handleNewsMoreClick () {
|
|
399
|
+ handleNewsMoreClick() {
|
400
|
400
|
Taro.navigateTo({
|
401
|
401
|
url: `/pages/news/index?buildingId=` + this.state.buildingId
|
402
|
402
|
})
|
403
|
403
|
}
|
404
|
404
|
|
405
|
|
- handNewsItemClick (id) {
|
|
405
|
+ handNewsItemClick(id) {
|
406
|
406
|
Taro.navigateTo({
|
407
|
407
|
url: '/pages/news/detail/index?id=' + id
|
408
|
408
|
})
|
409
|
409
|
}
|
410
|
410
|
|
411
|
|
- handleActivityMoreClick () {
|
|
411
|
+ handleActivityMoreClick() {
|
412
|
412
|
Taro.navigateTo({
|
413
|
413
|
url: `/pages/activity/index?buildingId=` + this.state.buildingId
|
414
|
414
|
})
|
415
|
415
|
}
|
416
|
416
|
|
417
|
|
- handActivityItemClick (id) {
|
|
417
|
+ handActivityItemClick(id) {
|
418
|
418
|
Taro.navigateTo({
|
419
|
419
|
url: '/pages/activity/detail/index?id=' + id
|
420
|
420
|
})
|
421
|
421
|
}
|
422
|
422
|
|
423
|
|
- handlePreviewHxImage (current, urls) {
|
|
423
|
+ handlePreviewHxImage(current, urls) {
|
424
|
424
|
Taro.previewImage({
|
425
|
425
|
current,
|
426
|
426
|
urls
|
427
|
427
|
})
|
428
|
428
|
}
|
429
|
429
|
|
430
|
|
- handleFavor () {
|
|
430
|
+ handleFavor() {
|
431
|
431
|
const { buildingId, isSaved } = this.state
|
432
|
432
|
if (isSaved) {
|
433
|
433
|
cancelFavorProject(buildingId).then(res => {
|
|
@@ -457,18 +457,18 @@ export default class Index extends Component {
|
457
|
457
|
console.log('活动项目收藏')
|
458
|
458
|
})
|
459
|
459
|
}
|
460
|
|
- handleToolsClick () {
|
|
460
|
+ handleToolsClick() {
|
461
|
461
|
Taro.navigateTo({
|
462
|
462
|
url: `/pages/toolKit/index`
|
463
|
463
|
})
|
464
|
464
|
}
|
465
|
|
- moreFloor () {
|
|
465
|
+ moreFloor() {
|
466
|
466
|
Taro.navigateTo({
|
467
|
467
|
url: `/pages/project/floor/index`
|
468
|
468
|
})
|
469
|
469
|
}
|
470
|
470
|
|
471
|
|
- renderBottomMenu () {
|
|
471
|
+ renderBottomMenu() {
|
472
|
472
|
const { userInfo: { person: { personType } } } = this.props
|
473
|
473
|
const { posterShow } = this.state
|
474
|
474
|
return (
|
|
@@ -503,14 +503,14 @@ export default class Index extends Component {
|
503
|
503
|
)
|
504
|
504
|
}
|
505
|
505
|
|
506
|
|
- previewHouseImage (current, urls) {
|
|
506
|
+ previewHouseImage(current, urls) {
|
507
|
507
|
Taro.previewImage({
|
508
|
508
|
current,
|
509
|
509
|
urls
|
510
|
510
|
})
|
511
|
511
|
}
|
512
|
512
|
|
513
|
|
- renderBuildingProjectTypeList () {
|
|
513
|
+ renderBuildingProjectTypeList() {
|
514
|
514
|
const { statusOpts } = this.state
|
515
|
515
|
const { projectDetail: { buildingProjectType = [], status, marketStatus } } = this.props
|
516
|
516
|
return (
|
|
@@ -535,7 +535,7 @@ export default class Index extends Component {
|
535
|
535
|
{/* <Icon className="iconfont icon-jinrongxianxingge-" onClick={this.handleToolsClick}></Icon> */}
|
536
|
536
|
<View className='row' style="margin-top:0">
|
537
|
537
|
<Text className='row-label'>项目类型:</Text>
|
538
|
|
- <Text className='row-txt black'>{item.buildingTypeName}</Text>
|
|
538
|
+ <Text className='row-txt black'>{item.buildingTypeName || ' '}</Text>
|
539
|
539
|
</View>
|
540
|
540
|
<View className='row'>
|
541
|
541
|
<Text className='row-label'>项目参考价格:</Text>
|
|
@@ -545,10 +545,15 @@ export default class Index extends Component {
|
545
|
545
|
</View>
|
546
|
546
|
<View className='row'>
|
547
|
547
|
<Text className='row-label'>产权:</Text>
|
548
|
|
- <Text className='row-txt'>{item.rightsYear}年</Text>
|
|
548
|
+ {item.rightsYear ?
|
|
549
|
+ <Text className='row-txt'>{item.rightsYear}年</Text>
|
|
550
|
+ :
|
|
551
|
+ <Text className='row-txt'>暂无</Text>
|
|
552
|
+ }
|
|
553
|
+
|
549
|
554
|
<View className='row-right'>
|
550
|
555
|
<Text className='row-label'>装修:</Text>
|
551
|
|
- <Text className='row-txt'>{item.decoration}</Text>
|
|
556
|
+ <Text className='row-txt'>{item.decoration || '暂无'}</Text>
|
552
|
557
|
</View>
|
553
|
558
|
</View>
|
554
|
559
|
</View>
|
|
@@ -564,7 +569,7 @@ export default class Index extends Component {
|
564
|
569
|
}
|
565
|
570
|
|
566
|
571
|
|
567
|
|
- renderPhotoAlbum () {
|
|
572
|
+ renderPhotoAlbum() {
|
568
|
573
|
const { projectDetail: { buildingApartment } } = this.props
|
569
|
574
|
const list = buildingApartment.filter(item => item.apartmentType === 'photo')
|
570
|
575
|
const imgList = list.reduce((prev, cur) => {
|
|
@@ -574,28 +579,28 @@ export default class Index extends Component {
|
574
|
579
|
|
575
|
580
|
const { albumCurrent } = this.state
|
576
|
581
|
|
577
|
|
-
|
578
|
|
-
|
|
582
|
+
|
|
583
|
+
|
579
|
584
|
return (
|
580
|
585
|
|
581
|
|
-
|
|
586
|
+
|
582
|
587
|
<Block>
|
583
|
|
- { list.length > 0 &&
|
|
588
|
+ {list.length > 0 &&
|
584
|
589
|
(
|
585
|
590
|
<View className='photos__type'>
|
586
|
591
|
<View className='photos__type__title'>相册</View>
|
587
|
592
|
<ScrollView scrollX>
|
588
|
593
|
<View className='photos__type__content' onClick={this.toViewAlbum}>
|
589
|
|
-
|
|
594
|
+
|
590
|
595
|
<View className="around-tab">
|
591
|
596
|
{list.map((item, index) => {
|
592
|
|
- const { apartmentName} = item || {}
|
593
|
|
- const buildingImgList = item.buildingImgList
|
594
|
|
-
|
595
|
|
-
|
|
597
|
+ const { apartmentName } = item || {}
|
|
598
|
+ const buildingImgList = item.buildingImgList
|
|
599
|
+
|
|
600
|
+
|
596
|
601
|
return (
|
597
|
602
|
<View
|
598
|
|
- style={{ marginRight: '8px' }}
|
|
603
|
+ style={{ marginRight: '8px' }}
|
599
|
604
|
>
|
600
|
605
|
{/* {`${label}(${num})`} */}
|
601
|
606
|
<View>
|
|
@@ -614,7 +619,7 @@ export default class Index extends Component {
|
614
|
619
|
</Block>
|
615
|
620
|
)
|
616
|
621
|
}
|
617
|
|
- rendercircum () {
|
|
622
|
+ rendercircum() {
|
618
|
623
|
const building = {
|
619
|
624
|
...this.props.projectDetail
|
620
|
625
|
}
|
|
@@ -631,7 +636,7 @@ export default class Index extends Component {
|
631
|
636
|
)
|
632
|
637
|
}
|
633
|
638
|
|
634
|
|
- renderConsuler () {
|
|
639
|
+ renderConsuler() {
|
635
|
640
|
const { userInfo: { person: { phone } } } = this.props
|
636
|
641
|
const { projectDetail: { consultants = [] } } = this.props
|
637
|
642
|
return (
|
|
@@ -685,7 +690,7 @@ export default class Index extends Component {
|
685
|
690
|
)
|
686
|
691
|
}
|
687
|
692
|
|
688
|
|
- renderStatement () {
|
|
693
|
+ renderStatement() {
|
689
|
694
|
return (
|
690
|
695
|
<View className='statement'>
|
691
|
696
|
免责条款:以上价格仅供参考,具体一房一价的信息以售楼处展示为准。本网显示房屋位置、交通、医疗、教育、商业等配套信息,来源于第三方网络数据,不作为要约,仅供参考,双方具体权利义务应以法律规定及买卖合同约定为准。<br></br>本平台对项目周边文化教育的介绍旨在提供相关信息,并不意味着信息发布方对就学安排作出承诺。相关教育资源就学信息存在调整的可能,应以政府教育主管部门及办学颁布的政策规定为准。
|
|
@@ -694,7 +699,7 @@ export default class Index extends Component {
|
694
|
699
|
}
|
695
|
700
|
|
696
|
701
|
|
697
|
|
- renderHelp () {
|
|
702
|
+ renderHelp() {
|
698
|
703
|
const { helpList } = this.state
|
699
|
704
|
return (
|
700
|
705
|
<Block>
|
|
@@ -715,17 +720,17 @@ export default class Index extends Component {
|
715
|
720
|
)
|
716
|
721
|
}
|
717
|
722
|
|
718
|
|
- handleHelpClick (item) {
|
|
723
|
+ handleHelpClick(item) {
|
719
|
724
|
Taro.navigateTo({
|
720
|
725
|
url: '/pages/activity/detail/assistance?id=' + item.activityId
|
721
|
726
|
})
|
722
|
727
|
}
|
723
|
|
- handleGroupClick (item) {
|
|
728
|
+ handleGroupClick(item) {
|
724
|
729
|
Taro.navigateTo({
|
725
|
730
|
url: '/pages/activity/detail/assemble?id=' + item.activityId
|
726
|
731
|
})
|
727
|
732
|
}
|
728
|
|
- renderGroup () {
|
|
733
|
+ renderGroup() {
|
729
|
734
|
const { groupList } = this.state
|
730
|
735
|
return (
|
731
|
736
|
<Block>
|
|
@@ -747,7 +752,7 @@ export default class Index extends Component {
|
747
|
752
|
)
|
748
|
753
|
}
|
749
|
754
|
|
750
|
|
- renderHouseTypeList () {
|
|
755
|
+ renderHouseTypeList() {
|
751
|
756
|
const { statusOpts } = this.state
|
752
|
757
|
const { projectDetail: { buildingApartment } } = this.props
|
753
|
758
|
const list = buildingApartment.filter(item => item.apartmentType === 'apart')
|
|
@@ -795,7 +800,7 @@ export default class Index extends Component {
|
795
|
800
|
|
796
|
801
|
)
|
797
|
802
|
}
|
798
|
|
- renderActivities () {
|
|
803
|
+ renderActivities() {
|
799
|
804
|
const { activityList } = this.state
|
800
|
805
|
return (
|
801
|
806
|
<Block>
|
|
@@ -826,7 +831,7 @@ export default class Index extends Component {
|
826
|
831
|
</Block>
|
827
|
832
|
)
|
828
|
833
|
}
|
829
|
|
- renderNews () {
|
|
834
|
+ renderNews() {
|
830
|
835
|
const { newsList } = this.state
|
831
|
836
|
return (
|
832
|
837
|
<Block>
|
|
@@ -858,7 +863,7 @@ export default class Index extends Component {
|
858
|
863
|
)
|
859
|
864
|
}
|
860
|
865
|
|
861
|
|
- renderVideo () {
|
|
866
|
+ renderVideo() {
|
862
|
867
|
const { projectDetail } = this.props
|
863
|
868
|
return (
|
864
|
869
|
<View
|
|
@@ -876,7 +881,7 @@ export default class Index extends Component {
|
876
|
881
|
}}
|
877
|
882
|
controls={true}
|
878
|
883
|
autoplay={false}
|
879
|
|
-
|
|
884
|
+
|
880
|
885
|
initialTime='0'
|
881
|
886
|
id='video'
|
882
|
887
|
loop={false}
|
|
@@ -887,7 +892,7 @@ export default class Index extends Component {
|
887
|
892
|
)
|
888
|
893
|
}
|
889
|
894
|
|
890
|
|
- changeCurrent (current) {
|
|
895
|
+ changeCurrent(current) {
|
891
|
896
|
this.setState({
|
892
|
897
|
current: current + 1
|
893
|
898
|
})
|
|
@@ -895,7 +900,7 @@ export default class Index extends Component {
|
895
|
900
|
|
896
|
901
|
|
897
|
902
|
|
898
|
|
- render () {
|
|
903
|
+ render() {
|
899
|
904
|
const { posterStatus, posterData, loaded, btnstate } = this.state
|
900
|
905
|
const { projectDetail } = this.props
|
901
|
906
|
const { uvList = {} } = projectDetail
|
|
@@ -928,7 +933,7 @@ export default class Index extends Component {
|
928
|
933
|
|
929
|
934
|
{btnstate === 1 && projectDetail.videoUrl != null && this.renderVideo()}
|
930
|
935
|
|
931
|
|
-
|
|
936
|
+
|
932
|
937
|
{btnstate === 1 && projectDetail.videoUrl != null && (<View className='media-btn'>
|
933
|
938
|
<View className='video-btn' style={{ background: ' rgba(187, 156, 121, 1)', color: 'rgba(255, 255, 255, 1)' }} >视频</View>
|
934
|
939
|
<View className='img-btn' onClick={() => this.setState({ btnstate: 0 })}>图片</View>
|
|
@@ -967,7 +972,7 @@ export default class Index extends Component {
|
967
|
972
|
<View className='row project__addr'>
|
968
|
973
|
<Text className="label">楼盘地址:</Text>
|
969
|
974
|
<View className='address'>
|
970
|
|
- <Text className="address__text">{projectDetail.address}</Text>
|
|
975
|
+ <Text className="address__text">{projectDetail.address || '暂无'}</Text>
|
971
|
976
|
{/* <Text className='iconfont icon-jingzhundaohang-copy' onClick={this.openMap.bind(this)}></Text> */}
|
972
|
977
|
</View>
|
973
|
978
|
</View>
|