Hanye官网
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <template>
  2. <div class="min-h-screen bg-gray-900">
  3. <div class="w-full h-[55px] sm:h-[72px]"></div>
  4. <ErrorBoundary :error="error">
  5. <div v-if="isLoading" class="flex justify-center py-16">
  6. <div class="animate-spin h-8 w-8 border-2 border-blue-400 border-t-transparent rounded-full"></div>
  7. </div>
  8. <div v-else>
  9. <!-- 面包屑导航 -->
  10. <div class="bg-gray-800 border-b border-gray-700">
  11. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4">
  12. <nav class="flex items-center space-x-2 text-sm text-gray-400">
  13. <nuxt-link
  14. :to="`${homepagePath}/`"
  15. class="hover:text-blue-400 transition-colors duration-200"
  16. >
  17. {{ t("common.home") }}
  18. </nuxt-link>
  19. <svg class="w-4 h-4 text-gray-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
  20. <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
  21. </svg>
  22. <nuxt-link
  23. :to="`${homepagePath}/support`"
  24. class="hover:text-blue-400 transition-colors duration-200"
  25. >
  26. {{ t("support.title") }}
  27. </nuxt-link>
  28. <svg class="w-4 h-4 text-gray-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
  29. <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
  30. </svg>
  31. <span class="text-gray-200 font-medium">{{ t("support.faq.title") }}</span>
  32. </nav>
  33. </div>
  34. </div>
  35. <!-- 页面头部 -->
  36. <div class="bg-gray-800">
  37. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16">
  38. <div class="text-center">
  39. <div class="flex items-center justify-center mb-6">
  40. <div class="w-12 h-12 bg-blue-500/20 text-blue-400 rounded-lg flex items-center justify-center mr-4">
  41. <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
  42. <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
  43. </svg>
  44. </div>
  45. <h1 class="text-3xl md:text-4xl font-bold text-white">
  46. {{ t("support.faq.title") }}
  47. </h1>
  48. </div>
  49. <p class="text-xl text-gray-300 max-w-3xl mx-auto">
  50. {{ t("support.faq.description") }}
  51. </p>
  52. </div>
  53. </div>
  54. </div>
  55. <!-- FAQ内容区域 -->
  56. <div class="bg-gray-900">
  57. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16">
  58. <div class="bg-gray-800 rounded-lg shadow-lg border border-gray-700 overflow-hidden">
  59. <FaqContent />
  60. </div>
  61. </div>
  62. </div>
  63. <!-- 底部操作区域 -->
  64. <div class="bg-gray-800 border-t border-gray-700">
  65. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
  66. <div class="flex flex-col sm:flex-row items-center justify-between">
  67. <div class="mb-4 sm:mb-0">
  68. <p class="text-gray-400 text-sm">
  69. 没有找到您需要的答案?我们的技术支持团队随时为您提供帮助。
  70. </p>
  71. </div>
  72. <div class="flex flex-col sm:flex-row gap-3">
  73. <nuxt-link
  74. :to="`${homepagePath}/support`"
  75. class="inline-flex items-center px-4 py-2 border border-gray-600 text-sm font-medium rounded-md text-gray-300 bg-gray-700 hover:bg-gray-600 transition-colors duration-200"
  76. >
  77. <svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
  78. <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18"></path>
  79. </svg>
  80. {{ t("support.backToSupport") }}
  81. </nuxt-link>
  82. <nuxt-link
  83. :to="`${homepagePath}/contact`"
  84. class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 transition-colors duration-200"
  85. >
  86. <svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
  87. <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 4.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path>
  88. </svg>
  89. 联系技术支持
  90. </nuxt-link>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. </ErrorBoundary>
  97. </div>
  98. </template>
  99. <script setup lang="ts">
  100. /**
  101. * FAQ详情页面
  102. * 专业的常见问题解答页面
  103. */
  104. import { useErrorHandler } from "~/composables/useErrorHandler";
  105. const { error, isLoading } = useErrorHandler();
  106. const { t, locale } = useI18n();
  107. // 计算首页路径
  108. const homepagePath = computed(() => {
  109. return locale.value === "zh" ? "" : `/${locale.value}`;
  110. });
  111. // SEO优化
  112. useHead({
  113. title: t("support.faq.title") + " - " + t("support.title") + " - Hanye",
  114. meta: [
  115. {
  116. name: "description",
  117. content: t("faq.description"),
  118. },
  119. {
  120. name: "keywords",
  121. content: t("faq.keywords"),
  122. },
  123. ],
  124. });
  125. </script>
  126. <style scoped>
  127. /* 过渡效果 */
  128. .transition-colors {
  129. transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  130. transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  131. }
  132. .duration-200 {
  133. transition-duration: 200ms;
  134. }
  135. /* 悬停效果 */
  136. .hover\:bg-blue-700:hover {
  137. background-color: #1d4ed8;
  138. }
  139. .hover\:bg-gray-600:hover {
  140. background-color: #4b5563;
  141. }
  142. .hover\:text-blue-400:hover {
  143. color: #60a5fa;
  144. }
  145. /* 响应式优化 */
  146. @media (max-width: 768px) {
  147. .flex-col {
  148. align-items: stretch;
  149. }
  150. .flex-col > * {
  151. width: 100%;
  152. justify-content: center;
  153. }
  154. }
  155. </style>