From 52a0fa98a6ca44ea8284ee3f7822f1c85c8923e8 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Thu, 23 May 2024 17:37:11 +0800
Subject: [PATCH] 我的 增加印股,日股总资产
---
src/page/trading/buy.vue | 22 ++++++++++------------
1 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/src/page/trading/buy.vue b/src/page/trading/buy.vue
index e3edf13..87bb0a8 100644
--- a/src/page/trading/buy.vue
+++ b/src/page/trading/buy.vue
@@ -8,10 +8,10 @@
</div>
<div class="right_title">
<div class="t_t" style="white-space: nowrap">
- <span>{{ name | getName }}</span>
+ <span>{{ name }}</span>
</div>
<div class="b_t">
- <span>{{ code }}</span>
+ <span>{{ spell }}</span>
</div>
</div>
</div>
@@ -252,6 +252,9 @@
if (this.$route.query.name) {
this.name = this.$route.query.name;
}
+ if (this.$route.query.spell) {
+ this.spell = this.$route.query.spell;
+ }
if (this.$route.query.type) {
this.type = this.$route.query.type;
}
@@ -273,6 +276,7 @@
type: 0,
code: "",
name: "",
+ spell: "",
settingInfo: [],
selectCycle: 1,
siteLeverList: [],
@@ -461,7 +465,7 @@
elAlertType: "success",
});
this.getUserInfo();
- this.$router.push("/warehouse?index=1");
+ this.$router.push("/warehouse?index=1&buyType=" + this.bayType);
} else {
this.$store.commit("elAlertShow", {
elAlertShow: true,
@@ -539,13 +543,7 @@
} else {
buyType = 0;
}
- if (this.bayType == "US") {
- this.$router.push("/warehouse?index=1&buyType=" + buyType);
- } else if (this.bayType == "MAS") {
- this.$router.push("/warehouse?index=0&buyType=" + buyType);
- } else {
- this.$router.push("/warehouse");
- }
+ this.$router.push("/warehouse?index=1&buyType=" + this.bayType);
} else {
if (data.msg.indexOf("不在交易时段内") > -1) {
this.$store.commit("elAlertShow", {
@@ -572,7 +570,7 @@
elAlertType: "success",
});
this.getUserInfo();
- this.$router.push("/warehouse?index=0");
+ this.$router.push("/warehouse?index=1&buyType=" + this.bayType);
} else {
this.$store.commit("elAlertShow", {
elAlertShow: true,
@@ -650,7 +648,7 @@
filters: {
getName(name) {
if (name.length > 15) {
- return name.substring(0, 14);
+ return name;
} else {
return name;
}
--
Gitblit v1.9.3