From 42faef34194c466f03e29d75a63ae502e4213044 Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Tue, 06 Jan 2026 10:38:46 +0800
Subject: [PATCH] 上一版是10.10的, 这版才是原始源码

---
 src/views/optional/Search.vue |   24 ++++++------------------
 1 files changed, 6 insertions(+), 18 deletions(-)

diff --git a/src/views/optional/Search.vue b/src/views/optional/Search.vue
index c7276f6..b4e8390 100644
--- a/src/views/optional/Search.vue
+++ b/src/views/optional/Search.vue
@@ -2,9 +2,8 @@
   <div class="pb-fix">
     <div class="container-box">
       <div class="search-container flex items-center">
-        <van-search class="search-input" v-model="searchVal" @update:model-value="onClickButton"
-          :placeholder="$t('searchKeys')" @clear="onClearSearch" @cancel="cancelBack()" shape="round" show-action
-          :action-text="$t('Cancel')">
+        <van-search class="search-input" v-model="searchVal" @update:model-value="onClickButton" :placeholder="$t('searchKeys')"
+          @clear="onClearSearch" @cancel="cancelBack()" shape="round" show-action :action-text="$t('Cancel')">
         </van-search>
       </div>
       <div class="hot-search">
@@ -87,7 +86,7 @@
     <add-currency @updateItem="getIsItemHasAddGlobal" ref="addCurrencyRef"></add-currency>
   </div>
 </template>
-
+  
 <script setup>
 import { ref, onMounted } from "vue";
 import { _ItemUserOptionalItemAdd, _isItemHasAddGlobal, _getQuotes } from '@/service/quotes.api'
@@ -101,7 +100,6 @@
 import { HOST_URL } from '@/config'
 import addCurrency from '@/components/add-currency/index.vue'
 import { _getETFItemList, _getHkStocksItemList } from "@/service/etf.api.js";
-import { debounce } from '@/utils/index'
 
 const { t } = useI18n()
 const router = useRouter()
@@ -181,7 +179,7 @@
     router.push('/foreign/coinChart?symbol=' + data.symbol + '&isOptional=2')
   }
 }
-const onClickButton = debounce(function () {
+const onClickButton = () => {
   if (!searchVal.value) {
     searchAllList.value = []
     return
@@ -201,8 +199,7 @@
     //   })
     // })
   })
-}, 700)
-
+}
 const getIsItemHasAddGlobal = () => {
   // console.log(selectInfo.value);
   selectInfo.value.hasAddGlobal = true
@@ -259,7 +256,7 @@
   router.go(-1)
 }
 </script>
-
+  
 <style lang="scss" scoped>
 :deep(.van-field__control) {
   font-size: 14px;
@@ -367,15 +364,6 @@
       color: #B8BDD1;
       word-wrap: break-word;
       word-break: break-all;
-
-      &>p:first-child {
-        display: -webkit-box;
-        -webkit-box-orient: vertical;
-        -webkit-line-clamp: 2;
-        /* 限制为2行 */
-        overflow: hidden;
-        text-overflow: ellipsis;
-      }
 
       .num {
         font-size: 14px;

--
Gitblit v1.9.3