123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- <template>
- <section class="wrap__five">
- <div class="wrap__five-head">
- <div class="wrap__five-title">
- <span>{{ $t('system["深受全球购物者的喜爱"]') }}</span>
- </div>
- </div>
- <div class="wrap__five-box">
- <div class="swiper mySwiper">
- <div class="swiper-wrapper">
- <div v-for="(item, i) in dataList" :key="i" class="swiper-slide swiper-slide__card">
- <div class="swiper-slide__card-head">
- <div class="swiper-slide__card-content">{{ $t(`paragraph["${item.content}"]`) }}</div>
- </div>
- <div class="swiper-slide__card-body">
- <div class="swiper-slide__card-avatar">
- <img src="@/public/images/avatar_1.jpg" alt="" v-if="i == 0" />
- <img src="@/public/images/avatar_3.jpg" alt="" v-if="i == 1" />
- <img src="@/public/images/avatar_4.jpg" alt="" v-if="i == 2" />
- <img src="../../../../public/images/logo_icon.png" />
- <!-- <img src="../../../../public/images/icons/xinxilan_logo_icon.png" v-if="i == 0" />
- <img src="../../../../public/images/icons/aodaliya_logo_icon.png" v-if="i == 1" />
- <img src="../../../../public/images/icons/yidali_logo_icon.png" v-if="i == 2" /> -->
- </div>
- <div>
- <div class="swiper-slide__card-name">{{ $t(`system["${item.name}"]`) }}</div>
- <div class="swiper-slide__card-desc">{{ $t(`system["${item.address}"]`) }}</div>
- </div>
- </div>
- </div>
- </div>
- <div class="swiper-button-prev"></div>
- <div class="swiper-button-next"></div>
- </div>
- </div>
- </section>
- </template>
- <script setup lang="ts">
- import { onMounted } from 'vue'
- import Swiper from 'swiper'
- onMounted(() => {
- new Swiper('.mySwiper', {
- speed: 600,
- // loop: true,
- slidesPerView: 'auto',
- // centeredSlides: true,
- navigation: {
- nextEl: '.swiper-button-next',
- prevEl: '.swiper-button-prev',
- },
- })
- })
- const dataList = [
- {
- name: 'Lawrence',
- address: '新西兰',
- avatar: ['../../../../public/images/icons/xinxilan_logo_icon.png'],
- content: '如果你想买其他东西,没有比 Vava buy 更好的了',
- locale: '',
- },
- {
- name: 'John',
- address: '澳大利亚',
- avatar: ['../../../../public/images/icons/aodaliya_logo_icon.png'],
- content: '太棒了!一切都很顺利,接收订单并快速发货的速度让人印象深刻',
- },
- {
- name: 'Anna',
- address: '意大利',
- avatar: ['../../../../public/images/icons/yidali_logo_icon.png'],
- content: '非常易于使用,包装很精美,会收获很多惊喜',
- },
- ]
- </script>
- <style lang="less" scoped>
- .wrap__five {
- display: flex;
- flex-direction: column;
- align-items: center;
- width: 100%;
- height: auto;
- padding: 50px 15px;
- padding: 3.125rem 0.9375rem;
- .wrap__five-head {
- margin-bottom: 40px;
- margin-bottom: 2.5rem;
- text-align: center;
- }
- .wrap__five-title {
- font-family: Source Han Sans;
- font-size: 30px;
- font-size: 1.875rem;
- font-weight: bold;
- color: #000000;
- }
- .wrap__five-box {
- display: inline-block;
- width: auto;
- max-width: 1400px;
- max-width: 87.5rem;
- }
- .mySwiper {
- overflow: hidden;
- width: 100%;
- position: relative;
- padding: 0 60px;
- padding: 0 3.75rem;
- .swiper-wrapper {
- }
- .swiper-button-next,
- .swiper-button-prev {
- color: #adb5bd;
- opacity: 1;
- }
- .swiper-button-next:after,
- .swiper-button-prev:after {
- font-size: 38px;
- font-size: 2.375rem;
- font-weight: 300;
- }
- .swiper-slide {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- width: 275px;
- width: 17.1875rem;
- height: 275px;
- height: 17.1875rem;
- padding: 22px;
- padding: 1.375rem;
- margin-left: 28px;
- margin-left: 1.75rem;
- border-radius: 12px;
- border-radius: 0.75rem;
- background: #f5f5f5;
- border: 1px solid #cccccc;
- box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.1);
- }
- .swiper-slide:first-child {
- margin-left: 0;
- }
- .swiper-slide__card-content {
- text-align: center;
- font-family: Source Han Sans;
- font-size: 15px;
- font-size: 0.9375rem;
- color: #4b5563;
- }
- .swiper-slide__card-body {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .swiper-slide__card-avatar {
- position: relative;
- width: 100px;
- width: 6.25rem;
- }
- .swiper-slide__card-avatar img {
- width: 56px;
- width: 3.5rem;
- height: 56px;
- height: 3.5rem;
- border-radius: 50%;
- position: relative;
- z-index: 1;
- }
- .swiper-slide__card-avatar img:nth-child(1) {
- box-sizing: content-box;
- border: 3px solid #fff;
- }
- .swiper-slide__card-avatar img:nth-child(2) {
- position: absolute;
- left: 30px;
- left: 1.875rem;
- top: 50%;
- transform: translateY(-50%);
- z-index: 0;
- }
- .swiper-slide__card-name {
- font-family: Source Han Sans;
- font-size: 14px;
- font-size: 0.875rem;
- color: #3d3d3d;
- }
- .swiper-slide__card-desc {
- font-family: Source Han Sans;
- font-size: 12px;
- font-size: 0.75rem;
- color: #4b5563;
- }
- }
- }
- </style>
- <style lang="less" scoped>
- @import url(./css/styles@1200.less);
- @import url(./css/styles@1024.less);
- @import url(./css/styles@768.less);
- @import url(./css/styles@412.less);
- </style>
|