完成小区相关的接口对接

This commit is contained in:
Zy
2026-04-07 18:02:18 +08:00
parent ee55b4dca7
commit b87a594d4e
32 changed files with 913 additions and 384 deletions

View File

@@ -3,8 +3,8 @@
<PageHeader>
<template #content>
<div class="houseAdressBox">
<span class="mr-50px">当前小区北境碧桂园小区</span>
<span>小区地址北境朝北市塔里克儿大道368号</span>
<span class="mr-50px">当前小区{{ currentVilageInfo && currentVilageInfo.villageName }}</span>
<span>小区地址{{ currentVilageInfo && currentVilageInfo.city }} {{ currentVilageInfo && currentVilageInfo.address }}</span>
</div>
<div class="houseTypeBox flex">
<div
@@ -31,47 +31,19 @@
import building from './components/building.vue';
import unit from './components/unit.vue';
import PageHeader from '@/components/Pageheader/index.vue';
const housetypelist = ['住宅', '办公', '商用', '公寓'];
import { useHouseStore } from '@/store/modules/house';
const houseStore = useHouseStore();
const { currentVilageInfo } = storeToRefs(houseStore);
console.log(currentVilageInfo);
const housetypelist = ['住宅', '办公', '商用', '公寓'];
const active = ref(0);
const changeHouseType = (index: number) => {
active.value = index;
};
let ojb = {
'code': 200,
'msg': '操作成功',
'data': [
{
'unitNo': '1',
'houses': '{"houseId":5,"houseNo":"1201室"}, {"houseId":6,"houseNo":"1202室"}',
'houseCount': 2,
'floorNo': '12',
'buildingId': 54564
},
{
'unitNo': '1',
'houses': '{"houseId":1,"houseNo":"1301室"}, {"houseId":2,"houseNo":"1302室"}',
'houseCount': 2,
'floorNo': '13',
'buildingId': 54564
},
{
'unitNo': '2',
'houses': '{"houseId":7,"houseNo":"1201室"}',
'houseCount': 1,
'floorNo': '12',
'buildingId': 54564
},
{
'unitNo': '2',
'houses': '{"houseId":3,"houseNo":"1301室"}, {"houseId":4,"houseNo":"1302室"}',
'houseCount': 2,
'floorNo': '13',
'buildingId': 54564
}
]
};
// 初始化数据
houseStore.initHouse(active.value);
</script>
<style lang="scss" scoped>