diff --git a/src/api/taicangpop/data.js b/src/api/taicangpop/data.js index 612e991..afd8ac4 100644 --- a/src/api/taicangpop/data.js +++ b/src/api/taicangpop/data.js @@ -10,7 +10,7 @@ export function updateHolder(data) { export function getNum(data) { return request({ - url: `/taicangpop/data/getnum?buildingid=${data.buildingid}`, + url: `/taicangpop/data/getnum?buildingid=${data.buildingId}`, method: "get", }); } diff --git a/src/assets/images/ui/img_home@2x.png b/src/assets/images/ui/img_home@2x.png new file mode 100644 index 0000000..c29cc14 Binary files /dev/null and b/src/assets/images/ui/img_home@2x.png differ diff --git a/src/assets/images/ui/img_number_bg@2x.png b/src/assets/images/ui/img_number_bg@2x.png new file mode 100644 index 0000000..10da53e Binary files /dev/null and b/src/assets/images/ui/img_number_bg@2x.png differ diff --git a/src/views/components/xiaoqu/ColorCell/index.vue b/src/views/components/xiaoqu/ColorCell/index.vue new file mode 100644 index 0000000..4c533b4 --- /dev/null +++ b/src/views/components/xiaoqu/ColorCell/index.vue @@ -0,0 +1,152 @@ + + + + + diff --git a/src/views/components/xiaoqu/building.vue b/src/views/components/xiaoqu/building.vue index 64dc1c1..5be61c3 100644 --- a/src/views/components/xiaoqu/building.vue +++ b/src/views/components/xiaoqu/building.vue @@ -1,22 +1,116 @@ @@ -28,7 +122,88 @@ export default { top: 80px; right: 0; height: calc(100% - 80px); - width: 500px; - background: red; + display: flex; + overflow-y: auto; + background: rgba(3, 22, 48, 1); + .building-floor { + display: flex; + flex-direction: column; + align-items: center; + padding-top: 85px; + background: linear-gradient( + rgba(149, 18, 58, 0.1), + #95123a, + rgba(149, 18, 58, 0.1) + ); + padding-top: 85px; + .floor-number { + height: 23px; + width: 50px; + text-align: center; + line-height: 23px; + margin-bottom: 6px; + font-size: 14px; + color: #fff; + font-family: "DIN-Regular-2.otf"; + } + } + .building-house-container { + padding-top: 85px; + position: relative; + + height: 100%; + background: url("~@/assets/images/ui/img_home@2x.png"); + background-repeat: no-repeat; + background-size: auto 100%; + .building-name { + position: absolute; + left: 130px; + top: 25px; + min-width: 135px; + height: 32px; + text-align: center; + line-height: 32px; + font-size: 18px; + color: #f0fffc; + font-family: "BY"; + background: url("~@/assets/images/ui/img_number_bg@2x.png"); + background-size: 100% 100%; + padding: 0 10px; + } + .house { + display: flex; + align-items: center; + box-sizing: border-box; + margin-bottom: 6px; + + .floor-item { + cursor: pointer; + margin-right: 6px; + height: 23px; + width: 50px; + text-align: center; + line-height: 23px; + color: #fff; + font-size: 14px; + } + & > .floor-item:first-child { + margin-left: 8px; + } + } + } + .building-house-container .house:last-child { + margin-bottom: 0; + } +} + +/* 下面我们会解释这些 class 是做什么的 */ +.v-enter-active, +.v-leave-active { + transition: opacity 0.5s ease; +} + +.v-enter-from, +.v-leave-to { + opacity: 0; }