fix: formate code and test money
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m8s

This commit is contained in:
luo
2026-08-18 10:54:01 +08:00
parent 857d565f33
commit 93f67967c5
32 changed files with 183 additions and 112 deletions

View File

@@ -385,9 +385,11 @@
const qrContent = ref('')
const onlineRequestId = ref<string | null>(null)
const paymentStatusTimer = ref<ReturnType<typeof setInterval> | null>(null)
const ONLINE_MIN_RECHARGE_AMOUNT_FEN = 10
const ONLINE_MAX_RECHARGE_AMOUNT_FEN = 100000000
const paymentMethodsBounds = reactive({
min_amount: 10000,
max_amount: 100000000
min_amount: ONLINE_MIN_RECHARGE_AMOUNT_FEN,
max_amount: ONLINE_MAX_RECHARGE_AMOUNT_FEN
})
const paymentVoucherFileKeys = ref<string[]>([])
@@ -1013,8 +1015,9 @@
const res = await AgentRechargeService.getPaymentMethods()
if (res.code === 0) {
onlinePaymentMethods.value = Array.isArray(res.data?.methods) ? res.data.methods : []
paymentMethodsBounds.min_amount = Number(res.data?.min_amount) || 10000
paymentMethodsBounds.max_amount = Number(res.data?.max_amount) || 100000000
paymentMethodsBounds.min_amount = ONLINE_MIN_RECHARGE_AMOUNT_FEN
paymentMethodsBounds.max_amount =
Number(res.data?.max_amount) || ONLINE_MAX_RECHARGE_AMOUNT_FEN
createForm.amount = minimumAmountYuan.value
} else {
ElMessage.warning(res.msg || '当前暂无可用在线支付方式')
@@ -1366,16 +1369,16 @@
.online-recharge-empty-hint {
margin-top: 8px;
color: var(--el-color-danger);
font-size: 12px;
line-height: 1.5;
color: var(--el-color-danger);
}
.online-recharge-qr-dialog {
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
align-items: center;
&__code-surface {
display: flex;
@@ -1391,11 +1394,11 @@
&__summary {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
align-items: center;
width: 100%;
color: var(--el-text-color-regular);
font-size: 14px;
color: var(--el-text-color-regular);
text-align: center;
}
@@ -1404,8 +1407,8 @@
}
&__loading {
color: var(--el-color-primary);
font-size: 12px;
color: var(--el-color-primary);
}
}
</style>