1007395918@qq.com il y a 5 ans
Parent
révision
021e7fd2a5
2 fichiers modifiés avec 14 ajouts et 14 suppressions
  1. 12
    12
      src/pages/project/detail/index.js
  2. 2
    2
      src/pages/project/item/index.js

+ 12
- 12
src/pages/project/detail/index.js Voir le fichier

@@ -800,8 +800,8 @@ export default class Index extends Component {
800 800
             >
801 801
               <View className="type-intro__list">
802 802
                 {
803
-                  buildingProjectType.map((item,index) => (
804
-                    <View className={buildingProjectType.length == 1 ? 'onlyone type-intro__item' : 'type-intro__item'} key={index+'detailBuildingId'} style={`background: url(${transferImage(buildBg)}) no-repeat center;background-size: 100% 100%;`}>
803
+                  buildingProjectType.map((item, index) => (
804
+                    <View className={buildingProjectType.length == 1 ? 'onlyone type-intro__item' : 'type-intro__item'} key={index + 'detailBuildingId'} style={`background: url(${transferImage(buildBg)}) no-repeat center;background-size: 100% 100%;`}>
805 805
                       <View >
806 806
                         {marketStatus &&
807 807
                           <Text className='item__status' className={marketStatus == '在售' ? 'item__status sale' : marketStatus == '售罄' ? 'item__status soldout' : 'item__status waitsale'}>{marketStatus}</Text>
@@ -815,7 +815,7 @@ export default class Index extends Component {
815 815
                         <View className='row'>
816 816
                           <Text className='row-label'>项目参考价格:</Text>
817 817
                           {
818
-                            item.price ? <Text className='row-txt'>约{item.price}元/m²</Text> : <Text className='row-txt'>待定</Text>
818
+                            item.price ? <Text className='row-txt'>约{item.price}{item.priceType == 'total' ? '万元/套' : '元/m²'}</Text> : <Text className='row-txt'>待定</Text>
819 819
                           }
820 820
                         </View>
821 821
                         <View className='row'>
@@ -963,8 +963,8 @@ export default class Index extends Component {
963 963
               </View>
964 964
               <View className="section-content">
965 965
                 {
966
-                  consultants.slice(0, 3).map((item,index) => (
967
-                    <View className="item" key={index+'detailId'} >
966
+                  consultants.slice(0, 3).map((item, index) => (
967
+                    <View className="item" key={index + 'detailId'} >
968 968
                       <View className="flex">
969 969
                         <Image className="avatar" mode="aspectFill" onClick={this.handleConsuItemClick.bind(this, item)} src={transferImage(item.photo || item.avatar)}></Image>
970 970
                         <View className='name-txt' onClick={this.handleConsuItemClick.bind(this, item)}>
@@ -1078,7 +1078,7 @@ export default class Index extends Component {
1078 1078
 
1079 1079
     // 挂载全景图设置
1080 1080
     list.forEach(apartment => {
1081
-      const panoramaArr = (panoramaList || []).filter(x => x.buildingId === apartment.buildingId && x.apartmentId === apartment.apartmentId )
1081
+      const panoramaArr = (panoramaList || []).filter(x => x.buildingId === apartment.buildingId && x.apartmentId === apartment.apartmentId)
1082 1082
       if (panoramaArr.length) {
1083 1083
         apartment.panoramaArr = panoramaArr
1084 1084
       }
@@ -1308,7 +1308,7 @@ export default class Index extends Component {
1308 1308
     this.setState({ btnstate, current: 1 })
1309 1309
   }
1310 1310
 
1311
-  goToPanorama(panorama) {    
1311
+  goToPanorama(panorama) {
1312 1312
     const url = (panorama || {}).panoramaLink
1313 1313
 
1314 1314
     if (!url) return;
@@ -1392,11 +1392,11 @@ export default class Index extends Component {
1392 1392
             <View className='detail'>
1393 1393
               <Notice></Notice>
1394 1394
 
1395
-              { !btnstate && this.renderBannerImages() }
1396
-              
1397
-              { btnstate === 1 && this.renderVideo() }
1398
-              
1399
-              { btnstate === 2 && this.renderBannerPanorama() }
1395
+              {!btnstate && this.renderBannerImages()}
1396
+
1397
+              {btnstate === 1 && this.renderVideo()}
1398
+
1399
+              {btnstate === 2 && this.renderBannerPanorama()}
1400 1400
 
1401 1401
               {
1402 1402
                 projectDetail.buildingImg && projectDetail.buildingImg.length &&

+ 2
- 2
src/pages/project/item/index.js Voir le fichier

@@ -32,7 +32,7 @@ export default class Index extends Component {
32 32
             <View className='item__right__title'>{data.name}</View>
33 33
             <View className='item__right__price row'>
34 34
               {
35
-                data.price ? <Text className='price__txt'>均价{data.price}元/m²</Text> : <Text className='price__txt'>待定</Text>
35
+                data.price ? <Text className='price__txt'>均价{data.price}{data.priceType == 'total' ? '万元/套' : '元/m²'}</Text> : <Text className='price__txt'>待定</Text>
36 36
               }
37 37
             </View>
38 38
           </View>
@@ -55,7 +55,7 @@ export default class Index extends Component {
55 55
             <View className='item__bottom__right'>
56 56
               <Text className='item__bottom__seenum'>{data.pvNum || 0}人围观</Text>
57 57
               <View className='see__img'>
58
-                {records.slice(0, 4).map((item,index) => <Image className='userImg' key={index+'uvId'} src={transferImage(item.photoOravatar)}></Image>)}
58
+                {records.slice(0, 4).map((item, index) => <Image className='userImg' key={index + 'uvId'} src={transferImage(item.photoOravatar)}></Image>)}
59 59
                 {records.length > 4 && <Image className="dot-img" src={transferImage(dotImg)}></Image>}
60 60
               </View>
61 61
             </View>