history-commisson.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <v-paging :ajax="getHistoryEntrust">
  3. <template #box="list">
  4. <van-empty v-if="!$list(list).length" description="" />
  5. <div v-for="item in $list(list)" class="item bg-panel-4 m-md rounded-sm box-shadow" :key="item.order_no">
  6. <div class="head d-flex align-center border-b p-x-md p-y-xs justify-between">
  7. <div class="d-flex">
  8. <div v-if="item.entrust_type==1" class="suatus color-buy fn-20 m-r-xs rounded">{{$t('exchange.b5')}}</div>
  9. <div v-if="item.entrust_type==2" class="suatus color-sell fn-20 m-r-xs rounded">{{$t('exchange.b6')}}</div>
  10. <div>
  11. <div class="color-light fn-20">{{item.symbol}}</div>
  12. <div class="fn-10">{{item.created_at}}</div>
  13. </div>
  14. </div>
  15. <div>{{item.status_text}}</div>
  16. </div>
  17. <div class="p-x-md p-y-xs">
  18. <div class="row d-flex m-y-xs justify-between">
  19. <div class="label fn-sm">{{$t('exchange.b7')}}</div>
  20. <div class="color-light">{{item.entrust_price}}</div>
  21. </div>
  22. <div class="row d-flex m-y-xs justify-between">
  23. <div class="label fn-sm">{{$t('exchange.b8')}}</div>
  24. <div class="color-light">
  25. <template v-if="item.type==1">{{$t('exchange.b9')}}</template>
  26. <template v-if="item.type==2">{{$t('exchange.c0')}}</template>
  27. </div>
  28. </div>
  29. <div class="row d-flex m-y-xs justify-between">
  30. <div class="label fn-sm">{{$t('exchange.c1')}}</div>
  31. <div class="color-buy">{{item.traded_amount}}</div>
  32. </div>
  33. <div class="row d-flex m-y-xs justify-between">
  34. <div class="label fn-sm">{{$t('exchange.e2')}}</div>
  35. <div class="color-buy">{{(item.traded_money/item.traded_amount).toFixed(4)*1||'--'}}</div>
  36. </div>
  37. <div class="row d-flex m-y-xs justify-between">
  38. <div class="label fn-sm">{{$t('exchange.c2')}}</div>
  39. <div class="color-light">{{item.amount}}</div>
  40. </div>
  41. </div>
  42. </div>
  43. </template>
  44. </v-paging>
  45. </template>
  46. <script>
  47. import Order from "@/api/order";
  48. import math from '@/utils/class/math'
  49. export default {
  50. data(){
  51. return {
  52. getHistoryEntrust: Order.getHistoryEntrust,
  53. }
  54. },
  55. methods:{
  56. division:math.division
  57. }
  58. }
  59. </script>