From a3ae2f2efa0f1f90908fb29fe6362429ac34509d Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Mon, 28 Apr 2025 18:34:41 +0800
Subject: [PATCH] feat: 挂单页面 添加卖出不展示买长买短按钮
---
src/page/trading/buy.vue | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/page/trading/buy.vue b/src/page/trading/buy.vue
index 04964d3..6df17c9 100644
--- a/src/page/trading/buy.vue
+++ b/src/page/trading/buy.vue
@@ -28,7 +28,7 @@
</div>
</div>
<div class="rights">
- <div class="ese" v-if="KLine.type == 'HJ'">
+ <div class="ese" v-if="!isSell && KLine.type == 'HJ'">
<div
class="mc"
@click="handleTradingClick(0)"
@@ -205,7 +205,10 @@
<div class="btn_buy" @click="gdOrSetBuy()">
<!-- <div :class="tabsCurrentIndex == 0 ? 'maichu' : ''">#3b82f6 -->
<div class="maichu" style="background-color:#3b82f6">
- <span>{{ tabsCurrentIndex == 0 ? $t("hj84") : $t("gm") }}</span>
+ <span v-if="isSell">{{ $t("hj78") }}</span>
+ <span v-else>{{
+ tabsCurrentIndex == 0 ? $t("hj84") : $t("gm")
+ }}</span>
</div>
</div>
</div>
@@ -229,8 +232,12 @@
created() {
if (this.$route.query.t) {
this.tabsCurrentIndex = Number(this.$route.query.t);
+ if (this.tabsCurrentIndex === 0) {
+ this.isSell = true;
+ }
console.log(this.tabsCurrentIndex);
}
+ ss;
if (this.$route.query.m) {
this.nowPrice = Number(this.$route.query.m);
this.profitTarget = Number(this.$route.query.m);
@@ -258,6 +265,7 @@
},
data() {
return {
+ isSell: false,
tradingArr: [this.$t("hj84"), this.$t("hj85")],
tabsCurrentIndex: 0,
priceTabs: [this.$t("hj108"), this.$t("hj109")],
--
Gitblit v1.9.3