|
@@ -46,6 +46,7 @@ export interface ASimplifiedHouseInfoVo {
|
|
|
createTime: string // 创建时间
|
|
createTime: string // 创建时间
|
|
|
updateTime: string // 更新时间
|
|
updateTime: string // 更新时间
|
|
|
area: string // 面积
|
|
area: string // 面积
|
|
|
|
|
+ isArrears: boolean // 是否欠费
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export interface BaseResponse {
|
|
export interface BaseResponse {
|
|
@@ -174,7 +175,7 @@ const getList = async () => {
|
|
|
const formatDisplayData = (item: ASimplifiedHouseInfoVo) => {
|
|
const formatDisplayData = (item: ASimplifiedHouseInfoVo) => {
|
|
|
return {
|
|
return {
|
|
|
id: item.id,
|
|
id: item.id,
|
|
|
- buildingNumber:item.building,//楼栋数
|
|
|
|
|
|
|
+ buildingNumber: item.building, //楼栋数
|
|
|
houseNameNumber: item.houseName,
|
|
houseNameNumber: item.houseName,
|
|
|
priceRange: item.rentRange ? `${item.rentRange}` : '面议',
|
|
priceRange: item.rentRange ? `${item.rentRange}` : '面议',
|
|
|
address: item.address,
|
|
address: item.address,
|
|
@@ -183,6 +184,7 @@ const formatDisplayData = (item: ASimplifiedHouseInfoVo) => {
|
|
|
floor: item.floor,
|
|
floor: item.floor,
|
|
|
facilities: '配套设施', // 接口没有这个字段,可以根据实际情况调整
|
|
facilities: '配套设施', // 接口没有这个字段,可以根据实际情况调整
|
|
|
building: item.building,
|
|
building: item.building,
|
|
|
|
|
+ isArrears: item.isArrears, // 是否欠费
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -447,13 +449,34 @@ onMounted(() => {
|
|
|
class="h-full shadow-xl hover:shadow-2xl transition-all duration-300 rounded-2xl border-0 overflow-hidden group cursor-pointer"
|
|
class="h-full shadow-xl hover:shadow-2xl transition-all duration-300 rounded-2xl border-0 overflow-hidden group cursor-pointer"
|
|
|
>
|
|
>
|
|
|
<div>
|
|
<div>
|
|
|
- <div class="flex justify-between items-start">
|
|
|
|
|
- <h3 class="text-xl font-bold text-gray-800">{{ item.buildingNumber }}栋{{ item.houseNameNumber }}</h3>
|
|
|
|
|
|
|
+ <!-- 状态标签移至下方 -->
|
|
|
|
|
+ <div class="flex items-center justify-between pt-2 gap-2">
|
|
|
|
|
+ <div class="flex items-center gap-2">
|
|
|
|
|
+ <el-tag
|
|
|
|
|
+ :type="item.status === '可租' ? 'success' : 'warning'"
|
|
|
|
|
+ size="large"
|
|
|
|
|
+ class="custom-large-tag"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ item.status }}
|
|
|
|
|
+ </el-tag>
|
|
|
|
|
+ <el-tag
|
|
|
|
|
+ v-if="item.isArrears"
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ size="large"
|
|
|
|
|
+ class="custom-large-tag"
|
|
|
|
|
+ >缴费提醒</el-tag
|
|
|
|
|
+ >
|
|
|
|
|
+ </div>
|
|
|
<div class="text-right">
|
|
<div class="text-right">
|
|
|
<div class="text-2xl font-bold text-blue-600">{{ item.priceRange }}</div>
|
|
<div class="text-2xl font-bold text-blue-600">{{ item.priceRange }}</div>
|
|
|
<div class="text-sm text-gray-500">元/月</div>
|
|
<div class="text-sm text-gray-500">元/月</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="flex justify-between items-start">
|
|
|
|
|
+ <h1 class="text-xl font-bold text-gray-800">
|
|
|
|
|
+ {{ item.buildingNumber }}栋{{ item.houseNameNumber }}
|
|
|
|
|
+ </h1>
|
|
|
|
|
+ </div>
|
|
|
<div class="space-y-3 mb-6">
|
|
<div class="space-y-3 mb-6">
|
|
|
<div class="flex items-center text-gray-600">
|
|
<div class="flex items-center text-gray-600">
|
|
|
<el-icon class="mr-2 text-blue-500"><MapPin /></el-icon>
|
|
<el-icon class="mr-2 text-blue-500"><MapPin /></el-icon>
|
|
@@ -471,16 +494,10 @@ onMounted(() => {
|
|
|
<el-icon class="mr-2 text-orange-500"><Settings /></el-icon>
|
|
<el-icon class="mr-2 text-orange-500"><Settings /></el-icon>
|
|
|
<span class="text-sm">配套:{{ item.facilities }}</span>
|
|
<span class="text-sm">配套:{{ item.facilities }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
- <!-- 状态标签移至下方 -->
|
|
|
|
|
- <div class="flex items-center pt-2">
|
|
|
|
|
- <el-tag :type="item.status === '可租' ? 'success' : 'warning'" size="default">
|
|
|
|
|
- {{ item.status }}
|
|
|
|
|
- </el-tag>
|
|
|
|
|
- </div>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
<div class="flex gap-2">
|
|
<div class="flex gap-2">
|
|
|
<el-button
|
|
<el-button
|
|
|
- type="primary"
|
|
|
|
|
|
|
+ :type="item.status === '可租' ? 'success' : 'warning'"
|
|
|
size="default"
|
|
size="default"
|
|
|
class="w-full"
|
|
class="w-full"
|
|
|
@click="viewDetails(item)"
|
|
@click="viewDetails(item)"
|
|
@@ -570,4 +587,10 @@ onMounted(() => {
|
|
|
.animate-spin {
|
|
.animate-spin {
|
|
|
animation: spin 1s linear infinite;
|
|
animation: spin 1s linear infinite;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+/* 增大标签字体大小 */
|
|
|
|
|
+.custom-large-tag {
|
|
|
|
|
+ font-size: 16px !important;
|
|
|
|
|
+ padding: 10px 16px !important;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|