修复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

@@ -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: () => {}
});
}
}