diff --git a/property-uniapp-project/manifest.json b/property-uniapp-project/manifest.json index 39b84ec..272ec2a 100644 --- a/property-uniapp-project/manifest.json +++ b/property-uniapp-project/manifest.json @@ -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", diff --git a/property-uniapp-project/pageSubPack/activity-list/live-add.vue b/property-uniapp-project/pageSubPack/activity-list/live-add.vue index 0609369..f038ac2 100644 --- a/property-uniapp-project/pageSubPack/activity-list/live-add.vue +++ b/property-uniapp-project/pageSubPack/activity-list/live-add.vue @@ -80,6 +80,8 @@ const latitude = ref(''); // 接收活动ID onLoad((option) => { activityId.value = option?.id || ''; + // 进入页面自动定位,获取不到时可通过“重新定位”重试 + reLocate(); }); // 监听输入框字数变化 diff --git a/property-uniapp-project/pageSubPack/my/addHouse.vue b/property-uniapp-project/pageSubPack/my/addHouse.vue index a0e37b7..e6a5a45 100644 --- a/property-uniapp-project/pageSubPack/my/addHouse.vue +++ b/property-uniapp-project/pageSubPack/my/addHouse.vue @@ -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: () => {} }); } } diff --git a/property-uniapp-project/pageSubPack/my/bindCar.vue b/property-uniapp-project/pageSubPack/my/bindCar.vue index 50a7af4..5731bf9 100644 --- a/property-uniapp-project/pageSubPack/my/bindCar.vue +++ b/property-uniapp-project/pageSubPack/my/bindCar.vue @@ -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() diff --git a/property-uniapp-project/pageSubPack/my/myHouseIndex.vue b/property-uniapp-project/pageSubPack/my/myHouseIndex.vue index 54d1a87..bfd7cfe 100644 --- a/property-uniapp-project/pageSubPack/my/myHouseIndex.vue +++ b/property-uniapp-project/pageSubPack/my/myHouseIndex.vue @@ -13,7 +13,7 @@ - 默认 + 默认 {{ item.villageName+"-"+item.buildingName+"-"+item.unitNo }} diff --git a/property-uniapp-project/pages/index/index.vue b/property-uniapp-project/pages/index/index.vue index 4099cd6..b525946 100644 --- a/property-uniapp-project/pages/index/index.vue +++ b/property-uniapp-project/pages/index/index.vue @@ -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' }) } }) }