activities.ts 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. // 静态活动配置
  2. export const staticActivityConfigs = [
  3. {
  4. id: 'NewYear24',
  5. title: 'news_add_field1.NewYear24.item1',
  6. description: 'news_add_field1.NewYear24.item2',
  7. image: '/static/images/cwg-menu-icons-13.jpg',
  8. showCondition: 'tableDataNewYear24Flag',
  9. hot: true,
  10. buttons: [
  11. {
  12. type: 'red',
  13. text: 'news_add_field1.NewYear24.item4',
  14. action: 'openCalculator'
  15. },
  16. {
  17. type: 'red',
  18. text: 'news_add_field1.NewYear24.item9',
  19. action: 'toSingle',
  20. params: ['NewYear24']
  21. },
  22. {
  23. type: 'check',
  24. text: 'news_add_field1.NewYear24.item3',
  25. action: 'openPdf',
  26. pdf: {
  27. cn: '/pdf/pdf3/pdf-cn.pdf',
  28. zhHant: '/pdf/pdf3/pdf-zhHant.pdf',
  29. default: '/pdf/pdf3/pdf-en.pdf'
  30. }
  31. }
  32. ]
  33. },
  34. {
  35. id: 'monthlyGift',
  36. title: 'MonthlyActivities.item1',
  37. description: 'MonthlyActivities.item1_1',
  38. image: '/static/images/yue.jpg',
  39. showCondition: "country === 'CN'",
  40. hot: true,
  41. buttons: [
  42. {
  43. type: 'dynamic',
  44. text: 'news_add_field1.activities10_trading_aoyun.item3',
  45. action: 'openSurplusActivityDialog1',
  46. condition: 'monthlyGive'
  47. },
  48. {
  49. type: 'check',
  50. text: 'wallet.item15',
  51. action: 'openPdf',
  52. pdf: '/pdf/pdf13/CWG Prime Bonus-cn.pdf'
  53. },
  54. {
  55. type: 'check',
  56. text: 'Transfer.item7',
  57. action: 'openPdf',
  58. pdf: '/pdf/pdf13/CWG Markets Prime Bonus Application Process-cn.pdf'
  59. },
  60. {
  61. type: 'check',
  62. text: 'wallet.item14',
  63. action: 'goMonthlyTaskList'
  64. }
  65. ]
  66. },
  67. {
  68. id: 'bonusGift',
  69. title: 'surplusList.item1',
  70. description: 'surplusList.item2',
  71. image: '/static/images/su.png',
  72. hot: true,
  73. buttons: [
  74. {
  75. type: 'dynamic',
  76. text: 'news_add_field1.activities10_trading_aoyun.item3',
  77. action: 'openSurplusActivityDialog',
  78. condition: 'surplusGive'
  79. },
  80. {
  81. type: 'check',
  82. text: 'wallet.item15',
  83. action: 'openPdf',
  84. pdf: {
  85. dynamic: true,
  86. path: '/pdf/pdf12/CWG Prime Bonus-{lang}.pdf'
  87. }
  88. },
  89. {
  90. type: 'check',
  91. text: 'Transfer.item7',
  92. action: 'openPdf',
  93. pdf: {
  94. dynamic: true,
  95. path: '/pdf/pdf12/CWG Markets Prime Bonus Application Process-{lang}.pdf',
  96. fallback: '/pdf/pdf12/CWG Markets Prime Bonus Application Process-en.pdf',
  97. supportedLangs: ['cn', 'zhHant', 'en']
  98. }
  99. },
  100. {
  101. type: 'check',
  102. text: 'wallet.item14',
  103. action: 'goSurplusTaskList'
  104. }
  105. ]
  106. },
  107. {
  108. id: 'cashCarnival',
  109. title: 'wallet.item8',
  110. description: 'wallet.item9',
  111. image: '/static/images/cash-carnival.webp',
  112. imageTitle: 'wallet.item8',
  113. showCondition: 'choujiaClose',
  114. hot: true,
  115. onClick: 'toSingle',
  116. onClickParams: ['23jnhcj'],
  117. buttons: [
  118. {
  119. type: 'red',
  120. text: 'wallet.item10',
  121. action: 'toHistoryLuckyDraw',
  122. suffix: 'LuckyDrawsNumber',
  123. suffixText: 'wallet.item11'
  124. },
  125. {
  126. type: 'check',
  127. text: 'wallet.item12',
  128. action: 'toOpenTask'
  129. },
  130. {
  131. type: 'dynamic',
  132. text: 'wallet.item13',
  133. action: 'toNewTask',
  134. condition: 'newTask',
  135. elseType: 'gray'
  136. },
  137. {
  138. type: 'check',
  139. text: 'wallet.item14',
  140. action: 'toTaskList'
  141. },
  142. {
  143. type: 'check',
  144. text: 'wallet.item15',
  145. action: 'openPdf',
  146. pdf: {
  147. dynamic: true,
  148. langMap: {
  149. ar: '/pdf/pdf5/ar.pdf',
  150. cn: '/pdf/pdf5/cn.pdf',
  151. de: '/pdf/pdf5/en.pdf',
  152. en: '/pdf/pdf5/en.pdf',
  153. es: '/pdf/pdf5/es.pdf',
  154. fa: '/pdf/pdf5/en.pdf',
  155. id: '/pdf/pdf5/en.pdf',
  156. ko: '/pdf/pdf5/ko.pdf',
  157. ms: '/pdf/pdf5/en.pdf',
  158. pt: '/pdf/pdf5/pt.pdf',
  159. th: '/pdf/pdf5/th.pdf',
  160. tr: '/pdf/pdf5/en.pdf',
  161. vn: '/pdf/pdf5/vn.pdf',
  162. zhHant: '/pdf/pdf5/zhHant.pdf'
  163. }
  164. }
  165. }
  166. ]
  167. },
  168. {
  169. id: 'noWorries',
  170. title: 'news_add_field1.activitiesNoWorries.item1',
  171. description: 'news_add_field1.activitiesNoWorries.item2',
  172. image: '/static/images/jihua.png',
  173. showCondition: 'tableDataNoWorriesFlag',
  174. hot: true,
  175. onClick: 'toSingle',
  176. onClickParams: ['NoWorries'],
  177. buttons: [
  178. {
  179. type: 'red',
  180. text: 'news_add_field1.activitiesNoWorries.item3',
  181. action: 'toApplyNoWorriesOpen',
  182. condition: 'tableDataNoWorries === true'
  183. },
  184. {
  185. type: 'red',
  186. text: 'news_add_field1.activitiesNoWorries.item4',
  187. action: 'toRealizationNoWorries',
  188. condition: 'isRealizationNoWorries === 1',
  189. elseType: 'gray'
  190. },
  191. {
  192. type: 'check',
  193. text: 'news_add_field1.activitiesNoWorries.item5',
  194. action: 'toSingle',
  195. params: ['NoWorries']
  196. }
  197. ]
  198. },
  199. {
  200. id: 'standardRewards',
  201. title: 'news_add_field1.activities10_trading_aoyun.item5',
  202. description: 'news_add_field1.activities10_trading_aoyun.item6',
  203. image: '/static/images/trading-rewards.webp',
  204. showCondition: 'standard',
  205. buttons: [
  206. {
  207. type: 'red',
  208. text: 'news_add_field1.activities10_trading_aoyun.item3',
  209. action: 'toActivity24Trading'
  210. },
  211. {
  212. type: 'check',
  213. text: 'news_add_field1.activities10_trading_aoyun.item4',
  214. action: 'openPdf',
  215. pdf: {
  216. dynamic: true,
  217. langMap: {
  218. ar: '/pdf/pdf1/ar.pdf',
  219. cn: '/pdf/pdf1/cn.pdf',
  220. de: '/pdf/pdf1/en.pdf',
  221. en: '/pdf/pdf1/en.pdf',
  222. es: '/pdf/pdf1/es.pdf',
  223. fa: '/pdf/pdf1/en.pdf',
  224. id: '/pdf/pdf1/en.pdf',
  225. ko: '/pdf/pdf1/ko.pdf',
  226. ms: '/pdf/pdf1/en.pdf',
  227. pt: '/pdf/pdf1/pt.pdf',
  228. th: '/pdf/pdf1/th.pdf',
  229. tr: '/pdf/pdf1/en.pdf',
  230. vn: '/pdf/pdf1/vn.pdf',
  231. zhHant: '/pdf/pdf1/zhHant.pdf'
  232. }
  233. }
  234. }
  235. ]
  236. },
  237. {
  238. id: 'bonus10',
  239. title: 'news_add_field1.activities10_trading_aoyun.item1',
  240. description: 'news_add_field1.activities10_trading_aoyun.item2_1',
  241. image: '/static/images/10-bonus.webp',
  242. showCondition: '!isAfterSeptember30() && !isSupportedCountry',
  243. buttons: [
  244. {
  245. type: 'red',
  246. text: 'news_add_field1.activities10_trading_aoyun.item3',
  247. action: 'toActivity24nianzhong'
  248. },
  249. {
  250. type: 'check',
  251. text: 'news_add_field1.activities10_trading_aoyun.item4',
  252. action: 'openPdf',
  253. pdf: {
  254. dynamic: true,
  255. path: '/pdf/pdf4/{lang}.pdf'
  256. }
  257. }
  258. ]
  259. },
  260. {
  261. id: 'bonus100',
  262. title: 'news_add_field1.activities10_trading_aoyun.item1_2',
  263. description: 'news_add_field1.activities10_trading_aoyun.item2_12',
  264. image: '/static/images/100-bonus.webp',
  265. showCondition: '!isAfterSeptember30() && isSupportedCountry',
  266. buttons: [
  267. {
  268. type: 'red',
  269. text: 'news_add_field1.activities10_trading_aoyun.item3',
  270. action: 'toActivity24nianzhong'
  271. },
  272. {
  273. type: 'check',
  274. text: 'news_add_field1.activities10_trading_aoyun.item4',
  275. action: 'openPdf',
  276. pdf: {
  277. dynamic: true,
  278. path: '/pdf/pdf4/100Bonus-{lang}.pdf'
  279. }
  280. }
  281. ]
  282. },
  283. {
  284. id: 'welcome2023',
  285. title: 'news_add_field1.activities.item8',
  286. description: '',
  287. image: {
  288. cn: '/static/images/23ActiveCn.jpg',
  289. zhHant: '/static/images/23ActiveCn1.jpg',
  290. default: '/static/images/23ActiveEn.jpg'
  291. },
  292. showCondition: 'tableData2Flag',
  293. hot: true,
  294. onClick: 'toSingle',
  295. onClickParams: ['23yx'],
  296. buttons: [
  297. {
  298. type: 'red',
  299. text: 'news_add_field1.activities.item4',
  300. action: 'toApply23Open',
  301. condition: 'tableData2 === true'
  302. },
  303. {
  304. type: 'gray',
  305. text: 'news_add_field1.activities.item4',
  306. condition: 'tableData2 === false'
  307. },
  308. {
  309. type: 'gray',
  310. text: 'news_add_field1.activities.item5',
  311. condition: 'typeof tableData2 === "object"'
  312. },
  313. {
  314. type: 'red',
  315. text: 'news_add_field1.activities.item9',
  316. action: 'toTransform',
  317. condition: 'isTransform === 1'
  318. },
  319. {
  320. type: 'gray',
  321. text: 'news_add_field1.activities.item9',
  322. condition: 'isTransform === 2'
  323. },
  324. {
  325. type: 'red',
  326. text: 'news_add_field1.activities.item0',
  327. action: 'toRealization',
  328. condition: 'isRealization === 1'
  329. },
  330. {
  331. type: 'gray',
  332. text: 'news_add_field1.activities.item0',
  333. condition: 'isRealization === 2'
  334. },
  335. {
  336. type: 'check',
  337. text: 'news_add_field1.activities.item7',
  338. action: 'toSingle',
  339. params: ['23yx']
  340. }
  341. ]
  342. },
  343. {
  344. id: 'tradingCompetition',
  345. title: 'news_add_field1.activitiesJYDS2025.item1',
  346. description: 'news_add_field1.activitiesJYDS2025.item2',
  347. image: '/static/images/banner.jpg',
  348. showCondition: 'tableDataCptFlag',
  349. hot: true,
  350. onClick: 'toSingle',
  351. onClickParams: ['23xinjia'],
  352. buttons: [
  353. {
  354. type: 'red',
  355. text: 'news_add_field1.activitiesJYDS.item3',
  356. action: 'toApplyCptOpen',
  357. condition: 'tableDataCpt.signStatus === 0'
  358. },
  359. {
  360. type: 'gray',
  361. text: 'news_add_field1.activitiesJYDS.item3_1',
  362. condition: 'tableDataCpt.signStatus === 1'
  363. },
  364. {
  365. type: 'check',
  366. text: 'news_add_field1.activitiesJYDS.item4',
  367. action: 'toSingle',
  368. params: ['23xinjia']
  369. },
  370. {
  371. type: 'check',
  372. text: 'news_add_field1.activitiesJYDS.item4_1',
  373. action: 'toOpenSingle',
  374. params: ['tableDataCpt.pageAddress']
  375. }
  376. ]
  377. },
  378. {
  379. id: 'eliteCup24',
  380. title: 'news_add_field1.activitiesJYB.item1',
  381. description: 'news_add_field1.activitiesJYB.item2',
  382. image: '/static/images/jyb.jpg',
  383. showCondition: 'tableData3FlagJYB',
  384. onClick: 'toSingle',
  385. onClickParams: ['24JYB'],
  386. buttons: [
  387. {
  388. type: 'red',
  389. text: 'news_add_field1.activitiesJYB.item3',
  390. action: 'toApply24JYBOpenVip',
  391. condition: 'tableData3JYB.show === 1 && timeExpireJx(tableData3JYB.applicationEndTime)'
  392. },
  393. {
  394. type: 'gray',
  395. text: 'news_add_field1.activitiesJYB.item3',
  396. action: 'openDialog',
  397. params: ['dialogChinaUnionPayJX'],
  398. condition: 'tableData3JYB.show === 1 && !timeExpireJx(tableData3JYB.applicationEndTime)'
  399. },
  400. {
  401. type: 'red',
  402. text: 'news_add_field1.activitiesJYB.item4',
  403. action: 'toRealization24JYBVip',
  404. condition: 'isRealizationJxJYB === 1'
  405. },
  406. {
  407. type: 'gray',
  408. text: 'news_add_field1.activitiesJYB.item4',
  409. condition: 'isRealizationJxJYB === 2'
  410. },
  411. {
  412. type: 'check',
  413. text: 'news_add_field1.activitiesJYB.item5',
  414. action: 'toSingle',
  415. params: ['24JYB']
  416. }
  417. ]
  418. }
  419. ]
  420. export const countries = [
  421. "DZ", "AO", "BJ", "BW", "BF", "CM", "CG", "CD", "CI", "DJ", "EG", "ET", "GA", "GM", "GH", "GN", "KE",
  422. "MG", "MW", "ML", "MR", "MA", "MZ", "NA", "NE", "NG", "RW", "SN", "SL", "SO", "ZA", "SS", "SD", "TZ",
  423. "TG", "TN", "UG", "ZM", "ZW", "LS", "BH", "IR", "IQ", "IL", "JO", "KW", "LB", "OM", "PS", "QA", "SA",
  424. "SY", "TR", "AE", "YE", "AR", "BO", "BR", "CL", "CO", "EC", "GY", "PY", "PE", "SR", "UY", "VE", "BZ",
  425. "CR", "SV", "GT", "HN", "NI", "PA", "AU", "CA", "AL", "AD", "AM", "AT", "AZ", "BY", "BE", "BA", "BG",
  426. "HR", "CY", "CZ", "DK", "EE", "FI", "FR", "GE", "DE", "GR", "HU", "IS", "IE", "IT", "XK", "LV", "LI",
  427. "LT", "LU", "MT", "MD", "MC", "ME", "NL", "MK", "NO", "PL", "PT", "RO", "RU", "SM", "RS", "SK", "SI",
  428. "ES", "SE", "CH", "UA", "VA"
  429. ]