|
@@ -18,7 +18,7 @@ import dayjs from 'dayjs'
|
18
|
18
|
import 'dayjs/locale/zh-cn' // 按需加载
|
19
|
19
|
import ready from '@utils/ready'
|
20
|
20
|
import Notice from '@components/Notice'
|
21
|
|
-import { getDownloadURL } from '@utils/tools'
|
|
21
|
+import { getDownloadURL, getThumbnail } from '@utils/tools'
|
22
|
22
|
import { connect } from '@tarojs/redux'
|
23
|
23
|
import { dispatchProjectDetail } from '@actions/project'
|
24
|
24
|
import getUserPhone from '@utils/getUserPhone'
|
|
@@ -542,7 +542,7 @@ export default class Index extends Component {
|
542
|
542
|
<View className="type-intro__list">
|
543
|
543
|
{
|
544
|
544
|
buildingProjectType.map(item => (
|
545
|
|
- <View className='type-intro__item' key={item.buildingId} style={`background: url(${buildBg}) no-repeat center;background-size: 100% 100%;`}>
|
|
545
|
+ <View className='type-intro__item' key={item.buildingId} style={`background: url(${getThumbnail(buildBg)}) no-repeat center;background-size: 100% 100%;`}>
|
546
|
546
|
|
547
|
547
|
<View >
|
548
|
548
|
|
|
@@ -598,7 +598,7 @@ export default class Index extends Component {
|
598
|
598
|
<ScrollView scrollX>
|
599
|
599
|
<View className='photos__type__content'>
|
600
|
600
|
<View className='photos__type__list'>
|
601
|
|
- <Image className='photos__img' src={imgList[0].url} mode="widthFix" onClick={this.toViewAlbum}></Image>
|
|
601
|
+ <Image className='photos__img' src={getThumbnail(imgList[0].url)} mode="widthFix" onClick={this.toViewAlbum}></Image>
|
602
|
602
|
<View className='photos__img__len'>共{imgList.length}张</View>
|
603
|
603
|
</View>
|
604
|
604
|
</View>
|
|
@@ -632,7 +632,7 @@ export default class Index extends Component {
|
632
|
632
|
</View>
|
633
|
633
|
|
634
|
634
|
<View className='map'>
|
635
|
|
- <Image src={projectDetail.mapImg} className='map__img' mode="widthFix"></Image>
|
|
635
|
+ <Image src={getThumbnail(projectDetail.mapImg)} className='map__img' mode="widthFix"></Image>
|
636
|
636
|
</View>
|
637
|
637
|
<ScrollView className="body" scrollY >
|
638
|
638
|
{
|
|
@@ -667,7 +667,7 @@ export default class Index extends Component {
|
667
|
667
|
consultants.slice(0, 3).map(item => (
|
668
|
668
|
<View className="item" key={item.id} onClick={this.handleConsuItemClick.bind(this, item)}>
|
669
|
669
|
<View className="flex">
|
670
|
|
- <Image className="avatar" mode="aspectFill" src={item.photo || item.avatar}></Image>
|
|
670
|
+ <Image className="avatar" mode="aspectFill" src={getThumbnail(item.photo || item.avatar)}></Image>
|
671
|
671
|
<View className='name-txt'>
|
672
|
672
|
<Text className="name">{item.userName}</Text>
|
673
|
673
|
<Text className='txt'>{item.description || ' '}</Text>
|
|
@@ -787,7 +787,7 @@ export default class Index extends Component {
|
787
|
787
|
{
|
788
|
788
|
item && (
|
789
|
789
|
<View className='house__img-info'>
|
790
|
|
- <Image className='house__img' src={item.buildingImgList[0].url} mode="widthFix" onClick={this.handlePreviewHxImage.bind(this, item.buildingImgList[0].url, imgUrls)}></Image>
|
|
790
|
+ <Image className='house__img' src={getThumbnail(item.buildingImgList[0].url)} mode="widthFix" onClick={this.handlePreviewHxImage.bind(this, item.buildingImgList[0].url, imgUrls)}></Image>
|
791
|
791
|
<View className='house-type__state'>{statusOpts[item.marketStatus - 1]}</View>
|
792
|
792
|
</View>
|
793
|
793
|
)
|
|
@@ -830,7 +830,7 @@ export default class Index extends Component {
|
830
|
830
|
{
|
831
|
831
|
activityList.map(item => (
|
832
|
832
|
<View className="news-item" key={item.dynamicId} onClick={this.handActivityItemClick.bind(this, item.dynamicId)}>
|
833
|
|
- <Image src={item.imgUrl} className="news-item__pic"></Image>
|
|
833
|
+ <Image src={getThumbnail(item.imgUrl)} className="news-item__pic"></Image>
|
834
|
834
|
<View className="news-item__title">{item.title}</View>
|
835
|
835
|
</View>
|
836
|
836
|
))
|
|
@@ -861,7 +861,7 @@ export default class Index extends Component {
|
861
|
861
|
{
|
862
|
862
|
newsList.map(item => (
|
863
|
863
|
<View className="news-item" key={item.newsId} onClick={this.handNewsItemClick.bind(this, item.newsId)}>
|
864
|
|
- <Image src={item.newsImg} className="news-item__pic"></Image>
|
|
864
|
+ <Image src={getThumbnail(item.newsImg)} className="news-item__pic"></Image>
|
865
|
865
|
<View className="news-item__title">{item.newsName}</View>
|
866
|
866
|
</View>
|
867
|
867
|
))
|