From 15f59459ce616f19cf90acc7e8c2a3325214a236 Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Sat, 23 Aug 2025 18:34:58 +0800
Subject: [PATCH] 1
---
src/page/user/myOrder.vue | 97 +++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 86 insertions(+), 11 deletions(-)
diff --git a/src/page/user/myOrder.vue b/src/page/user/myOrder.vue
index c767cee..2dbfd8e 100644
--- a/src/page/user/myOrder.vue
+++ b/src/page/user/myOrder.vue
@@ -1,5 +1,6 @@
<template>
<div class="my_order">
+ <tab-head :title="$t('订单')"></tab-head>
<van-tabs v-model="active" title-inactive-color="#898a8e">
<van-tab
:title="$t('hj2')"
@@ -28,12 +29,12 @@
{{ i.orderDirection == "买涨" ? $t("gm") : $t("hj78") }}
</div>
</div>
- <div class="moli_orderTitle">
+ <!-- <div class="moli_orderTitle">
<span>{{ $t("订单号") }}</span>
<span style="margin-left: 1em;">{{ i.buyOrderId }}</span>
- </div>
+ </div> -->
<div style="display:flex;flex-wrap:wrap;padding-bottom: .35rem;">
- <div class="tui-wrapItem flex-start">
+ <!-- <div class="tui-wrapItem flex-start">
<div>
{{ $t("Price") }}
</div>
@@ -77,6 +78,82 @@
</div>
<div style="margin-left: .25rem;">
{{ $moment(i.buyOrderTime).format("DD-MM-YYYY hh:mm:ss A") }}
+ </div>
+ </div> -->
+
+ <div class="tui-wrapItem" style="width: 30%;">
+ <div style="font-size: 0.2rem;margin-bottom: .25rem;">
+ {{ $t("MingCheng") }}/{{ $t("市值") }}
+ </div>
+ <div style="font-size: .4rem;">
+ {{ i.stockSpell }}
+ </div>
+ <div style="font-size: .2rem;">
+ {{ i.orderTotalPrice }}
+ </div>
+ </div>
+
+ <div class="tui-wrapItem" style="width: 20%;">
+ <div
+ style="font-size: 0.2rem;margin-bottom: .25rem;text-align: end;"
+ >
+ {{ $t("持股") }}/{{ $t("可卖") }}
+ </div>
+ <div style="font-size: .4rem;text-align: end;">
+ {{ i.orderNum }}
+ </div>
+ <div style="font-size: .2rem;text-align: end;">
+ {{ i.orderNum }}
+ </div>
+ </div>
+
+ <div class="tui-wrapItem" style="width: 25%;">
+ <div
+ style="font-size: 0.2rem;margin-bottom: .25rem;text-align: end;"
+ >
+ {{ $t("Current") }}/{{ $t("Cost") }}
+ </div>
+ <div style="font-size: .4rem;text-align: end;">
+ {{ i.now_price }}
+ </div>
+ <div style="font-size: .2rem;text-align: end;">
+ {{ i.buyOrderPrice }}
+ </div>
+ </div>
+
+ <div class="tui-wrapItem" style="width: 25%;">
+ <div
+ style="font-size: 0.2rem;margin-bottom: .25rem;text-align: end;"
+ >
+ {{ $t("盈虧") }}/{{ $t("hj141") }}
+ </div>
+ <div
+ style="font-size: .4rem;text-align: end;"
+ :style="
+ `color:${
+ i.profitAndLose > 0
+ ? 'green'
+ : i.profitAndLose < 0
+ ? 'red'
+ : ''
+ }`
+ "
+ >
+ {{ i.profitAndLose }}
+ </div>
+ <div
+ style="font-size: .2rem;text-align: end;"
+ :style="
+ `color:${
+ i.profitAndLose > 0
+ ? 'green'
+ : i.profitAndLose < 0
+ ? 'red'
+ : ''
+ }`
+ "
+ >
+ {{ i.profitAndLoseParent }}
</div>
</div>
</div>
@@ -197,8 +274,12 @@
</template>
<script>
+import tabHead from "@/components/tabHead.vue";
import * as api from "@/axios/api";
export default {
+ components: {
+ tabHead
+ },
data() {
return {
active: "0",
@@ -249,27 +330,21 @@
this.actIndex = index;
},
goBuy(i, index) {
- console.log("ddddd", i);
- return;
+ // console.log("ddddd", i);
+ // return;
this.$router.push({
path: "/TradingBuy",
query: {
t: index,
code: i.stockCode,
m: i.now_price,
- // type: i.if_zhishu,
id: i.stockId,
name: i.stockName,
spell: i.stockSpell,
- // if_us: i.if_us,
bayType: i.stockGid,
gid: i.stockGidJb
}
});
- if (navigator.vibrate) {
- // 支持
- navigator.vibrate([55]);
- }
},
// 平仓跳转详情
toDetails(i) {
--
Gitblit v1.9.3