From 4747489d8440d2c2629a0ee14c86a7cc28644c68 Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Thu, 4 Jun 2026 15:37:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8F=91=E7=A5=A8=E6=9C=AA=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lang/en.ts | 5 +++-- src/lang/zh-cn.ts | 5 +++-- src/views/wardrobe/Orders.vue | 4 ++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/lang/en.ts b/src/lang/en.ts index 8ab8029..6575f00 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -49,7 +49,7 @@ export default { enterNewPassword: 'Enter a new password for
{email}', passwordsDoNotMatch: 'Passwords do not match', logOffTip: 'Are you sure to log off?', - pleaseLogTip: 'Please log in and try again.', + pleaseLogTip: 'Please log in and try again.' }, RegisterSuccess: { title1: 'Welcome to Stylish Parade!', @@ -218,7 +218,8 @@ export default { invoice: 'Invoice', completePayment: 'Complete Payment', buyAgain: 'Buy Again' - } + }, + invoiceMessage: 'Invoice is being prepared. Please refresh later.' }, empty: { title: 'Nothing in Wardrobe yet', diff --git a/src/lang/zh-cn.ts b/src/lang/zh-cn.ts index f0f6230..5ff6a5d 100644 --- a/src/lang/zh-cn.ts +++ b/src/lang/zh-cn.ts @@ -47,7 +47,7 @@ export default { enterNewPassword: '请输入新密码
{email}', passwordsDoNotMatch: '两次输入密码不一致', logOffTip: '确定退出登录吗?', - pleaseLogTip: '请重新登录并重试。', + pleaseLogTip: '请重新登录并重试。' }, RegisterSuccess: { title1: '欢迎来到 Stylish Parade!', @@ -213,7 +213,8 @@ export default { invoice: '发票', completePayment: '完成付款', buyAgain: '再次购买' - } + }, + invoiceMessage: '发票生成中,请稍后刷新页面查看。' }, empty: { title: '衣橱暂无内容', diff --git a/src/views/wardrobe/Orders.vue b/src/views/wardrobe/Orders.vue index ef94297..9814581 100644 --- a/src/views/wardrobe/Orders.vue +++ b/src/views/wardrobe/Orders.vue @@ -283,6 +283,10 @@ const handleClickAction = (order) => { if (order.status === 1) { // 已支付,查看发票 + if (!order.hostedInvoiceUrl) { + ElMessage.primary(t('Wardrobe.orders.invoiceMessage')) + return + } window.open(order.hostedInvoiceUrl, '_blank') return }