|
@@ -1,4 +1,4 @@
|
1
|
|
-import { View, Image, Text } from "@tarojs/components";
|
|
1
|
+import { View, Image, Text, Block } from "@tarojs/components";
|
2
|
2
|
import { transferImage } from '@/utils/tools'
|
3
|
3
|
import dayjs from 'dayjs'
|
4
|
4
|
import copyImg from '../../assets/copy.png'
|
|
@@ -21,7 +21,7 @@ export default function RaiseCard(props) {
|
21
|
21
|
buildingArea,
|
22
|
22
|
insideArea,
|
23
|
23
|
payStatus,
|
24
|
|
- code,
|
|
24
|
+ houseId,
|
25
|
25
|
buildingImgList = [],
|
26
|
26
|
} = props.summary || {}
|
27
|
27
|
|
|
@@ -34,7 +34,7 @@ export default function RaiseCard(props) {
|
34
|
34
|
const copyData = (e) => {
|
35
|
35
|
e.stopPropagation()
|
36
|
36
|
Taro.setClipboardData({
|
37
|
|
- data: code,
|
|
37
|
+ data: houseId,
|
38
|
38
|
onSuccess: (() => { }),
|
39
|
39
|
})
|
40
|
40
|
}
|
|
@@ -55,17 +55,29 @@ export default function RaiseCard(props) {
|
55
|
55
|
{props.type == 'raiseMoney' && <Image src={closeImg} onClick={handleCancel} className="close-img"></Image>}
|
56
|
56
|
<View onClick={props.handleCard}>
|
57
|
57
|
{!props.type && <View className={payStatus == 'paid' ? 'raised badge' : payStatus == 'unpaid' ? 'unraise badge' : 'badge'}>{payStatus == 'paid' ? '已缴费' : payStatus == 'unpaid' ? '未缴费' : '已退费'}</View>}
|
58
|
|
- {(props.type == 'raiseProfile' || props.type == 'houseResource') && houseLockingStatus == 'locked' && <View style="color:#FF3C3C" className='raised badge'>{mineLocked ? '已锁给我' : ''}</View>}
|
59
|
|
- {props.type == 'raiseProfile' || props.type == 'raiseMoney' && <View style={props.type == 'raiseMoney' ? 'color:#BB9C79;font-size:30rpx' : 'color:#BB9C79;font-size:30rpx;margin-top:-20rpx'}>{apartmentName || ' '}</View>}
|
|
58
|
+ {(props.type == 'raiseProfile' || props.type == 'houseResource') && <View style="color:#FF3C3C" className='badge'>{mineLocked ? '已锁给我' : ' '}</View>}
|
|
59
|
+ {(props.type == 'raiseProfile' || props.type == 'raiseMoney') && <View style={props.type == 'raiseMoney' ? 'color:#BB9C79;font-size:30rpx' : 'color:#BB9C79;font-size:30rpx;margin-top:-20rpx'}>{apartmentName || ' '}</View>}
|
60
|
60
|
{props.type == 'raiseMoney' && <View className="red-price">现价{Number(price) + 0}万</View>}
|
61
|
|
- {props.type == 'houseResource' && <View style="color:#BB9C79;font-size:28rpx;margin:-40rpx 0 26rpx 0">{houseLockingStatus == 'locked' ? '已锁定' : '未锁定'}</View>}
|
|
61
|
+ {props.type == 'houseResource' && <View style="color:#BB9C79;font-size:28rpx;margin:-40rpx 0 12rpx 0">{houseLockingStatus == 'locked' ? '已锁定' : '未锁定'}</View>}
|
62
|
62
|
<View className="title">{title}</View>
|
63
|
63
|
{!props.type && <View className="meta">{showDT}</View>}
|
64
|
64
|
{props.type == 'raiseProfile' && <View className="price">现价<Text className="red">{Number(price) + 0}</Text>万</View>}
|
65
|
|
- {props.type == 'raiseProfile' || props.type == 'raiseMoney' && buildingArea && <View className="area">建筑面积约<Text className="red">{buildingArea}m²</Text></View>}
|
66
|
|
- {props.type == 'raiseProfile' || props.type == 'raiseMoney' && insideArea && <View className="area">使用面积约<Text className="red">{insideArea}m²</Text></View>}
|
|
65
|
+ {(props.type == 'raiseProfile' || props.type == 'raiseMoney') &&
|
|
66
|
+ <Block>
|
|
67
|
+ {buildingArea ? <View className="area">建筑面积约 <Text className="red">{buildingArea}m²</Text>
|
|
68
|
+ </View> : <View className="area">建筑面积待定
|
|
69
|
+ </View>}
|
|
70
|
+ </Block>
|
|
71
|
+ }
|
|
72
|
+ {(props.type == 'raiseProfile' || props.type == 'raiseMoney') &&
|
|
73
|
+ <Block>
|
|
74
|
+ {insideArea ? <View className="area">使用面积约 <Text className="red">{insideArea}m²</Text>
|
|
75
|
+ </View> : <View className="area">使用面积待定
|
|
76
|
+ </View>}
|
|
77
|
+ </Block>
|
|
78
|
+ }
|
67
|
79
|
</View>
|
68
|
|
- {props.type == 'houseResource' && <View className="house-code" style="margin-top:26rpx">房源编号:{code}
|
|
80
|
+ {props.type == 'houseResource' && <View className="house-code" style="margin-top:14rpx">房源编号:{houseId}
|
69
|
81
|
<Image src={copyImg} className="copy-img" onClick={copyData}></Image>
|
70
|
82
|
</View>}
|
71
|
83
|
</View>
|