招聘网页
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.vue 2.9KB

1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <a-row type="flex" justify="center" class="content-padding-inline">
  3. <a-col span="18">
  4. <div
  5. style="width: 100%;background-color: #fff;height: calc(100vh - 100px); overflow: auto; margin-top: 30px; padding: 10px;border-radius: 8px;cursor: pointer;">
  6. <a-tabs type="card" v-model:activeKey="activeKey" @change="tabChange">
  7. <a-tab-pane :key="1" tab="关于我们">
  8. <a-typography style="padding: 20px;">
  9. <a-typography-title :level="3">关于我们</a-typography-title>
  10. <a-typography-paragraph v-if="detail">
  11. <div v-html="detail.value"></div>
  12. </a-typography-paragraph>
  13. </a-typography>
  14. </a-tab-pane>
  15. <a-tab-pane :key="2" tab="联系方式">
  16. <a-typography style="padding: 20px;">
  17. <a-typography-title :level="3">联系方式</a-typography-title>
  18. <a-typography-paragraph v-if="detail">
  19. <div v-html="detail.value"></div>
  20. </a-typography-paragraph>
  21. </a-typography>
  22. </a-tab-pane>
  23. <a-tab-pane :key="3" tab="地图位置">
  24. <a-typography style="padding: 20px;">
  25. <a-typography-title :level="3">地图位置</a-typography-title>
  26. <a-typography-paragraph>
  27. <map-marker></map-marker>
  28. </a-typography-paragraph>
  29. </a-typography>
  30. </a-tab-pane>
  31. <a-tab-pane :key="4" tab="收费标准">
  32. <a-typography style="padding: 20px;">
  33. <a-typography-title :level="3">收费标准</a-typography-title>
  34. <a-typography-paragraph v-if="detail">
  35. <div v-html="detail.value"></div>
  36. </a-typography-paragraph>
  37. </a-typography>
  38. </a-tab-pane>
  39. <a-tab-pane :key="5" tab="汇款方式">
  40. <a-typography style="padding: 20px;">
  41. <a-typography-title :level="3">汇款方式</a-typography-title>
  42. <a-typography-paragraph v-if="detail">
  43. <div v-html="detail.value"></div>
  44. </a-typography-paragraph>
  45. </a-typography>
  46. </a-tab-pane>
  47. </a-tabs>
  48. </div>
  49. </a-col>
  50. </a-row>
  51. </template>
  52. <script setup lang="ts">
  53. import { ref, computed, onMounted, defineEmits, defineProps, watch } from 'vue';
  54. import MapMarker from '@/components/map/marker.vue'
  55. import { GetSysconfigDetail } from '@/apis/models';
  56. let detail = ref<any>('')
  57. let activeKey = ref<Number>(1)
  58. const tabChange = (val) => {
  59. detail.value = null
  60. switch (val) {
  61. case 1:
  62. GetSysconfigDetail({ name: 'about_us' }).then(res => {
  63. detail.value = res.data
  64. })
  65. break;
  66. case 2:
  67. GetSysconfigDetail({ name: 'about_us_contact' }).then(res => {
  68. detail.value = res.data
  69. })
  70. break;
  71. case 5:
  72. GetSysconfigDetail({ name: 'remittance_method' }).then(res => {
  73. detail.value = res.data
  74. })
  75. break;
  76. }
  77. }
  78. onMounted(() => {
  79. if (sessionStorage.getItem('footer_key')) {
  80. activeKey.value = Number(sessionStorage.getItem('footer_key'))
  81. tabChange(activeKey.value)
  82. } else {
  83. activeKey.value = 1
  84. tabChange(1)
  85. }
  86. })
  87. </script>
  88. <style>
  89. </style>