mirror of
https://github.com/woodchen-ink/aimodels-prices.git
synced 2025-07-18 13:41:59 +08:00
Add getModelType function to support model type display in Prices view
This commit is contained in:
parent
6fa37f6d6a
commit
15a7c75145
@ -464,6 +464,12 @@ const billingTypeMap = {
|
|||||||
const getStatus = (status) => statusMap[status] || status
|
const getStatus = (status) => statusMap[status] || status
|
||||||
const getBillingType = (type) => billingTypeMap[type] || type
|
const getBillingType = (type) => billingTypeMap[type] || type
|
||||||
|
|
||||||
|
// 添加getModelType函数
|
||||||
|
const getModelType = (type) => {
|
||||||
|
if (!type) return ''
|
||||||
|
return modelTypeMap.value[type] || type
|
||||||
|
}
|
||||||
|
|
||||||
const calculateRate = (price, currency) => {
|
const calculateRate = (price, currency) => {
|
||||||
if (!price) return 0
|
if (!price) return 0
|
||||||
return currency === 'USD' ? (price / 2).toFixed(4) : (price / 14).toFixed(4)
|
return currency === 'USD' ? (price / 2).toFixed(4) : (price / 14).toFixed(4)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user