index.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <v-card class="card-box px-5 my-3 mx-3 elevation-5">
  3. <div class="social-media common-width">
  4. <h5 class="social-media-header mt-10">
  5. <span class="inner-text">客服联系方式</span>
  6. </h5>
  7. <div class="d-flex flex-column align-center">
  8. <svg-icon name="warning" size="300"></svg-icon>
  9. <div v-if="!isMobile" class="d-flex align-center social-contact pa-8 mt-5 justify-space-between">
  10. <div class="ml-3">
  11. <p class="mt-3 mb-2">联系电话:18621329797</p>
  12. <p>电子邮箱:peter.pan@menduner.com</p>
  13. </div>
  14. <div class="mr-10 d-flex flex-column align-center">
  15. <div style="width: 140px; height: 140px;">
  16. <v-img cover aspect-ratio="1/1" src="https://minio.menduner.com/dev/9e7a28d32e2eb72794e2051c88573eb4cb1e44c8bfff7e2f9f7ffe458f3a55df.png" width="140" height="140"></v-img>
  17. </div>
  18. <div class="font-size-15 mt-2">潘青海先生 Peter Pan</div>
  19. </div>
  20. </div>
  21. <div v-else class="pa-5" style="background-color: #e8f0f7; width: 100%">
  22. <div class="d-flex flex-column align-center">
  23. <div style="width: 140px; height: 140px;">
  24. <v-img cover aspect-ratio="1/1" src="https://minio.menduner.com/dev/9e7a28d32e2eb72794e2051c88573eb4cb1e44c8bfff7e2f9f7ffe458f3a55df.png" width="140" height="140"></v-img>
  25. </div>
  26. <div class="font-size-15 mt-2">潘青海先生 Peter Pan</div>
  27. </div>
  28. <div class="mt-10">
  29. <p class="mt-3 mb-2">联系电话:18621329797</p>
  30. <p>电子邮箱:peter.pan@menduner.com</p>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. </v-card>
  36. </template>
  37. <script setup>
  38. defineOptions({ name: 'contactUs'})
  39. import { onMounted, ref } from 'vue'
  40. // 组件挂载后添加事件监听器
  41. const isMobile = ref(false)
  42. onMounted(() => {
  43. const userAgent = navigator.userAgent
  44. isMobile.value = /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i.test(userAgent)
  45. })
  46. </script>
  47. <style scoped lang="scss">
  48. .common-width {
  49. width: 100%;
  50. max-width: 1100px;
  51. }
  52. .social-media {
  53. margin: auto;
  54. padding-bottom: 100px;
  55. &-header {
  56. position: relative;
  57. text-transform: uppercase;
  58. text-align: center;
  59. .inner-text {
  60. display: inline-block;
  61. background-color: #fff;
  62. padding: 0 18px;
  63. color: #ff5252;
  64. position: relative;
  65. font-size: 30px;
  66. z-index: 2;
  67. }
  68. &::after {
  69. content: "";
  70. position: absolute;
  71. width: 100%;
  72. height: 0;
  73. border-top: 1px dotted #ff5252;
  74. left: 0;
  75. bottom: 50%;
  76. margin-bottom: -1px;
  77. }
  78. }
  79. }
  80. .social-contact {
  81. width: 600px;
  82. background-color: #e8f0f7;
  83. }
  84. </style>