From 0f6b38dfdfe93a1d630d984417af2fbb03c7e0ff Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Mon, 15 Sep 2025 15:29:26 +0800
Subject: [PATCH] 2

---
 src/store/index.js |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/src/store/index.js b/src/store/index.js
index 5cb0b85..e0378f3 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -1,6 +1,9 @@
-import { getUserInfodata } from "@/axios/api";
+import { getUserInfodata, getInfoSite } from "@/axios/api";
 import Vue from "vue";
 import Vuex from "vuex";
+import { Toast } from "vant";
+import i18n from "@/locales/index.js";
+import deTh from "@/utils/deTh.js";
 // import getters from './getters'
 // import actions from './actions'
 // import mutations from './mutations'
@@ -46,7 +49,19 @@
           elAlertText: data.msg
         });
       }
-    }
+    },
+    // 触发客服提示
+    CustomerService: deTh.throttle(async function() {
+      // Toast(i18n.t("kf1"));
+
+      let data = await getInfoSite();
+      if (data.status === 0) {
+        let onlineService = data.data.onlineService;
+        window.open(onlineService, "_blank");
+      } else {
+        Toast(i18n.t("kf2"));
+      }
+    })
   },
   mutations: {
     SET_USE_INFO(state, useInfo) {

--
Gitblit v1.9.3