index.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <template>
  2. <view class="icon-box">
  3. <Nav title="资产" :left-show="false" bgckgroundBox="#146AF0" titleColor="#fff"></Nav>
  4. <view class="mui-content">
  5. <view class="ln-assets-blue">
  6. <view class="ln-assets-top">总账户资产折合(USDT)</view>
  7. <view class="ln-assets-hd">
  8. <view class="ln-assets-num">{{totalUsdt.toFixed(6)}}</view>
  9. <view class="ln-assets-price">&asymp;{{totalPrice.toFixed(2)}} CNY</view>
  10. </view>
  11. </view>
  12. <view class="order-list">
  13. <view class="order-item" v-for="coin in list">
  14. <view @click="" class="order-list-hd">
  15. <view class="order-list-nm text-blue">{{coin.coin_name}}</view>
  16. <view class="order-list-state"><i class="iconfont mui-icon-arrowright">&#xe62b;</i></view>
  17. </view>
  18. <view class="order-list-con ">
  19. <view class="order-list-iteam">
  20. <view class="order-list-tit">可用({{coin.coin_name}})</view>
  21. <view class="order-list-num">{{coin.num.toFixed(6)}}</view>
  22. </view>
  23. <view class="order-list-iteam">
  24. <view class="order-list-tit">冻结({{coin.coin_name}})</view>
  25. <view class="order-list-num">{{coin.lock_num.toFixed(6)}}</view>
  26. </view>
  27. <view class="order-list-iteam order-list-iteamr">
  28. <view class="order-list-tit">折合(CNY)</view>
  29. <view class="order-list-num">&asymp;{{coin.price.toFixed(2)}}</view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. import {getIconList} from "@/api/member";
  39. export default {
  40. name: "index",
  41. components: {},
  42. props: {},
  43. data() {
  44. return {
  45. totalPrice:0,
  46. totalUsdt:0,
  47. list:[],
  48. }
  49. },
  50. watch: {},
  51. mounted() {
  52. this.getIconList()
  53. },
  54. methods: {
  55. getIconList(){
  56. getIconList().then((res)=>{
  57. if(res.code===1){
  58. this.totalPrice=res.data.totalPrice
  59. this.totalUsdt=res.data.totalUsdt
  60. this.list=res.data.list
  61. }
  62. })
  63. }
  64. }
  65. }
  66. </script>
  67. <style scoped lang="scss">
  68. @import url("/components/static/css/en-common.css") ;
  69. .icon-box{
  70. background: #131E30;
  71. min-height: calc(100vh - 50px);
  72. .mui-icon-arrowright{
  73. color: #7388a7;
  74. }
  75. .mui-content{
  76. color: #7388a7;
  77. .ln-assets-blue{
  78. position: relative;
  79. width: 100%;
  80. padding:0 10px 10px 10px;
  81. color: rgba(255,255,255,0.6);
  82. background: #146AF0;
  83. .ln-assets-top{
  84. width: 100%;
  85. height: 16px;
  86. line-height: 16px;
  87. font-size: 12px;
  88. overflow: hidden;
  89. text-overflow: ellipsis;
  90. white-space: nowrap;
  91. color: rgba(255,255,255,0.6);
  92. }
  93. .ln-assets-hd{
  94. width: 100%;
  95. margin: 15px auto;
  96. .ln-assets-num {
  97. width: 100%;
  98. line-height: 28px;
  99. color: #FFFFFF;
  100. font-size: 24px;
  101. }
  102. .ln-assets-price {
  103. width: 100%;
  104. line-height: 20px;
  105. font-size: 12px;
  106. color: rgba(255,255,255,0.6);
  107. }
  108. }
  109. }
  110. .order-list{
  111. width: calc(100% - 20px);
  112. list-style-type: none;
  113. margin: 0;
  114. -webkit-padding-start: 0;
  115. padding: 0 10px;
  116. .order-item{
  117. width: 100%;
  118. padding: 6px 0;
  119. border-bottom: 1px solid #213141;
  120. position: relative;
  121. margin: 0;
  122. -webkit-padding-start: 0;
  123. .order-list-hd {
  124. width: 100%;
  125. height: 28px;
  126. line-height: 28px;
  127. padding: 6px 0;
  128. .order-list-nm.text-blue {
  129. font-size: 16px;
  130. color: #146AF0;
  131. }
  132. .order-list-nm {
  133. max-width: 70%;
  134. height: 28px;
  135. font-size: 16px;
  136. font-weight: 800;
  137. color: #FFFFFF;
  138. float: left;
  139. overflow: hidden;
  140. text-overflow: ellipsis;
  141. white-space: nowrap;
  142. }
  143. .order-list-state, .order-list-statewhite {
  144. width: 28%;
  145. height: 28px;
  146. line-height: 28px;
  147. text-align: right;
  148. float: right;
  149. }
  150. }
  151. .order-list-con {
  152. position: relative;
  153. width: 100%;
  154. padding: 6px 0;
  155. overflow: auto;
  156. .order-list-iteam {
  157. width: 35%;
  158. margin-right: 2%;
  159. float: left;
  160. .order-list-tit {
  161. width: 100%;
  162. height: 20px;
  163. line-height: 20px;
  164. color: #495B73;
  165. font-size: 12px;
  166. overflow: hidden;
  167. text-overflow: ellipsis;
  168. white-space: nowrap;
  169. }
  170. .order-list-num {
  171. width: 100%;
  172. height: 24px;
  173. line-height: 24px;
  174. font-size: 13px;
  175. color: #FFFFFF;
  176. overflow: hidden;
  177. text-overflow: ellipsis;
  178. white-space: nowrap;
  179. }
  180. }
  181. .order-list-iteamr {
  182. width: 26%;
  183. margin-right: 0;
  184. text-align: right;
  185. }
  186. }
  187. }
  188. }
  189. }
  190. }
  191. </style>