feat(house): 优化房源区域选择及删除功能
- 保存按钮布局调整优化,提升用户体验 - 房源详情地区显示只展示市级,简化展示信息 - 地区选择器调整,只显示市,确保区域数据统一 - 删除房源操作添加确认弹窗,避免误删 - 省市区数据加载逻辑简化,使用固定城区列表替代异步接口请求 - 替换首页及闪屏logo图片,更新为新资源路径 - 隐藏房源详情页电话咨询按钮,暂不支持电话功能 - 代码格式和注释优化,提升代码可读性
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<view class="page-wrap">
|
||||
<view class="main">
|
||||
<view class="logo">
|
||||
<image src="@/static/logo-chang.png" mode="widthFix"></image>
|
||||
<image src="@/static/logo-chang.jpg" mode="widthFix"></image>
|
||||
<!-- <image src="https://oss.jimeigroup.cn/static/flash-logo-text.png" mode="widthFix"></image> -->
|
||||
<!-- <text class="logo-name">
|
||||
爱尚家找房
|
||||
|
||||
@@ -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
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<u-navbar placeholder fixed>
|
||||
<template slot="left">
|
||||
<view style="display: flex;align-items: center;height: 44px;">
|
||||
<image style="height: 30px;" src="@/static/logo-chang.png" mode="heightFix"></image>
|
||||
<image style="height: 30px;" src="@/static/logo-chang.jpg" mode="heightFix"></image>
|
||||
</view>
|
||||
</template>
|
||||
</u-navbar>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<text>账号登录</text>
|
||||
</view> -->
|
||||
<view class="logo">
|
||||
<image src="https://wx.qlogo.cn/mmhead/Q3auHgzwzM6r6ngnJicOXYQpXicJiazznz68m2kXIbY1SibhPtzX4dc6BQ/0" mode="widthFix"></image>
|
||||
<image src="/static/logo.jpg" mode="widthFix"></image>
|
||||
</view>
|
||||
<!-- <view class="sub-title">
|
||||
<text>未注册的手机号登录后将自动注册</text>
|
||||
|
||||
Reference in New Issue
Block a user