From 3f1ab7f7f65fe665f6977f94899c763cc1ef1faf Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Tue, 02 Jun 2026 15:56:14 +0800
Subject: [PATCH] 1
---
src/views/cryptos/TrendDetails/index.vue | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/views/cryptos/TrendDetails/index.vue b/src/views/cryptos/TrendDetails/index.vue
index b5141fc..5d1eeba 100644
--- a/src/views/cryptos/TrendDetails/index.vue
+++ b/src/views/cryptos/TrendDetails/index.vue
@@ -20,7 +20,7 @@
<p class="font-70 font-600" :class="quote.change_ratio > 0 ? 'text-green' : 'text-red'">
{{ quote.close || '--' }}</p>
<p class="font-22 mt-10">≈ {{ currency.currency_symbol }}{{ quote.close ? (quote.close *
- currency.rate).toFixed(2) : '--' }}
+ currency.rate).toFixed(6) : '--' }}
<span :class="quote.change_ratio > 0 ? 'text-green' : 'text-red'">{{ quote.change_ratio
||
'--' }}%</span>
@@ -228,10 +228,11 @@
import { mapGetters } from 'vuex';
import { fixDate } from "@/utils";
import { WS_URL } from '@/config';
+import { strToArr } from "@/utils/utis";
import PopupDelivery from "@/components/Transform/popup-delivery/index.vue";
import PopupConfirmOrder from '@/components/Transform/popup-confirm-order/index.vue'
import deepChart from '@/components/Transform/deepChart/index.vue'
-import { THEME } from '@/config/theme'
+// import { THEME } from '@/config/theme'
export default {
name: 'TrendDetails',
components: {
@@ -252,7 +253,7 @@
})
}
return {
- THEME,
+ // THEME,
show: false,
direction: 'buy',
initFutrue: {},
@@ -294,10 +295,13 @@
}
},
computed: {
- ...mapGetters({ currency: 'home/currency', userInfo: 'user/userInfo' })
+ ...mapGetters({ currency: 'home/currency', userInfo: 'user/userInfo' }),
+ THEME() {
+ return this.$store.state.vant.theme
+ }
},
mounted() {
- console.log('sss')
+ console.log('sss', this.$route.query)
//this.continueOrder()
this.kineType = this.$route.query.kineType
if (this.$route.query.type) {
@@ -377,7 +381,7 @@
_getHomeList(this.symbol).then(data => {
// console.log(data[0])
this.quote = data[0]
- this.symbolData = data[0].symbol_data
+ this.symbolData = strToArr(data[0].name, '/')[0]
this.$nextTick(() => {
if (!this.sockets.quote && this.symbol) {
this.startQuoteScoket()
--
Gitblit v1.9.3