order-info.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <view>
  3. <headContent borderBottom>
  4. <template #left>
  5. <reverse-back />
  6. </template>
  7. <template #content>
  8. <view class="haed-title">
  9. 订单详情
  10. </view>
  11. </template>
  12. </headContent>
  13. <view class="content-box" :rise-fall="stocksColor">
  14. <view class="content-top">
  15. <view class="top-left">
  16. <view class="top-left-title">
  17. <text>{{ item.symbol }}</text>
  18. <text v-if="item.settled == 0">永续</text>
  19. <text v-else-if="item.settled == 9">快捷</text>
  20. </view>
  21. <view class="top-left-b">
  22. <text>{{ item.multiple }}倍杠杆</text>
  23. <text class="top-left-b-tag">{{ item.type_name }}</text>
  24. <text class="top-left-b-tag">{{ item.status_name }}</text>
  25. </view>
  26. </view>
  27. <view :class="['top-right' , $setColor(item.profits)]">
  28. <text class="color">{{ item.profits || '--'}}</text>
  29. <text class="color top-right-float"><text
  30. class="bdColor">平仓盈亏</text>{{ $getChange(item , 1) }}%</text>
  31. </view>
  32. </view>
  33. <view class="content-info">
  34. <view class="info-item">
  35. <text class="info-item-lable">保证金(USDT)</text>
  36. <text class="info-item-val">{{ item.caution_money }}</text>
  37. </view>
  38. <view class="info-item">
  39. <text class="info-item-lable">开仓价格(USDT)</text>
  40. <text class="info-item-val">{{ item.price }}</text>
  41. </view>
  42. <view class="info-item">
  43. <text class="info-item-lable">平仓价格(USDT)</text>
  44. <text class="info-item-val">{{ item.origin_price }}</text>
  45. </view>
  46. <view class="info-item">
  47. <text class="info-item-lable">平仓数量(张)</text>
  48. <text class="info-item-val">{{ item.number }}</text>
  49. </view>
  50. <view class="info-item">
  51. <text class="info-item-lable">手续费(USDT)</text>
  52. <text class="info-item-val">{{ item.trade_fee || '--' }}</text>
  53. </view>
  54. <view class="info-item">
  55. <text class="info-item-lable">平仓类型(USDT)</text>
  56. <text class="info-item-val">{{ item.status === 3 ? '强制平仓' : '' }}</text>
  57. </view>
  58. </view>
  59. <view class="record-hint">
  60. <text class="record-lable">平仓时间 {{ $getData_(item.create_time ) }}</text>
  61. <!-- <view class="record-icon" @click.stop="$emit('shareContent' , item)">
  62. <text class="icon-size iconfont">&#xe8b0;</text>
  63. <text class="icon-size">分享</text>
  64. </view> -->
  65. </view>
  66. </view>
  67. </view>
  68. </template>
  69. <script>
  70. import {
  71. mapGetters
  72. } from 'vuex'
  73. export default {
  74. data() {
  75. return {
  76. item:{}
  77. };
  78. },
  79. computed: {
  80. ...mapGetters([
  81. "stocksColor",
  82. ])
  83. },
  84. onLoad() {
  85. this.item = this.$getStorageSync('historyInfo') || {}
  86. }
  87. }
  88. </script>
  89. <style lang="scss" scoped>
  90. @import "~./sustainability/index.scss";
  91. @import "~./history/index.scss";
  92. .top-right-float{
  93. text{
  94. border: none;
  95. }
  96. }
  97. .top-left-b-tag{
  98. font-size: 20rpx;
  99. border-radius: 5rpx;
  100. }
  101. </style>