修复bug

This commit is contained in:
zhouyanli
2026-08-15 16:43:34 +08:00
parent 53ea3996a0
commit 365391b490
6 changed files with 25 additions and 40 deletions

View File

@@ -2,8 +2,8 @@
"name" : "花开物业",
"appid" : "__UNI__29C3D60",
"description" : "智慧社区居民端面向小区业主使用,支持注册、验证码、账号密码多种登录方式,提供密码找回功能,账号使用安全便捷。支持多小区切换,首页设有轮播 banner、社区公告集成远程开门、生活缴费、在线报修、访客邀请、社区活动常用服务。全服务板块统一涵盖门禁开门、线上缴费、报修申报、访客预约、投诉反馈、问卷调研、活动报名、社区公示、一键联系物业功能。个人中心可管理房屋、住户、车位、车辆信息支持更换手机号、修改密码、消息通知设置、版本更新及账号退出一站式满足业主居家生活、社区服务、房产车辆管理需求实现社区生活数字化、便捷化。",
"versionName" : "1.1.3",
"versionCode" : 126,
"versionName" : "1.1.4",
"versionCode" : 127,
"transformPx" : false,
"uniCloud" : {
"provider" : "aliyun",

View File

@@ -80,6 +80,8 @@ const latitude = ref('');
// 接收活动ID
onLoad((option) => {
activityId.value = option?.id || '';
// 进入页面自动定位,获取不到时可通过“重新定位”重试
reLocate();
});
// 监听输入框字数变化

View File

@@ -387,7 +387,7 @@
})
const data = res
// console.log('列表返回数据',data);
console.log('列表返回数据',data);
if (data.code === 200) {
uni.setStorageSync('communityName', data.data.villageName)
uni.setStorageSync('buildingName', data.data.buildingName)
@@ -475,9 +475,10 @@
onUnload(() => {
clearInterval(timer)
})
onLoad((option) => {
loadCardTypes()
loadRelations()
onLoad(async (option) => {
// 先加载下拉选项数据,再获取详情回显,避免证件类型/与业主关系因选项未加载而无法匹配
await loadCardTypes()
await loadRelations()
console.log(uni.getStorageSync('updateHouseId'));
if (option.id) {
if (uni.getStorageSync('operationType') == 'update') {
@@ -739,7 +740,7 @@
ownerRelationship: form.relation.id,
phone: form.phone,
smsCode: form.code,
isDefault: uni.getStorageSync('houseIsDefault'),
isDefault: formData.isDefault,
cardImageFront: cardImageFrontUrl.url,
cardImageBack: cardImageBackUrl.url,
}
@@ -839,9 +840,6 @@
if (type === '小区') {
uni.navigateTo({
url: '/pageSubPack/my/selectResidentialCommunity?sourcePage=' + 'addHouse',
success: res => {},
fail: () => {},
complete: () => {}
});
} else if (type === '楼栋') {
if (!formData.community) {
@@ -854,9 +852,6 @@
uni.setStorageSync('checkType', '楼栋');
uni.navigateTo({
url: '/pageSubPack/my/selectBuilding',
success: res => {},
fail: () => {},
complete: () => {}
});
}
@@ -871,9 +866,7 @@
uni.setStorageSync('checkType', '单元');
uni.navigateTo({
url: '/pageSubPack/my/selectBuilding',
success: res => {},
fail: () => {},
complete: () => {}
});
}
} else if (type === '楼层') {
@@ -887,9 +880,7 @@
uni.setStorageSync('checkType', '楼层');
uni.navigateTo({
url: '/pageSubPack/my/selectBuilding',
success: res => {},
fail: () => {},
complete: () => {}
});
}
} else if (type === '户号') {
@@ -904,9 +895,6 @@
uni.setStorageSync('checkType', '户号');
uni.navigateTo({
url: '/pageSubPack/my/selectBuilding',
success: res => {},
fail: () => {},
complete: () => {}
});
}
}

View File

@@ -90,7 +90,7 @@
}
} catch (err) {
uni.showToast({
title: '加载失败',
title: err.msg ||'加载失败',
icon: 'none'
})
console.error('列表接口报错:', err)
@@ -134,31 +134,22 @@
const confirmBind = () => {
if (selectedIndex.value === -1) {
return uni.showToast({
title: "请先选择绑定车辆",
title: "请先选择车辆",
icon: "none"
})
}
uni.showModal({
title: "确认选择",
content: `确定绑定该车辆吗?`,
content: `确定选择该车辆吗?`,
success: (res) => {
if (res.confirm) {
uni.showLoading({
title: '绑定中...',
mask: true
})
setTimeout(() => {
uni.showToast({
title: '绑定成功',
title: '选择成功',
icon: 'success'
})
}, 500)
setTimeout(() => {
uni.showToast({
title: '绑定成功',
icon: 'success'
})
uni.setStorageSync('bindCarId', selectedId.value)
uni.setStorageSync('bindCarName', selectedName.value)
goBack()

View File

@@ -13,7 +13,7 @@
<!-- 标题 + 状态 -->
<view class="card-header">
<view class="title-box">
<text class="tag-default" v-if="item.isDefault==1">默认</text>
<text class="tag-default" v-if="item.isDefault === true">默认</text>
<text
class="house-name">{{ item.villageName+"-"+item.buildingName+"-"+item.unitNo }}</text>
</view>

View File

@@ -295,10 +295,14 @@
saveHomeCache()
}
}).catch(err => {
currentCommunity.value = '请绑定房屋'
currentVillageId.value = ''
uni.removeStorageSync('currentVillageId')
saveHomeCache()
// 有 token 才提示错误(无 token 用户正常浏览首页API 401 属于预期行为)
const token = uni.getStorageSync('token')
if (token) {
uni.showToast({ title: err.msg || '网络异常', icon: 'error' })
uni.showToast({ title: err.msg || '网络异常', icon: 'none' })
}
})
}