You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
272 lines
9.6 KiB
272 lines
9.6 KiB
import i18n from '@/components/locales'
|
|
const t = i18n.global.t
|
|
|
|
export const productList = [
|
|
{
|
|
"value": "金币产品",
|
|
"label": t('cash.goldProduct'),
|
|
"children": [
|
|
{
|
|
"value": "金币充值",
|
|
"label": t('cash.coinRecharge')
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"value": "软件产品",
|
|
"label": t('cash.softwareProduct'),
|
|
"children": [
|
|
{
|
|
"value": "软件",
|
|
"label": t('cash.software'),
|
|
"children": [
|
|
{
|
|
"value": "美股",
|
|
"label": t('cash.softwareMenu.usStock'),
|
|
"children": [
|
|
{ "value": "美股软件", "label": t('cash.softwareMenu.usStockSoftware') },
|
|
{ "value": "美股金卡", "label": t('cash.softwareMenu.usStockGoldCard') },
|
|
{ "value": "美股套餐", "label": t('cash.softwareMenu.usStockPackage') }
|
|
]
|
|
},
|
|
{
|
|
"value": "港股",
|
|
"label": t('cash.softwareMenu.hkStock'),
|
|
"children": [
|
|
{ "value": "港股软件", "label": t('cash.softwareMenu.hkStockSoftware') },
|
|
{ "value": "港股金卡", "label": t('cash.softwareMenu.hkStockGoldCard') },
|
|
{ "value": "港股套餐", "label": t('cash.softwareMenu.hkStockPackage') }
|
|
]
|
|
},
|
|
{
|
|
"value": "A股",
|
|
"label": t('cash.softwareMenu.aStock'),
|
|
"children": [
|
|
{ "value": "A股软件", "label": t('cash.softwareMenu.aStockSoftware') },
|
|
{ "value": "A股金卡", "label": t('cash.softwareMenu.aStockGoldCard') },
|
|
{ "value": "A股套餐", "label": t('cash.softwareMenu.aStockPackage') }
|
|
]
|
|
},
|
|
{
|
|
"value": "新加坡股",
|
|
"label": t('cash.softwareMenu.singaporeStock'),
|
|
"children": [
|
|
{ "value": "新加坡股软件", "label": t('cash.softwareMenu.singaporeStockSoftware') },
|
|
{ "value": "新加坡股金卡", "label": t('cash.softwareMenu.singaporeStockGoldCard') },
|
|
{ "value": "新加坡股套餐", "label": t('cash.softwareMenu.singaporeStockPackage') }
|
|
]
|
|
},
|
|
{
|
|
"value": "马股",
|
|
"label": t('cash.softwareMenu.malaysiaStock'),
|
|
"children": [
|
|
{ "value": "马股软件", "label": t('cash.softwareMenu.malaysiaStockSoftware') },
|
|
{ "value": "马股金卡", "label": t('cash.softwareMenu.malaysiaStockGoldCard') },
|
|
{ "value": "马股套餐", "label": t('cash.softwareMenu.malaysiaStockPackage') }
|
|
]
|
|
},
|
|
{
|
|
"value": "日本股",
|
|
"label": t('cash.softwareMenu.japanStock'),
|
|
"children": [
|
|
{ "value": "日本股软件", "label": t('cash.softwareMenu.japanStockSoftware') },
|
|
{ "value": "日本股金卡", "label": t('cash.softwareMenu.japanStockGoldCard') },
|
|
{ "value": "日本股套餐", "label": t('cash.softwareMenu.japanStockPackage') }
|
|
]
|
|
},
|
|
{
|
|
"value": "泰股",
|
|
"label": t('cash.softwareMenu.thailandStock'),
|
|
"children": [
|
|
{ "value": "泰股软件", "label": t('cash.softwareMenu.thailandStockSoftware') },
|
|
{ "value": "泰股金卡", "label": t('cash.softwareMenu.thailandStockGoldCard') },
|
|
{ "value": "泰股套餐", "label": t('cash.softwareMenu.thailandStockPackage') }
|
|
]
|
|
},
|
|
{
|
|
"value": "越南股",
|
|
"label": t('cash.softwareMenu.vietnamStock'),
|
|
"children": [
|
|
{ "value": "越南股软件", "label": t('cash.softwareMenu.vietnamStockSoftware') },
|
|
{ "value": "越南股金卡", "label": t('cash.softwareMenu.vietnamStockGoldCard') },
|
|
{ "value": "越南股套餐", "label": t('cash.softwareMenu.vietnamStockPackage') }
|
|
]
|
|
},
|
|
{
|
|
"value": "印尼股",
|
|
"label": t('cash.softwareMenu.indonesiaStock'),
|
|
"children": [
|
|
{ "value": "印尼股软件", "label": t('cash.softwareMenu.indonesiaStockSoftware') },
|
|
{ "value": "印尼股金卡", "label": t('cash.softwareMenu.indonesiaStockGoldCard') },
|
|
{ "value": "印尼股套餐", "label": t('cash.softwareMenu.indonesiaStockPackage') }
|
|
]
|
|
},
|
|
{
|
|
"value": "韩国股",
|
|
"label": t('cash.softwareMenu.koreaStock'),
|
|
"children": [
|
|
{ "value": "韩国股软件", "label": t('cash.softwareMenu.koreaStockSoftware') },
|
|
{ "value": "韩国股金卡", "label": t('cash.softwareMenu.koreaStockGoldCard') },
|
|
{ "value": "韩国股套餐", "label": t('cash.softwareMenu.koreaStockPackage') }
|
|
]
|
|
},
|
|
{
|
|
"value": "台湾股",
|
|
"label": t('cash.softwareMenu.taiwanStock'),
|
|
"children": [
|
|
{ "value": "台湾股软件", "label": t('cash.softwareMenu.taiwanStockSoftware') },
|
|
{ "value": "台湾股金卡", "label": t('cash.softwareMenu.taiwanStockGoldCard') },
|
|
{ "value": "台湾股套餐", "label": t('cash.softwareMenu.taiwanStockPackage') }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"value": "AI机构探测神器",
|
|
"label": t('cash.aiService.aiDetectionTool'),
|
|
"children": [
|
|
{
|
|
"value": "AI机构追踪",
|
|
"label": t('cash.aiService.aiTracking')
|
|
},
|
|
{
|
|
"value": "AI机构出击",
|
|
"label": t('cash.aiService.aiAttack')
|
|
},
|
|
{
|
|
"value": "AI机构资金",
|
|
"label": t('cash.aiService.aiFunds')
|
|
},
|
|
{
|
|
"value": "AI机构活跃度",
|
|
"label": t('cash.aiService.aiActivity')
|
|
},
|
|
{
|
|
"value": "AI机构探测神器",
|
|
"label": t('cash.aiService.aiDetectionTool')
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"value": "超级机构探测神器",
|
|
"label": t('cash.aiService.superDetectionTool'),
|
|
"children": [
|
|
{
|
|
"value": "超级机构透视",
|
|
"label": t('cash.aiService.superPerspective')
|
|
},
|
|
{
|
|
"value": "超级机构伏击",
|
|
"label": t('cash.aiService.superAmbush')
|
|
},
|
|
{
|
|
"value": "超级机构猎杀",
|
|
"label": t('cash.aiService.superHunting')
|
|
},
|
|
{
|
|
"value": "超级机构脉博",
|
|
"label": t('cash.aiService.superPulse')
|
|
},
|
|
{
|
|
"value": "超级机构罗盘",
|
|
"label": t('cash.aiService.superCompass')
|
|
},
|
|
{
|
|
"value": "超级机构探测神器",
|
|
"label": t('cash.aiService.superDetectionTool')
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"value": "其他",
|
|
"label": t('cash.other'),
|
|
"children": [
|
|
{
|
|
"value": "静态信息费",
|
|
"label": t('cash.staticInfoFee')
|
|
},
|
|
{
|
|
"value": "博股会员",
|
|
"label": t('cash.BGmember')
|
|
},
|
|
{
|
|
"value": "HC信息费",
|
|
"label": t('cash.HC')
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
|
|
|
|
export const MarketNameForId = (name) => {
|
|
if (name == t('cash.markets.Singapore') || name == '新加坡' || name == 'Singapore') {
|
|
return 4
|
|
} else if (name == t('cash.markets.Canada') || name == '加拿大' || name == 'Canada') {
|
|
return 24016
|
|
} else if (name == t('cash.markets.Malaysia') || name == '马来西亚' || name == 'Malaysia') {
|
|
return 5
|
|
} else if (name == t('cash.markets.HongKong') || name == '香港' || name == 'Hong Kong') {
|
|
return 13
|
|
} else if (name == t('cash.markets.Thailand') || name == '泰国' || name == 'Thailand') {
|
|
return 24018
|
|
} else if (name == t('cash.markets.VietnamHCM') || name == '越南HCM' || name == 'Vietnam HCM') {
|
|
return 24022
|
|
} else {
|
|
return name
|
|
}
|
|
}
|
|
export const CurrencyForId = (name) => {
|
|
if (name == t('cash.currency.usd') || name == '美元(USD)' || name == 'US Dollar(USD)') {
|
|
return 1
|
|
} else if (name == t('cash.currency.hkd') || name == '港币(HKD)' || name == 'Hong Kong Dollar(HKD)') {
|
|
return 2
|
|
} else if (name == t('cash.currency.sgd') || name == '新币(SGD)' || name == 'Singapore Dollar(SGD)') {
|
|
return 3
|
|
} else if (name == t('cash.currency.myr') || name == '马币(MYR)' || name == 'Malaysian Ringgit(MYR)') {
|
|
return 4
|
|
} else if (name == t('cash.currency.thb') || name == '泰铢(THB)' || name == 'Thai Baht(THB)') {
|
|
return 5
|
|
} else if (name == t('cash.currency.cad') || name == '加币(CAD)' || name == 'Canadian Dollar(CAD)') {
|
|
return 6
|
|
} else if (name == t('cash.currency.vnd') || name == '越南盾(VDN)' || name == 'Vietnamese Dong(VDN)') {
|
|
return 7
|
|
} else if (name == t('cash.currency.krw') || name == '韩元(KRW)' || name == 'South Korean Won(KRW)') {
|
|
return 8
|
|
} else {
|
|
return name
|
|
}
|
|
}
|
|
|
|
export const marketList = [
|
|
t('cash.markets.Malaysia'),
|
|
t('cash.markets.HongKong'),
|
|
t('cash.markets.Singapore'),
|
|
t('cash.markets.Thailand'),
|
|
t('cash.markets.VietnamHCM'),
|
|
t('cash.markets.Canada')
|
|
]
|
|
|
|
export const statusList = [
|
|
{
|
|
name: t('cash.statusList.pending'),
|
|
value: 0
|
|
},
|
|
{
|
|
name: t('cash.statusList.passed'),
|
|
value: 134
|
|
},
|
|
{
|
|
name: t('cash.statusList.recalled'),
|
|
value: 5
|
|
}, {
|
|
name: t('cash.statusList.refunded'),
|
|
value: 6
|
|
}, {
|
|
name: t('cash.statusList.rejected'),
|
|
value: 2
|
|
},
|
|
]
|
|
|
|
export const numUnitList = [t('cash.unit'), t('cash.year'), t('cash.month')]
|