修改bug,优化导航
This commit is contained in:
@@ -300,19 +300,7 @@
|
||||
name: '其他'
|
||||
}
|
||||
])
|
||||
const cardTypes = ref([{
|
||||
id: 0,
|
||||
name: '居民身份证'
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
name: '护照'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: '其他'
|
||||
}
|
||||
])
|
||||
const cardTypes = ref([])
|
||||
|
||||
|
||||
|
||||
@@ -487,6 +475,7 @@
|
||||
clearInterval(timer)
|
||||
})
|
||||
onLoad((option) => {
|
||||
loadCardTypes()
|
||||
loadRelations()
|
||||
console.log(uni.getStorageSync('updateHouseId'));
|
||||
if (option.id) {
|
||||
@@ -535,6 +524,21 @@
|
||||
upDataListNum.value++
|
||||
}
|
||||
|
||||
// 获取证件类型下拉数据
|
||||
const loadCardTypes = async () => {
|
||||
try {
|
||||
const res = await getHouseDataList({dictType:"com_id_card_type",dictName:"证件类型"})
|
||||
if (res.code === 200) {
|
||||
cardTypes.value = (res.rows || []).map(item => ({
|
||||
id: item.dictValue,
|
||||
name: item.dictLabel
|
||||
}))
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('加载证件类型失败:', err)
|
||||
}
|
||||
}
|
||||
|
||||
// 获取与业主关系下拉数据
|
||||
const loadRelations = async () => {
|
||||
try {
|
||||
@@ -776,7 +780,7 @@
|
||||
console.log(type);
|
||||
console.log(uni.getStorageSync('checkType'));
|
||||
if (type === '小区') {
|
||||
uni.redirectTo({
|
||||
uni.navigateTo({
|
||||
url: '/pageSubPack/my/selectResidentialCommunity?sourcePage=' + 'addHouse',
|
||||
success: res => {},
|
||||
fail: () => {},
|
||||
@@ -791,7 +795,7 @@
|
||||
|
||||
} else {
|
||||
uni.setStorageSync('checkType', '楼栋');
|
||||
uni.redirectTo({
|
||||
uni.navigateTo({
|
||||
url: '/pageSubPack/my/selectBuilding',
|
||||
success: res => {},
|
||||
fail: () => {},
|
||||
@@ -808,7 +812,7 @@
|
||||
|
||||
} else {
|
||||
uni.setStorageSync('checkType', '单元');
|
||||
uni.redirectTo({
|
||||
uni.navigateTo({
|
||||
url: '/pageSubPack/my/selectBuilding',
|
||||
success: res => {},
|
||||
fail: () => {},
|
||||
@@ -824,7 +828,7 @@
|
||||
|
||||
} else {
|
||||
uni.setStorageSync('checkType', '楼层');
|
||||
uni.redirectTo({
|
||||
uni.navigateTo({
|
||||
url: '/pageSubPack/my/selectBuilding',
|
||||
success: res => {},
|
||||
fail: () => {},
|
||||
@@ -841,7 +845,7 @@
|
||||
|
||||
} else {
|
||||
uni.setStorageSync('checkType', '户号');
|
||||
uni.redirectTo({
|
||||
uni.navigateTo({
|
||||
url: '/pageSubPack/my/selectBuilding',
|
||||
success: res => {},
|
||||
fail: () => {},
|
||||
@@ -878,7 +882,7 @@
|
||||
uni.removeStorageSync('houseStatus')
|
||||
uni.removeStorageSync('houseIsDefault')
|
||||
uni.removeStorageSync('updateHouseId')
|
||||
uni.redirectTo({
|
||||
uni.navigateTo({
|
||||
url: '/pageSubPack/my/myHouseIndex',
|
||||
success: res => {},
|
||||
fail: () => {},
|
||||
|
||||
Reference in New Issue
Block a user