重构billingAddressButtonLabel
This commit is contained in:
parent
555a53e2d8
commit
799a0c8e59
@ -35,7 +35,7 @@
|
||||
</div>
|
||||
<div class="shrink-0">
|
||||
<Button
|
||||
:label="billingDetailsSummary ? $t('Edit') : $t('Add Billing Address')"
|
||||
:label="billingAddressButtonLabel"
|
||||
@click="
|
||||
() => {
|
||||
showMessage = false;
|
||||
@ -189,6 +189,10 @@ const paymentMode = computed(() => {
|
||||
return paymentModeOptions.find((o) => o.value === team.pg.payment_mode);
|
||||
});
|
||||
|
||||
const billingAddressButtonLabel = computed(() => {
|
||||
return billingDetailsSummary.value ? $t('Edit') : $t('Add Billing Address');
|
||||
});
|
||||
|
||||
// 修改onMounted钩子,添加自动设置支付方式为余额支付的逻辑
|
||||
onMounted(() => {
|
||||
// 如果当前没有设置支付方式,自动设置为余额支付
|
||||
|
||||
@ -37,6 +37,18 @@ Backups,备份,
|
||||
Based On,基于,
|
||||
Beta,Beta版,
|
||||
Billing,账单,
|
||||
Billing Summary,账单概览,
|
||||
Current Billing Amount,当前账单金额,
|
||||
Total Unpaid Amount,总未付金额,
|
||||
Pay,支付,
|
||||
Change,更改,
|
||||
Not set,未设置,
|
||||
Alternative Payment Options,其他支付方式,
|
||||
Change Payment Mode,更改支付方式,
|
||||
Select Payment Mode,选择支付方式,
|
||||
Your card will be charged for monthly subscription,您的卡片将用于每月订阅扣款,
|
||||
You will be charged from your account balance for monthly subscription,您的账户余额将用于每月订阅扣款,
|
||||
Your partner will be charged for monthly subscription,您的合作伙伴将为您支付每月订阅费用,
|
||||
Bucket Name,桶名,
|
||||
Cancel,取消,
|
||||
Cancel Update,取消更新,
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user