|
@@ -222,10 +222,10 @@ function handleDialogClose() {
|
|
function showRechargeDialog() {
|
|
function showRechargeDialog() {
|
|
dialogType.value = 'recharge'
|
|
dialogType.value = 'recharge'
|
|
Object.assign(dialogConfig.value, DialogUtils.info(
|
|
Object.assign(dialogConfig.value, DialogUtils.info(
|
|
- `Your wallet balance is insufficient. \n Please Recharge!`,
|
|
|
|
|
|
+ t('orderDetail.rechargeDialog.title'),
|
|
{
|
|
{
|
|
showCancel: false,
|
|
showCancel: false,
|
|
- confirmText: 'Recharge Now',
|
|
|
|
|
|
+ confirmText: t('orderDetail.rechargeDialog.confirm'),
|
|
cancelText: '',
|
|
cancelText: '',
|
|
confirmPlain: true,
|
|
confirmPlain: true,
|
|
},
|
|
},
|
|
@@ -235,11 +235,11 @@ function showRechargeDialog() {
|
|
function showPayOrderDialog() {
|
|
function showPayOrderDialog() {
|
|
dialogType.value = 'pay'
|
|
dialogType.value = 'pay'
|
|
Object.assign(dialogConfig.value, DialogUtils.info(
|
|
Object.assign(dialogConfig.value, DialogUtils.info(
|
|
- 'Payment',
|
|
|
|
|
|
+ t('orderDetail.payDialog.title'),
|
|
{
|
|
{
|
|
showCancel: false,
|
|
showCancel: false,
|
|
cancelText: '',
|
|
cancelText: '',
|
|
- confirmText: 'Pay Now',
|
|
|
|
|
|
+ confirmText: t('orderDetail.payDialog.confirm'),
|
|
confirmPlain: false,
|
|
confirmPlain: false,
|
|
},
|
|
},
|
|
))
|
|
))
|
|
@@ -266,17 +266,17 @@ function handleClick() {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const timeMap = {
|
|
const timeMap = {
|
|
- create_order: 'Placed On',
|
|
|
|
- pay_success: 'Paid On',
|
|
|
|
- delivery: 'Shipped On',
|
|
|
|
- receive: 'Completed On',
|
|
|
|
|
|
+ create_order: t('orderDetail.time.placed'),
|
|
|
|
+ pay_success: t('orderDetail.time.paid'),
|
|
|
|
+ delivery: t('orderDetail.time.shipped'),
|
|
|
|
+ receive: t('orderDetail.time.completed'),
|
|
}
|
|
}
|
|
|
|
|
|
function copyDelivery() {
|
|
function copyDelivery() {
|
|
uni.setClipboardData({
|
|
uni.setClipboardData({
|
|
data: `${detail.value.deliveryName}: ${detail.value.deliveryId}`,
|
|
data: `${detail.value.deliveryName}: ${detail.value.deliveryId}`,
|
|
success: () => {
|
|
success: () => {
|
|
- toast.success('Copied to clipboard')
|
|
|
|
|
|
+ toast.success(t('orderDetail.copy.success'))
|
|
},
|
|
},
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -459,7 +459,7 @@ onUnmounted(() => {
|
|
<template v-else>
|
|
<template v-else>
|
|
<view v-if="detail.deliveryId" class="mb-18rpx flex justify-between border-b-1 border-b-#e8e8e8 border-b-solid pb-18rpx text-24rpx">
|
|
<view v-if="detail.deliveryId" class="mb-18rpx flex justify-between border-b-1 border-b-#e8e8e8 border-b-solid pb-18rpx text-24rpx">
|
|
<!-- 物流信息 -->
|
|
<!-- 物流信息 -->
|
|
- <view>Delivery Partner</view>
|
|
|
|
|
|
+ <view>{{ $t('orderDetail.deliveryPartner') }}</view>
|
|
<view class="flex items-center gap-8rpx" @click="copyDelivery">
|
|
<view class="flex items-center gap-8rpx" @click="copyDelivery">
|
|
<text>{{ detail.deliveryName }}: {{ detail.deliveryId || '-' }}</text>
|
|
<text>{{ detail.deliveryName }}: {{ detail.deliveryId || '-' }}</text>
|
|
<wd-icon name="file-copy" size="28rpx" />
|
|
<wd-icon name="file-copy" size="28rpx" />
|
|
@@ -520,7 +520,7 @@ onUnmounted(() => {
|
|
</view>
|
|
</view>
|
|
<view class="flex flex-col gap-16rpx text-#3A444C">
|
|
<view class="flex flex-col gap-16rpx text-#3A444C">
|
|
<view class="flex items-center justify-between text-24rpx">
|
|
<view class="flex items-center justify-between text-24rpx">
|
|
- <text>SubTotal</text>
|
|
|
|
|
|
+ <text>{{ $t('orderDetail.subTotal') }}</text>
|
|
<text>৳{{ formatNumber(detail.totalPrice) }}</text>
|
|
<text>৳{{ formatNumber(detail.totalPrice) }}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -531,7 +531,7 @@ onUnmounted(() => {
|
|
</view>
|
|
</view>
|
|
<view class="flex flex-col gap-16rpx text-#3A444C">
|
|
<view class="flex flex-col gap-16rpx text-#3A444C">
|
|
<view class="flex items-center justify-between text-24rpx">
|
|
<view class="flex items-center justify-between text-24rpx">
|
|
- <text>BandhuBuy Wallet</text>
|
|
|
|
|
|
+ <text>{{ $t('orderDetail.bandhuBuyWallet') }}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -575,7 +575,7 @@ onUnmounted(() => {
|
|
>
|
|
>
|
|
<view v-if="dialogType === 'pay'">
|
|
<view v-if="dialogType === 'pay'">
|
|
<view class="font-blod relative text-32rpx">
|
|
<view class="font-blod relative text-32rpx">
|
|
- <text>BandhuBuy Wallet Pay</text>
|
|
|
|
|
|
+ <text>{{ $t('orderDetail.bandhuBuyWallet') }} {{ $t('orderDetail.paymentMethod') }}</text>
|
|
<wd-icon name="close-normal" custom-class="absolute right-0 top-1/2 -translate-y-1/2" size="40rpx" @click="handleDialogClose" />
|
|
<wd-icon name="close-normal" custom-class="absolute right-0 top-1/2 -translate-y-1/2" size="40rpx" @click="handleDialogClose" />
|
|
</view>
|
|
</view>
|
|
<view class="py-60rpx">
|
|
<view class="py-60rpx">
|
|
@@ -588,15 +588,15 @@ onUnmounted(() => {
|
|
</view>
|
|
</view>
|
|
<view class="pb-28rpx text-left">
|
|
<view class="pb-28rpx text-left">
|
|
<view class="text-24rpx font-bold">
|
|
<view class="text-24rpx font-bold">
|
|
- Payment Method
|
|
|
|
|
|
+ {{ $t('orderDetail.paymentMethod') }}
|
|
</view>
|
|
</view>
|
|
<view class="my-14rpx border-b-1px border-b-#EBEBEB border-b-solid" />
|
|
<view class="my-14rpx border-b-1px border-b-#EBEBEB border-b-solid" />
|
|
<view class="flex items-center justify-between text-24rpx">
|
|
<view class="flex items-center justify-between text-24rpx">
|
|
<view class="flex items-center">
|
|
<view class="flex items-center">
|
|
<view class="text-24rpx">
|
|
<view class="text-24rpx">
|
|
- <text>BandhuBuy Wallet (</text>
|
|
|
|
|
|
+ <text>{{ $t('orderDetail.bandhuBuyWallet') }} (</text>
|
|
<text class="text-[var(--wot-color-theme)]">
|
|
<text class="text-[var(--wot-color-theme)]">
|
|
- Balance: ৳{{ formatNumber(balance) }}
|
|
|
|
|
|
+ {{ $t('orderDetail.walletBalanceText') }}: ৳{{ formatNumber(balance) }}
|
|
</text>
|
|
</text>
|
|
<text>)</text>
|
|
<text>)</text>
|
|
</view>
|
|
</view>
|