index.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <template>
  2. <section class="wrap__two">
  3. <div class="wrap__two-box">
  4. <div class="wrap__two-head">
  5. <div class="wrap__two-title">
  6. <span>{{ $t('system["VAVA BUY 如何运作"]') }}</span>
  7. </div>
  8. </div>
  9. <div class="wrap__two-content">
  10. <div class="wrap__two-steps">
  11. <div
  12. v-for="(step, i) in stepList"
  13. :key="i"
  14. class="wrap__two-step-item"
  15. :class="[locale == 'en' ? 'wrap__two-step-item__en' : '']"
  16. >
  17. <img
  18. v-if="i == 0"
  19. src="@/public/images/icons/address_icon.png"
  20. class="wrap__two-step-icon"
  21. />
  22. <img
  23. v-if="i == 1"
  24. src="@/public/images/icons/shop_icon.png"
  25. class="wrap__two-step-icon"
  26. />
  27. <img
  28. v-if="i == 2"
  29. src="@/public/images/icons/rect_icon.png"
  30. class="wrap__two-step-icon"
  31. />
  32. <div class="wrap__two-step-cont">
  33. <div class="wrap__two-step-index">{{ i + 1 }}</div>
  34. <div class="wrap__two-step-name">{{ $t(`system["${step.name}"]`) }}</div>
  35. </div>
  36. <div class="wrap__two-step-desc">{{ $t(`system["${step.desc}"]`) }}</div>
  37. </div>
  38. </div>
  39. </div>
  40. <div class="wrap__two-foot">
  41. <div class="wrap__two-btn" @click="goRegister">{{ $t('system["立即免费注册"]') }}</div>
  42. </div>
  43. </div>
  44. </section>
  45. </template>
  46. <script setup lang="ts">
  47. import { reactive } from 'vue'
  48. import { storeToRefs } from 'pinia'
  49. import useSystemStore from '@/stores/useSystemStore'
  50. interface IStep {
  51. name: string
  52. desc: string
  53. }
  54. const systemStore = useSystemStore()
  55. const { locale } = storeToRefs(systemStore)
  56. const stepList = reactive<IStep[]>([
  57. {
  58. name: '注册账户',
  59. desc: '加入VAVA BUY 以获取您的收货地址',
  60. },
  61. {
  62. name: '下单购买',
  63. desc: '在商店购物,运送到您的新VAVA BUY地址',
  64. },
  65. {
  66. name: '收货转运',
  67. desc: '合并包裹并节省高达80%的运费',
  68. },
  69. ])
  70. // 注册跳转
  71. const goRegister = function () {
  72. window.open('https://vavabuy.net/#/pages/login/register', '__blank')
  73. }
  74. </script>
  75. <style lang="less" scoped>
  76. .wrap__two {
  77. display: flex;
  78. justify-content: center;
  79. width: 100%;
  80. height: auto;
  81. padding: 50px 0;
  82. padding: 3.125rem 0;
  83. background-color: #000;
  84. .wrap__two-box {
  85. min-width: 1200px;
  86. min-width: 75rem;
  87. width: var(--layout-width-1200);
  88. padding: 0 15px;
  89. padding: 0 0.9375rem;
  90. }
  91. .wrap__two-title {
  92. margin-bottom: 50px;
  93. margin-bottom: 3.125rem;
  94. font-family: Source Han Sans;
  95. font-size: 30px;
  96. font-size: 1.875rem;
  97. font-weight: bold;
  98. color: #ffffff;
  99. text-align: center;
  100. }
  101. .wrap__two-content {
  102. width: 100%;
  103. }
  104. .wrap__two-steps {
  105. display: flex;
  106. align-items: center;
  107. justify-content: space-between;
  108. width: 100%;
  109. }
  110. .wrap__two-step-item {
  111. display: flex;
  112. flex-direction: column;
  113. align-items: center;
  114. padding: 0 15px;
  115. padding: 0 1rem;
  116. color: #fff;
  117. text-align: center;
  118. }
  119. .wrap__two-step-item__en {
  120. flex: 3;
  121. }
  122. .wrap__two-step-item__en:nth-child(2) {
  123. flex: 4;
  124. }
  125. .wrap__two-step-icon {
  126. height: 58px;
  127. height: 3.625rem;
  128. width: auto;
  129. }
  130. .wrap__two-step-cont {
  131. display: flex;
  132. justify-content: center;
  133. align-items: center;
  134. margin: 32px 0 24px;
  135. margin: 2rem 0 1.5rem;
  136. }
  137. .wrap__two-step-index {
  138. width: 36px;
  139. width: 2.25rem;
  140. height: 36px;
  141. height: 2.25rem;
  142. display: flex;
  143. justify-content: center;
  144. align-items: center;
  145. margin-right: 16px;
  146. margin-right: 1rem;
  147. background: #ffffff;
  148. border-radius: 50%;
  149. font-family: Source Han Sans;
  150. font-size: 26px;
  151. font-size: 1.625rem;
  152. font-weight: bold;
  153. color: #000000;
  154. }
  155. .wrap__two-step-name {
  156. flex: 1;
  157. font-family: Source Han Sans;
  158. font-size: 24px;
  159. font-size: 1.5rem;
  160. font-weight: bold;
  161. color: #ffffff;
  162. }
  163. .wrap__two-step-desc {
  164. font-family: Source Han Sans;
  165. font-size: 18px;
  166. font-size: 1.125rem;
  167. font-weight: normal;
  168. color: rgba(255, 255, 255, 0.8);
  169. }
  170. .wrap__two-foot {
  171. width: 100%;
  172. display: flex;
  173. justify-content: center;
  174. }
  175. .wrap__two-btn {
  176. min-width: 164px;
  177. min-width: 10.25rem;
  178. height: 50px;
  179. height: 3.125rem;
  180. padding: 15px;
  181. padding: 0.9375rem;
  182. margin-top: 70px;
  183. margin-top: 4.375rem;
  184. border-radius: 10px;
  185. border-radius: 0.625rem;
  186. display: flex;
  187. justify-content: center;
  188. align-items: center;
  189. background: #ffffff;
  190. color: #000;
  191. font-family: Source Han Sans;
  192. font-size: 18px;
  193. font-size: 1.125rem;
  194. font-weight: 500;
  195. cursor: pointer;
  196. transition: all 0.3s;
  197. }
  198. }
  199. </style>
  200. <style lang="less" scoped>
  201. @import url(./css/styles@1200.less);
  202. @import url(./css/styles@1024.less);
  203. @import url(./css/styles@768.less);
  204. </style>