index.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <template>
  2. <view class="">
  3. <card @updateShowMoneyStatus="(e) => showMoney = e">
  4. <template #cardnum>
  5. 0.0000
  6. <!-- {{ GiftMoneyAccount.usdt_totle || '--'}} -->
  7. </template>
  8. <template #cardnums>
  9. 0.00
  10. <!-- {{ GiftMoneyAccount.CNY || '--'}} -->
  11. </template>
  12. <template #cardmuen>
  13. <block v-for="(item , index ) in cardMuen">
  14. <view class="card-muen-item_1" @click.stop="cardBtns(item)">
  15. <image class="item-icon" :src="item.icon" mode="aspectFit"></image>
  16. <text class="item-name">{{item.name}}</text>
  17. </view>
  18. </block>
  19. </template>
  20. </card>
  21. <view class="gift-money">
  22. <view class="lable-title">保证金</view>
  23. <uni-table class="table-box" emptyText="暂无更多数据">
  24. <!-- 表头行 -->
  25. <uni-tr>
  26. <uni-th align="left">可用保证金</uni-th>
  27. <uni-th align="center">已用保证金</uni-th>
  28. <uni-th align="right">冻结</uni-th>
  29. </uni-tr>
  30. <!-- 表格数据行 -->
  31. <uni-tr>
  32. <uni-td>0.0000 USDT</uni-td>
  33. <uni-td style="text-align: center;">0.0000 USDT</uni-td>
  34. <uni-td style="text-align: right;">0.0000</uni-td>
  35. </uni-tr>
  36. </uni-table>
  37. <view class="account-money">
  38. <view class="money-item">
  39. 赠金账户 0.0000 USDT
  40. </view>
  41. <view class="money-item">
  42. 盈利账户 0.0000 USDT
  43. </view>
  44. </view>
  45. <gap />
  46. <view class="lable-title">盈亏</view>
  47. <view class="Profit-loss">
  48. <view class="Profit-loss-lable">
  49. 浮动盈亏
  50. </view>
  51. <view class="Profit-loss-value">
  52. 0.0000 USDT
  53. </view>
  54. </view>
  55. </view>
  56. <capital-switch ref="capitalSwitchRef" />
  57. </view>
  58. </template>
  59. <script>
  60. import card from "../card.vue"
  61. import capitalSwitch from "./capital-switch.vue"
  62. import {
  63. checkBill
  64. } from "../card.js"
  65. import {
  66. mapGetters
  67. } from 'vuex'
  68. export default {
  69. name: 'GiftMoney',
  70. computed: {
  71. ...mapGetters([
  72. 'GiftMoneyAccount',
  73. ])
  74. },
  75. components: {
  76. card,
  77. capitalSwitch
  78. },
  79. data() {
  80. return {
  81. showMoney: true,
  82. cardMuen: [{
  83. icon: require('@/static/images/zichan/icon_01.png'),
  84. name: '资金划转',
  85. btn: "GiftMoney"
  86. }, {
  87. icon: require('@/static/images/zichan/icon_02.png'),
  88. name: '用户账单',
  89. path: '/pages/property/bill?type=3'
  90. }]
  91. };
  92. },
  93. methods:{
  94. cardBtns(item) {
  95. const btn = item?.btn
  96. const path = item?.path
  97. if (btn) {
  98. // 资金转换
  99. this.$nextTick(() => {
  100. this.$refs.capitalSwitchRef.open()
  101. })
  102. } else if(path){
  103. // '用户账单',
  104. checkBill(path)
  105. }
  106. }
  107. }
  108. }
  109. </script>
  110. <style lang="scss" scoped>
  111. .gift-money {
  112. width: 100%;
  113. .lable-title {
  114. font-size: 28rpx;
  115. font-family: PingFang SC, PingFang SC-Bold;
  116. font-weight: 700;
  117. color: #1a1a1a;
  118. padding: 30rpx $pages-padding 11rpx;
  119. border-bottom: 1px solid #e6e6e6;
  120. }
  121. }
  122. .table-box {
  123. padding: 0 $pages-padding;
  124. ::v-deep .uni-table-tr {
  125. .uni-table-th {
  126. border: none;
  127. font-size: 22rpx;
  128. font-family: PingFang SC, PingFang SC-Regular;
  129. font-weight: 400;
  130. color: #1a1a1a;
  131. }
  132. .uni-table-td {
  133. border: none;
  134. font-size: 26rpx;
  135. font-family: PingFang SC, PingFang SC-Bold;
  136. font-weight: 700;
  137. color: #1a1a1a;
  138. }
  139. .uni-table-th {
  140. padding: 20rpx 0 0;
  141. &:nth-child(2) {
  142. padding: 20rpx 20rpx 0;
  143. }
  144. }
  145. .uni-table-td {
  146. padding: 12rpx 0 20rpx;
  147. &:nth-child(2) {
  148. padding: 12rpx 20rpx 0;
  149. }
  150. }
  151. }
  152. }
  153. .account-money {
  154. padding: 0 $pages-padding;
  155. font-size: 22rpx;
  156. font-family: PingFang SC, PingFang SC-Regular;
  157. font-weight: 400;
  158. color: #808080;
  159. line-height: 30rpx;
  160. .money-item {
  161. padding-bottom: 12rpx;
  162. &:last-child {
  163. padding-bottom: 30rpx;
  164. }
  165. }
  166. }
  167. .Profit-loss {
  168. width: 100%;
  169. padding: 0 $pages-padding;
  170. .Profit-loss-lable {
  171. padding: 20rpx 0 12rpx;
  172. font-size: 22rpx;
  173. font-family: PingFang SC, PingFang SC-Regular;
  174. font-weight: 400;
  175. color: #1a1a1a;
  176. line-height: 30rpx;
  177. }
  178. .Profit-loss-value {
  179. font-size: 26rpx;
  180. font-family: PingFang SC, PingFang SC-Bold;
  181. font-weight: 700;
  182. color: #1a1a1a;
  183. line-height: 37rpx;
  184. }
  185. }
  186. </style>