From 93f9b248dd0eecbaa77006e5146c58c831d89d8e Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Mon, 07 Jul 2025 17:12:16 +0800
Subject: [PATCH] style
---
src/views/cryptos/index.vue | 21 +++++++++++++++++----
1 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/src/views/cryptos/index.vue b/src/views/cryptos/index.vue
index 172e0b3..d0183ef 100644
--- a/src/views/cryptos/index.vue
+++ b/src/views/cryptos/index.vue
@@ -42,7 +42,7 @@
</div>
</div> -->
<!-- <ex-hot :listData="hList"></ex-hot> -->
- <list-quatation :listData="qList" />
+ <list-quatation :listData="qList" @onfetchQList="fetchQList"/>
<van-popup v-model:show="item.showPopUp" style="border-radius:10px;" :close-on-click-overlay="false"
v-for="item in popupNewsList" :key="item.id">
<div class="w-350 p-20 box-border">
@@ -98,7 +98,7 @@
currency: 'home/currency',
coinArr: 'home/coinArr',
hotArr: 'home/hotArr',
- userInfo: 'user/userInfo'
+ userInfo: 'user/userInfo',
}),
},
data() {
@@ -122,6 +122,7 @@
unreadMsg_timer: null,
unreadMsg_num: '',
popupNewsList: [],
+ getVal: 1,
}
},
methods: {
@@ -132,8 +133,20 @@
//console.log('\n *** \n'+unread_num*1+'\n *** \n')
})
},
- async fetchQList() { // 获取行情
- const list = await _getHomeList(this.coinArr.join(',')).catch(() => {
+ async fetchQList(v) { // 获取行情
+ let coninArr = ''
+ if (v) { this.getVal = v }
+ if(this.getVal == 2) {
+ let arr = getStorage('qoutes').coins
+ arr.map((item) => {
+ coninArr += item.symbol + ','
+ })
+ }else{
+ coninArr = this.coinArr.join(',')
+ }
+ console.log('fetchQList', v, coninArr)
+ // if()
+ const list = await _getHomeList(coninArr).catch(() => {
//TODO: 轮询
// this.timeout = setTimeout(() => {
// this.fetchQList()
--
Gitblit v1.9.3