重新计算价格显示

This commit is contained in:
Eamon-meng
2026-03-30 13:11:40 +08:00
parent 01c4afd209
commit e27869fb4a
10 changed files with 53 additions and 22 deletions

View File

@@ -337,6 +337,7 @@ function SelectResource() {
setStatus('load')
try {
const resp = await allResource()
console.log(resp, '/api/resource/all')
if (!resp.success) {
throw new Error('获取套餐失败,请稍后再试')
@@ -651,9 +652,9 @@ function name(resource: Resource) {
// 短效套餐
switch (resource.short.type) {
case 1:
return `短效包时 ${resource.short.live / 60} 分钟`
return `短效包时 ${resource.short.live} 分钟`
case 2:
return `短效包量 ${resource.short.live / 60} 分钟`
return `短效包量 ${resource.short.live} 分钟`
}
break