contract-bill.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <v-paging :ajax="accountFlow" :data="{symbol:symbolLeft}" class="h-max" ref="vPag">
  3. <template #box="list">
  4. <van-empty v-if="!$list(list).length" description="" />
  5. <view
  6. v-for="item in $list(list)"
  7. class="item bg-panel-4 m-x-md m-y-xs rounded-sm box-shadow"
  8. :key="item.created_at + item.id"
  9. >
  10. <view
  11. class="head d-flex align-center border-b p-x-md p-y-xs justify-between"
  12. >
  13. <view class="d-flex justify-between">
  14. <view>
  15. <!-- <view class="color-light fn-lg">{{ $route.query.symbol }}</view> -->
  16. <view class="fn-10">{{ $date(item.created_at) }}</view>
  17. </view>
  18. </view>
  19. <view
  20. class="fn-md"
  21. :class="item.amount * 1 < 0 ? 'color-sell' : 'color-buy'"
  22. >
  23. {{ item.amount * 1 >= 0 ? "+" : "" }}{{ item.amount * 1 }}
  24. </view>
  25. </view>
  26. <view class="p-x-md p-y-xs color-light">{{ item.log_type_text }}</view>
  27. </view>
  28. </template>
  29. </v-paging>
  30. </template>
  31. <script>
  32. import Wallet from "@/api/wallet";
  33. export default {
  34. name: "contract-bill",
  35. props:['symbolLeft'],
  36. data() {
  37. return {};
  38. },
  39. methods: {
  40. accountFlow: Wallet.accountFlow,
  41. },
  42. };
  43. </script>