|
|
@@ -25,6 +25,21 @@ onLoad((options) => {
|
|
|
getPrice()
|
|
|
})
|
|
|
|
|
|
+const trustBanners = ref([
|
|
|
+ {
|
|
|
+ key: 'rewards',
|
|
|
+ icon: '/static/icons/rewards.png',
|
|
|
+ textKey: 'checkout.trust.rewards',
|
|
|
+ variant: 'red',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: 'refund',
|
|
|
+ icon: '/static/icons/refund.png',
|
|
|
+ textKey: 'checkout.trust.refund',
|
|
|
+ variant: 'green',
|
|
|
+ },
|
|
|
+])
|
|
|
+
|
|
|
// 商品详情
|
|
|
const orderDetail = ref<any>({})
|
|
|
|
|
|
@@ -79,6 +94,26 @@ async function handlePlaceOrder() {
|
|
|
<template>
|
|
|
<z-paging>
|
|
|
<view class="pt-20rpx">
|
|
|
+ <view class="trust-banner">
|
|
|
+ <swiper
|
|
|
+ class="trust-banner__swiper"
|
|
|
+ :vertical="true"
|
|
|
+ :autoplay="true"
|
|
|
+ :interval="2500"
|
|
|
+ :duration="350"
|
|
|
+ :circular="true"
|
|
|
+ :disable-touch="true"
|
|
|
+ >
|
|
|
+ <swiper-item v-for="item in trustBanners" :key="item.key">
|
|
|
+ <view class="trust-banner__item" :class="`trust-banner__item--${item.variant}`">
|
|
|
+ <image :src="item.icon" class="trust-banner__icon" mode="heightFix" />
|
|
|
+ <text class="trust-banner__text">
|
|
|
+ {{ $t(item.textKey) }}
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ </swiper-item>
|
|
|
+ </swiper>
|
|
|
+ </view>
|
|
|
<view class="mb-20rpx flex items-center gap-24rpx bg-white p-24rpx">
|
|
|
<image
|
|
|
:src="orderDetail.image"
|
|
|
@@ -164,4 +199,42 @@ async function handlePlaceOrder() {
|
|
|
.space-y-24rpx > * + * {
|
|
|
margin-top: 24rpx;
|
|
|
}
|
|
|
+
|
|
|
+.trust-banner {
|
|
|
+ margin: 0 0 20rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.trust-banner__swiper {
|
|
|
+ height: 72rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.trust-banner__item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ height: 72rpx;
|
|
|
+ padding: 0 20rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
+ font-weight: 600;
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+
|
|
|
+.trust-banner__item--red {
|
|
|
+ background: #ffeae8;
|
|
|
+ color: var(--wot-color-theme);
|
|
|
+}
|
|
|
+
|
|
|
+.trust-banner__item--green {
|
|
|
+ background: #ebfbee;
|
|
|
+ color: #25a755;
|
|
|
+}
|
|
|
+
|
|
|
+.trust-banner__icon {
|
|
|
+ height: 32rpx;
|
|
|
+ margin-right: 8rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.trust-banner__text {
|
|
|
+ line-height: 1;
|
|
|
+}
|
|
|
</style>
|