| | |
| | | margin: 0 18px; |
| | | } |
| | | .weather { |
| | | display: flex; |
| | | align-items: center; |
| | | img { |
| | | width: 20px; |
| | | height: 20px; |
| | |
| | | } |
| | | |
| | | const mousemoveFun = evt => { |
| | | console.log(66666) |
| | | //获取body宽高,获取拖动盒子的宽高 |
| | | const { offsetWidth: bodyWidth, offsetHeight: bodyHeight } = document.body |
| | | const { offsetWidth: boxWidth, offsetHeight: boxHeight } = dragBox |
| | |
| | | text-align: center; |
| | | font-style: normal; |
| | | text-transform: none; |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | } |
| | |
| | | <template> |
| | | <div class="footer"> |
| | | <img |
| | | v-for="(item,index) in list.filter(i => !i.disable)" |
| | | v-for="(item,index) in list.filter(i => !i.show)" |
| | | :class="item.className" |
| | | :src="item.active ? item.activeImg : item.img" |
| | | alt="" |
| | |
| | | import { useMapAggregation } from '@/views/Home/useMapAggregation/useMapAggregation' |
| | | import { useStore } from 'vuex' |
| | | import func from '@/utils/func' |
| | | import { ElMessage } from 'element-plus' |
| | | |
| | | const store = useStore() |
| | | const footActiveIndex = computed(() => store.state.home.footActiveIndex) |
| | |
| | | init: eventInit, |
| | | removeAll: eventRemove, |
| | | }, |
| | | { name: 'qj', img: img3, activeImg: activeImg3, active: false, className: 'panorama' }, |
| | | { name: 'sw', img: img4, activeImg: activeImg4, active: false, className: 'threeD' }, |
| | | { name: 'zs', img: img5, activeImg: activeImg5, active: false, className: 'orthophoto' }, |
| | | { name: 'zyjf', active: false, disable: true }, |
| | | { name: 'qj', img: img3, activeImg: activeImg3, active: false, className: 'panorama',undeveloped:true }, |
| | | { name: 'sw', img: img4, activeImg: activeImg4, active: false, className: 'threeD',undeveloped:true }, |
| | | { name: 'zs', img: img5, activeImg: activeImg5, active: false, className: 'orthophoto',undeveloped:true }, |
| | | { name: 'zyjf', active: false, show: true }, |
| | | ]) |
| | | |
| | | const footAction = (toItem, index) => { |
| | | if (toItem.undeveloped) return ElMessage.warning('正在加急开发中...') |
| | | const fromItem = list.value.find(item => item.active) //上一个激活item |
| | | if (fromItem.name === toItem?.name) return //是重复点击 |
| | | index !== undefined && store.commit('setFootActiveIndex', index) //是按钮点击得动作 |
| | |
| | | }; |
| | | .chat { |
| | | position: fixed; |
| | | bottom: 330px; |
| | | top: 638px; |
| | | height: 124px; |
| | | width: 100px; |
| | | user-select: none; |