fix:修复bug
This commit is contained in:
@@ -98,7 +98,7 @@
|
||||
import { computed } from 'vue';
|
||||
import { useI18n } from '@/utils/i18n.js'
|
||||
|
||||
const { t: $t } = useI18n()
|
||||
const { t } = useI18n()
|
||||
|
||||
const props = defineProps({
|
||||
order: { type: Object, required: true },
|
||||
@@ -144,7 +144,7 @@
|
||||
const isFinished = computed(() => normalizedStatus.value === 'used_done');
|
||||
const isCancelled = computed(() => normalizedStatus.value === 'order_cancelled');
|
||||
|
||||
const titleText = computed(() => $t('order.rentFan'));
|
||||
const titleText = computed(() => t('order.rentFan'));
|
||||
|
||||
// 显示金额(优先后端给定字段)
|
||||
const displayAmount = computed(() => props.order.amount || props.order.payAmount || props.order.actualDeviceAmount || props.order.currentFee || '0.00');
|
||||
@@ -158,8 +158,8 @@
|
||||
const minutes = Math.floor(diffMs / 60000);
|
||||
const hours = Math.floor(minutes / 60);
|
||||
const mins = minutes % 60;
|
||||
if (hours > 0) return `${hours}${$t('time.hour')}${mins}${$t('time.minute')}`;
|
||||
return `${mins}${$t('time.minute')}`;
|
||||
if (hours > 0) return `${hours}${t('time.hour')}${mins}${t('time.minute')}`;
|
||||
return `${mins}${t('time.minute')}`;
|
||||
});
|
||||
|
||||
function parseDate(str) {
|
||||
|
||||
Reference in New Issue
Block a user