|
@@ -41,7 +41,7 @@ const house = props => {
|
41
|
41
|
|
42
|
42
|
const onCopy = value => {
|
43
|
43
|
wx.setClipboardData({
|
44
|
|
- data: value.name + " " + value.phone,
|
|
44
|
+ data: value,
|
45
|
45
|
success(res) {}
|
46
|
46
|
});
|
47
|
47
|
};
|
|
@@ -58,15 +58,19 @@ const house = props => {
|
58
|
58
|
<ContainerLayout className="household-view-card">
|
59
|
59
|
{list[item].map(x => {
|
60
|
60
|
return (
|
61
|
|
- <view onClick={() => onCopy(x)}>
|
62
|
|
- <Text>
|
63
|
|
- {x.name}: {x.phone}
|
64
|
|
- </Text>
|
65
|
|
- <Image className="household-view-card-icon" src={copy}></Image>
|
66
|
|
- </view>
|
|
61
|
+ <View className="card-person">
|
|
62
|
+ <View style="flex: none" onClick={() => onCopy(x.name)}>
|
|
63
|
+ {x.name}
|
|
64
|
+ <Image className="household-view-card-icon" src={copy}></Image>
|
|
65
|
+ </View>
|
|
66
|
+ <View style="flex: none; margin-left: 16px" onClick={() => onCopy(x.phone)}>
|
|
67
|
+ {x.phone}
|
|
68
|
+ <Image className="household-view-card-icon" src={copy}></Image>
|
|
69
|
+ </View>
|
|
70
|
+ </View>
|
67
|
71
|
);
|
68
|
72
|
})}
|
69
|
|
- <view>{`入住时间:${getDate(list[item][0].createDate)}`}</view>
|
|
73
|
+ <View style="margin-top: 1em">{`入住时间:${getDate(list[item][0].createDate)}`}</View>
|
70
|
74
|
{list[item].length == 0 && "暂无入住人信息"}
|
71
|
75
|
</ContainerLayout>
|
72
|
76
|
</View>
|