|
@@ -14,7 +14,6 @@ import { onPageScroll, onReachBottom } from '@dcloudio/uni-app'
|
|
|
import useZPaging from 'z-paging/components/z-paging/js/hooks/useZPaging.js'
|
|
|
import { preOrder as _preOrder } from '@/api/order'
|
|
|
import { getDetail, pinkList } from '@/api/product'
|
|
|
-import { t } from '@/locale'
|
|
|
import { formatNumber } from '@/utils/index'
|
|
|
import { getPageParams, goBack, toPage } from '@/utils/page'
|
|
|
import CustomTooltip from './components/CustomTooltip.vue'
|
|
@@ -314,7 +313,7 @@ onShow(() => {
|
|
|
<view>
|
|
|
<view class="mb-12rpx flex items-baseline">
|
|
|
<text class="text-28rpx">
|
|
|
- {{ t('productDetail.price') }}
|
|
|
+ {{ $t('productDetail.price') }}
|
|
|
</text>
|
|
|
<view class="ml-8rpx rounded-t-18rpx rounded-br-18rpx bg-#202221 px-12rpx text-24rpx">
|
|
|
20GB
|
|
@@ -332,7 +331,7 @@ onShow(() => {
|
|
|
</view>
|
|
|
</view>
|
|
|
<text class="text-28rpx">
|
|
|
- {{ t('productDetail.sold', [detail.sales]) }}
|
|
|
+ {{ $t('productDetail.sold', [detail.sales]) }}
|
|
|
</text>
|
|
|
</view>
|
|
|
<view class="bg-white px-24rpx pb-24rpx pt-20rpx text-32rpx">
|
|
@@ -342,7 +341,7 @@ onShow(() => {
|
|
|
<view class="flex items-center justify-between" @click="openSku('open')">
|
|
|
<view>
|
|
|
<text class="mr-20rpx">
|
|
|
- {{ t('productDetail.selected') }}
|
|
|
+ {{ $t('productDetail.selected') }}
|
|
|
</text>
|
|
|
<text class="text-#757575">
|
|
|
{{ selectedSpecsText }}
|
|
@@ -358,12 +357,12 @@ onShow(() => {
|
|
|
class="flex items-center before:h-45rpx before:w-8rpx before:rounded-4rpx before:bg-#FF3778 before:content-empty"
|
|
|
>
|
|
|
<text class="ml-10rpx text-32rpx">
|
|
|
- {{ t('productDetail.groupRules') }}
|
|
|
+ {{ $t('productDetail.groupRules') }}
|
|
|
</text>
|
|
|
</view>
|
|
|
<view class="flex items-center">
|
|
|
<text class="mr-8rpx text-24rpx text-#3A444C">
|
|
|
- {{ t('productDetail.viewRules') }}
|
|
|
+ {{ $t('productDetail.viewRules') }}
|
|
|
</text>
|
|
|
<wd-icon name="arrow-right" color="#7D7D7D" size="24rpx" />
|
|
|
</view>
|
|
@@ -375,7 +374,7 @@ onShow(() => {
|
|
|
class="mb-20rpx flex items-center before:h-45rpx before:w-8rpx before:rounded-4rpx before:bg-#FF3778 before:content-empty"
|
|
|
>
|
|
|
<text class="ml-10rpx text-32rpx">
|
|
|
- {{ t('productDetail.ongoingGroup') }}
|
|
|
+ {{ $t('productDetail.ongoingGroup') }}
|
|
|
</text>
|
|
|
</view>
|
|
|
<view class="flex flex-col gap-24rpx">
|
|
@@ -396,16 +395,16 @@ onShow(() => {
|
|
|
</view>
|
|
|
<view>
|
|
|
<view class="text-28rpx">
|
|
|
- {{ t('productDetail.need') }}
|
|
|
+ {{ $t('productDetail.need') }}
|
|
|
<text class="text-[var(--wot-color-theme)]">
|
|
|
{{ item.remainNum }}
|
|
|
</text>
|
|
|
- {{ t('productDetail.more') }}
|
|
|
+ {{ $t('productDetail.more') }}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<wd-button size="small" @click="openSku('join', item.id, item.orderId)">
|
|
|
- {{ t('productDetail.joinGroup') }}
|
|
|
+ {{ $t('productDetail.joinGroup') }}
|
|
|
</wd-button>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -415,7 +414,7 @@ onShow(() => {
|
|
|
class="mb-20rpx flex items-center before:h-45rpx before:w-8rpx before:rounded-4rpx before:bg-#FF3778 before:content-empty"
|
|
|
>
|
|
|
<text class="ml-10rpx text-32rpx">
|
|
|
- {{ t('productDetail.details') }}
|
|
|
+ {{ $t('productDetail.details') }}
|
|
|
</text>
|
|
|
</view>
|
|
|
<view v-for="i in detail.flatPattern.split(',')" :key="i">
|
|
@@ -432,20 +431,20 @@ onShow(() => {
|
|
|
<view class="flex flex-col items-center justify-center">
|
|
|
<wd-icon color="#BDBDBD" name="home" size="40rpx" />
|
|
|
<text class="text-18rpx text-#757575">
|
|
|
- {{ t('productDetail.home') }}
|
|
|
+ {{ $t('productDetail.home') }}
|
|
|
</text>
|
|
|
</view>
|
|
|
<view class="flex flex-col items-center justify-center">
|
|
|
<wd-icon color="#BDBDBD" name="heart-filled" size="40rpx" />
|
|
|
<text class="text-18rpx text-#757575">
|
|
|
- {{ t('productDetail.favorite') }}
|
|
|
+ {{ $t('productDetail.favorite') }}
|
|
|
</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="flex flex-1 items-center justify-end text-32rpx">
|
|
|
<view class="relative">
|
|
|
<view class="rounded-l-full bg-#2F2D31 px-34rpx py-18rpx text-white" @click="openSku('open')">
|
|
|
- {{ t('productDetail.openGroup') }}
|
|
|
+ {{ $t('productDetail.openGroup') }}
|
|
|
</view>
|
|
|
<CustomTooltip
|
|
|
v-model:visible="showTip"
|
|
@@ -454,7 +453,7 @@ onShow(() => {
|
|
|
/>
|
|
|
</view>
|
|
|
<view class="rounded-r-full bg-[var(--wot-color-theme)] px-34rpx py-18rpx text-white" @click="openSku('join')">
|
|
|
- {{ t('productDetail.joinGroup') }}
|
|
|
+ {{ $t('productDetail.joinGroup') }}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -514,12 +513,12 @@ onShow(() => {
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="mb-100rpx flex items-center justify-between text-32rpx">
|
|
|
- <view>{{ t('productDetail.quantity') }}</view>
|
|
|
+ <view>{{ $t('productDetail.quantity') }}</view>
|
|
|
<wd-input-number v-model="formData.productNum" />
|
|
|
</view>
|
|
|
<view class="py-24rpx">
|
|
|
<wd-button block :style="{ backgroundColor: groupType === 'open' ? '#2F2D31' : 'var(--wot-color-theme)' }" @click="preOrder">
|
|
|
- {{ groupType === 'open' ? t('productDetail.openGroup') : t('productDetail.joinGroup') }}
|
|
|
+ {{ groupType === 'open' ? $t('productDetail.openGroup') : $t('productDetail.joinGroup') }}
|
|
|
</wd-button>
|
|
|
</view>
|
|
|
</view>
|