1
jhzh
2025-12-26 4e40eb60d399fd7ff4b19a5e50e6f1d336f62c88
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;