| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429 |
- // 静态活动配置
- export const staticActivityConfigs = [
- {
- id: 'NewYear24',
- title: 'news_add_field1.NewYear24.item1',
- description: 'news_add_field1.NewYear24.item2',
- image: '/static/images/cwg-menu-icons-13.jpg',
- showCondition: 'tableDataNewYear24Flag',
- hot: true,
- buttons: [
- {
- type: 'red',
- text: 'news_add_field1.NewYear24.item4',
- action: 'openCalculator'
- },
- {
- type: 'red',
- text: 'news_add_field1.NewYear24.item9',
- action: 'toSingle',
- params: ['NewYear24']
- },
- {
- type: 'check',
- text: 'news_add_field1.NewYear24.item3',
- action: 'openPdf',
- pdf: {
- cn: '/pdf/pdf3/pdf-cn.pdf',
- zhHant: '/pdf/pdf3/pdf-zhHant.pdf',
- default: '/pdf/pdf3/pdf-en.pdf'
- }
- }
- ]
- },
- {
- id: 'monthlyGift',
- title: 'MonthlyActivities.item1',
- description: 'MonthlyActivities.item1_1',
- image: '/static/images/yue.jpg',
- showCondition: "country === 'CN'",
- hot: true,
- buttons: [
- {
- type: 'dynamic',
- text: 'news_add_field1.activities10_trading_aoyun.item3',
- action: 'openSurplusActivityDialog1',
- condition: 'monthlyGive'
- },
- {
- type: 'check',
- text: 'wallet.item15',
- action: 'openPdf',
- pdf: '/pdf/pdf13/CWG Prime Bonus-cn.pdf'
- },
- {
- type: 'check',
- text: 'Transfer.item7',
- action: 'openPdf',
- pdf: '/pdf/pdf13/CWG Markets Prime Bonus Application Process-cn.pdf'
- },
- {
- type: 'check',
- text: 'wallet.item14',
- action: 'goMonthlyTaskList'
- }
- ]
- },
- {
- id: 'bonusGift',
- title: 'surplusList.item1',
- description: 'surplusList.item2',
- image: '/static/images/su.png',
- hot: true,
- buttons: [
- {
- type: 'dynamic',
- text: 'news_add_field1.activities10_trading_aoyun.item3',
- action: 'openSurplusActivityDialog',
- condition: 'surplusGive'
- },
- {
- type: 'check',
- text: 'wallet.item15',
- action: 'openPdf',
- pdf: {
- dynamic: true,
- path: '/pdf/pdf12/CWG Prime Bonus-{lang}.pdf'
- }
- },
- {
- type: 'check',
- text: 'Transfer.item7',
- action: 'openPdf',
- pdf: {
- dynamic: true,
- path: '/pdf/pdf12/CWG Markets Prime Bonus Application Process-{lang}.pdf',
- fallback: '/pdf/pdf12/CWG Markets Prime Bonus Application Process-en.pdf',
- supportedLangs: ['cn', 'zhHant', 'en']
- }
- },
- {
- type: 'check',
- text: 'wallet.item14',
- action: 'goSurplusTaskList'
- }
- ]
- },
- {
- id: 'cashCarnival',
- title: 'wallet.item8',
- description: 'wallet.item9',
- image: '/static/images/cash-carnival.webp',
- imageTitle: 'wallet.item8',
- showCondition: 'choujiaClose',
- hot: true,
- onClick: 'toSingle',
- onClickParams: ['23jnhcj'],
- buttons: [
- {
- type: 'red',
- text: 'wallet.item10',
- action: 'toHistoryLuckyDraw',
- suffix: 'LuckyDrawsNumber',
- suffixText: 'wallet.item11'
- },
- {
- type: 'check',
- text: 'wallet.item12',
- action: 'toOpenTask'
- },
- {
- type: 'dynamic',
- text: 'wallet.item13',
- action: 'toNewTask',
- condition: 'newTask',
- elseType: 'gray'
- },
- {
- type: 'check',
- text: 'wallet.item14',
- action: 'toTaskList'
- },
- {
- type: 'check',
- text: 'wallet.item15',
- action: 'openPdf',
- pdf: {
- dynamic: true,
- langMap: {
- ar: '/pdf/pdf5/ar.pdf',
- cn: '/pdf/pdf5/cn.pdf',
- de: '/pdf/pdf5/en.pdf',
- en: '/pdf/pdf5/en.pdf',
- es: '/pdf/pdf5/es.pdf',
- fa: '/pdf/pdf5/en.pdf',
- id: '/pdf/pdf5/en.pdf',
- ko: '/pdf/pdf5/ko.pdf',
- ms: '/pdf/pdf5/en.pdf',
- pt: '/pdf/pdf5/pt.pdf',
- th: '/pdf/pdf5/th.pdf',
- tr: '/pdf/pdf5/en.pdf',
- vn: '/pdf/pdf5/vn.pdf',
- zhHant: '/pdf/pdf5/zhHant.pdf'
- }
- }
- }
- ]
- },
- {
- id: 'noWorries',
- title: 'news_add_field1.activitiesNoWorries.item1',
- description: 'news_add_field1.activitiesNoWorries.item2',
- image: '/static/images/jihua.png',
- showCondition: 'tableDataNoWorriesFlag',
- hot: true,
- onClick: 'toSingle',
- onClickParams: ['NoWorries'],
- buttons: [
- {
- type: 'red',
- text: 'news_add_field1.activitiesNoWorries.item3',
- action: 'toApplyNoWorriesOpen',
- condition: 'tableDataNoWorries === true'
- },
- {
- type: 'red',
- text: 'news_add_field1.activitiesNoWorries.item4',
- action: 'toRealizationNoWorries',
- condition: 'isRealizationNoWorries === 1',
- elseType: 'gray'
- },
- {
- type: 'check',
- text: 'news_add_field1.activitiesNoWorries.item5',
- action: 'toSingle',
- params: ['NoWorries']
- }
- ]
- },
- {
- id: 'standardRewards',
- title: 'news_add_field1.activities10_trading_aoyun.item5',
- description: 'news_add_field1.activities10_trading_aoyun.item6',
- image: '/static/images/trading-rewards.webp',
- showCondition: 'standard',
- buttons: [
- {
- type: 'red',
- text: 'news_add_field1.activities10_trading_aoyun.item3',
- action: 'toActivity24Trading'
- },
- {
- type: 'check',
- text: 'news_add_field1.activities10_trading_aoyun.item4',
- action: 'openPdf',
- pdf: {
- dynamic: true,
- langMap: {
- ar: '/pdf/pdf1/ar.pdf',
- cn: '/pdf/pdf1/cn.pdf',
- de: '/pdf/pdf1/en.pdf',
- en: '/pdf/pdf1/en.pdf',
- es: '/pdf/pdf1/es.pdf',
- fa: '/pdf/pdf1/en.pdf',
- id: '/pdf/pdf1/en.pdf',
- ko: '/pdf/pdf1/ko.pdf',
- ms: '/pdf/pdf1/en.pdf',
- pt: '/pdf/pdf1/pt.pdf',
- th: '/pdf/pdf1/th.pdf',
- tr: '/pdf/pdf1/en.pdf',
- vn: '/pdf/pdf1/vn.pdf',
- zhHant: '/pdf/pdf1/zhHant.pdf'
- }
- }
- }
- ]
- },
- {
- id: 'bonus10',
- title: 'news_add_field1.activities10_trading_aoyun.item1',
- description: 'news_add_field1.activities10_trading_aoyun.item2_1',
- image: '/static/images/10-bonus.webp',
- showCondition: '!isAfterSeptember30() && !isSupportedCountry',
- buttons: [
- {
- type: 'red',
- text: 'news_add_field1.activities10_trading_aoyun.item3',
- action: 'toActivity24nianzhong'
- },
- {
- type: 'check',
- text: 'news_add_field1.activities10_trading_aoyun.item4',
- action: 'openPdf',
- pdf: {
- dynamic: true,
- path: '/pdf/pdf4/{lang}.pdf'
- }
- }
- ]
- },
- {
- id: 'bonus100',
- title: 'news_add_field1.activities10_trading_aoyun.item1_2',
- description: 'news_add_field1.activities10_trading_aoyun.item2_12',
- image: '/static/images/100-bonus.webp',
- showCondition: '!isAfterSeptember30() && isSupportedCountry',
- buttons: [
- {
- type: 'red',
- text: 'news_add_field1.activities10_trading_aoyun.item3',
- action: 'toActivity24nianzhong'
- },
- {
- type: 'check',
- text: 'news_add_field1.activities10_trading_aoyun.item4',
- action: 'openPdf',
- pdf: {
- dynamic: true,
- path: '/pdf/pdf4/100Bonus-{lang}.pdf'
- }
- }
- ]
- },
- {
- id: 'welcome2023',
- title: 'news_add_field1.activities.item8',
- description: '',
- image: {
- cn: '/static/images/23ActiveCn.jpg',
- zhHant: '/static/images/23ActiveCn1.jpg',
- default: '/static/images/23ActiveEn.jpg'
- },
- showCondition: 'tableData2Flag',
- hot: true,
- onClick: 'toSingle',
- onClickParams: ['23yx'],
- buttons: [
- {
- type: 'red',
- text: 'news_add_field1.activities.item4',
- action: 'toApply23Open',
- condition: 'tableData2 === true'
- },
- {
- type: 'gray',
- text: 'news_add_field1.activities.item4',
- condition: 'tableData2 === false'
- },
- {
- type: 'gray',
- text: 'news_add_field1.activities.item5',
- condition: 'typeof tableData2 === "object"'
- },
- {
- type: 'red',
- text: 'news_add_field1.activities.item9',
- action: 'toTransform',
- condition: 'isTransform === 1'
- },
- {
- type: 'gray',
- text: 'news_add_field1.activities.item9',
- condition: 'isTransform === 2'
- },
- {
- type: 'red',
- text: 'news_add_field1.activities.item0',
- action: 'toRealization',
- condition: 'isRealization === 1'
- },
- {
- type: 'gray',
- text: 'news_add_field1.activities.item0',
- condition: 'isRealization === 2'
- },
- {
- type: 'check',
- text: 'news_add_field1.activities.item7',
- action: 'toSingle',
- params: ['23yx']
- }
- ]
- },
- {
- id: 'tradingCompetition',
- title: 'news_add_field1.activitiesJYDS2025.item1',
- description: 'news_add_field1.activitiesJYDS2025.item2',
- image: '/static/images/banner.jpg',
- showCondition: 'tableDataCptFlag',
- hot: true,
- onClick: 'toSingle',
- onClickParams: ['23xinjia'],
- buttons: [
- {
- type: 'red',
- text: 'news_add_field1.activitiesJYDS.item3',
- action: 'toApplyCptOpen',
- condition: 'tableDataCpt.signStatus === 0'
- },
- {
- type: 'gray',
- text: 'news_add_field1.activitiesJYDS.item3_1',
- condition: 'tableDataCpt.signStatus === 1'
- },
- {
- type: 'check',
- text: 'news_add_field1.activitiesJYDS.item4',
- action: 'toSingle',
- params: ['23xinjia']
- },
- {
- type: 'check',
- text: 'news_add_field1.activitiesJYDS.item4_1',
- action: 'toOpenSingle',
- params: ['tableDataCpt.pageAddress']
- }
- ]
- },
- {
- id: 'eliteCup24',
- title: 'news_add_field1.activitiesJYB.item1',
- description: 'news_add_field1.activitiesJYB.item2',
- image: '/static/images/jyb.jpg',
- showCondition: 'tableData3FlagJYB',
- onClick: 'toSingle',
- onClickParams: ['24JYB'],
- buttons: [
- {
- type: 'red',
- text: 'news_add_field1.activitiesJYB.item3',
- action: 'toApply24JYBOpenVip',
- condition: 'tableData3JYB.show === 1 && timeExpireJx(tableData3JYB.applicationEndTime)'
- },
- {
- type: 'gray',
- text: 'news_add_field1.activitiesJYB.item3',
- action: 'openDialog',
- params: ['dialogChinaUnionPayJX'],
- condition: 'tableData3JYB.show === 1 && !timeExpireJx(tableData3JYB.applicationEndTime)'
- },
- {
- type: 'red',
- text: 'news_add_field1.activitiesJYB.item4',
- action: 'toRealization24JYBVip',
- condition: 'isRealizationJxJYB === 1'
- },
- {
- type: 'gray',
- text: 'news_add_field1.activitiesJYB.item4',
- condition: 'isRealizationJxJYB === 2'
- },
- {
- type: 'check',
- text: 'news_add_field1.activitiesJYB.item5',
- action: 'toSingle',
- params: ['24JYB']
- }
- ]
- }
- ]
- export const countries = [
- "DZ", "AO", "BJ", "BW", "BF", "CM", "CG", "CD", "CI", "DJ", "EG", "ET", "GA", "GM", "GH", "GN", "KE",
- "MG", "MW", "ML", "MR", "MA", "MZ", "NA", "NE", "NG", "RW", "SN", "SL", "SO", "ZA", "SS", "SD", "TZ",
- "TG", "TN", "UG", "ZM", "ZW", "LS", "BH", "IR", "IQ", "IL", "JO", "KW", "LB", "OM", "PS", "QA", "SA",
- "SY", "TR", "AE", "YE", "AR", "BO", "BR", "CL", "CO", "EC", "GY", "PY", "PE", "SR", "UY", "VE", "BZ",
- "CR", "SV", "GT", "HN", "NI", "PA", "AU", "CA", "AL", "AD", "AM", "AT", "AZ", "BY", "BE", "BA", "BG",
- "HR", "CY", "CZ", "DK", "EE", "FI", "FR", "GE", "DE", "GR", "HU", "IS", "IE", "IT", "XK", "LV", "LI",
- "LT", "LU", "MT", "MD", "MC", "ME", "NL", "MK", "NO", "PL", "PT", "RO", "RU", "SM", "RS", "SK", "SI",
- "ES", "SE", "CH", "UA", "VA"
- ]
|