123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285 |
- <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(`comments["${item.content}"]`) }}</div>
- </div>
- <div class="swiper-slide__card-body">
- <div class="swiper-slide__card-avatar">
- <img src="@/public/images/avatar/avatar_1.jpg" alt="" v-if="i == 0" />
- <img src="@/public/images/avatar/avatar_2.jpg" alt="" v-if="i == 1" />
- <img src="@/public/images/avatar/avatar_3.jpg" alt="" v-if="i == 2" />
- <img src="@/public/images/avatar/avatar_4.jpg" alt="" v-if="i == 3" />
- <img src="@/public/images/avatar/avatar_5.jpg" alt="" v-if="i == 4" />
- <img src="@/public/images/avatar/avatar_6.jpg" alt="" v-if="i == 5" />
- <img src="@/public/images/avatar/avatar_7.jpg" alt="" v-if="i == 6" />
- <img src="@/public/images/avatar/avatar_8.jpg" alt="" v-if="i == 7" />
- <img src="@/public/images/avatar/avatar_9.jpg" alt="" v-if="i == 8" />
- <img src="@/public/images/avatar/avatar_10.jpg" alt="" v-if="i == 9" />
- <img src="@/public/images/avatar/avatar_11.jpg" alt="" v-if="i == 10" />
- <img src="../../../../public/images/logo_icon.png" />
- </div>
- <div>
- <div class="swiper-slide__card-name">{{ $t(`comments["${item.name}"]`) }}</div>
- <div class="swiper-slide__card-desc">{{ $t(`comments["${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,
- autoplay: {
- delay: 1500,
- disableOnInteraction: false,
- stopOnLastSlide: false,
- },
- navigation: {
- nextEl: '.swiper-button-next',
- prevEl: '.swiper-button-prev',
- },
- })
- })
- const dataList = [
- {
- name: '马库斯',
- address: '奥地利',
- avatar: ['../../../../public/images/icons/yidali_logo_icon.png'],
- content: '商品易于使用,质量很棒。物流给力,包装精美,客服态度热情!',
- },
- {
- name: '劳伦斯',
- address: '新西兰',
- avatar: ['../../../../public/images/icons/xinxilan_logo_icon.png'],
- content: '如果你想买其他东西,没有比 VAVABUY 更好的了',
- locale: '',
- },
- {
- name: '皮埃尔',
- address: '法国',
- avatar: ['../../../../public/images/icons/yidali_logo_icon.png'],
- content: '飞快送达,包装妥帖,商品完美。会再来光顾的!',
- },
- {
- name: '约翰',
- address: '澳大利亚',
- avatar: ['../../../../public/images/icons/aodaliya_logo_icon.png'],
- content: '太棒了!一切都很顺利,接收订单并快速发货的速度让人印象深刻',
- },
- {
- name: '安娜',
- address: '意大利',
- avatar: ['../../../../public/images/icons/yidali_logo_icon.png'],
- content: '非常易于使用,包装很精美,会收获很多惊喜',
- },
- {
- name: '杰森',
- address: '英国',
- avatar: ['../../../../public/images/icons/yidali_logo_icon.png'],
- content: '国际物流送货上门太赞了!商品没瑕疵,包装抗摔,全程追踪清晰~',
- },
- {
- name: '伊莎贝拉',
- address: '西班牙',
- avatar: ['../../../../public/images/icons/yidali_logo_icon.png'],
- content: '这商品太好用了,操作简单。国际物流全程顺畅,包装精美又牢固!',
- },
- {
- name: '杰克',
- address: '美国',
- avatar: ['../../../../public/images/icons/yidali_logo_icon.png'],
- content: '到货比想的快,包装抗造,东西超棒。',
- },
- {
- name: '埃里克',
- address: '瑞典',
- avatar: ['../../../../public/images/icons/yidali_logo_icon.png'],
- content: '商品易于使用,完全满足需求。物流比预期快,客服响应迅速,体验非常好!',
- },
- {
- name: '亚历山德罗',
- address: '意大利',
- avatar: ['../../../../public/images/icons/yidali_logo_icon.png'],
- content: '清关过程很顺利,物流速度很快。包装处理得很棒,连说明书都套了保护袋!',
- },
- {
- name: '卢卡',
- 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: 1024px;
- max-width: 64rem;
- }
- .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>
|