From 7bb960ef165d091678a65ddc01b6551ec4487daa Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Mon, 29 Dec 2025 14:26:11 +0800
Subject: [PATCH] 1

---
 src/views/homePage/index.vue |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/views/homePage/index.vue b/src/views/homePage/index.vue
index 4c024fb..55cacfe 100644
--- a/src/views/homePage/index.vue
+++ b/src/views/homePage/index.vue
@@ -12,7 +12,6 @@
 
         <video autoplay loop muted playsinline class="home_logo">
             <source src="@/assets/video/home_1.mp4" type="video/mp4">
-            您的浏览器不支持 video 标签。
         </video>
 
         <!-- <div class="text-center font-bold mt-8 logo_text">{{ $t('复制财富,從此刻開始') }}</div>
@@ -105,7 +104,6 @@
 const { t } = useI18n()
 const router = useRouter()
 const store = useStore();
-const customer_service_url = ref(customerServiceUrl) // 客服链接,有值的话就会跳转到客服外链
 
 const tabbers = [
     // { key: 1, name: t('跟单'), icon: new URL('@/assets/imgs/home/home_1.png', import.meta.url) },
@@ -125,7 +123,7 @@
     // { key: 12, name: "C2C", icon: new URL('@/assets/imgs/home/home_1.png', import.meta.url), path: '/wantBuy' },
     // { key: 13, name: t('质押'), icon: new URL('@/assets/imgs/home/home_1.png', import.meta.url), path: '' },
     { key: 14, name: t('onLineService'), icon: new URL('@/assets/imgs/home/home_10.png', import.meta.url), path: '/customerService' },
-    { key: 15, name: 'DXCM PDF', icon: new URL('@/assets/imgs/home/home_1.png', import.meta.url), path: '' },
+    { key: 15, name: 'DXCM PDF', icon: new URL('@/assets/imgs/home/home_1.png', import.meta.url), path: 'https://www.dexm-whitepaper.com/' },
 ]
 
 // 获取公告数据
@@ -147,9 +145,16 @@
 const toPage = (path) => {
     if (!path) return
 
+    // 如果路径包含 "http",则作为外链跳转
+    if (path && (path.startsWith('http://') || path.startsWith('https://'))) {
+        window.open(path, '_blank');
+        return;
+    }
+
     if (path == '/customerService') {
-        if (customer_service_url.value) {
-            window.location.href = customer_service_url.value;
+        // 客服链接,有值的话就会跳转到客服外链
+        if (customerServiceUrl()) {
+            window.location.href = customerServiceUrl();
         } else {
             router.push(path)
         }

--
Gitblit v1.9.3