myPing.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <template>
  2. <view class="center">
  3. <view class="bg"></view>
  4. <view class="zong flex">
  5. <view class="info">
  6. <view class="info-num">{{happy || '0.00' }}</view>
  7. <view class="info-font">福气值</view>
  8. </view>
  9. <view class="info">
  10. <view class="info-num">{{luck || '0.00' }}</view>
  11. <view class="info-font">幸运值</view>
  12. </view>
  13. <view class="info">
  14. <view class="info-num">{{honor || '0.00' }}</view>
  15. <view class="info-font">荣誉值</view>
  16. </view>
  17. </view>
  18. <view class="money flex">
  19. <view class="money-box">
  20. <view class="money-num">{{usdt || '0.00' }}</view>
  21. <view class="money-font">昨日USDT分红池</view>
  22. </view>
  23. <view class="money-box" >
  24. <view class="money-num" style="text-align: right;">{{fil || '0.00' }}</view>
  25. <view class="money-font">昨日FIL分红池</view>
  26. </view>
  27. </view>
  28. <view class="join">
  29. <view class="xian"></view>
  30. <view class="join-font">参与记录</view>
  31. </view>
  32. <scroll-view scroll-y="true" @scrolltolower="loadData">
  33. <view v-for="(item,index) in list" :key="index" class="box" @click="nav(item)">
  34. <view class="title">
  35. <view class="log"><image src="" mode=""></image></view>
  36. <view class="name">{{item.name}}</view>
  37. <view class="lun">{{item.lun}}</view>
  38. <view class="more">详情</view>
  39. </view>
  40. <view class="main">
  41. <view class="main-info">
  42. <view class="main-left">参与份数</view>
  43. <view class="main-right">{{item.fen}}人份</view>
  44. </view>
  45. <view class="main-info">
  46. <view class="main-left">参与金额</view>
  47. <view class="main-right">{{item.money}}USDT</view>
  48. </view>
  49. <view class="main-info">
  50. <view class="main-left">参与时间</view>
  51. <view class="main-right">{{item.time}}</view>
  52. </view>
  53. </view>
  54. </view>
  55. </scroll-view>
  56. </view>
  57. </template>
  58. <script>
  59. export default {
  60. data() {
  61. return {
  62. happy: '0.00',
  63. luck: '0.00',
  64. honor: '0.00',
  65. usdt: '0.00',
  66. fil: '0.00',
  67. list: [
  68. {
  69. name: 'FilsCoin矿机拼购',
  70. lun: '36轮',
  71. fen: 1,
  72. money: 100,
  73. time: '2021-07-23 14:00:20'
  74. },
  75. {
  76. name: 'FilsCoin矿机拼购',
  77. lun: '36轮',
  78. fen: 1,
  79. money: 100,
  80. time: '2021-07-23 14:00:20'
  81. },
  82. {
  83. name: 'FilsCoin矿机拼购',
  84. lun: '36轮',
  85. fen: 1,
  86. money: 100,
  87. time: '2021-07-23 14:00:20'
  88. },
  89. ],
  90. loadtype: '',
  91. page: 1,
  92. limit: 10,
  93. }
  94. },
  95. methods:{
  96. nav(e) {
  97. uni.navigateTo({
  98. url: '/pages/assets/teamDetails'
  99. })
  100. },
  101. }
  102. }
  103. </script>
  104. <style lang="scss">
  105. .center,page {
  106. height: 100%;
  107. background: #F7FBFE;
  108. }
  109. .bg {
  110. width: 750rpx;
  111. height: 248rpx;
  112. background: #000000;
  113. border-bottom-left-radius: 150rpx;
  114. border-bottom-right-radius: 150rpx;
  115. }
  116. .zong {
  117. width: 690rpx;
  118. height: 181rpx;
  119. background: #FFFFFF;
  120. box-shadow: 0px 0px 17rpx 0px rgba(0, 0, 0, 0.05);
  121. border-radius: 20rpx;
  122. margin: -150rpx auto 0;
  123. justify-content: space-between;
  124. padding: 0rpx 36rpx;
  125. .info {
  126. display: flex;
  127. flex-direction: column;
  128. align-items: center;
  129. .info-num {
  130. font-size: 50rpx;
  131. font-family: PingFang SC;
  132. font-weight: bold;
  133. color: #0F253A;
  134. }
  135. .info-font {
  136. font-size: 28rpx;
  137. font-family: PingFang SC;
  138. font-weight: bold;
  139. color: #6D7C88;
  140. }
  141. }
  142. }
  143. .money {
  144. width: 690rpx;
  145. height: 143rpx;
  146. background: #FFFFFF;
  147. box-shadow: 0px 0px 17rpx 0px rgba(0, 0, 0, 0.05);
  148. border-radius: 20rpx;
  149. margin: 10rpx auto 0;
  150. justify-content: space-between;
  151. padding: 0rpx 36rpx;
  152. .money-box {
  153. display: flex;
  154. flex-direction: column;
  155. .money-num {
  156. font-size: 40rpx;
  157. font-family: PingFang SC;
  158. font-weight: bold;
  159. color: #0F253A;
  160. }
  161. .money-font {
  162. font-size: 24rpx;
  163. font-family: PingFang SC;
  164. font-weight: bold;
  165. color: #6D7C88;
  166. }
  167. }
  168. }
  169. .join {
  170. margin-top: 44rpx;
  171. padding-left: 30rpx;
  172. display: flex;
  173. justify-content: flex-start;
  174. align-items: center;
  175. .xian {
  176. width: 6rpx;
  177. height: 30rpx;
  178. background: #0F253A;
  179. border-radius: 4rpx;
  180. }
  181. .join-font {
  182. padding-left: 16rpx;
  183. font-size: 30rpx;
  184. font-family: PingFang SC;
  185. font-weight: bold;
  186. color: #0F253A;
  187. }
  188. }
  189. .box:first-child {
  190. margin-top: 34rpx;
  191. }
  192. .box {
  193. margin: 20rpx auto 0;
  194. width: 690rpx;
  195. background: #FFFFFF;
  196. box-shadow: 0px 0px 17rpx 0px rgba(0, 0, 0, 0.05);
  197. border-radius: 20rpx;
  198. padding: 26rpx 36rpx 30rpx 30rpx;
  199. position: relative;
  200. .title {
  201. display: flex;
  202. justify-content: flex-start;
  203. align-items: center;
  204. .log {
  205. width: 48rpx;
  206. height: 46rpx;
  207. background: #00BCD4;
  208. image{
  209. width: 100%;
  210. height: 100%;
  211. }
  212. }
  213. .name {
  214. padding-left: 12rpx;
  215. font-size: 34rpx;
  216. font-family: PingFang SC;
  217. font-weight: bold;
  218. color: #0F253A;
  219. }
  220. .lun {
  221. padding-left: 10rpx;
  222. font-size: 26rpx;
  223. font-family: PingFang SC;
  224. font-weight: 500;
  225. color: #6D7C88;
  226. }
  227. .more {
  228. padding-left: 158rpx;
  229. font-size: 28rpx;
  230. font-family: PingFang SC;
  231. font-weight: bold;
  232. color: #44969D;
  233. }
  234. }
  235. .main {
  236. margin-top: 26rpx;
  237. .main-info{
  238. padding-top: 16rpx;
  239. display: flex;
  240. justify-content: space-between;
  241. .main-left {
  242. font-size: 26rpx;
  243. font-family: PingFang SC;
  244. font-weight: 500;
  245. color: #6D7C88;
  246. }
  247. .main-right {
  248. font-size: 26rpx;
  249. font-family: PingFang SC;
  250. font-weight: bold;
  251. color: #0F253A;
  252. }
  253. }
  254. }
  255. }
  256. </style>