| | |
| | | <template> |
| | | <!-- v-show="isOpenDrawALine" --> |
| | | <!-- 退出导航,右边按钮 |
| | | mobileCloseRouter |
| | | --> |
| | | <div class="routers"> |
| | | <div |
| | | :class="['mobileCloseRouter', isOpenDrawALine ? 'mobileCloseActive' : '']" |
| | |
| | | methods: { |
| | | mobileRouterClose() { |
| | | this.$store.commit("removePolyline"); |
| | | this.$store.commit("removerPolyLineIcon"); |
| | | }, |
| | | mobileRouterCloseOpen(Str, index) { |
| | | if (this.choiceRouterS == index) { |
| | | return; |
| | | } |
| | | this.$store.commit("set_choiceRouterS", index); |
| | | this.$store.dispatch("MSET_DRAWALINELAYER", Str); |
| | | this.$store.dispatch("MSET_DRAWALINELAYER", [Str]); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | .mobileCloseRouterOpen { |
| | | position: fixed; |
| | | // width: 127px; |
| | | width: 80px; |
| | | width: 50px; |
| | | height: 32px; |
| | | background-color: #fff; |
| | | z-index: 600; |
| | |
| | | justify-content: center; |
| | | border-radius: 8px 0 0 8px; |
| | | color: #000; |
| | | border-left: 1px solid #a4d1ff; |
| | | border-top: 1px solid #a4d1ff; |
| | | border-bottom: 1px solid #a4d1ff; |
| | | transition: all 0.5s; |
| | | } |
| | | .mobileCloseActive { |
| | |
| | | opacity: 1; |
| | | } |
| | | .mobileCloseActiveOpen { |
| | | width: 80px; |
| | | border: 1px solid #409eff; |
| | | background-color: #409eff; |
| | | color: #fff; |
| | | } |