From 305320feed575c039f9468d479b248f48dccfbb4 Mon Sep 17 00:00:00 2001 From: bootx Date: Sun, 12 Jul 2026 11:55:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(h5):=20=E6=94=B6=E9=93=B6=E5=8F=B0=20mock?= =?UTF-8?q?=20=E6=95=B0=E6=8D=AE=E4=B8=8E=E6=A0=B7=E5=BC=8F=E7=B1=BB?= =?UTF-8?q?=E5=90=8D=E5=90=8C=E6=AD=A5=20union=E2=86=92union=5Fpay?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mobile/views/cashier/index.vue | 6 +++--- src/pc/views/cashier/Index.vue | 6 +++--- src/shared/locales/en-US/cashier.json | 2 +- src/shared/locales/zh-CN/cashier.json | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/mobile/views/cashier/index.vue b/src/mobile/views/cashier/index.vue index 9b7582c..82c8509 100644 --- a/src/mobile/views/cashier/index.vue +++ b/src/mobile/views/cashier/index.vue @@ -21,13 +21,13 @@ const order = computed(() => ({ // 演示支付方式(mock)— name 由 i18n 按 icon 渲染 interface PayMethod { id: string - icon: 'wechat' | 'alipay' | 'union' + icon: 'wechat' | 'alipay' | 'union_pay' recommend?: boolean } const payMethods: PayMethod[] = [ { id: '1', icon: 'wechat', recommend: true }, { id: '2', icon: 'alipay' }, - { id: '3', icon: 'union' }, + { id: '3', icon: 'union_pay' }, ] // 支付方式名称(跟随语言) @@ -302,7 +302,7 @@ onUnmounted(() => { background: #1677ff; } - &--union { + &--union_pay { background: #e60012; } } diff --git a/src/pc/views/cashier/Index.vue b/src/pc/views/cashier/Index.vue index 115b7a1..6f23e97 100644 --- a/src/pc/views/cashier/Index.vue +++ b/src/pc/views/cashier/Index.vue @@ -19,13 +19,13 @@ const order = computed(() => ({ // 演示支付方式(mock)— name 由 i18n 按 icon 渲染 interface PayMethod { id: string - icon: 'wechat' | 'alipay' | 'union' + icon: 'wechat' | 'alipay' | 'union_pay' recommend?: boolean } const payMethods: PayMethod[] = [ { id: '1', icon: 'wechat', recommend: true }, { id: '2', icon: 'alipay' }, - { id: '3', icon: 'union' }, + { id: '3', icon: 'union_pay' }, ] // 支付方式名称(跟随语言) @@ -339,7 +339,7 @@ onUnmounted(() => { background: #1677ff; } -.pc-cashier__method-icon--union { +.pc-cashier__method-icon--union_pay { background: #e60012; } diff --git a/src/shared/locales/en-US/cashier.json b/src/shared/locales/en-US/cashier.json index e4f77dd..593569b 100644 --- a/src/shared/locales/en-US/cashier.json +++ b/src/shared/locales/en-US/cashier.json @@ -15,6 +15,6 @@ "method": { "wechat": "WeChat Pay", "alipay": "Alipay", - "union": "UnionPay" + "union_pay": "UnionPay" } } diff --git a/src/shared/locales/zh-CN/cashier.json b/src/shared/locales/zh-CN/cashier.json index 3e5ed81..18a5e98 100644 --- a/src/shared/locales/zh-CN/cashier.json +++ b/src/shared/locales/zh-CN/cashier.json @@ -15,6 +15,6 @@ "method": { "wechat": "微信支付", "alipay": "支付宝", - "union": "银联支付" + "union_pay": "银联支付" } }