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": "银联支付" } }