From 2732ac88d39ba734771ddf014ef5a5131c4196dd Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Wed, 10 Sep 2025 16:11:21 +0800
Subject: [PATCH] 停牌
---
src/i18n/Deutsch.js | 1
src/i18n/Portuguese.js | 1
src/i18n/korean.js | 1
src/components/Transform/trade-order-area/index.vue | 98 ++++++++++++++++++++++++++-----------------------
src/i18n/th.js | 1
src/i18n/fa.js | 1
src/i18n/Italy.js | 1
src/i18n/Japanese.js | 1
src/views/cryptos/Trade/index.vue | 8 ++-
src/i18n/vi.js | 1
src/i18n/cn.js | 1
src/i18n/en.js | 1
src/i18n/zhcn.js | 1
src/i18n/Spanish.js | 1
14 files changed, 69 insertions(+), 49 deletions(-)
diff --git a/src/components/Transform/trade-order-area/index.vue b/src/components/Transform/trade-order-area/index.vue
index 1681343..99536b2 100644
--- a/src/components/Transform/trade-order-area/index.vue
+++ b/src/components/Transform/trade-order-area/index.vue
@@ -26,52 +26,57 @@
<div class="h-70 lh-70 inputBackground mb-25 flex justify-center px-16 textColor2">
<span>{{ title }}</span>
</div>
- <div class="flex total-list">
- <div class="total-div" :class="[!isTotal ? 'active-bg' : '']" @click="checkIsTotal(false)">
- {{ $t('数量') }}
- </div>
- <div class="total-div" :class="[isTotal ? 'active-bg' : '']" @click="checkIsTotal(true)">
- {{ $t('总额') }}
- </div>
- </div>
- <div v-if="!isTotal" class="h-70 lh-70 inputBackground mb-36 flex justify-center px-16">
- <input :placeholder="$t('数量')" class=" w-full h-70 border-none textColor font-28" v-model="form.volume"
- @input="onInput" />
- <span class="textColor font-28">{{ symbol.toLocaleUpperCase() }}</span>
- </div>
- <div v-if="isTotal" class="h-70 lh-70 inputBackground mb-36 flex justify-center px-16">
- <input :placeholder="$t('总额')" class=" w-full h-70 border-none textColor font-28" v-model="form.total"
- @input="onInputTotal" />
- <span class="textColor font-28">{{ 'USDT' }}</span>
- </div>
- <div class="font-24 w-full flex justify-between items-center textColor1">
- <!-- <span class="flex-1 text-left">0%</span> -->
- <span class="flex-1 tab-item" :class="[percentageVal == 25 ? 'select-active' : '']"
- @click="exchangeVal(25)">25%</span>
- <span class="flex-1 tab-item" :class="[percentageVal == 50 ? 'select-active' : '']"
- @click="exchangeVal(50)">50%</span>
- <span class="flex-1 tab-item" :class="[percentageVal == 75 ? 'select-active' : '']"
- @click="exchangeVal(75)">75%</span>
- <span class="flex-1 tab-item" :class="[percentageVal == 100 ? 'select-active' : '']"
- @click="exchangeVal(100)">100%</span>
- </div>
- <div class="flex justify-between items-center mt-40">
- <div class="flex flex-col font-24">
- <p class="text-grey" v-if="this.currentType === 'open'">{{ $t('可用') }}<span class="textColor ml-8">
- {{ initOpen.volume }} USDT</span>
- </p>
- <p class="text-grey" v-else>{{ $t('可卖') }}<span class="textColor ml-8">{{ initClose.volume }} {{
- symbol.toLocaleUpperCase() }}</span></p>
- </div>
- <van-icon name="add-o" @click="$router.push('/cryptos/exchangePage')" class="font-30 add-icon" />
- <!-- <img @click="$router.push('/exchange/exchangePage')" src="@/assets/image/public/switch.png" class="w-24 h-24" /> -->
- </div>
- <div style="border-radius: 3.5rem;"
- class="w-full h-90 lh-90 flex justify-center text-white text-center rounded buyandSell mt-70"
- :class="currentType === 'open' ? 'bg-green' : 'bg-red'" @click="order()">
- {{ currentType == 'open' ? $t('买入') : $t('卖出') }}
- </div>
+ <template v-if="initClose.status / 1 === 0">
+ <div class="flex justify-center items-center h-66 buy-item">{{ $t('停牌中,禁止交易') }}</div>
+ </template>
+ <template v-else>
+ <div class="flex total-list">
+ <div class="total-div" :class="[!isTotal ? 'active-bg' : '']" @click="checkIsTotal(false)">
+ {{ $t('数量') }}
+ </div>
+ <div class="total-div" :class="[isTotal ? 'active-bg' : '']" @click="checkIsTotal(true)">
+ {{ $t('总额') }}
+ </div>
+ </div>
+ <div v-if="!isTotal" class="h-70 lh-70 inputBackground mb-36 flex justify-center px-16">
+ <input :placeholder="$t('数量')" class=" w-full h-70 border-none textColor font-28" v-model="form.volume"
+ @input="onInput" />
+ <span class="textColor font-28">{{ symbol.toLocaleUpperCase() }}</span>
+ </div>
+ <div v-if="isTotal" class="h-70 lh-70 inputBackground mb-36 flex justify-center px-16">
+ <input :placeholder="$t('总额')" class=" w-full h-70 border-none textColor font-28" v-model="form.total"
+ @input="onInputTotal" />
+ <span class="textColor font-28">{{ 'USDT' }}</span>
+ </div>
+ <div class="font-24 w-full flex justify-between items-center textColor1">
+ <!-- <span class="flex-1 text-left">0%</span> -->
+ <span class="flex-1 tab-item" :class="[percentageVal == 25 ? 'select-active' : '']"
+ @click="exchangeVal(25)">25%</span>
+ <span class="flex-1 tab-item" :class="[percentageVal == 50 ? 'select-active' : '']"
+ @click="exchangeVal(50)">50%</span>
+ <span class="flex-1 tab-item" :class="[percentageVal == 75 ? 'select-active' : '']"
+ @click="exchangeVal(75)">75%</span>
+ <span class="flex-1 tab-item" :class="[percentageVal == 100 ? 'select-active' : '']"
+ @click="exchangeVal(100)">100%</span>
+ </div>
+ <div class="flex justify-between items-center mt-40">
+ <div class="flex flex-col font-24">
+ <p class="text-grey" v-if="this.currentType === 'open'">{{ $t('可用') }}<span class="textColor ml-8">
+ {{ initOpen.volume }} USDT</span>
+ </p>
+ <p class="text-grey" v-else>{{ $t('可卖') }}<span class="textColor ml-8">{{ initClose.volume }} {{
+ symbol.toLocaleUpperCase() }}</span></p>
+ </div>
+ <van-icon name="add-o" @click="$router.push('/cryptos/exchangePage')" class="font-30 add-icon" />
+ <!-- <img @click="$router.push('/exchange/exchangePage')" src="@/assets/image/public/switch.png" class="w-24 h-24" /> -->
+ </div>
+ <div style="border-radius: 3.5rem;"
+ class="w-full h-90 lh-90 flex justify-center text-white text-center rounded buyandSell mt-70"
+ :class="currentType === 'open' ? 'bg-green' : 'bg-red'" @click="order()">
+ {{ currentType == 'open' ? $t('买入') : $t('卖出') }}
+ </div>
+ </template>
</div>
</template>
@@ -521,7 +526,7 @@
}
.option-box>div:hover {
- background-color: rgba($color: $bg_yellow, $alpha: 0.6);
+ background-color: rgba($color: $bg_yellow, $alpha: 0.6);
}
.num-text-color {
@@ -556,6 +561,7 @@
.inputBackground {
border-radius: 2.5rem;
+
input {
background: transparent !important;
}
diff --git a/src/i18n/Deutsch.js b/src/i18n/Deutsch.js
index 1d642da..b70bf82 100644
--- a/src/i18n/Deutsch.js
+++ b/src/i18n/Deutsch.js
@@ -2828,4 +2828,5 @@
"已缴纳": "Bezahlt",
"已分发": "Verteilt",
"中签数量": "Zuteilungsmenge",
+ "停牌中,禁止交易": "Finger weg, ware aus",
}
\ No newline at end of file
diff --git a/src/i18n/Italy.js b/src/i18n/Italy.js
index d4f1014..381a91f 100644
--- a/src/i18n/Italy.js
+++ b/src/i18n/Italy.js
@@ -2918,4 +2918,5 @@
"已缴纳": "Pagato",
"已分发": "Distribuito",
"中签数量": "Quantità di assegnazione",
+ "停牌中,禁止交易": "In caso di sospensione, il commercio è vietato",
}
\ No newline at end of file
diff --git a/src/i18n/Japanese.js b/src/i18n/Japanese.js
index f040b49..f19f1db 100644
--- a/src/i18n/Japanese.js
+++ b/src/i18n/Japanese.js
@@ -2686,4 +2686,5 @@
"已缴纳": "支払済み",
"已分发": "配布済み",
"中签数量": "当選数量",
+ "停牌中,禁止交易": "取引停止中,取引禁止です",
}
\ No newline at end of file
diff --git a/src/i18n/Portuguese.js b/src/i18n/Portuguese.js
index c838c8f..68a4488 100644
--- a/src/i18n/Portuguese.js
+++ b/src/i18n/Portuguese.js
@@ -638,4 +638,5 @@
"已缴纳": "Pago",
"已分发": "Distribuído",
"中签数量": "Quantidade de alocação",
+ "停牌中,禁止交易": "Suspensão, proibição de negociação.",
}
\ No newline at end of file
diff --git a/src/i18n/Spanish.js b/src/i18n/Spanish.js
index e8d2a51..a129118 100644
--- a/src/i18n/Spanish.js
+++ b/src/i18n/Spanish.js
@@ -2601,4 +2601,5 @@
"已缴纳": "Pagado",
"已分发": "Distribuido",
"中签数量": "Cantidad de asignación",
+ "停牌中,禁止交易": "Suspendido, sin comercio",
}
\ No newline at end of file
diff --git a/src/i18n/cn.js b/src/i18n/cn.js
index e10444c..c4e9852 100644
--- a/src/i18n/cn.js
+++ b/src/i18n/cn.js
@@ -2807,4 +2807,5 @@
"已缴纳": "已繳納",
"已分发": "已分發",
"中签数量": "中籤數量",
+ "停牌中,禁止交易": "停牌中,禁止交易",
}
diff --git a/src/i18n/en.js b/src/i18n/en.js
index 5dcbfe3..2fe07a6 100644
--- a/src/i18n/en.js
+++ b/src/i18n/en.js
@@ -2782,4 +2782,5 @@
"已缴纳": "Paid",
"已分发": "Distributed",
"中签数量": "Allocation quantity",
+ "停牌中,禁止交易": "Trading is suspended. Trading is prohibited.",
}
\ No newline at end of file
diff --git a/src/i18n/fa.js b/src/i18n/fa.js
index 01eb044..216c694 100644
--- a/src/i18n/fa.js
+++ b/src/i18n/fa.js
@@ -2725,4 +2725,5 @@
"已缴纳": "Payé",
"已分发": "Distribué",
"中签数量": "Quantité d'attribution",
+ "停牌中,禁止交易": "Suspension en cours, commerce interdit",
}
\ No newline at end of file
diff --git a/src/i18n/korean.js b/src/i18n/korean.js
index 3db5ae9..31a733f 100644
--- a/src/i18n/korean.js
+++ b/src/i18n/korean.js
@@ -2822,4 +2822,5 @@
"已缴纳": "납입 완료",
"已分发": "배분 완료",
"中签数量": "당첨 수량",
+ "停牌中,禁止交易": "주식 거래 정지 중 거래를 금지하다",
}
\ No newline at end of file
diff --git a/src/i18n/th.js b/src/i18n/th.js
index 42f932f..aaa77be 100644
--- a/src/i18n/th.js
+++ b/src/i18n/th.js
@@ -2793,4 +2793,5 @@
"已缴纳": "ชำระแล้ว",
"已分发": "แจกจ่ายแล้ว",
"中签数量": "จำนวนที่ได้รับจัดสรร",
+ "停牌中,禁止交易": "ไม่มีการแลกเปลี่ยน",
}
\ No newline at end of file
diff --git a/src/i18n/vi.js b/src/i18n/vi.js
index 5432bb1..0a92d4d 100644
--- a/src/i18n/vi.js
+++ b/src/i18n/vi.js
@@ -2772,4 +2772,5 @@
"已缴纳": "Đã thanh toán",
"已分发": "Đã phân phối",
"中签数量": "Số lượng được phân bổ",
+ "停牌中,禁止交易": "Bị đình chỉ, không giao dịch",
}
\ No newline at end of file
diff --git a/src/i18n/zhcn.js b/src/i18n/zhcn.js
index 9f74bb0..4ba935e 100644
--- a/src/i18n/zhcn.js
+++ b/src/i18n/zhcn.js
@@ -2787,4 +2787,5 @@
"已缴纳": "已缴纳",
"已分发": "已分发",
"中签数量": "中签数量",
+ "停牌中,禁止交易": "停牌中,禁止交易",
}
\ No newline at end of file
diff --git a/src/views/cryptos/Trade/index.vue b/src/views/cryptos/Trade/index.vue
index 368bc93..656348a 100644
--- a/src/views/cryptos/Trade/index.vue
+++ b/src/views/cryptos/Trade/index.vue
@@ -140,9 +140,7 @@
</div> -->
<van-action-sheet class="action-sheet" v-model:show="isSelectShow" @select="onSelect" :actions="actions"
:cancel-text="$t('取消')" close-on-click-action @cancel="onCancel" />
-
</div>
-
</div>
</template>
@@ -282,6 +280,8 @@
handleImage,
...mapActions('home', [SET_COIN_LIST]),
onUpdate(symbol) { // 更新
+ console.log("symbol",symbol);
+
this.symbol = symbol
this.closeSocket()
this.init(symbol)
@@ -391,7 +391,6 @@
this.initClose = res
})
}
-
if (this.userInfo.token) {
this.getWallet()
this.timer3 = setInterval(() => {
@@ -399,6 +398,9 @@
}, 2000)
}
}
+ else{
+ showFailToast(this.$t('请先登录'))
+ }
},
init(symbol) { // 初始化页面
this.symbol = symbol
--
Gitblit v1.9.3