10.10综合交易所原始源码_移动端
admin
2026-01-06 42faef34194c466f03e29d75a63ae502e4213044
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;