|
@@ -0,0 +1,46 @@
|
|
1
|
+import { View, Image, Text } from "@tarojs/components";
|
|
2
|
+import { transferImage } from '@/utils/tools'
|
|
3
|
+import dayjs from 'dayjs'
|
|
4
|
+
|
|
5
|
+import './index.scss'
|
|
6
|
+
|
|
7
|
+export default function RaiseHouse(props) {
|
|
8
|
+ const {
|
|
9
|
+ buildingName,
|
|
10
|
+ termname,
|
|
11
|
+ blockName,
|
|
12
|
+ unitName,
|
|
13
|
+ roomName,
|
|
14
|
+ price,
|
|
15
|
+ createDate,
|
|
16
|
+ buildingImgList = [],
|
|
17
|
+ } = props.summary || {}
|
|
18
|
+
|
|
19
|
+ const title = `${buildingName} ${termname||''} ${blockName} ${unitName} ${roomName}`
|
|
20
|
+ const thumb = (buildingImgList || []).length
|
|
21
|
+ const showDT = dayjs(createDate).format('YYYY/MM/DD')
|
|
22
|
+ const wanY = Number(price)
|
|
23
|
+
|
|
24
|
+ return (
|
|
25
|
+ <View className="raisehouse">
|
|
26
|
+ <View className="head">
|
|
27
|
+ {thumb ? <Image className="thumb" src={transferImage((buildingImgList)[0].url)} mode="aspectFit" /> :
|
|
28
|
+ <Text style="font-size:26rpx;color:#666">暂无户型图</Text>
|
|
29
|
+ }
|
|
30
|
+ </View>
|
|
31
|
+ <View className="body">
|
|
32
|
+ <View className="apartment">A户型</View>
|
|
33
|
+ <View className="price">现价234万</View>
|
|
34
|
+ <View className="title">XX嘉苑 1号楼 2单元 3楼 303号</View>
|
|
35
|
+ <View className="subtitle">
|
|
36
|
+ <Text>建筑面积约</Text>
|
|
37
|
+ <Text className="red">{wanY + 'm²' || '待定'}</Text>
|
|
38
|
+ </View>
|
|
39
|
+ <View className="subtitle">
|
|
40
|
+ <Text>使用面积约</Text>
|
|
41
|
+ <Text className="red">{wanY + 'm²' || '待定'}</Text>
|
|
42
|
+ </View>
|
|
43
|
+ </View>
|
|
44
|
+ </View>
|
|
45
|
+ )
|
|
46
|
+}
|