activityConfigs.ts 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  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. id: 'jiangxinCollege',
  421. title: 'news_add_field1.activitiesJX.item1',
  422. description: 'news_add_field1.activitiesJX.item2',
  423. image: '/static/images/hd_img_100.png',
  424. showCondition: 'tableData3Flag',
  425. hot: true,
  426. onClick: 'toSingle',
  427. onClickParams: ['23jx'],
  428. buttons: [
  429. {
  430. type: 'red',
  431. text: 'news_add_field1.activitiesJX.item3',
  432. action: 'toApply23JxOpen',
  433. condition: 'tableData3.show === 1 && timeExpireJx(tableData3.applicationEndTime)'
  434. },
  435. {
  436. type: 'gray',
  437. text: 'news_add_field1.activitiesJX.item3',
  438. action: 'openDialog',
  439. params: ['dialogChinaUnionPayJX'],
  440. condition: 'tableData3.show === 1 && !timeExpireJx(tableData3.applicationEndTime)'
  441. },
  442. {
  443. type: 'red',
  444. text: 'news_add_field1.activitiesJX.item4',
  445. action: 'toRealizationJx',
  446. condition: 'isRealizationJx === 1'
  447. },
  448. {
  449. type: 'gray',
  450. text: 'news_add_field1.activitiesJX.item4',
  451. condition: 'isRealizationJx === 2'
  452. },
  453. {
  454. type: 'check',
  455. text: 'news_add_field1.activitiesJX.item5',
  456. action: 'toSingle',
  457. params: ['23jx']
  458. }
  459. ]
  460. },
  461. {
  462. id: 'jiangxinCollegeVip',
  463. title: 'news_add_field1.activitiesJX.item1',
  464. description: 'news_add_field1.activitiesJX.item2',
  465. image: '/static/images/hd_img_100_1.png',
  466. showCondition: 'tableData3FlagVip',
  467. onClick: 'toSingle',
  468. onClickParams: ['23jxVip'],
  469. buttons: [
  470. {
  471. type: 'red',
  472. text: 'news_add_field1.activitiesJX.item3',
  473. action: 'toApply23JxOpenVip',
  474. condition: 'tableData3Vip.show === 1 && timeExpireJx(tableData3Vip.applicationEndTime)'
  475. },
  476. {
  477. type: 'gray',
  478. text: 'news_add_field1.activitiesJX.item3',
  479. action: 'openDialog',
  480. params: ['dialogChinaUnionPayJX'],
  481. condition: 'tableData3Vip.show === 1 && !timeExpireJx(tableData3Vip.applicationEndTime)'
  482. },
  483. {
  484. type: 'red',
  485. text: 'news_add_field1.activitiesJX.item4',
  486. action: 'toRealizationJxVip',
  487. condition: 'isRealizationJxVip === 1'
  488. },
  489. {
  490. type: 'gray',
  491. text: 'news_add_field1.activitiesJX.item4',
  492. condition: 'isRealizationJxVip === 2'
  493. },
  494. {
  495. type: 'check',
  496. text: 'news_add_field1.activitiesJX.item5',
  497. action: 'toSingle',
  498. params: ['23jxVip']
  499. }
  500. ]
  501. },
  502. {
  503. id: 'midYearBonus10',
  504. title: 'news_add_field1.activitiesNZ.item1',
  505. description: 'news_add_field1.activitiesNZ.item2',
  506. image: '/static/images/hd_10_500.jpg',
  507. showCondition: 'tableData4Flag',
  508. hot: true,
  509. onClick: 'toSingle',
  510. onClickParams: ['23nz'],
  511. buttons: [
  512. {
  513. type: 'red',
  514. text: 'news_add_field1.activitiesNZ.item3',
  515. action: 'toActivity24nianzhong',
  516. condition: 'tableData4.show === 1'
  517. },
  518. {
  519. type: 'check',
  520. text: 'news_add_field1.activitiesNZ.item5',
  521. action: 'toSingle',
  522. params: ['23nz']
  523. }
  524. ]
  525. },
  526. {
  527. id: 'midYearBonus20',
  528. title: 'news_add_field1.activitiesNZTwo.item1',
  529. description: 'news_add_field1.activitiesNZTwo.item2',
  530. image: '/static/images/hd_10_500_20.png',
  531. showCondition: 'tableData4TwoFlag',
  532. hot: true,
  533. onClick: 'toSingle',
  534. onClickParams: ['23nzTwo'],
  535. buttons: [
  536. {
  537. type: 'red',
  538. text: 'news_add_field1.activitiesNZTwo.item3',
  539. action: 'toActivity24nianzhong',
  540. condition: 'tableData4Two.show === 1'
  541. },
  542. {
  543. type: 'check',
  544. text: 'news_add_field1.activitiesNZTwo.item5',
  545. action: 'toSingle',
  546. params: ['23nzTwo']
  547. }
  548. ]
  549. }
  550. ]