From 25b2ba1cf86bc3439e7ad2acf2cd4a9ea7e4b0ed Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Fri, 28 Jun 2024 09:28:04 +0800
Subject: [PATCH] 123
---
src/components/trade-head/index.vue | 30 +++++++++++++++++++++++-------
1 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/src/components/trade-head/index.vue b/src/components/trade-head/index.vue
index d9a5edf..f3caddc 100644
--- a/src/components/trade-head/index.vue
+++ b/src/components/trade-head/index.vue
@@ -28,7 +28,8 @@
/> -->
<div class="flex flex-col pl-21" @click="onSidebar">
<div class="font-35 textColor">
- {{ symbol | _symbolName(1) }}
+ <!-- {{ symbol | _symbolName(1) }} -->
+ {{newname}}
</div>
</div>
<div
@@ -40,13 +41,13 @@
</div>
</div>
<div class="flex items-center" v-if="islevel">
- <span @click="changeModel()">
+ <!-- <span @click="changeModel()">
<img
class="w-32 h-35"
:src="require(`@/assets/theme/${theme}/image/sun.png`)"
alt=""
/>
- </span>
+ </span> -->
<span @click="onCollect">
<img
:src="
@@ -106,7 +107,8 @@
<div>
<!-- {{ JSON.stringify(item) }} -->
<div class="font-700 textColor">
- {{ item.symbol | _symbolName(1) }}
+ <!-- {{ item.symbol | _symbolName(1) }} -->
+ {{ item.name}}
</div>
<div v-if="!kineType" class="text-grey mt-10">{{ title }}</div>
</div>
@@ -146,10 +148,18 @@
type: Function,
default: null,
},
+ price: {
+ type: String,
+ default: "",
+ },
symbol: {
type: String,
default: "",
},
+ newname: {
+ type: String,
+ default: "",
+ },
range: {
type: String,
defalult: "",
@@ -242,7 +252,7 @@
} else {
setStorage("symbol", item.symbol);
}
- this.$emit("update-coin", item.symbol);
+ this.$emit("update-coin", item.symbol,item.name);
this.onClose();
this.$forceUpdate();
}
@@ -250,7 +260,7 @@
if (this.$route.params.symbol !== item.symbol) {
this.$router.push(`/trade/${item.symbol}`);
setStorage("tradeSymbol", item.symbol);
- this.$emit("update-coin", item.symbol);
+ this.$emit("update-coin", item.symbol,item.name);
this.$forceUpdate();
}
}
@@ -268,7 +278,13 @@
const mainArray = this.coins.filter(
(item) => !this.newcoinArr.includes(item)
);
- _getHomeList(mainArray.join(",")).then((list) => {
+ mainArray.join(",")
+ // var a = {
+ // symbol:mainArray.join(","),
+ // order:1,
+ // }
+
+ _getHomeList(mainArray.join(","),'desc').then((list) => {
// console.log(list)
this.list = list;
if (this.timeout) {
--
Gitblit v1.9.3