From 44db498cedee7573d090797b1fe5c331c413b00a Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Mon, 22 Apr 2024 19:03:57 +0800
Subject: [PATCH] first
---
src/page/trading/buy.vue | 22 ++++++----------------
1 files changed, 6 insertions(+), 16 deletions(-)
diff --git a/src/page/trading/buy.vue b/src/page/trading/buy.vue
index be3bbaf..bbeccae 100644
--- a/src/page/trading/buy.vue
+++ b/src/page/trading/buy.vue
@@ -118,15 +118,11 @@
<span>{{ $t("hj101") }}</span>
<span>{{ selectCycle + "X" }}</span>
</div>
- <!-- <div class="bottom_bzz">
- <span>{{ }}</span>
- <span>{{ }}</span>
- </div> -->
</div>
<div class="tr_rs">
<div class="top_bzz" style="padding-bottom: 0.2rem">
<span style="text-align: left">
- {{ $t("hj102") }}({{ moneyData.symbol || "$" }})
+ {{ $t("交易总额") }}({{ moneyData.symbol || "$" }})
</span>
<span style="text-align: right">
{{ $t("hj103") }}({{ moneyData.symbol || "$" }})
@@ -441,7 +437,7 @@
let opts = {
stockId: this.code,
buyNum: this.num,
- lever: this.selectCycle ? this.selectCycle : 0,
+ lever: 1,
targetPrice: this.nums,
};
if (this.tabsCurrentIndex == 0) {
@@ -465,7 +461,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,
@@ -499,7 +495,7 @@
// 买入是买涨buyType:0, 卖出是买跌buyType:1,卖出的状态是0,买入的状态是1
buyNum: this.num, // 单位为手
// buyNum: (this.num.match(/\d+/g))[0] * 100, // 单位为手
- lever: this.selectCycle ? this.selectCycle : 0,
+ lever: 1,
};
if (this.tabsCurrentIndex == 0) {
opts.buyType = 1;
@@ -543,13 +539,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", {
@@ -576,7 +566,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,
--
Gitblit v1.9.3