From d5381ec06ab5f549fade867c3a874de613bdd5d4 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Fri, 07 Jun 2024 10:23:41 +0800
Subject: [PATCH] 去掉BNB充值,调试好充值接口
---
src/components/contract-header/index.vue | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/src/components/contract-header/index.vue b/src/components/contract-header/index.vue
index a02afb5..c76e14e 100644
--- a/src/components/contract-header/index.vue
+++ b/src/components/contract-header/index.vue
@@ -14,7 +14,7 @@
@click="onSidebar"
/> -->
<div class="flex pl-21 textColor" @click="onSidebar">
- <div class="font-35">{{ symbol.toUpperCase() || "--" }}/USDT</div>
+ <div class="font-35">{{ symbol | _symbolName }}/USDT</div>
<div class="ml-15">{{ title }}</div>
</div>
<div
@@ -87,11 +87,7 @@
>
<div>
<div class="textColor">
- {{
- item.name
- ? item.symbol.toUpperCase() + "/" + item.name.split("/")[1]
- : "--"
- }}
+ {{ item.symbol | _symbolName(1) }}
</div>
<div class="text-grey mt-10">
{{ selectIndex == 1 ? $t("永续") : $t("交割") }}
@@ -114,7 +110,7 @@
<script>
import { Popup } from "vant";
-import { mapGetters } from "vuex";
+import { mapActions, mapGetters } from "vuex";
import { _getHomeList } from "@/API/home.api";
import { setStorage } from "@/utils/utis";
export default {
@@ -153,6 +149,7 @@
...mapGetters({
coinList: "home/coinList",
theme: "home/theme",
+ newcoinArr: "home/newcoinArr",
}),
title() {
return [this.$t("永续"), this.$t("交割")][this.selectIndex - 1];
@@ -172,10 +169,12 @@
};
},
created() {
+ this.NEW_CION_LIST();
// this.coins = this.coinList.map(item => item.symbol)
// console.log('this.coins', this.coins)
},
methods: {
+ ...mapActions("home", ["NEW_CION_LIST"]),
onRoute(item) {
if (this.$route.params.symbol !== item.symbol) {
this.$router.push(`/perpetualContract/${item.symbol}`);
@@ -195,7 +194,10 @@
},
fetchList() {
// 获取行情
- _getHomeList(this.coins.join(",")).then((list) => {
+ const mainArray = this.coins.filter(
+ (item) => !this.newcoinArr.includes(item)
+ );
+ _getHomeList(mainArray.join(",")).then((list) => {
// console.log(list)
this.list = list;
if (this.timeout) {
--
Gitblit v1.9.3