修改bug

This commit is contained in:
zhouyanli
2026-08-29 17:43:48 +08:00
parent 0661687bc5
commit eaa61c52f6
3 changed files with 39 additions and 5 deletions

View File

@@ -470,6 +470,39 @@
}
// 清空房屋相关缓存与表单数据(新增房屋时避免回显上一次修改残留的数据)
const clearHouseData = () => {
['communityId', 'communityName', 'buildingId', 'buildingName', 'unitId', 'unitName',
'floorId', 'floorName', 'houseNumberId', 'houseNumberName', 'houseStatus', 'houseIsDefault',
'updateHouseId'
].forEach(key => uni.removeStorageSync(key))
formData.community = ''
formData.building = ''
formData.unit = ''
formData.floor = ''
formData.houseNumber = ''
formData.communityId = ''
formData.buildingId = ''
formData.unitId = ''
formData.floorId = ''
formData.houseNumberId = ''
formData.status = { id: 0, name: '自住' }
formData.isDefault = false
form.name = ''
form.gender = '男'
form.cardType = {}
form.cardNo = ''
form.relation = {}
form.phone = ''
form.code = ''
idCardFrontUpload.reset()
idCardBackUpload.reset()
currentStep.value = 0
}
onUnload(() => {
clearInterval(timer)
})
@@ -492,6 +525,8 @@
if (uni.getStorageSync('operationType') == 'add') {
houseId.value = undefined;
type.value = '添加';
// 新增房屋时清空上一次修改残留的数据,避免回显
clearHouseData()
}
}

View File

@@ -52,11 +52,10 @@
<view class="photo-container" v-if="repairInfo.images && repairInfo.images.length">
<image class="photo-item" v-for="(img, index) in repairInfo.images" :key="index" :src="img" mode="aspectFill" @click="previewImage(img)"></image>
</view>
<view class="photo-container" v-else>
<!-- <view class="photo-container" v-else>
<view class="photo-item">
<!-- <uni-icons type="plusempty" size="24" color="#ccc"></uni-icons> -->
</view>
</view>
</view> -->
</view>
<view class="info-item">
<view class="info-label">预约时间</view>