China.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <template>
  2. <div class="usremei-container">
  3. <div class="invite-header">
  4. 红旗资本医疗补贴
  5. </div>
  6. <div class="invite-list">
  7. <div class="invite-item" v-for="item in rewards" :key="item.id">
  8. <div class="item_header">
  9. <div class="title">{{ item.title }}</div>
  10. <div class="titletwo">获得{{item.computing_power}}万元医疗补贴</div>
  11. </div>
  12. <div class="item_body">
  13. <div class="body_left">
  14. <div class="bodt_one">{{item.power}}%</div>
  15. <div class="bodt_two">每日收益</div>
  16. </div>
  17. <div class="body_right">
  18. <div class="bodt_one">{{item.money}}元</div>
  19. <div class="bodt_two">1000份</div>
  20. </div>
  21. <div class="body_btn">立即抢购</div>
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26. </template>
  27. <script>
  28. import {getMiner} from '@/api/home.js'
  29. export default {
  30. name: 'Dynamic',
  31. data() {
  32. return {
  33. rewards: [{},{},{},{}]
  34. }
  35. },
  36. methods: {
  37. getPlans(){
  38. let data = {
  39. page:'',
  40. size:'',
  41. type:1
  42. }
  43. getMiner(data).then(res=>{
  44. if(res.code === 1){
  45. this.rewards = res.data
  46. }
  47. })
  48. },
  49. },
  50. mounted(){
  51. this.getPlans()
  52. }
  53. }
  54. </script>
  55. <style scoped>
  56. .usremei-container {
  57. min-height: 100vh;
  58. background-image: url('../assets/dabag.png');
  59. background-size: cover;
  60. background-position: center;
  61. padding-top: 60px;
  62. padding-bottom: 80px;
  63. box-sizing: border-box;
  64. overflow-y: auto;
  65. position: relative;
  66. }
  67. .invite-header {
  68. background: #ffeddf;
  69. color: #f11859;
  70. font-size: 24px;
  71. font-weight: bold;
  72. text-align: center;
  73. margin: 0 auto 30px auto;
  74. padding: 20px 0 10px 0;
  75. width: 90%;
  76. box-shadow: 0 4px 16px rgba(208,2,27,0.08);
  77. letter-spacing: 2px;
  78. }
  79. .invite-list {
  80. width: 90%;
  81. margin: 0 auto;
  82. }
  83. .invite-item {
  84. margin-bottom: 22px;
  85. width:100%;
  86. height:88px;
  87. background:#fff;
  88. }
  89. .item_header{
  90. height:30px;
  91. line-height:30px;
  92. background:#a30100;
  93. display:flex;
  94. color:#fff;
  95. font-size:14px;
  96. }
  97. .title{
  98. margin-left:20px;
  99. }
  100. .titletwo{
  101. margin-left:65px;
  102. }
  103. .item_body{
  104. padding:8px 20px;
  105. display:flex;
  106. justify-content: space-between;
  107. text-align:center;
  108. align-items: center;
  109. }
  110. .bodt_two{
  111. margin-top:4px;
  112. }
  113. .body_btn{
  114. width:60px;
  115. height:20px;
  116. background:#a30100;
  117. color:#fff;
  118. font-size:12px;
  119. text-align:center;
  120. line-height:20px;
  121. border-radius:12px;
  122. padding:2px 4px;
  123. }
  124. </style>