From b0066f222c58222097b40073dd1a460234980a69 Mon Sep 17 00:00:00 2001 From: zhangrenyuan <18990852002@163.com> Date: Mon, 19 Jan 2026 14:51:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B6=88=E8=B4=B9=E4=BF=A1=E6=81=AF):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BA=A2=E5=8C=85=E7=9B=B8=E5=85=B3=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E5=9B=BD=E9=99=85=E5=8C=96=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/locales/lang/en.js | 5 +++++ src/components/locales/lang/zh-CN.js | 7 ++++++- src/views/consume/gold/addCoinConsume.vue | 12 ++++++------ 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/src/components/locales/lang/en.js b/src/components/locales/lang/en.js index 55cf245..2f4daba 100644 --- a/src/components/locales/lang/en.js +++ b/src/components/locales/lang/en.js @@ -616,6 +616,11 @@ export default { receiveAreaPlaceholder: "Select region", price: "Price", goodsNamePlaceholder: "Select product", + 使用红包: "Use Red Envelope", + 不使用红包: "Do Not Use Red Envelope", + 选择红包: "Select Red Envelope", + 请选择红包: "Please Select Red Envelope", + 已抵扣: "Already Deducted", payModel: "Collection", refundType: "Refund Type", refundTypePlaceholder: "Select type", diff --git a/src/components/locales/lang/zh-CN.js b/src/components/locales/lang/zh-CN.js index c6ecbae..1dc8831 100644 --- a/src/components/locales/lang/zh-CN.js +++ b/src/components/locales/lang/zh-CN.js @@ -616,6 +616,11 @@ export default { receiveAreaPlaceholder: "请选择到账地区", price: "原价", goodsNamePlaceholder: "请选择商品", + 使用红包: "使用红包", + 不使用红包: "不使用红包", + 选择红包: "选择红包", + 请选择红包: "请选择红包", + 已抵扣: "已抵扣", payModel: "收款方式", refundType: "退款类型", refundTypePlaceholder: "请选择退款类型", @@ -686,7 +691,7 @@ export default { consumptionTimes: "消费次数", onlyStatisticsDataAfter20250101: "仅统计2025-01-01后的数据", store: "所属门店", - // maxReductionAmount: "红包最大抵扣金额", + maxReductionAmount: "红包最大抵扣金额", //金豆 currentPayableBean: "当前付费金豆", currentFreeBean: "当前免费金豆", diff --git a/src/views/consume/gold/addCoinConsume.vue b/src/views/consume/gold/addCoinConsume.vue index 34a19bc..5fab6a0 100644 --- a/src/views/consume/gold/addCoinConsume.vue +++ b/src/views/consume/gold/addCoinConsume.vue @@ -180,7 +180,7 @@ function validateInput() { // 校验消耗金币数是否超过可用金币数 if (user.value.jwcode && sumGold > totalAvailableGold) { if (addConsume.value.redMoney === 1) { - ElMessage.error('红包抵扣额不足'); + ElMessage.error(t('elmessage.limitRedAmount')); // 如果红包额不足,清空已选红包 selectedReds.value = [] } else { @@ -744,15 +744,15 @@ onMounted(async function () { --> - 使用红包 - 不使用红包 + {{ t('common_add.使用红包') }} + {{ t('common_add.不使用红包') }} - + - 已抵扣: {{ totalRedAmount }} + {{ t('common_add.已抵扣') }}: {{ totalRedAmount }}