diff --git a/components/ColorItem/index.vue b/components/ColorItem/index.vue
index d2ee87e..286a060 100644
--- a/components/ColorItem/index.vue
+++ b/components/ColorItem/index.vue
@@ -6,6 +6,20 @@
{{item.color}}
+ {{item.name.replace("室","")}}
+
+
+
+
+
+
+
+
+
+
+
+
@@ -13,6 +27,11 @@
export default {
name: "ColorItem",
props: {
+ showBuildingName: {
+ type: Boolean,
+ default: false,
+ },
+
showColorName: {
type: Boolean,
default: true,
@@ -42,7 +61,42 @@
border: 2rpx solid #fff;
display: flex;
align-items: center;
-
+ .color-building-name{
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 100%;
+ width: 100%;
+ font-size: 30rpx;
+ color: #fff;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .color-warn{
+ position: absolute;
+ bottom: 0;
+ right: 0;
+ display: flex;
+ align-items: center;
+ &>view{
+ height: 20rpx;
+ width: 20rpx;
+ border-radius: 50%;
+ border: 1px solid #fff;
+ }
+ }
+ .color-is-type{
+ position: absolute;
+ top: -20rpx;
+ left:0;
+ &>image{
+ height: 20rpx;
+ width: 20rpx;
+ margin-right: 6rpx;
+ }
+ }
.left-color,
.rigth-color {
flex: 1;
@@ -74,10 +128,5 @@
}
}
- .color-medium {
- position: relative;
- width: 120rpx;
- height: 40rpx;
- display: inline-block;
- }
+
\ No newline at end of file
diff --git a/pages/building/building.vue b/pages/building/building.vue
index 875adf0..561cbe8 100644
--- a/pages/building/building.vue
+++ b/pages/building/building.vue
@@ -1,31 +1,19 @@
-
-
-
-
-
- {{buildingInfo.floor - index}}
- {{buildingInfo.floor - index}}
- {{buildingInfo.floor - index}}
- {{buildingInfo.floor - index}}
- {{buildingInfo.floor - index}}
- {{buildingInfo.floor - index}}
- {{buildingInfo.floor - index}}
- {{buildingInfo.floor - index}}
- {{buildingInfo.floor - index}}
- {{buildingInfo.floor - index}}
- {{buildingInfo.floor - index}}
- {{buildingInfo.floor - index}}
- {{buildingInfo.floor - index}}
- {{buildingInfo.floor - index}}
- {{buildingInfo.floor - index}}
-
-
-
-
+
+
+
+
+ {{buildingInfo.floor - index}}
+
+
+
+
+
+
+
+
@@ -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 @@
}
\ No newline at end of file
diff --git a/pages/index.vue b/pages/index.vue
index 187a3e9..3ef2959 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -71,7 +71,7 @@
url: 'pages/building/building',
params: {
buildingId: item.id,
- deptname: item.deptname + item.name
+ deptname: item.name
}
})
},
diff --git a/static/images/isd.png b/static/images/isd.png
new file mode 100644
index 0000000..f83c1bf
Binary files /dev/null and b/static/images/isd.png differ
diff --git a/static/images/isj.png b/static/images/isj.png
new file mode 100644
index 0000000..ee34fe3
Binary files /dev/null and b/static/images/isj.png differ
diff --git a/static/images/isk.png b/static/images/isk.png
new file mode 100644
index 0000000..b8cd3e4
Binary files /dev/null and b/static/images/isk.png differ
diff --git a/static/images/isx.png b/static/images/isx.png
new file mode 100644
index 0000000..4f732b8
Binary files /dev/null and b/static/images/isx.png differ