From 03043192ddf00f9a36b7454799a9152cd1b50a0b Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Tue, 06 Jan 2026 11:13:45 +0800
Subject: [PATCH] 1
---
src/views/optional/index.vue | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/src/views/optional/index.vue b/src/views/optional/index.vue
index 18885d5..c153ca8 100644
--- a/src/views/optional/index.vue
+++ b/src/views/optional/index.vue
@@ -56,10 +56,11 @@
<m-echarts :dataObj="item" :ratio="item.change_ratio" :index="item.symbol" />
</div>
<div class="flex-r-item data-box">
- <div class="data-item" :class="[item.change_ratio < 0 ? 'bg-red' : 'bg-green']">{{ item.close }}</div>
+ <div class="data-item" :class="[item.change_ratio < 0 ? 'bg-red' : 'bg-green']">{{ item.close }}
+ </div>
<p class="value" :class="[item.change_ratio < 0 ? 'color-red' : 'color-green']">
{{ item.change_ratio < 0 ? item.net_change : '+' + item.net_change }} {{ item.change_ratio
- }}%</p>
+ }}%</p>
</div>
</div>
</li>
@@ -102,7 +103,7 @@
:title="`${t('digitalCurrency')}(${fixedData.cryptos || 0})`" />
<van-sidebar-item @click="openType('forex', t('外汇'))" :title="`${t('外汇')}(${fixedData.forex || 0})`" />
<van-sidebar-item @click="openType('INDIA-stocks', t('印度股'))"
- :title="`${t('印度股')}(${fixedData['INDIA-stocks'] || 0})`" />
+ :title="`${t('印度股')}(${fixedData['INDIA-stocks'] || 0})`" />
</van-sidebar>
</div>
<footer class="footer-container">
@@ -127,7 +128,7 @@
</div>
</section>
</template>
-
+
<script setup>
import { ref, onMounted, onBeforeUnmount } from 'vue';
import { useUserStore } from '@/store/user';
@@ -143,6 +144,9 @@
import { HOST_URL } from '@/config'
import { themeStore } from '@/store/theme';
const thStore = themeStore()
+
+console.log("dddddd", HOST_URL);
+
const { t } = useI18n()
const router = useRouter()
@@ -445,7 +449,12 @@
font-weight: 700;
font-size: 20px;
line-height: 28px;
+ height: 28px;
color: $mainTextColor;
+ width: 75vw;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
}
.icon-group {
--
Gitblit v1.9.3