|
|
|
@ -1,31 +1,19 @@
|
|
|
|
|
<template>
|
|
|
|
|
<navigation-general :title="title">
|
|
|
|
|
<view class="building-list" :style="{height: `calc(100% - ${boxTop}rpx)`}">
|
|
|
|
|
<view class="building-list" >
|
|
|
|
|
|
|
|
|
|
<view class="house">
|
|
|
|
|
<view class="house-list">
|
|
|
|
|
<view class="house-rows" v-for="(item,index) in groupedRooms" :key="index">
|
|
|
|
|
<view class="floor-item">{{buildingInfo.floor - index}}</view>
|
|
|
|
|
<view class="floor-item">{{buildingInfo.floor - index}}</view>
|
|
|
|
|
<view class="floor-item">{{buildingInfo.floor - index}}</view>
|
|
|
|
|
<view class="floor-item">{{buildingInfo.floor - index}}</view>
|
|
|
|
|
<view class="floor-item">{{buildingInfo.floor - index}}</view>
|
|
|
|
|
<view class="floor-item">{{buildingInfo.floor - index}}</view>
|
|
|
|
|
<view class="floor-item">{{buildingInfo.floor - index}}</view>
|
|
|
|
|
<view class="floor-item">{{buildingInfo.floor - index}}</view>
|
|
|
|
|
<view class="floor-item">{{buildingInfo.floor - index}}</view>
|
|
|
|
|
<view class="floor-item">{{buildingInfo.floor - index}}</view>
|
|
|
|
|
<view class="floor-item">{{buildingInfo.floor - index}}</view>
|
|
|
|
|
<view class="floor-item">{{buildingInfo.floor - index}}</view>
|
|
|
|
|
<view class="floor-item">{{buildingInfo.floor - index}}</view>
|
|
|
|
|
<view class="floor-item">{{buildingInfo.floor - index}}</view>
|
|
|
|
|
<view class="floor-item">{{buildingInfo.floor - index}}</view>
|
|
|
|
|
<!-- <color-item :item="house" v-for="house in item" :key="house.id"
|
|
|
|
|
:showColorName="false"></color-item> -->
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="house-unit"></view>
|
|
|
|
|
|
|
|
|
|
<view class="house-c">
|
|
|
|
|
<view class="c-item" v-for="(item,index) in buildingInfo.floor" :key="index">{{buildingInfo.floor - index}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<scroll-view class="house-list" scroll-x="true" scroll-left="120">
|
|
|
|
|
<view class="list-scroll-x" :style="handlerWidth">
|
|
|
|
|
<view class="color-rows" v-for="(item,index) in groupedRooms" :key="index">
|
|
|
|
|
<color-item :showBuildingName="true" :showColorName="false" :item="house" v-for="house in item" :key="house.id"></color-item>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</scroll-view>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
</navigation-general>
|
|
|
|
|
</template>
|
|
|
|
@ -54,6 +42,12 @@
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
handlerWidth(){
|
|
|
|
|
|
|
|
|
|
return{
|
|
|
|
|
width: (this.buildingInfo.house+1) * 122 + 'rpx'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
groupedRooms() {
|
|
|
|
|
if (this.newHouseList.length == 0) return
|
|
|
|
|
|
|
|
|
@ -96,9 +90,10 @@
|
|
|
|
|
},
|
|
|
|
|
//获取所有的户
|
|
|
|
|
async getAllHouse() {
|
|
|
|
|
// uni.showLoading({
|
|
|
|
|
// title: '加载中'
|
|
|
|
|
// })
|
|
|
|
|
uni.showLoading({
|
|
|
|
|
title: '加载中',
|
|
|
|
|
mask:true,
|
|
|
|
|
})
|
|
|
|
|
let res = await getNumNew({
|
|
|
|
|
buildingId: this.queryParams.buildingId
|
|
|
|
|
})
|
|
|
|
@ -109,53 +104,50 @@
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
page {
|
|
|
|
|
height: 100%;
|
|
|
|
|
background: #113666;
|
|
|
|
|
}
|
|
|
|
|
page{
|
|
|
|
|
background: #113666;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.app-container {
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.building-list {
|
|
|
|
|
width: 1000px;
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
// 楼层数样式/
|
|
|
|
|
.house-c{
|
|
|
|
|
|
|
|
|
|
.house {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
border: 1px solid red;
|
|
|
|
|
|
|
|
|
|
.house-list {
|
|
|
|
|
height: 100%;
|
|
|
|
|
.c-item{
|
|
|
|
|
width: 120rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
line-height: 60rpx;
|
|
|
|
|
height: 60rpx;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #fff;
|
|
|
|
|
background-color: rgb(64, 158, 255);
|
|
|
|
|
border-bottom: 1px solid rgba(255,255,255,0.1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.house-rows {
|
|
|
|
|
height: 40rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
|
|
|
|
|
.floor-item {
|
|
|
|
|
//所有户
|
|
|
|
|
.house-list{
|
|
|
|
|
background: #113666;
|
|
|
|
|
height: 100%;
|
|
|
|
|
.list-scroll-x{
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 80rpx;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
line-height: 40rpx;
|
|
|
|
|
color: #fff;
|
|
|
|
|
text-align: center;
|
|
|
|
|
background-color: #409eff;
|
|
|
|
|
}
|
|
|
|
|
.color-rows{
|
|
|
|
|
width: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
height: 60rpx;
|
|
|
|
|
align-items: center;
|
|
|
|
|
.color-item{
|
|
|
|
|
width: 100rpx;
|
|
|
|
|
margin-left: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&>view {
|
|
|
|
|
margin-right: 10rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</style>
|