testPage.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <template>
  2. <div class="company-home">
  3. <div class="top-bg">
  4. <div class="main-title">{{ mainTitle }}</div>
  5. </div>
  6. <a-row class="company-content" justify="space-between" wrap>
  7. <a-col class="company-content__card" v-for="(item, i) in cards" :key="i" flex="24%">
  8. <p class="company-content__card_title">{{ item.title }}</p>
  9. <div class="company-content__card_content">你好</div>
  10. </a-col>
  11. </a-row>
  12. </div>
  13. </template>
  14. <script lang="ts" setup>
  15. import { computed, ref, inject } from 'vue';
  16. // import mapComponent from './components/3Dmap/index.vue';
  17. const globalConfig = inject('globalConfig');
  18. // const mainTitle = ref('国家能源神东煤炭集团');
  19. const mainTitle = ref('XXXX集团');
  20. const cards = ref<{ title: string }[]>(
  21. globalConfig.History_Type == 'vent'
  22. ? [
  23. {
  24. title: '布尔台矿',
  25. },
  26. {
  27. title: '柳塔矿矿',
  28. },
  29. {
  30. title: '寸草塔二矿',
  31. },
  32. {
  33. title: '乌兰木伦矿',
  34. },
  35. {
  36. title: '寸草塔矿',
  37. },
  38. {
  39. title: '石坎台矿',
  40. },
  41. {
  42. title: '补连塔矿',
  43. },
  44. {
  45. title: '哈拉沟矿',
  46. },
  47. ]
  48. : [
  49. {
  50. title: 'betk',
  51. },
  52. {
  53. title: 'ltk',
  54. },
  55. {
  56. title: 'ctk',
  57. },
  58. {
  59. title: 'wlml',
  60. },
  61. {
  62. title: 'cctk',
  63. },
  64. {
  65. title: 'sgtk',
  66. },
  67. {
  68. title: 'bltk',
  69. },
  70. {
  71. title: 'hlagk',
  72. },
  73. ]
  74. );
  75. </script>
  76. <style lang="less" scoped>
  77. @font-face {
  78. font-family: 'douyuFont';
  79. src: url('../../../../assets/font/douyuFont.otf');
  80. }
  81. .company-home {
  82. width: 100%;
  83. height: 100%;
  84. color: #fff;
  85. position: relative;
  86. // background: url('../../../../assets/images/company/home-pageBg.png') no-repeat center;
  87. // background-size: 100% 100%;
  88. .top-bg {
  89. width: 100%;
  90. height: 97px;
  91. background: url('../../../../assets/images/company/top-bg.png') no-repeat center;
  92. position: absolute;
  93. z-index: 1;
  94. .main-title {
  95. height: 96px;
  96. font-family: 'douyuFont';
  97. font-size: 20px;
  98. letter-spacing: 2px;
  99. display: flex;
  100. justify-content: center;
  101. align-items: center;
  102. }
  103. }
  104. .company-content {
  105. width: 100%;
  106. height: 100%;
  107. background: url('../../../../assets/images/company/content-bg.png') no-repeat;
  108. background-size: 100% 100%;
  109. pointer-events: none;
  110. padding: 150px 100px 100px 100px;
  111. .company-content__card {
  112. height: 320px;
  113. background: url('../../../../assets/images/company/area-card4.png') no-repeat;
  114. background-size: 100% 100%;
  115. padding: 0 20px 0 20px;
  116. text-align: center;
  117. }
  118. .company-content__card_title {
  119. margin-top: 10px;
  120. font-family: 'douyuFont';
  121. }
  122. .company-content__card_content {
  123. height: 250px;
  124. }
  125. }
  126. }
  127. </style>