123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- <template>
- <section class="wrap__two">
- <div class="wrap__two-box">
- <div class="wrap__two-head">
- <div class="wrap__two-title">
- <span>{{ $t('system["VAVA BUY 如何运作"]') }}</span>
- </div>
- </div>
- <div class="wrap__two-content">
- <div class="wrap__two-steps">
- <div
- v-for="(step, i) in stepList"
- :key="i"
- class="wrap__two-step-item"
- :class="[locale == 'en' ? 'wrap__two-step-item__en' : '']"
- >
- <img
- v-if="i == 0"
- src="@/public/images/icons/address_icon.png"
- class="wrap__two-step-icon"
- />
- <img
- v-if="i == 1"
- src="@/public/images/icons/shop_icon.png"
- class="wrap__two-step-icon"
- />
- <img
- v-if="i == 2"
- src="@/public/images/icons/rect_icon.png"
- class="wrap__two-step-icon"
- />
- <div class="wrap__two-step-cont">
- <div class="wrap__two-step-index">{{ i + 1 }}</div>
- <div class="wrap__two-step-name">{{ $t(`system["${step.name}"]`) }}</div>
- </div>
- <div class="wrap__two-step-desc">{{ $t(`system["${step.desc}"]`) }}</div>
- </div>
- </div>
- </div>
- <div class="wrap__two-foot">
- <div class="wrap__two-btn" @click="goRegister">{{ $t('system["立即免费注册"]') }}</div>
- </div>
- </div>
- </section>
- </template>
- <script setup lang="ts">
- import { reactive } from 'vue'
- import { storeToRefs } from 'pinia'
- import useSystemStore from '@/stores/useSystemStore'
- interface IStep {
- name: string
- desc: string
- }
- const systemStore = useSystemStore()
- const { locale } = storeToRefs(systemStore)
- const stepList = reactive<IStep[]>([
- {
- name: '注册账户',
- desc: '加入VAVA BUY 以获取您的收货地址',
- },
- {
- name: '下单购买',
- desc: '在商店购物,运送到您的新VAVA BUY地址',
- },
- {
- name: '收货转运',
- desc: '合并包裹并节省高达80%的运费',
- },
- ])
- // 注册跳转
- const goRegister = function () {
- window.open('https://vavabuy.net/#/pages/login/register', '__blank')
- }
- </script>
- <style lang="less" scoped>
- .wrap__two {
- display: flex;
- justify-content: center;
- width: 100%;
- height: auto;
- padding: 50px 0;
- padding: 3.125rem 0;
- background-color: #000;
- .wrap__two-box {
- min-width: 1200px;
- min-width: 75rem;
- width: var(--layout-width-1200);
- padding: 0 15px;
- padding: 0 0.9375rem;
- }
- .wrap__two-title {
- margin-bottom: 50px;
- margin-bottom: 3.125rem;
- font-family: Source Han Sans;
- font-size: 30px;
- font-size: 1.875rem;
- font-weight: bold;
- color: #ffffff;
- text-align: center;
- }
- .wrap__two-content {
- width: 100%;
- }
- .wrap__two-steps {
- display: flex;
- align-items: center;
- justify-content: space-between;
- width: 100%;
- }
- .wrap__two-step-item {
- display: flex;
- flex-direction: column;
- align-items: center;
- padding: 0 15px;
- padding: 0 1rem;
- color: #fff;
- text-align: center;
- }
- .wrap__two-step-item__en {
- flex: 3;
- }
- .wrap__two-step-item__en:nth-child(2) {
- flex: 4;
- }
- .wrap__two-step-icon {
- height: 58px;
- height: 3.625rem;
- width: auto;
- }
- .wrap__two-step-cont {
- display: flex;
- justify-content: center;
- align-items: center;
- margin: 32px 0 24px;
- margin: 2rem 0 1.5rem;
- }
- .wrap__two-step-index {
- width: 36px;
- width: 2.25rem;
- height: 36px;
- height: 2.25rem;
- display: flex;
- justify-content: center;
- align-items: center;
- margin-right: 16px;
- margin-right: 1rem;
- background: #ffffff;
- border-radius: 50%;
- font-family: Source Han Sans;
- font-size: 26px;
- font-size: 1.625rem;
- font-weight: bold;
- color: #000000;
- }
- .wrap__two-step-name {
- flex: 1;
- font-family: Source Han Sans;
- font-size: 24px;
- font-size: 1.5rem;
- font-weight: bold;
- color: #ffffff;
- }
- .wrap__two-step-desc {
- font-family: Source Han Sans;
- font-size: 18px;
- font-size: 1.125rem;
- font-weight: normal;
- color: rgba(255, 255, 255, 0.8);
- }
- .wrap__two-foot {
- width: 100%;
- display: flex;
- justify-content: center;
- }
- .wrap__two-btn {
- min-width: 164px;
- min-width: 10.25rem;
- height: 50px;
- height: 3.125rem;
- padding: 15px;
- padding: 0.9375rem;
- margin-top: 70px;
- margin-top: 4.375rem;
- border-radius: 10px;
- border-radius: 0.625rem;
- display: flex;
- justify-content: center;
- align-items: center;
- background: #ffffff;
- color: #000;
- font-family: Source Han Sans;
- font-size: 18px;
- font-size: 1.125rem;
- font-weight: 500;
- cursor: pointer;
- transition: all 0.3s;
- }
- }
- </style>
- <style lang="less" scoped>
- @import url(./css/styles@1200.less);
- @import url(./css/styles@1024.less);
- @import url(./css/styles@768.less);
- </style>
|