vBottomMenu.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <div class="bottom-menu-normal">
  3. <div v-for="(fastMenu,index) in fastMenu" :key="index" class="btm-m-con" v-on:click="showDialog(fastMenu.click)">
  4. <a><i class="iconfont" :class="fastMenu.icon"></i>{{fastMenu.name}}</a>
  5. </div>
  6. </div>
  7. <!--事件弹层-->
  8. </template>
  9. <script>
  10. export default {
  11. data() {
  12. return {
  13. eventLocationVisible: false,
  14. fastMenu: [{
  15. name: '事件定位',
  16. icon: 'sj-icon-sjdw',
  17. click: 'eventLocation'
  18. },
  19. {
  20. name: '图层切换',
  21. icon: 'sj-icon-tcqh',
  22. click: ''
  23. },
  24. {
  25. name: '测量工具',
  26. icon: 'sj-icon-clgj',
  27. click: ''
  28. },
  29. {
  30. name: '林班',
  31. icon: 'sj-icon-lbzy',
  32. click: ''
  33. },
  34. {
  35. name: '林场',
  36. icon: 'sj-icon-lczy',
  37. click: ''
  38. }
  39. ]
  40. }
  41. }, methods: {
  42. showDialog(click) {
  43. window.showDialog(click)
  44. }
  45. }
  46. }
  47. </script>
  48. <style rel="stylesheet/scss" lang="scss" scoped>
  49. @import '@/assets/styles/base.scss';
  50. .bottom-menu-normal {
  51. max-width: 90%;
  52. padding: 0 3rem;
  53. position: absolute;
  54. left: 50%;
  55. transform: translateX(-50%);
  56. bottom: 0;
  57. z-index: 999;
  58. border-radius: 5px;
  59. display: flex;
  60. justify-content: center;
  61. align-items: center;
  62. background: url(../assets/images/integrated/btm-menu.png) center no-repeat;
  63. background-size: cover;
  64. overflow: hidden;
  65. .btm-m-con {
  66. position: relative;
  67. color: $inBlue;
  68. font-size: .5rem;
  69. padding: 1rem 1.5rem;
  70. display: flex;
  71. align-items: center;
  72. justify-content: center;
  73. -webkit-transform: translateY(0);
  74. transform: translateY(0);
  75. transition: all 0.2s ease-in-out;
  76. cursor: pointer;
  77. white-space: nowrap;
  78. i {
  79. font-size: 1rem;
  80. color: $inBlue;
  81. text-shadow: 0 0 10px rgba($color: $inBlue, $alpha: .6);
  82. margin-right: 0.2rem;
  83. }
  84. }
  85. .btm-m-con:hover {
  86. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  87. filter: brightness(2.3);
  88. -webkit-transform: translateX(0.2rem);
  89. transform: translateX(0.2rem);
  90. transition: all 0.2s ease-in-out;
  91. i {
  92. color: $inBlueHover;
  93. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  94. }
  95. }
  96. }
  97. </style>