From 4e40eb60d399fd7ff4b19a5e50e6f1d336f62c88 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Fri, 26 Dec 2025 16:00:12 +0800
Subject: [PATCH] 1

---
 src/page/home/home.vue |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/src/page/home/home.vue b/src/page/home/home.vue
index 40c1fe1..8b39b13 100644
--- a/src/page/home/home.vue
+++ b/src/page/home/home.vue
@@ -57,7 +57,7 @@
                 <div class="name">{{ $t("yeb") }}</div>
               </div>
             </li> -->
-            <li @click="aRouter">
+            <li @click="$router.push('/recharge')">
               <div class="link">
                 <div class="icon">
                   <img
@@ -91,7 +91,8 @@
                 <div class="name">{{ $t("安全") }}</div>
               </div>
             </li> -->
-            <!-- <li @click="aRouter1">
+            <li @click="aRouter1">
+            <!-- <li @click="$router.push('/recharge')"> -->
               <div class="link">
                 <div class="icon">
                   <img
@@ -100,7 +101,7 @@
                 </div>
                 <div class="name">{{ $t("kf") }}</div>
               </div>
-            </li> -->
+            </li>
             <!-- <li @click="$router.push('/warehouse')">
               <div class="link">
                 <div class="icon">
@@ -352,8 +353,12 @@
       // window.open(this.onlineService);
     },
     aRouter1() {
-        window.open('https://chatlink.wchatlink.com/widget/standalone.html?eid=139eb5679d5a9aea0650dbb3c96ca1a2&language=en');
-      // window.open(this.onlineService);
+        // window.open('https://chatlink.wchatlink.com/widget/standalone.html?eid=139eb5679d5a9aea0650dbb3c96ca1a2&language=en');
+        if (window.localStorage.getItem("USERTOKEN")) {
+          window.open(this.onlineService);
+        }else{
+          this.$router.push('/login')
+        }
     },
 
     getdialog() {
@@ -498,7 +503,6 @@
       let data = await api.getInfoSite();
       if (data.status === 0) {
         this.onlineService = data.data.onlineService;
-        console.log(this.onlineService, 'this.onlineService');
       } else {
         this.$store.commit("elAlertShow", {
           elAlertShow: true,
@@ -511,7 +515,7 @@
     async getNewsList(type) {
       if (typeof type == "string") type = 1
       let data = await api.queryNewsList(type);
-      this.isshow = true
+      // this.isshow = true
       this.newListHeader.map((item) => {
         if (item.type === type) {
           item.data = data.data.list;

--
Gitblit v1.9.3