Commit bfcfca75f6775df91a064e0ecb4358eac44a4265
1 parent
0e3a2706
办事处
Showing
6 changed files
with
90 additions
and
2 deletions
src/assets/img/busy-type.png
0 → 100644
328 Bytes
src/assets/img/idle-type.png
0 → 100644
338 Bytes
src/assets/img/nomal-type.png
0 → 100644
337 Bytes
src/assets/img/office-icon.png
0 → 100644
369 Bytes
src/assets/img/officeactive-icon.png
0 → 100644
385 Bytes
src/views/mapsection.vue
| ... | ... | @@ -30,7 +30,15 @@ |
| 30 | 30 | </div> |
| 31 | 31 | </li> |
| 32 | 32 | </ul> |
| 33 | - <div class="flexfm" style="background: #f00"></div> | |
| 33 | + <ul class="type-wrap"> | |
| 34 | + <li>紧张</li> | |
| 35 | + <li>正常</li> | |
| 36 | + <li>空闲</li> | |
| 37 | + </ul> | |
| 38 | + <ul class="park-wrap"> | |
| 39 | + <li v-for="(item, index) in parkList" :key="index" :title="item.name" :class="{'current-active':index===currentIndex}" @click="currentPark(item, index)">{{ item.name }}</li> | |
| 40 | + </ul> | |
| 41 | + <div class="flexfm" ></div> | |
| 34 | 42 | </div> |
| 35 | 43 | </template> |
| 36 | 44 | |
| ... | ... | @@ -42,7 +50,32 @@ export default { |
| 42 | 50 | parkingtotal: '7338', |
| 43 | 51 | membertotal: '738', |
| 44 | 52 | incometotal: '1156738', |
| 45 | - ordertotal: '6738' | |
| 53 | + ordertotal: '6738', | |
| 54 | + parkList: [ | |
| 55 | + {name:'西局街道办事处12321312312312',id:'1'}, | |
| 56 | + {name:'西局街道办事处',id:'2'}, | |
| 57 | + {name:'西局街道办事处',id:'3'}, | |
| 58 | + {name:'西局街道办事处',id:'4'}, | |
| 59 | + {name:'西局街道办事处',id:'5'}, | |
| 60 | + {name:'西局街道办事处',id:'6'}, | |
| 61 | + {name:'西局街道办事处',id:'7'}, | |
| 62 | + {name:'西局街道办事处',id:'8'}, | |
| 63 | + {name:'西局街道办事处',id:'9'}, | |
| 64 | + {name:'西局街道办事处',id:'10'}, | |
| 65 | + {name:'西局街道办事处',id:'11'}, | |
| 66 | + {name:'西局街道办事处',id:'12'}, | |
| 67 | + | |
| 68 | + ], | |
| 69 | + currentIndex:0 | |
| 70 | + } | |
| 71 | + }, | |
| 72 | + created() { | |
| 73 | + | |
| 74 | + }, | |
| 75 | + methods: { | |
| 76 | + currentPark(item, index) { | |
| 77 | + console.log(item) | |
| 78 | + this.currentIndex = index | |
| 46 | 79 | } |
| 47 | 80 | } |
| 48 | 81 | } |
| ... | ... | @@ -53,6 +86,7 @@ export default { |
| 53 | 86 | display: flex; |
| 54 | 87 | padding-top: 17px; |
| 55 | 88 | padding-bottom: 18px; |
| 89 | + background:rgba(0,45,140,.6); | |
| 56 | 90 | li{ |
| 57 | 91 | flex: 1; |
| 58 | 92 | height: 45px; |
| ... | ... | @@ -90,4 +124,58 @@ export default { |
| 90 | 124 | } |
| 91 | 125 | } |
| 92 | 126 | } |
| 127 | + .type-wrap{ | |
| 128 | + padding-left: 10px; | |
| 129 | + position: absolute; | |
| 130 | + left: 11px; | |
| 131 | + bottom: 11px; | |
| 132 | + background-color: rgba(10,52,140,.8); | |
| 133 | + li{ | |
| 134 | + float: left; | |
| 135 | + height: 20px; | |
| 136 | + line-height: 20px; | |
| 137 | + margin-right: 10px; | |
| 138 | + padding-left: 12px; | |
| 139 | + font-size: 12px; | |
| 140 | + color:rgba(255,255,255,.7); | |
| 141 | + background-repeat: no-repeat; | |
| 142 | + background-position: 0 center; | |
| 143 | + &:nth-of-type(1){ | |
| 144 | + background-image: url("../assets/img/busy-type.png"); | |
| 145 | + } | |
| 146 | + &:nth-of-type(2){ | |
| 147 | + background-image: url("../assets/img/nomal-type.png"); | |
| 148 | + } | |
| 149 | + &:nth-of-type(3){ | |
| 150 | + background-image: url("../assets/img/idle-type.png"); | |
| 151 | + } | |
| 152 | + } | |
| 153 | + } | |
| 154 | + .park-wrap{ | |
| 155 | + width: 120px; | |
| 156 | + height: 124px; | |
| 157 | + position: absolute; | |
| 158 | + right: 11px; | |
| 159 | + bottom: 11px; | |
| 160 | + background-color: #0D3689; | |
| 161 | + font-size: 12px; | |
| 162 | + overflow-y: auto; | |
| 163 | + li{ | |
| 164 | + padding-left: 26px; | |
| 165 | + height: 20px; | |
| 166 | + line-height: 20px; | |
| 167 | + color:rgba(255,255,255,.7); | |
| 168 | + background-image:url("../assets/img/office-icon.png"); | |
| 169 | + background-repeat: no-repeat; | |
| 170 | + background-position: 9px center; | |
| 171 | + overflow: hidden; | |
| 172 | + white-space: nowrap; | |
| 173 | + text-overflow: ellipsis; | |
| 174 | + cursor: pointer; | |
| 175 | + } | |
| 176 | + .current-active{ | |
| 177 | + color:rgba(255,255,255,1); | |
| 178 | + background-image:url("../assets/img/officeactive-icon.png"); | |
| 179 | + } | |
| 180 | + } | |
| 93 | 181 | </style> | ... | ... |