index.vue 4.1 KB

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