From 68a34d95db63a264e7a577051d586ea496c63ca0 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Sat, 29 Jun 2024 18:31:56 +0800
Subject: [PATCH] 123

---
 src/components/trade-head/index.vue |   95 +++++++++++++++++++++++++++++------------------
 1 files changed, 59 insertions(+), 36 deletions(-)

diff --git a/src/components/trade-head/index.vue b/src/components/trade-head/index.vue
index ca42c49..f3caddc 100644
--- a/src/components/trade-head/index.vue
+++ b/src/components/trade-head/index.vue
@@ -5,17 +5,21 @@
       <div class="pl-30 pr-30">
         <div class="flex justify-between pt-45">
           <div class="flex">
-            <img
-              v-if="isReturn"
-              :src="require(`@/assets/theme/${theme}/image/icon_back.png`)"
-              class="w-40 h-40 back mr-50"
-              alt=""
+            <span
               @click="
                 kineType
                   ? $router.push(`/trade/${symbol}`)
                   : $router.push(`/perpetualContract/${symbol}`)
               "
-            />
+            >
+              <img
+                v-if="isReturn"
+                :src="require(`@/assets/theme/${theme}/image/icon_back.png`)"
+                class="w-40 h-40 back mr-50"
+                alt=""
+              />
+            </span>
+
             <!-- <img
               :src="require(`@/assets/theme/${theme}/image/convert.png`)"
               alt="convert-img"
@@ -24,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
@@ -36,34 +41,37 @@
             </div>
           </div>
           <div class="flex items-center" v-if="islevel">
+            <!-- <span @click="changeModel()">
+              <img
+                class="w-32 h-35"
+                :src="require(`@/assets/theme/${theme}/image/sun.png`)"
+                alt=""
+              />
+            </span> -->
+            <span @click="onCollect">
+              <img
+                :src="
+                  require(`@/assets/image/icon-star${
+                    collected === '1' ? '_active' : ''
+                  }.png`)
+                "
+                class="w-30 h-30 mr-10 ml-20"
+              />
+            </span>
+            <span @click="openRecord()">
+              <img
+                src="@/assets/image/public/record.png"
+                class="w-32 h-35 ml-20"
+            /></span>
+          </div>
+          <span @click="$router.push(`/trendDetails/${symbol}?kineType=trade`)">
             <img
-              @click="changeModel()"
-              class="w-32 h-35"
-              :src="require(`@/assets/theme/${theme}/image/sun.png`)"
+              v-if="isTrade"
+              :src="require(`@/assets/3x/names14.png`)"
+              class="w-44 h-44 right"
               alt=""
             />
-            <img
-              :src="
-                require(`@/assets/image/icon-star${
-                  collected === '1' ? '_active' : ''
-                }.png`)
-              "
-              class="w-30 h-30 mr-10 ml-20"
-              @click="onCollect"
-            />
-            <img
-              src="@/assets/image/public/record.png"
-              class="w-32 h-35 ml-20"
-              @click="openRecord()"
-            />
-          </div>
-          <img
-            v-if="isTrade"
-            :src="require(`@/assets/3x/names14.png`)"
-            class="w-44 h-44 right"
-            alt=""
-            @click="$router.push(`/trendDetails/${symbol}?kineType=trade`)"
-          />
+          </span>
         </div>
       </div>
     </div>
@@ -99,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>
@@ -139,10 +148,18 @@
       type: Function,
       default: null,
     },
+	price: {
+	  type: String,
+	  default: "",
+	},
     symbol: {
       type: String,
       default: "",
     },
+	newname: {
+	  type: String,
+	  default: "",
+	},
     range: {
       type: String,
       defalult: "",
@@ -235,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();
         }
@@ -243,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();
         }
       }
@@ -261,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