lxf
2025-04-30 b4c4556a5eddf6708ec55b07e3edc15b2217842e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!--  -->
<template>
  <div style="height: 100%">
    <van-nav-bar
      :placeholder="true"
      :safe-area-inset-top="true"
      :title="$t('订单详情')"
      left-arrow
      :fixed="true"
      @click-left="handleBack"
    >
    </van-nav-bar>
 
    <div class="bottomIfr">
      <div class="pagebox">
        <div class="pagebox_left">{{ $t("盈虧") }}</div>
        <div class="pagebox_right">{{ pages.profitAndLose | _toString }}</div>
      </div>
      <div class="pagebox">
        <div class="pagebox_left">{{ $t("hj141") }}</div>
        <div class="pagebox_right">{{ pages.profitAndLoseParent }}</div>
      </div>
      <div class="pagebox">
        <div class="pagebox_left">{{ $t("倉位(股)") }}</div>
        <div class="pagebox_right">{{ pages.orderNum }}</div>
      </div>
      <div class="pagebox" v-if="pages.now_price">
        <div class="pagebox_left">{{ $t("hj40") }}</div>
        <div class="pagebox_right">{{ pages.now_price | _toString }}</div>
      </div>
      <div class="pagebox">
        <div class="pagebox_left">
          {{ $t("持倉價") }}
        </div>
        <div class="pagebox_right">{{ pages.buyOrderPrice | _toString }}</div>
      </div>
      <div class="pagebox">
        <div class="pagebox_left">
          {{ $t("訂單金額") }}
        </div>
        <div class="pagebox_right">{{ pages.orderTotalPrice | _toString }}</div>
      </div>
      <div class="pagebox">
        <div class="pagebox_left">{{ $t("hj44") }}</div>
        <div class="pagebox_right">{{ pages.orderFee | _toString }}</div>
      </div>
      <div class="pagebox">
        <div class="pagebox_left">
          {{ $t("訂單編號") }}
        </div>
        <div class="pagebox_right">{{ pages.buyOrderId }}</div>
      </div>
 
      <div class="pagebox" v-if="pages.buyOrderTime">
        <div class="pagebox_left">{{ $t("持倉時間") }}</div>
        <div class="pagebox_right">
          {{ $moment(pages.buyOrderTime).format("DD-MM-YYYY hh:mm:ss A") }}
        </div>
      </div>
      <div class="pagebox" v-if="pages.sellOrderTime">
        <div class="pagebox_left">{{ $t("hj128") }}</div>
        <div class="pagebox_right">
          {{ $moment(pages.sellOrderTime).format("DD-MM-YYYY hh:mm:ss A") }}
        </div>
      </div>
    </div>
  </div>
</template>
 
<script>
import * as api from "@/axios/api";
export default {
  data() {
    return {
      pages: {}
    };
  },
  // 生命周期 - 创建完成(访问当前this实例)
  created() {
    this.getInfoSite();
  },
  // 生命周期 - 挂载完成(访问DOM元素)
  mounted() {},
  methods: {
    handleBack() {
      // 点击返回/
      this.$router.go(-1);
    },
    async getInfoSite() {
      var res = {
        positionSn: this.$route.query.codes
      };
      let data = await api.findByPostionSn(res);
      if (data.status === 0) {
        this.pages = data.data;
      }
    }
  }
};
</script>
<style scoped lang="less">
/deep/ .van-nav-bar__content {
  height: 65px;
}
/deep/ .van-nav-bar__title {
  font-family: "DINPro";
  width: 100%;
  height: 1.17333rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-style: normal;
  font-weight: 500;
  font-size: 0.48rem;
  color: #14181f;
}
.bottomIfr {
  // position: absolute;
  // top: 1.5rem;
  // left: 0;
  // right: 0;
  // bottom: 0;
  width: 100vw;
  height: calc(100% - 65px);
  // height:;
  background-color: #fff !important;
}
.pagebox {
  margin: 0 15px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}
.conentIfr {
  width: 100%;
  height: 90%;
  border: none;
  //取消滚动条
  overflow: hidden;
}
</style>