MainBusiness.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <script setup>
  2. import { nextTick, onMounted, ref, onBeforeUnmount } from 'vue';
  3. import Layout from '../components/common/Layout.vue';
  4. import { yangyEmail } from '@/config/contact.js';
  5. import { onLanguageChange, getCurrentLanguage } from '@/utils/language.js';
  6. import { useI18n } from 'vue-i18n';
  7. const { t, locale, messages } = useI18n();
  8. const currentLanguage = ref(getCurrentLanguage());
  9. const offLanguageListener = ref(null);
  10. // 订阅全局语言变更事件(使用 utils 封装)
  11. offLanguageListener.value = onLanguageChange((lang) => {
  12. currentLanguage.value = lang;
  13. });
  14. onBeforeUnmount(() => {
  15. // 取消语言变更监听
  16. if (offLanguageListener.value) {
  17. offLanguageListener.value();
  18. offLanguageListener.value = null;
  19. }
  20. })
  21. </script>
  22. <template>
  23. <div>
  24. <Layout>
  25. <div class="contact">
  26. <div class="index-page" style="width: 100%">
  27. <div class="page-header-sub">
  28. <!-- <img src="../assets/images/business.png" alt=""> -->
  29. <img src="../assets/images/banner.png" alt="">
  30. </div>
  31. </div>
  32. <div class="contactContainer1">
  33. <div class="contactContent">
  34. <div>{{ $t("message.ywjs") }}</div>
  35. <div class="fw" style=" text-indent: 2em;" v-if="currentLanguage == 'zhTW' || currentLanguage == 'zhCN'">{{
  36. $t('message.ywjs1') }}</div>
  37. <div class="fw" v-if="currentLanguage == 'en'" >{{ $t('message.ywjs2') }}</div>
  38. <div class="fw" v-if="currentLanguage == 'en'">{{ $t('message.ywjs3') }}</div>
  39. <div class="fw" v-if="currentLanguage == 'en'">{{ $t('message.ywjs4') }}</div>
  40. </div>
  41. <div class="contactContent">
  42. <div>{{ $t('message.ywzx') }}</div>
  43. <div class="cardContent">
  44. <div>
  45. <img src="../assets/images/call.png" alt="">
  46. <div>
  47. +852-26206011
  48. </div>
  49. <div>
  50. marketing@cti-group.com.hk
  51. </div>
  52. <div>
  53. <div>{{ $t('message.ywzx2') }}</div>
  54. </div>
  55. </div>
  56. <div>
  57. <img src="../assets/images/call.png" alt="">
  58. <div>
  59. +852-26206308
  60. </div>
  61. <div>
  62. supplychain@cti-group.com.hk
  63. </div>
  64. <div>
  65. <div>{{ $t('message.ywzx1') }}</div>
  66. </div>
  67. </div>
  68. <div>
  69. <img src="../assets/images/call.png" alt="">
  70. <div>
  71. +852-26206055
  72. </div>
  73. <div>
  74. <!-- {{ yangyEmail }} -->
  75. production@cti-group.com.hk
  76. </div>
  77. <div>
  78. <div>{{ $t('message.ywzx3') }}</div>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </Layout>
  86. </div>
  87. </template>
  88. <style scoped lang="scss">
  89. .contactContainer {
  90. width: 100%;
  91. height: 100%;
  92. display: flex;
  93. justify-content: center;
  94. align-items: center;
  95. font-size: 24px;
  96. color: #333;
  97. }
  98. .contactContainer1 {
  99. width: 100%;
  100. height: 100%;
  101. background-color: #f7f7f7;
  102. padding-bottom: 5rem;
  103. }
  104. .contact {
  105. width: 100%;
  106. }
  107. .fw {
  108. // font-weight: 550;
  109. color: #444;
  110. }
  111. .bgImg {
  112. width: 100%;
  113. >img {
  114. width: 100%;
  115. height: 100%;
  116. }
  117. }
  118. .contactContent {
  119. width: 65%;
  120. margin: 0px auto 20px;
  121. font-size: 1.3rem;
  122. padding-top: 3rem;
  123. >div:nth-child(1) {
  124. font-size: 1.5rem;
  125. color: #F7B334;
  126. font-weight: bold;
  127. margin-bottom: 1.7rem;
  128. }
  129. }
  130. .cardContent {
  131. display: flex;
  132. justify-content: space-between;
  133. >div {
  134. width: 30%;
  135. // height: 15rem;
  136. background: #fff;
  137. padding: 1rem;
  138. text-align: center;
  139. font-size: 1.6rem;
  140. font-weight: 550;
  141. color: #444;
  142. >img {
  143. width: 3rem;
  144. height: 3rem;
  145. margin: 2rem 0rem 0rem 0rem
  146. }
  147. >div:nth-child(2) {
  148. font-size: 2.2rem;
  149. color: #F7B334;
  150. }
  151. >div:nth-child(3),
  152. >div:nth-child(4) {
  153. font-size: 0.9rem;
  154. color: #333;
  155. margin-top: 0.5rem;
  156. }
  157. }
  158. @media screen and (max-width: 767px) {
  159. width: 100%;
  160. display: block;
  161. >div {
  162. padding: 0rem;
  163. width: 100%;
  164. margin-bottom: 2rem;
  165. padding-bottom: 2rem;
  166. padding-top: 1rem;
  167. }
  168. }
  169. }
  170. </style>