feat(house): 优化房源区域选择及删除功能

- 保存按钮布局调整优化,提升用户体验
- 房源详情地区显示只展示市级,简化展示信息
- 地区选择器调整,只显示市,确保区域数据统一
- 删除房源操作添加确认弹窗,避免误删
- 省市区数据加载逻辑简化,使用固定城区列表替代异步接口请求
- 替换首页及闪屏logo图片,更新为新资源路径
- 隐藏房源详情页电话咨询按钮,暂不支持电话功能
- 代码格式和注释优化,提升代码可读性
This commit is contained in:
2026-05-01 10:55:34 +08:00
parent ee17e5fb9d
commit d66a8dfe8c
15 changed files with 114 additions and 65 deletions

View File

@@ -7,9 +7,9 @@
shape="square" bgColor="#ffffff" :animation="true" @search="onSearch"></u-search>
</view>
</view>
<view class="search-tools">
<view class="search-tools">
<view class="region">
<uni-data-select class="select-width" v-model="where.keywords" :localdata="houseArea" placeholder="区域"
<uni-data-select class="select-width" v-model="where.region" :localdata="region" placeholder="区域"
@change="onSearch"></uni-data-select>
</view>
<view class="region">
@@ -125,9 +125,10 @@
loadMore: true,
status: '加载更多',
page: 1,
where: {
status: 0
},
where: {
status: 0,
region: ''
},
dict: null,
cityList: [],
// 控制onShow事件是否刷新订单列表
@@ -245,23 +246,11 @@
}
})
uni.request({
url: 'https://file.wsdns.cn/json/city.js',
success(res) {
res.data.map(e => {
if (e.value == '450000') {
e.children.map(city => {
if (city.value == '450100') {
app.region = city.children.map(r => {
return {
value: r.label,
text: r.label
}
})
}
})
}
});
// 城区列表
app.region = ['青秀区', '良庆区', '江南区', '兴宁区', '邕宁区', '西乡塘区'].map(d => {
return {
value: d,
text: d
}
})
})