feat: 优化首页服务入口与租住业务流程

补齐首页待办跳转、押金支付引导和多类租住服务页面能力,统一租客端关键业务流程体验。
This commit is contained in:
liangjian
2026-08-25 13:53:12 +08:00
parent 1111ac148b
commit 9fee2c3a74
41 changed files with 6985 additions and 933 deletions

View File

@@ -33,7 +33,7 @@
</view>
</view>
<text class="asset-name tn-text-ellipsis">{{ item.assetName }}</text>
<text class="asset-name tn-text-ellipsis">{{ getAssetDisplayName(item) }}</text>
<text v-if="item.brand" class="asset-brand tn-text-ellipsis">{{ item.brand }}</text>
<text v-else class="asset-brand-placeholder"></text>
</view>
@@ -53,7 +53,14 @@ export default {
default: 'zh'
}
},
methods: {}
methods: {
getAssetDisplayName(item = {}) {
if (this.language === 'en') {
return item.assetNameEn || item.assetName || ''
}
return item.assetName || item.assetNameEn || ''
}
}
}
</script>

View File

@@ -446,6 +446,7 @@ function normalizeRoomAssets(list = []) {
return null
}
const assetName = normalizeText(item.assetName || item.name || item.label)
const assetNameEn = normalizeText(item.assetNameEn || item.nameEn || item.labelEn)
if (!assetName) {
return null
}
@@ -456,6 +457,7 @@ function normalizeRoomAssets(list = []) {
key: `${item.roomTypeCode || 'asset'}-${item.assetName || item.name || index}`,
roomTypeCode: item.roomTypeCode || '',
assetName,
assetNameEn,
brand: normalizeText(item.brand),
icon: iconClass ? '' : addFilePrefix(rawIcon),
iconClass,