bill.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <v-page class="layout-page">
  3. <v-header :title="$t('otc.d5')"></v-header>
  4. <!-- 币币 -->
  5. <view class="layout-main" :ajax="accountFlow" :data="query">
  6. <view
  7. class="item bg-panel-4 m-x-md m-y-xs rounded-sm box-shadow"
  8. v-for="item in $list(list)"
  9. :key="item.created_at + item.id"
  10. >
  11. <view
  12. class="head d-flex align-center border-b p-x-md p-y-xs justify-between"
  13. >
  14. <view class="d-flex justify-between">
  15. <view>
  16. <view class="color-light fn-lg">{{ item.coin_name }}</view>
  17. </view>
  18. </view>
  19. <view class="fn-md color-buy">
  20. {{ item.usable_balance }}
  21. </view>
  22. </view>
  23. <view class="d-flex justify-between p-x-md">
  24. <view>{{$t('otc.d6')}}</view>
  25. <view class="color-sell">{{ item.freeze_balance }}</view>
  26. </view>
  27. <view class="p-x-md p-y-xs color-light d-flex justify-between">
  28. <view>
  29. {{ item.created_at }}
  30. </view>
  31. <v-button
  32. type="green"
  33. size="mini"
  34. class="rounded-xs"
  35. @click="getCoin(item)"
  36. >
  37. {{$t('otc.a5')}}
  38. </v-button>
  39. </view>
  40. </view>
  41. </view>
  42. </v-page>
  43. </template>
  44. <script>
  45. import Otc from "@/api/otc";
  46. import date from "@/utils/class/date.js";
  47. export default {
  48. data() {
  49. return {
  50. active: 1,
  51. detail: {},
  52. accountFlow: Otc.otcAccount,
  53. query: {},
  54. list: [],
  55. };
  56. },
  57. computed: {},
  58. onLoad(query) {
  59. this.query = query;
  60. this.otcAccount();
  61. },
  62. methods: {
  63. parseTime: date.parseTime,
  64. otcAccount() {
  65. Otc.otcAccount().then((res) => {
  66. this.list = res.data;
  67. });
  68. },
  69. getCoin(item){
  70. this._router.push({path:'/pages/base/index',query:{tel:'otc'}})
  71. }
  72. },
  73. };
  74. </script>
  75. <style lang="scss" scoped>
  76. ::v-deep .van-tabs__wrap {
  77. background-color: $panel-4;
  78. }
  79. </style>