修复bug

This commit is contained in:
zhouyanli
2026-07-31 14:06:11 +08:00
parent 8c0a713512
commit 3b66b76e40
11 changed files with 265 additions and 136 deletions

View File

@@ -99,6 +99,14 @@
// 返回
const onItemClick = (item) => {
if (!requireLogin()) return
const cachedVillageId = uni.getStorageSync('currentVillageId')
// 设置不需要绑定小区
if (item.title !== '设置') {
if (!cachedVillageId || cachedVillageId === '0' || cachedVillageId === 0) {
uni.showToast({ title: '未绑定小区,没有权限', icon: 'none', duration: 2000 })
return
}
}
if (item.title == '我的房屋') {
uni.navigateTo({
url: '/pageSubPack/my/myHouseIndex',