|
@@ -19,6 +19,8 @@ import { getStore, connect } from '@tarojs/redux'
|
19
|
19
|
import * as actions from '@/actions/project'
|
20
|
20
|
import { transferImage } from '@/utils/tools'
|
21
|
21
|
import Notice from '@/components/Notice'
|
|
22
|
+
|
|
23
|
+const bgImg = require('@/assets/background.png')
|
22
|
24
|
// import { getIndexPreloadData } from '@/utils/preload'
|
23
|
25
|
// import Authorize from '@/components/authorize'
|
24
|
26
|
// import * as noticeType from '@/constants/common.js'
|
|
@@ -545,29 +547,17 @@ export default class Index extends Component {
|
545
|
547
|
{!achieve && <ScrollView
|
546
|
548
|
scrollY
|
547
|
549
|
className='home'>
|
548
|
|
- {/* 搜索框 */}
|
549
|
|
- <View className="top-box">
|
550
|
|
- <View className="search" onClick={this.handleToHouseList}>
|
551
|
|
- <Image className="search-icon" src={require('@/assets/index/search.png')} />
|
552
|
|
- <Input className="search-input" placeholder-style="color:#B8B8B8" placeholder="输入你想查询的楼盘"></Input>
|
553
|
|
- </View>
|
554
|
|
- <View className="location" onClick={this.handleLocationClick}>
|
555
|
|
- <Image className="location-icon" src={require('@/assets/index/location.png')} />
|
556
|
|
- <Text className="location-text">{curCity.id ? curCity.shortname : '正在定位'}</Text>
|
557
|
|
- <View class="arrow_down"></View>
|
558
|
|
- </View>
|
559
|
|
- </View>
|
560
|
550
|
{/* 头部轮播图 */}
|
561
|
551
|
<View className="section section-top" style={{ marginTop: 0, paddingTop: 0 }}>
|
562
|
552
|
<View
|
563
|
553
|
style={{
|
564
|
|
- height: '464rpx', position: 'relative'
|
|
554
|
+ height: '500rpx', position: 'relative'
|
565
|
555
|
}}>
|
566
|
556
|
{
|
567
|
557
|
this.state.visBanner && (
|
568
|
558
|
<Banner
|
569
|
559
|
style={{
|
570
|
|
- height: '464rpx'
|
|
560
|
+ height: '500rpx'
|
571
|
561
|
}}
|
572
|
562
|
indicatorDots={false}
|
573
|
563
|
list={this.state.bannerList}
|
|
@@ -578,17 +568,29 @@ export default class Index extends Component {
|
578
|
568
|
)
|
579
|
569
|
}
|
580
|
570
|
</View>
|
|
571
|
+ {/* 搜索框 */}
|
|
572
|
+ <View className="top-box">
|
|
573
|
+ <View className="search" onClick={this.handleToHouseList}>
|
|
574
|
+ <Image className="search-icon" src={require('@/assets/index/search.png')} />
|
|
575
|
+ <Input className="search-input" placeholder-style="color:#fff" placeholder="输入你想查询的楼盘"></Input>
|
|
576
|
+ </View>
|
|
577
|
+ <View className="location" onClick={this.handleLocationClick}>
|
|
578
|
+ <Image className="location-icon" src={require('@/assets/map.png')} />
|
|
579
|
+ <Text className="location-text">{curCity.id ? curCity.shortname : '正在定位'}</Text>
|
|
580
|
+ <View class="arrow_down"></View>
|
|
581
|
+ </View>
|
|
582
|
+ </View>
|
581
|
583
|
</View>
|
582
|
584
|
{/* 菜单栏 */}
|
583
|
|
- <View className="mune-box" style={personType == ROLE_CODE['CONSULTANT'] ? "padding:0 8%" : ""}>
|
|
585
|
+ <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%`}>
|
584
|
586
|
<View className="mune-item" onClick={this.toShopMallPage}>
|
585
|
|
- <Image src={require('@/assets/index/mall-icon.png')} className='icon'></Image>
|
|
587
|
+ <Image src="https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1578709201249-mall.png" className='icon'></Image>
|
586
|
588
|
<View className="mune-text">
|
587
|
589
|
积分商城
|
588
|
590
|
</View>
|
589
|
591
|
</View>
|
590
|
592
|
<View className="mune-item" onClick={this.toPolicyPage}>
|
591
|
|
- <Image src={require('@/assets/index/encyclopedia-icon.png')} className='icon'></Image>
|
|
593
|
+ <Image src="https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1578708937718-encyclopedia.png" className='icon'></Image>
|
592
|
594
|
<View className="mune-text">
|
593
|
595
|
购房百科
|
594
|
596
|
</View>
|
|
@@ -596,14 +598,14 @@ export default class Index extends Component {
|
596
|
598
|
{
|
597
|
599
|
(personType !== ROLE_CODE['CONSULTANT']) &&
|
598
|
600
|
<View className="mune-item" onClick={this.toRecomonedPage}>
|
599
|
|
- <Image src={require('@/assets/index/recommend-icon.png')} className='icon'></Image>
|
|
601
|
+ <Image src="https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1578709234380-recommend.png" className='icon'></Image>
|
600
|
602
|
<View className="mune-text">
|
601
|
603
|
推荐客户
|
602
|
604
|
</View>
|
603
|
605
|
</View>
|
604
|
606
|
}
|
605
|
607
|
<View className="mune-item" onClick={this.toMapHouse}>
|
606
|
|
- <Image src={require('@/assets/index/map-icon.png')} className='icon'></Image>
|
|
608
|
+ <Image src="https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1578709222557-map.png" className='icon'></Image>
|
607
|
609
|
<View className="mune-text">
|
608
|
610
|
地图找房
|
609
|
611
|
</View>
|
|
@@ -615,7 +617,7 @@ export default class Index extends Component {
|
615
|
617
|
this.state.visPropagandaBanner && propagandaBanner.length > 0 &&
|
616
|
618
|
<View
|
617
|
619
|
style={{
|
618
|
|
- position: 'relative', padding: '20px 15px 0 15px'
|
|
620
|
+ position: 'relative', padding: '10px 15px 0 15px'
|
619
|
621
|
}}>
|
620
|
622
|
<BannerTwo
|
621
|
623
|
style={{
|