|
@@ -743,6 +743,22 @@ export default class Index extends Component {
|
743
|
743
|
console.log(this.props.userInfo, "this.props")
|
744
|
744
|
return true
|
745
|
745
|
}
|
|
746
|
+ getPrice(start, end) {
|
|
747
|
+
|
|
748
|
+ if (start) {
|
|
749
|
+ if (end) {
|
|
750
|
+ if (start == end) {
|
|
751
|
+ return start
|
|
752
|
+ } else {
|
|
753
|
+ return start + '--' + end
|
|
754
|
+ }
|
|
755
|
+ } else {
|
|
756
|
+ return start
|
|
757
|
+ }
|
|
758
|
+ } else {
|
|
759
|
+ return end
|
|
760
|
+ }
|
|
761
|
+ }
|
746
|
762
|
|
747
|
763
|
|
748
|
764
|
renderBottomMenu() {
|
|
@@ -803,8 +819,8 @@ export default class Index extends Component {
|
803
|
819
|
buildingProjectType.map((item, index) => (
|
804
|
820
|
<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
|
821
|
<View >
|
806
|
|
- {marketStatus &&
|
807
|
|
- <Text className='item__status' className={marketStatus == '在售' ? 'item__status sale' : marketStatus == '售罄' ? 'item__status soldout' : 'item__status waitsale'}>{marketStatus}</Text>
|
|
822
|
+ {item.marketStatus &&
|
|
823
|
+ <Text className='item__status' className={item.marketStatus == '在售' ? 'item__status sale' : item.marketStatus == '售罄' ? 'item__status soldout' : 'item__status waitsale'}>{item.marketStatus}</Text>
|
808
|
824
|
}
|
809
|
825
|
{/* <Text className='type-status'>{statusOpts[status]}</Text> */}
|
810
|
826
|
{/* <Icon className="iconfont icon-jinrongxianxingge-" onClick={this.handleToolsClick}></Icon> */}
|
|
@@ -815,7 +831,7 @@ export default class Index extends Component {
|
815
|
831
|
<View className='row'>
|
816
|
832
|
<Text className='row-label'>参考价格:</Text>
|
817
|
833
|
{
|
818
|
|
- item.startPrice ? <Text className='row-txt'>约{item.startPrice == item.endPrice ? <Text>{item.startPrice}</Text> : <Text>{item.startPrice}--{item.endPrice}</Text>}{item.priceType == 'total' ? '万元/套' : '元/m²'}</Text> : <Text className='row-txt'>待定</Text>
|
|
834
|
+ (item.startPrice || item.endPrice) ? <Text className='row-txt'>约{this.getPrice(item.startPrice, item.endPrice)}{item.priceType == 'total' ? '万元/套' : '元/m²'}</Text> : <Text className='row-txt'>待定</Text>
|
819
|
835
|
}
|
820
|
836
|
</View>
|
821
|
837
|
<View className='row'>
|