activityConfigs.ts 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. // 静态活动配置
  2. export const staticActivityConfigs = [
  3. {
  4. // CWG Markets 月赏礼遇
  5. id: 'monthlyGift',
  6. title: 'MonthlyActivities.item1',
  7. description: 'MonthlyActivities.item1_1',
  8. image: '/static/images/yue.jpg',
  9. showCondition: "country === 'CN'",
  10. hot: true,
  11. buttons: [
  12. {
  13. type: 'dynamic',
  14. text: 'news_add_field1.activities10_trading_aoyun.item3',
  15. action: 'openSurplusActivityDialog1',
  16. classCondition: 'monthlyGive'
  17. },
  18. {
  19. type: 'check',
  20. text: 'wallet.item15',
  21. action: 'openPdf',
  22. pdf: '/pdf/pdf13/CWG Prime Bonus-cn.pdf'
  23. },
  24. {
  25. type: 'check',
  26. text: 'Transfer.item7',
  27. action: 'openPdf',
  28. pdf: '/pdf/pdf13/CWG Markets Prime Bonus Application Process-cn.pdf'
  29. },
  30. {
  31. type: 'check',
  32. text: 'wallet.item14',
  33. action: 'goMonthlyTaskList'
  34. }
  35. ]
  36. },
  37. {
  38. // 赠金活动
  39. id: 'bonusGift',
  40. title: 'surplusList.item1',
  41. description: 'surplusList.item2',
  42. image: '/static/images/su.png',
  43. hot: true,
  44. buttons: [
  45. {
  46. type: 'dynamic',
  47. text: 'news_add_field1.activities10_trading_aoyun.item3',
  48. action: 'openSurplusActivityDialog',
  49. classCondition: 'surplusGive'
  50. },
  51. {
  52. type: 'check',
  53. text: 'wallet.item15',
  54. action: 'openPdf',
  55. pdf: {
  56. dynamic: true,
  57. path: '/pdf/pdf12/CWG Prime Bonus-{lang}.pdf'
  58. }
  59. },
  60. {
  61. type: 'check',
  62. text: 'Transfer.item7',
  63. action: 'openPdf',
  64. pdf: {
  65. dynamic: true,
  66. path: '/pdf/pdf12/CWG Markets Prime Bonus Application Process-{lang}.pdf',
  67. fallback: '/pdf/pdf12/CWG Markets Prime Bonus Application Process-en.pdf',
  68. supportedLangs: ['cn', 'zhHant', 'en']
  69. }
  70. },
  71. {
  72. type: 'check',
  73. text: 'wallet.item14',
  74. action: 'goSurplusTaskList'
  75. }
  76. ]
  77. },
  78. {
  79. // 交易大赛
  80. id: 'tradingCompetition',
  81. title: 'news_add_field1.activitiesJYDS2025.item1',
  82. description: 'news_add_field1.activitiesJYDS2025.item2',
  83. image: '/static/images/banner.jpg',
  84. showCondition: 'tableDataCptFlag',
  85. hot: true,
  86. onClick: 'toSingle',
  87. onClickParams: ['23xinjia'],
  88. buttons: [
  89. {
  90. type: 'red',
  91. text: 'news_add_field1.activitiesJYDS.item3',
  92. action: 'toApplyCptOpen',
  93. classCondition: 'tableDataCpt.signStatus === 0'
  94. },
  95. {
  96. type: 'check',
  97. text: 'news_add_field1.activitiesJYDS.item4',
  98. action: 'toSingle',
  99. params: ['23xinjia']
  100. },
  101. {
  102. type: 'check',
  103. text: 'news_add_field1.activitiesJYDS.item4_1',
  104. action: 'toOpenSingle',
  105. params: ['tableDataCpt.pageAddress']
  106. }
  107. ]
  108. },
  109. // {
  110. // id: 'eliteCup24',
  111. // title: 'news_add_field1.activitiesJYB.item1',
  112. // description: 'news_add_field1.activitiesJYB.item2',
  113. // image: '/static/images/jyb.jpg',
  114. // showCondition: 'tableData3FlagJYB',
  115. // onClick: 'toSingle',
  116. // onClickParams: ['24JYB'],
  117. // buttons: [
  118. // {
  119. // type: 'red',
  120. // text: 'news_add_field1.activitiesJYB.item3',
  121. // action: 'toApply24JYBOpenVip',
  122. // condition: 'tableData3JYB.show === 1',
  123. // and: 'timeExpireJx(tableData3JYB.applicationEndTime)'
  124. // },
  125. // {
  126. // type: 'gray',
  127. // text: 'news_add_field1.activitiesJYB.item3',
  128. // action: 'openDialog',
  129. // params: ['dialogChinaUnionPayJX'],
  130. // condition: 'tableData3JYB.show === 1',
  131. // and: '!timeExpireJx(tableData3JYB.applicationEndTime)'
  132. // },
  133. // {
  134. // type: 'red',
  135. // text: 'news_add_field1.activitiesJYB.item4',
  136. // action: 'toRealization24JYBVip',
  137. // condition: 'isRealizationJxJYB === 1'
  138. // },
  139. // {
  140. // type: 'gray',
  141. // text: 'news_add_field1.activitiesJYB.item4',
  142. // condition: 'isRealizationJxJYB === 2'
  143. // },
  144. // {
  145. // type: 'check',
  146. // text: 'news_add_field1.activitiesJYB.item5',
  147. // action: 'toSingle',
  148. // params: ['24JYB']
  149. // }
  150. // ]
  151. // },
  152. ]