|
@@ -59,14 +59,6 @@ export default class Index extends Component {
|
59
|
59
|
|
60
|
60
|
componentWillMount() {
|
61
|
61
|
|
62
|
|
- // wx.setNavigationBarColor({
|
63
|
|
- // frontColor: '#ffffff',
|
64
|
|
- // backgroundColor: '#E31F05',
|
65
|
|
- // animation: {
|
66
|
|
- // duration: 400,
|
67
|
|
- // timingFunc: 'easeIn'
|
68
|
|
- // }
|
69
|
|
- // })
|
70
|
62
|
Taro.hideTabBar()
|
71
|
63
|
|
72
|
64
|
ready.queue(() => {
|
|
@@ -91,10 +83,6 @@ export default class Index extends Component {
|
91
|
83
|
})
|
92
|
84
|
}
|
93
|
85
|
|
94
|
|
- componentDidMount() {
|
95
|
|
- // Taro.setNavigationBarTitle({ title: this.props.userInfo.miniApp.name })
|
96
|
|
- }
|
97
|
|
-
|
98
|
86
|
getIndexShareInfo() {
|
99
|
87
|
getIndexShare().then(res => {
|
100
|
88
|
|
|
@@ -556,17 +544,29 @@ export default class Index extends Component {
|
556
|
544
|
{!achieve && <ScrollView
|
557
|
545
|
scrollY
|
558
|
546
|
className='home'>
|
|
547
|
+ {/* 搜索框 */}
|
|
548
|
+ <View className="top-box">
|
|
549
|
+ <View className="search" onClick={this.handleToHouseList}>
|
|
550
|
+ <Image className="search-icon" src={require('@/assets/index/search.png')} />
|
|
551
|
+ <Input className="search-input" placeholder-style="color:#B8B8B8" placeholder="输入你想查询的楼盘"></Input>
|
|
552
|
+ </View>
|
|
553
|
+ <View className="location" onClick={this.handleLocationClick}>
|
|
554
|
+ <Image className="location-icon" src={require('@/assets/index/location.png')} />
|
|
555
|
+ <Text className="location-text">{curCity.id ? curCity.shortname : '正在定位'}</Text>
|
|
556
|
+ <View class="arrow_down"></View>
|
|
557
|
+ </View>
|
|
558
|
+ </View>
|
559
|
559
|
{/* 头部轮播图 */}
|
560
|
560
|
<View className="section section-top" style={{ marginTop: 0, paddingTop: 0 }}>
|
561
|
561
|
<View
|
562
|
562
|
style={{
|
563
|
|
- height: '500rpx', position: 'relative'
|
|
563
|
+ height: '464rpx', position: 'relative'
|
564
|
564
|
}}>
|
565
|
565
|
{
|
566
|
566
|
this.state.visBanner && (
|
567
|
567
|
<Banner
|
568
|
568
|
style={{
|
569
|
|
- height: '500rpx'
|
|
569
|
+ height: '464rpx'
|
570
|
570
|
}}
|
571
|
571
|
indicatorDots={false}
|
572
|
572
|
list={this.state.bannerList}
|
|
@@ -577,47 +577,35 @@ export default class Index extends Component {
|
577
|
577
|
)
|
578
|
578
|
}
|
579
|
579
|
</View>
|
580
|
|
- {/* 搜索框 */}
|
581
|
|
- <View className="top-box">
|
582
|
|
- <View className="search" onClick={this.handleToHouseList}>
|
583
|
|
- <Image className="search-icon" src={require('@/assets/index/search.png')} />
|
584
|
|
- <Input className="search-input" placeholder-style="color:#fff" placeholder="输入你想查询的楼盘"></Input>
|
585
|
|
- </View>
|
586
|
|
- <View className="location" onClick={this.handleLocationClick}>
|
587
|
|
- <Image className="location-icon" src={require('@/assets/map.png')} />
|
588
|
|
- <Text className="location-text">{curCity.id ? curCity.shortname : '正在定位'}</Text>
|
589
|
|
- <View class="arrow_down"></View>
|
590
|
|
- </View>
|
591
|
|
- </View>
|
592
|
580
|
</View>
|
593
|
581
|
{/* 菜单栏 */}
|
594
|
|
- <View className="mune-box" style={personType == ROLE_CODE['CONSULTANT'] ? `background: url(${transferImage(bgImg)}) no-repeat center;background-size: 100% 100%;padding:0 8%` : `background: url(${transferImage(bgImg)}) no-repeat center;background-size: 100% 100%`}>
|
|
582
|
+ <View className="mune-box" style={personType == ROLE_CODE['CONSULTANT'] ? "padding:0 8%" : ""}>
|
595
|
583
|
<View className="mune-item" onClick={this.toShopMallPage}>
|
596
|
|
- <Image src="https://njcj.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1578709201249-mall.png" className='icon'></Image>
|
|
584
|
+ <Image src={require('@/assets/index/mall-icon.png')} className='icon'></Image>
|
597
|
585
|
<View className="mune-text">
|
598
|
586
|
积分商城
|
599
|
|
- </View>
|
|
587
|
+ </View>
|
600
|
588
|
</View>
|
601
|
589
|
<View className="mune-item" onClick={this.toPolicyPage}>
|
602
|
|
- <Image src="https://njcj.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1578708937718-encyclopedia.png" className='icon'></Image>
|
|
590
|
+ <Image src={require('@/assets/index/encyclopedia-icon.png')} className='icon'></Image>
|
603
|
591
|
<View className="mune-text">
|
604
|
592
|
购房百科
|
605
|
|
- </View>
|
|
593
|
+ </View>
|
606
|
594
|
</View>
|
607
|
595
|
{
|
608
|
596
|
(personType !== ROLE_CODE['CONSULTANT']) &&
|
609
|
597
|
<View className="mune-item" onClick={this.toRecomonedPage}>
|
610
|
|
- <Image src="https://njcj.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1578709234380-recommend.png" className='icon'></Image>
|
|
598
|
+ <Image src={require('@/assets/index/recommend-icon.png')} className='icon'></Image>
|
611
|
599
|
<View className="mune-text">
|
612
|
600
|
推荐客户
|
613
|
|
- </View>
|
|
601
|
+ </View>
|
614
|
602
|
</View>
|
615
|
603
|
}
|
616
|
604
|
<View className="mune-item" onClick={this.toMapHouse}>
|
617
|
|
- <Image src="https://njcj.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1578709222557-map.png" className='icon'></Image>
|
|
605
|
+ <Image src={require('@/assets/index/map-icon.png')} className='icon'></Image>
|
618
|
606
|
<View className="mune-text">
|
619
|
607
|
地图找房
|
620
|
|
- </View>
|
|
608
|
+ </View>
|
621
|
609
|
</View>
|
622
|
610
|
</View>
|
623
|
611
|
<View style={(newsShow || propagandaBanner.length > 0) ? "border-bottom:20rpx solid #f5f5f5" : ''}>
|
|
@@ -626,7 +614,7 @@ export default class Index extends Component {
|
626
|
614
|
this.state.visPropagandaBanner && propagandaBanner.length > 0 &&
|
627
|
615
|
<View
|
628
|
616
|
style={{
|
629
|
|
- position: 'relative', padding: '10px 15px 0 15px'
|
|
617
|
+ position: 'relative', padding: '20px 15px 0 15px'
|
630
|
618
|
}}>
|
631
|
619
|
<BannerTwo
|
632
|
620
|
style={{
|