feat(ai-house): 展示近似房源匹配说明
This commit is contained in:
@@ -167,6 +167,7 @@
|
|||||||
<image class="house-image" :src="item.files[0].url" mode="aspectFill"></image>
|
<image class="house-image" :src="item.files[0].url" mode="aspectFill"></image>
|
||||||
<view class="house-info">
|
<view class="house-info">
|
||||||
<view class="house-title">{{ item.houseTitle }}</view>
|
<view class="house-title">{{ item.houseTitle }}</view>
|
||||||
|
<view v-if="item.matchReason" class="house-match-reason">{{ item.matchReason }}</view>
|
||||||
<view class="house-location">{{ item.address || item.region || item.city || '位置待补充' }}</view>
|
<view class="house-location">{{ item.address || item.region || item.city || '位置待补充' }}</view>
|
||||||
<view class="house-desc">{{ item.extent }}m²|{{ item.toward }}</view>
|
<view class="house-desc">{{ item.extent }}m²|{{ item.toward }}</view>
|
||||||
<view class="house-price">{{ item.monthlyRent }}元/月</view>
|
<view class="house-price">{{ item.monthlyRent }}元/月</view>
|
||||||
@@ -714,9 +715,12 @@
|
|||||||
houseId: item.houseId || `mock-house-${index}`,
|
houseId: item.houseId || `mock-house-${index}`,
|
||||||
files: this.normalizeHouseFiles(item)
|
files: this.normalizeHouseFiles(item)
|
||||||
}))
|
}))
|
||||||
|
const listTitle = data.matchType === 'approximate'
|
||||||
|
? '以下房源比较接近您的要求:'
|
||||||
|
: '为您推荐以下房源:'
|
||||||
this.messages.push(
|
this.messages.push(
|
||||||
this.createMessage('ai', 'list', {
|
this.createMessage('ai', 'list', {
|
||||||
content: '为您推荐以下房源:',
|
content: listTitle,
|
||||||
houses
|
houses
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
@@ -1077,6 +1081,17 @@
|
|||||||
color: #1f2937;
|
color: #1f2937;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.house-match-reason {
|
||||||
|
margin-top: 10rpx;
|
||||||
|
padding: 10rpx 14rpx;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
background: #eef6ff;
|
||||||
|
color: #2f5f9f;
|
||||||
|
font-size: 24rpx;
|
||||||
|
line-height: 1.45;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
|
||||||
.house-location {
|
.house-location {
|
||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
|
|||||||
Reference in New Issue
Block a user