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 | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/src/page/home/home.vue b/src/page/home/home.vue
index ee42d04..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">
@@ -186,7 +187,7 @@
</div>
<!-- tab -->
<GoToLogin v-show="isGoTo" />
- <van-popup
+ <!-- <van-popup
v-model="isshow"
style="border-radius: 10px"
@@ -213,7 +214,7 @@
{{ $t("我知道了") }}
</van-button>
</div>
- </van-popup>
+ </van-popup> -->
</div>
</template>
<script>
@@ -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,
--
Gitblit v1.9.3