修复bug
This commit is contained in:
@@ -80,6 +80,8 @@ const latitude = ref('');
|
||||
// 接收活动ID
|
||||
onLoad((option) => {
|
||||
activityId.value = option?.id || '';
|
||||
// 进入页面自动定位,获取不到时可通过“重新定位”重试
|
||||
reLocate();
|
||||
});
|
||||
|
||||
// 监听输入框字数变化
|
||||
|
||||
@@ -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: () => {}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
uni.showToast({
|
||||
title: '选择成功',
|
||||
icon: 'success'
|
||||
})
|
||||
|
||||
setTimeout(() => {
|
||||
uni.showToast({
|
||||
title: '绑定成功',
|
||||
icon: 'success'
|
||||
})
|
||||
}, 500)
|
||||
setTimeout(() => {
|
||||
uni.showToast({
|
||||
title: '绑定成功',
|
||||
icon: 'success'
|
||||
})
|
||||
uni.setStorageSync('bindCarId', selectedId.value)
|
||||
uni.setStorageSync('bindCarName', selectedName.value)
|
||||
goBack()
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user