From 2d824e3fd91927fd02ef0d8b4a7dae35c69fc52e Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Tue, 30 Apr 2024 16:02:25 +0800
Subject: [PATCH] first

---
 src/page/assetsCenter/index.vue                             |   40 ++++++++++++++++---
 src/page/new-urrency/components/placing-list-index.vue      |    3 +
 src/page/quotes.vue                                         |    1 
 src/page/new-urrency/components/subscription-list-index.vue |    4 +
 src/page/new-urrency/list-urrency.vue                       |    6 +-
 src/page/new-urrency/index.vue                              |   25 +-----------
 6 files changed, 45 insertions(+), 34 deletions(-)

diff --git a/src/page/assetsCenter/index.vue b/src/page/assetsCenter/index.vue
index 57fb534..bdfa48f 100644
--- a/src/page/assetsCenter/index.vue
+++ b/src/page/assetsCenter/index.vue
@@ -20,7 +20,6 @@
           }}
         </div>
       </van-row>
-
       <van-row gutter="20" class="but-box">
         <van-col
           span="8"
@@ -43,7 +42,6 @@
           {{ item.text }}
         </div>
       </div>
-
       <div class="tabs-content">
         <div>{{ allName }} {{ $t("总资产") }}</div>
         <div class="tabs-name">
@@ -51,13 +49,28 @@
         </div>
       </div>
     </div>
-
     <main>
       <template v-if="loading">
         <van-loading />
       </template>
-
       <template v-if="active === 1">
+        <div class="px-32 py-13 flex">
+          <div class="inputBoxbg h-60 w-full rounded-full flex items-center">
+            <input
+              style="padding-left: 10px"
+              type="text"
+              v-model="keywords"
+              :placeholder="$t('搜索币种')"
+              class="h-full flex-1 search-input border-none bg-none"
+              @input="onInput"
+            />
+            <img
+              src="@/assets/3x/资源 22@3x.png"
+              alt="logo"
+              class="w-32 h-32 mx-16"
+            />
+          </div>
+        </div>
         <div class="item-box" v-for="(item, index) in funds" :key="index">
           <div class="title-main">{{ item.symbol.toUpperCase() }}/USDT</div>
           <van-row>
@@ -117,18 +130,15 @@
 <script>
 import { _getAllWallet } from "@/API/fund.api";
 import Axios from "@/API/assets";
-
 import { mapActions, mapGetters } from "vuex";
 import { _futrueOrderList, _orderListHold } from "@/API/trade.api";
 import PerpetualPositionList from "@/components/perpetual-position-list/index.vue";
 import futrueHoldList from "@/page/deliveryContract/hold.vue";
 import financialList from "@/components/assetsCenter/financialList";
-
 import {
   getfinacialProductsBought,
   getMachineBought,
 } from "@/API/financialManagement";
-
 export default {
   components: {
     PerpetualPositionList,
@@ -137,6 +147,7 @@
   },
   data() {
     return {
+      keywords: "",
       loading: true,
       active: 1,
       tabList1: [
@@ -180,6 +191,7 @@
         { id: 5, text: this.$t("理财") },
       ],
       funds: [],
+      fundsDatra: [],
       tabListData: {},
       assetsFunds: {},
     };
@@ -250,6 +262,15 @@
   },
   methods: {
     ...mapActions("user", ["GET_UERS_KYC"]),
+    onInput(e) {
+      console.log(333, this.fundsDatra);
+      this.funds = this.fundsDatra.filter((item) =>
+        item.symbol.includes(e.target.value.toLocaleLowerCase())
+      );
+      // this.fundsDatra[index]["data"] = this.tabList[index]["data"].filter(
+      //   (item) => item.symbol.includes(e.target.value.toLocaleLowerCase())
+      // );
+    },
 
     routerList(item) {
       this.$router.push({ path: item.route, query: item.query });
@@ -330,6 +351,7 @@
         let list = res.extends;
         if (this.active === 1) {
           this.funds = list;
+          this.fundsDatra = list;
         }
       });
     },
@@ -423,4 +445,8 @@
   text-align: center;
   margin: 30px 0;
 }
+
+.items-center {
+  background: #f5f5f5;
+}
 </style>
\ No newline at end of file
diff --git a/src/page/new-urrency/components/placing-list-index.vue b/src/page/new-urrency/components/placing-list-index.vue
index f47dac8..a0601de 100644
--- a/src/page/new-urrency/components/placing-list-index.vue
+++ b/src/page/new-urrency/components/placing-list-index.vue
@@ -34,18 +34,21 @@
         </van-col>
       </van-row>
     </van-cell>
+    <listUrrency style="margin-top: 50px" :active="2"></listUrrency>
   </div>
 </template>
 
 <script>
 import { icoNewCurrencygetList } from "@/API/home.api";
 import { List, Cell, Dialog, Notify } from "vant";
+import listUrrency from "../list-urrency.vue";
 
 export default {
   components: {
     [Dialog.Component.name]: Dialog.Component,
     [List.name]: List,
     [Cell.name]: Cell,
+    listUrrency: listUrrency,
   },
   props: ["active"],
   watch: {
diff --git a/src/page/new-urrency/components/subscription-list-index.vue b/src/page/new-urrency/components/subscription-list-index.vue
index b8d6a36..2d92cdd 100644
--- a/src/page/new-urrency/components/subscription-list-index.vue
+++ b/src/page/new-urrency/components/subscription-list-index.vue
@@ -34,18 +34,20 @@
         </van-col>
       </van-row>
     </van-cell>
+    <listUrrency style="margin-top: 50px" :active="1"></listUrrency>
   </div>
 </template>
 
 <script>
 import { icoNewCurrencygetList, icoOrderAppAdd } from "@/API/home.api";
 import { List, Cell, Dialog, Notify } from "vant";
-
+import listUrrency from "../list-urrency.vue";
 export default {
   components: {
     [Dialog.Component.name]: Dialog.Component,
     [List.name]: List,
     [Cell.name]: Cell,
+    listUrrency: listUrrency,
   },
   props: ["active"],
   watch: {
diff --git a/src/page/new-urrency/index.vue b/src/page/new-urrency/index.vue
index 59c57da..90db8e0 100644
--- a/src/page/new-urrency/index.vue
+++ b/src/page/new-urrency/index.vue
@@ -6,11 +6,11 @@
       title="ICO"
       left-arrow
       @click-left="onClickLeft"
-      @click-right="$router.push('/list-urrency')"
     >
-      <template #right>
+      <!-- @click-right="$router.push('/list-urrency')" -->
+      <!-- <template #right>
         <van-icon name="todo-list-o" size="20" />
-      </template>
+      </template> -->
     </van-nav-bar>
     <div class="ico-warp">
       <div class="ex-tabs flex">
@@ -24,25 +24,6 @@
           {{ item.name }}
         </div>
       </div>
-      <!-- <template v-if="active !== 0">
-        <van-cell v-for="item in showList" :key="item.id">
-          <van-row
-            align="center"
-            type="flex"
-            justify="space-between"
-            @click="setgoumai(item)"
-            class="item-box"
-          >
-            <van-col span="8">{{ item.newCoinName }}</van-col>
-            <van-col span="12">{{ $t("单价:") }}{{ item.issuePrice }}</van-col>
-            <van-col span="4">
-              <div class="bt">
-                {{ item.type === 1 ? $t("认购") : $t("配售") }}
-              </div>
-            </van-col>
-          </van-row>
-        </van-cell>
-      </template> -->
 
       <template v-if="active === 1">
         <subscriptionListIndex :active="active" />
diff --git a/src/page/new-urrency/list-urrency.vue b/src/page/new-urrency/list-urrency.vue
index 50499af..b3a02d3 100644
--- a/src/page/new-urrency/list-urrency.vue
+++ b/src/page/new-urrency/list-urrency.vue
@@ -1,6 +1,6 @@
 <template>
   <div>
-    <van-nav-bar
+    <!-- <van-nav-bar
       :placeholder="true"
       :fixed="true"
       :title="$t('ICO记录')"
@@ -19,7 +19,7 @@
       >
         {{ item.name }}
       </div>
-    </div>
+    </div> -->
     <template v-if="active === 1">
       <!-- 认购 -->
       <subscriptionList :active="active" />
@@ -37,6 +37,7 @@
 export default {
   components: { subscriptionList, placingList },
   mounted() {},
+  props: ["active"],
   methods: {
     changeTab(item) {
       this.active = item.id;
@@ -44,7 +45,6 @@
   },
   data() {
     return {
-      active: 1,
       listArr: [
         {
           name: this.$t("认购"),
diff --git a/src/page/quotes.vue b/src/page/quotes.vue
index 6b730b2..59295f1 100644
--- a/src/page/quotes.vue
+++ b/src/page/quotes.vue
@@ -12,7 +12,6 @@
         </div>
       </div>
       <div class="px-32 py-13 flex items-center">
-        <!-- <img src="@/assets/image/icon-left_arrow.png" alt="logo" class="w-20 h-33 border-1 mr-32" @click="back"/> -->
         <div class="inputBoxbg h-60 w-full rounded-full flex items-center">
           <input
             style="padding-left: 10px; max-width: 130px"

--
Gitblit v1.9.3