修复bug
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
"name" : "花开物业",
|
"name" : "花开物业",
|
||||||
"appid" : "__UNI__29C3D60",
|
"appid" : "__UNI__29C3D60",
|
||||||
"description" : "智慧社区居民端面向小区业主使用,支持注册、验证码、账号密码多种登录方式,提供密码找回功能,账号使用安全便捷。支持多小区切换,首页设有轮播 banner、社区公告,集成远程开门、生活缴费、在线报修、访客邀请、社区活动常用服务。全服务板块统一涵盖门禁开门、线上缴费、报修申报、访客预约、投诉反馈、问卷调研、活动报名、社区公示、一键联系物业功能。个人中心可管理房屋、住户、车位、车辆信息,支持更换手机号、修改密码、消息通知设置、版本更新及账号退出,一站式满足业主居家生活、社区服务、房产车辆管理需求,实现社区生活数字化、便捷化。",
|
"description" : "智慧社区居民端面向小区业主使用,支持注册、验证码、账号密码多种登录方式,提供密码找回功能,账号使用安全便捷。支持多小区切换,首页设有轮播 banner、社区公告,集成远程开门、生活缴费、在线报修、访客邀请、社区活动常用服务。全服务板块统一涵盖门禁开门、线上缴费、报修申报、访客预约、投诉反馈、问卷调研、活动报名、社区公示、一键联系物业功能。个人中心可管理房屋、住户、车位、车辆信息,支持更换手机号、修改密码、消息通知设置、版本更新及账号退出,一站式满足业主居家生活、社区服务、房产车辆管理需求,实现社区生活数字化、便捷化。",
|
||||||
"versionName" : "1.1.3",
|
"versionName" : "1.1.4",
|
||||||
"versionCode" : 126,
|
"versionCode" : 127,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
"uniCloud" : {
|
"uniCloud" : {
|
||||||
"provider" : "aliyun",
|
"provider" : "aliyun",
|
||||||
|
|||||||
@@ -80,6 +80,8 @@ const latitude = ref('');
|
|||||||
// 接收活动ID
|
// 接收活动ID
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
activityId.value = option?.id || '';
|
activityId.value = option?.id || '';
|
||||||
|
// 进入页面自动定位,获取不到时可通过“重新定位”重试
|
||||||
|
reLocate();
|
||||||
});
|
});
|
||||||
|
|
||||||
// 监听输入框字数变化
|
// 监听输入框字数变化
|
||||||
|
|||||||
@@ -387,7 +387,7 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
const data = res
|
const data = res
|
||||||
// console.log('列表返回数据',data);
|
console.log('列表返回数据',data);
|
||||||
if (data.code === 200) {
|
if (data.code === 200) {
|
||||||
uni.setStorageSync('communityName', data.data.villageName)
|
uni.setStorageSync('communityName', data.data.villageName)
|
||||||
uni.setStorageSync('buildingName', data.data.buildingName)
|
uni.setStorageSync('buildingName', data.data.buildingName)
|
||||||
@@ -475,9 +475,10 @@
|
|||||||
onUnload(() => {
|
onUnload(() => {
|
||||||
clearInterval(timer)
|
clearInterval(timer)
|
||||||
})
|
})
|
||||||
onLoad((option) => {
|
onLoad(async (option) => {
|
||||||
loadCardTypes()
|
// 先加载下拉选项数据,再获取详情回显,避免证件类型/与业主关系因选项未加载而无法匹配
|
||||||
loadRelations()
|
await loadCardTypes()
|
||||||
|
await loadRelations()
|
||||||
console.log(uni.getStorageSync('updateHouseId'));
|
console.log(uni.getStorageSync('updateHouseId'));
|
||||||
if (option.id) {
|
if (option.id) {
|
||||||
if (uni.getStorageSync('operationType') == 'update') {
|
if (uni.getStorageSync('operationType') == 'update') {
|
||||||
@@ -739,7 +740,7 @@
|
|||||||
ownerRelationship: form.relation.id,
|
ownerRelationship: form.relation.id,
|
||||||
phone: form.phone,
|
phone: form.phone,
|
||||||
smsCode: form.code,
|
smsCode: form.code,
|
||||||
isDefault: uni.getStorageSync('houseIsDefault'),
|
isDefault: formData.isDefault,
|
||||||
cardImageFront: cardImageFrontUrl.url,
|
cardImageFront: cardImageFrontUrl.url,
|
||||||
cardImageBack: cardImageBackUrl.url,
|
cardImageBack: cardImageBackUrl.url,
|
||||||
}
|
}
|
||||||
@@ -839,9 +840,6 @@
|
|||||||
if (type === '小区') {
|
if (type === '小区') {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pageSubPack/my/selectResidentialCommunity?sourcePage=' + 'addHouse',
|
url: '/pageSubPack/my/selectResidentialCommunity?sourcePage=' + 'addHouse',
|
||||||
success: res => {},
|
|
||||||
fail: () => {},
|
|
||||||
complete: () => {}
|
|
||||||
});
|
});
|
||||||
} else if (type === '楼栋') {
|
} else if (type === '楼栋') {
|
||||||
if (!formData.community) {
|
if (!formData.community) {
|
||||||
@@ -854,9 +852,6 @@
|
|||||||
uni.setStorageSync('checkType', '楼栋');
|
uni.setStorageSync('checkType', '楼栋');
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pageSubPack/my/selectBuilding',
|
url: '/pageSubPack/my/selectBuilding',
|
||||||
success: res => {},
|
|
||||||
fail: () => {},
|
|
||||||
complete: () => {}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -871,9 +866,7 @@
|
|||||||
uni.setStorageSync('checkType', '单元');
|
uni.setStorageSync('checkType', '单元');
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pageSubPack/my/selectBuilding',
|
url: '/pageSubPack/my/selectBuilding',
|
||||||
success: res => {},
|
|
||||||
fail: () => {},
|
|
||||||
complete: () => {}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else if (type === '楼层') {
|
} else if (type === '楼层') {
|
||||||
@@ -887,9 +880,7 @@
|
|||||||
uni.setStorageSync('checkType', '楼层');
|
uni.setStorageSync('checkType', '楼层');
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pageSubPack/my/selectBuilding',
|
url: '/pageSubPack/my/selectBuilding',
|
||||||
success: res => {},
|
|
||||||
fail: () => {},
|
|
||||||
complete: () => {}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else if (type === '户号') {
|
} else if (type === '户号') {
|
||||||
@@ -904,9 +895,6 @@
|
|||||||
uni.setStorageSync('checkType', '户号');
|
uni.setStorageSync('checkType', '户号');
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pageSubPack/my/selectBuilding',
|
url: '/pageSubPack/my/selectBuilding',
|
||||||
success: res => {},
|
|
||||||
fail: () => {},
|
|
||||||
complete: () => {}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '加载失败',
|
title: err.msg ||'加载失败',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
console.error('列表接口报错:', err)
|
console.error('列表接口报错:', err)
|
||||||
@@ -134,31 +134,22 @@
|
|||||||
const confirmBind = () => {
|
const confirmBind = () => {
|
||||||
if (selectedIndex.value === -1) {
|
if (selectedIndex.value === -1) {
|
||||||
return uni.showToast({
|
return uni.showToast({
|
||||||
title: "请先选择绑定车辆",
|
title: "请先选择车辆",
|
||||||
icon: "none"
|
icon: "none"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "确认选择",
|
title: "确认选择",
|
||||||
content: `确定绑定该车辆吗?`,
|
content: `确定选择该车辆吗?`,
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
uni.showLoading({
|
uni.showToast({
|
||||||
title: '绑定中...',
|
title: '选择成功',
|
||||||
mask: true
|
icon: 'success'
|
||||||
})
|
})
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.showToast({
|
|
||||||
title: '绑定成功',
|
|
||||||
icon: 'success'
|
|
||||||
})
|
|
||||||
}, 500)
|
|
||||||
setTimeout(() => {
|
|
||||||
uni.showToast({
|
|
||||||
title: '绑定成功',
|
|
||||||
icon: 'success'
|
|
||||||
})
|
|
||||||
uni.setStorageSync('bindCarId', selectedId.value)
|
uni.setStorageSync('bindCarId', selectedId.value)
|
||||||
uni.setStorageSync('bindCarName', selectedName.value)
|
uni.setStorageSync('bindCarName', selectedName.value)
|
||||||
goBack()
|
goBack()
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<!-- 标题 + 状态 -->
|
<!-- 标题 + 状态 -->
|
||||||
<view class="card-header">
|
<view class="card-header">
|
||||||
<view class="title-box">
|
<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
|
<text
|
||||||
class="house-name">{{ item.villageName+"-"+item.buildingName+"-"+item.unitNo }}</text>
|
class="house-name">{{ item.villageName+"-"+item.buildingName+"-"+item.unitNo }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -295,10 +295,14 @@
|
|||||||
saveHomeCache()
|
saveHomeCache()
|
||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
currentCommunity.value = '请绑定房屋'
|
||||||
|
currentVillageId.value = ''
|
||||||
|
uni.removeStorageSync('currentVillageId')
|
||||||
|
saveHomeCache()
|
||||||
// 有 token 才提示错误(无 token 用户正常浏览首页,API 401 属于预期行为)
|
// 有 token 才提示错误(无 token 用户正常浏览首页,API 401 属于预期行为)
|
||||||
const token = uni.getStorageSync('token')
|
const token = uni.getStorageSync('token')
|
||||||
if (token) {
|
if (token) {
|
||||||
uni.showToast({ title: err.msg || '网络异常', icon: 'error' })
|
uni.showToast({ title: err.msg || '网络异常', icon: 'none' })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user