Medical.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <template>
  2. <div class="medical-container">
  3. <!-- 顶部说明卡片 -->
  4. <div class="top-info-card">
  5. <div class="desc-text">
  6. 中国建设科技集团作为 "落实国家战略的重要践行者、满足人民美好生活需要的重要承载者、行业科技创新的重要引领者" 现经中共中央批准发行科技股权,参与以下建科股权可享受分红资金打款到账银行卡《享受周期5年》参与股权的本金将在10天后自动返回银行卡上,国家承诺不会落下一个贫困民众,国家不会忘记人民,百分百真实到账!
  7. </div>
  8. </div>
  9. <!-- 团队奖励卡片 -->
  10. <div class="commission-card">
  11. <div class="commission-content">
  12. <span class="commission-title">团队奖励</span>
  13. <div class="commission-rates">
  14. <span class="rate-item">一级5%</span>
  15. <span class="rate-item">二级3%</span>
  16. <span class="rate-item">三级1%</span>
  17. </div>
  18. </div>
  19. </div>
  20. <!-- 项目列表 -->
  21. <div class="project-list">
  22. <div v-for="item in rewards" :key="item.id" class="project-item">
  23. <!-- 项目头部 -->
  24. <div class="project-header">
  25. <span class="project-name">{{ item.title }}</span>
  26. <span class="project-shares">获得养老金{{ item.computing_power }}.00元</span>
  27. </div>
  28. <!-- 项目内容 -->
  29. <div class="project-content">
  30. <div class="income-info">
  31. <div class="income-rate">{{ item.power }}%</div>
  32. <div class="income-label">每日收益</div>
  33. </div>
  34. <div class="amount-info">
  35. <div class="amount-value">{{ item.money }}元</div>
  36. <div class="amount-label">参与金额</div>
  37. </div>
  38. <button class="join-btn" @click="toPayment(item)">立即参与</button>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </template>
  44. <script>
  45. import {getMiner} from '@/api/home.js'
  46. export default {
  47. name: 'Medical',
  48. data() {
  49. return {
  50. rewards: [{},{},{},{}]
  51. }
  52. },
  53. methods: {
  54. getPlans(){
  55. let data = {
  56. page:'',
  57. size:'',
  58. type:1
  59. }
  60. getMiner(data).then(res=>{
  61. if(res.code === 1){
  62. this.rewards = res.data
  63. }
  64. })
  65. },
  66. toPayment(item){
  67. this.$router.push({path:'/Payment',query:{item:item}});
  68. }
  69. },
  70. mounted(){
  71. this.getPlans()
  72. }
  73. }
  74. </script>
  75. <style scoped>
  76. .medical-container {
  77. min-height: 100vh;
  78. background: #b43a39;
  79. padding: 20px;
  80. box-sizing: border-box;
  81. padding-bottom: 80px;
  82. }
  83. /* 顶部信息卡片 */
  84. .top-info-card {
  85. background: #fff;
  86. border: 2px solid #fff;
  87. border-radius: 8px;
  88. padding: 15px;
  89. margin-bottom: 15px;
  90. }
  91. .desc-text {
  92. color: #333;
  93. font-size: 14px;
  94. line-height: 1.5;
  95. text-align: justify;
  96. font-weight: 700;
  97. font-family: auto;
  98. }
  99. /* 团队奖励卡片 */
  100. .commission-card {
  101. background: #fff;
  102. border-radius: 12px;
  103. padding: 18px 20px;
  104. margin-bottom: 20px;
  105. box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  106. }
  107. .commission-content {
  108. display: flex;
  109. align-items: center;
  110. }
  111. .commission-title {
  112. color: #d0021b;
  113. font-weight: bold;
  114. font-size: 16px;
  115. margin-right: 24px;
  116. white-space: nowrap;
  117. }
  118. .commission-rates {
  119. display: flex;
  120. gap: 32px;
  121. align-items: center;
  122. }
  123. .rate-item {
  124. color: #222;
  125. font-size: 14px;
  126. font-weight: bold;
  127. letter-spacing: 1px;
  128. }
  129. /* 项目列表 */
  130. .project-list {
  131. /* 项目容器 */
  132. }
  133. .project-item {
  134. background: #fff;
  135. border-radius: 12px;
  136. margin-bottom: 15px;
  137. overflow: hidden;
  138. }
  139. .project-header {
  140. background: #d91d42;
  141. color: #fff;
  142. padding: 12px 20px;
  143. display: flex;
  144. justify-content: space-between;
  145. align-items: center;
  146. }
  147. .project-name {
  148. font-size: 16px;
  149. font-weight: bold;
  150. }
  151. .project-shares {
  152. font-size: 14px;
  153. color: #e6f11c;
  154. }
  155. .project-content {
  156. padding: 20px;
  157. display: flex;
  158. align-items: center;
  159. justify-content: space-between;
  160. }
  161. .income-info, .amount-info {
  162. text-align: center;
  163. }
  164. .income-rate, .amount-value {
  165. font-size: 20px;
  166. font-weight: bold;
  167. color: #333;
  168. margin-bottom: 5px;
  169. }
  170. .income-label, .amount-label {
  171. font-size: 14px;
  172. color: #666;
  173. }
  174. .join-btn {
  175. background: #d91d42;
  176. color: #fff;
  177. border: none;
  178. padding: 12px 24px;
  179. border-radius: 20px;
  180. font-size: 14px;
  181. font-weight: bold;
  182. cursor: pointer;
  183. transition: all 0.3s;
  184. }
  185. .join-btn:hover {
  186. background: #c01a3a;
  187. transform: scale(1.05);
  188. }
  189. .join-btn:active {
  190. transform: scale(0.95);
  191. }
  192. </style>