index.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <template>
  2. <view class="gift-money">
  3. <view class="lable-title">保证金</view>
  4. <uni-table class="table-box" emptyText="暂无更多数据">
  5. <!-- 表头行 -->
  6. <uni-tr>
  7. <uni-th align="left">可用保证金</uni-th>
  8. <uni-th align="center">已用保证金</uni-th>
  9. <uni-th align="right">冻结</uni-th>
  10. </uni-tr>
  11. <!-- 表格数据行 -->
  12. <uni-tr>
  13. <uni-td>124.8028 USDT</uni-td>
  14. <uni-td style="text-align: center;">100.0000 USDT</uni-td>
  15. <uni-td style="text-align: right;">29997.9123</uni-td>
  16. </uni-tr>
  17. </uni-table>
  18. <view class="account-money">
  19. <view class="money-item">
  20. 赠金账户 124.8028 USDT
  21. </view>
  22. <view class="money-item">
  23. 盈利账户 0.0000 USDT
  24. </view>
  25. </view>
  26. <gap height="8rpx"/>
  27. <view class="lable-title">盈亏</view>
  28. <view class="Profit-loss">
  29. <view class="Profit-loss-lable">
  30. 浮动盈亏
  31. </view>
  32. <view class="Profit-loss-value">
  33. -1.8767 USDT
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. name: 'GiftMoney',
  41. data() {
  42. return {
  43. };
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .gift-money {
  49. width: 100%;
  50. .lable-title {
  51. font-size: 28rpx;
  52. font-family: PingFang SC, PingFang SC-Bold;
  53. font-weight: 700;
  54. color: #1a1a1a;
  55. padding: 30rpx $pages-padding 11rpx;
  56. border-bottom: 1px solid #e6e6e6;
  57. }
  58. }
  59. .table-box {
  60. padding: 0 $pages-padding;
  61. ::v-deep .uni-table-tr {
  62. .uni-table-th {
  63. border: none;
  64. font-size: 22rpx;
  65. font-family: PingFang SC, PingFang SC-Regular;
  66. font-weight: 400;
  67. color: #1a1a1a;
  68. }
  69. .uni-table-td {
  70. border: none;
  71. font-size: 26rpx;
  72. font-family: PingFang SC, PingFang SC-Bold;
  73. font-weight: 700;
  74. color: #1a1a1a;
  75. }
  76. .uni-table-th {
  77. padding: 20rpx 0 0;
  78. &:nth-child(2) {
  79. padding: 20rpx 20rpx 0;
  80. }
  81. }
  82. .uni-table-td {
  83. padding: 12rpx 0 20rpx;
  84. &:nth-child(2) {
  85. padding: 12rpx 20rpx 0;
  86. }
  87. }
  88. }
  89. }
  90. .account-money {
  91. padding: 0 $pages-padding;
  92. font-size: 22rpx;
  93. font-family: PingFang SC, PingFang SC-Regular;
  94. font-weight: 400;
  95. color: #808080;
  96. line-height: 30rpx;
  97. .money-item{
  98. padding-bottom: 12rpx;
  99. &:last-child{
  100. padding-bottom: 30rpx;
  101. }
  102. }
  103. }
  104. .Profit-loss{
  105. width: 100%;
  106. padding: 0 $pages-padding;
  107. .Profit-loss-lable{
  108. padding: 20rpx 0 12rpx;
  109. font-size: 22rpx;
  110. font-family: PingFang SC, PingFang SC-Regular;
  111. font-weight: 400;
  112. color: #1a1a1a;
  113. line-height: 30rpx;
  114. }
  115. .Profit-loss-value{
  116. font-size: 26rpx;
  117. font-family: PingFang SC, PingFang SC-Bold;
  118. font-weight: 700;
  119. color: #1a1a1a;
  120. line-height: 37rpx;
  121. }
  122. }
  123. </style>