Liuteng 1 개월 전
부모
커밋
941d4d902f
1개의 변경된 파일69개의 추가작업 그리고 56개의 파일을 삭제
  1. 69 56
      src/views/HVversion/menu/components/swfw.vue

+ 69 - 56
src/views/HVversion/menu/components/swfw.vue

@@ -10,10 +10,7 @@
 
 <script>
 import menus from "../menus.vue";
-import {
-  getTax,
-  gethomeHot,
-} from "@/api/index";
+import { getTax, gethomeHot } from "@/api/index";
 export default {
   name: "NewsmzcMenuSwfw",
 
@@ -60,65 +57,81 @@ export default {
     },
 
     hotEvent(e) {
-      const logins = JSON.parse(e.smzcLoginModeId);
-      let FUNCTIONAL = {
-        path: e.preUrl,
-        login: logins,
-      };
-      if (logins.length == 1) {
-        if (logins[0] == 0) {
-          // 0 代表免登录
-          this.$router.push(e.preUrl);
-        } else if (logins[0] == 1) {
-          // 1 手机验证码登录
-          this.$router.push("/phoneLogin");
-        } else if (logins[0] == 2) {
-          // 2 刷代表身份证登录
-          this.$router.push("/brushCard");
-        } else if (logins[0] == 3) {
-          // 3 代表身份证+人脸验证登录
-          FUNCTIONAL.selectLogin = 3;
-          this.$router.push("/brushCard");
-        } else if (logins[0] == 4) {
-          // 4 代表输入身份证号登陆
-          this.$router.push("/idCardLogin");
-        }
+      if (e.menuName == "税案通报") {
+        this.satb(e.preUrl);
       } else {
-        this.$router.push("/loginType");
+        const logins = JSON.parse(e.smzcLoginModeId);
+        let FUNCTIONAL = {
+          path: e.preUrl,
+          login: logins,
+        };
+        if (logins.length == 1) {
+          if (logins[0] == 0) {
+            // 0 代表免登录
+            this.$router.push(e.preUrl);
+          } else if (logins[0] == 1) {
+            // 1 手机验证码登录
+            this.$router.push("/phoneLogin");
+          } else if (logins[0] == 2) {
+            // 2 刷代表身份证登录
+            this.$router.push("/brushCard");
+          } else if (logins[0] == 3) {
+            // 3 代表身份证+人脸验证登录
+            FUNCTIONAL.selectLogin = 3;
+            this.$router.push("/brushCard");
+          } else if (logins[0] == 4) {
+            // 4 代表输入身份证号登陆
+            this.$router.push("/idCardLogin");
+          }
+        } else {
+          this.$router.push("/loginType");
+        }
+        sessionStorage.setItem("FUNCTIONAL", JSON.stringify(FUNCTIONAL));
+        sessionStorage.setItem("gn", e.menuName || e.name);
       }
-      sessionStorage.setItem("FUNCTIONAL", JSON.stringify(FUNCTIONAL));
-      sessionStorage.setItem("gn", e.menuName || e.name);
     },
 
     menuEvent(e) {
-      const logins = JSON.parse(e.smzcLoginModeId);
-      let FUNCTIONAL = {
-        path: e.path,
-        login: logins,
-      };
-      if (logins.length == 1) {
-        if (logins[0] == 0) {
-          // 0 代表免登录
-          this.$router.push(e.path);
-        } else if (logins[0] == 1) {
-          // 1 手机验证码登录
-          this.$router.push("/phoneLogin");
-        } else if (logins[0] == 2) {
-          // 2 刷代表身份证登录
-          this.$router.push("/brushCard");
-        } else if (logins[0] == 3) {
-          // 3 代表身份证+人脸验证登录
-          FUNCTIONAL.selectLogin = 3;
-          this.$router.push("/brushCard");
-        } else if (logins[0] == 4) {
-          // 4 代表输入身份证号登陆
-          this.$router.push("/idCardLogin");
-        }
+      if (e.name == "税案通报") {
+        this.satb(e.path);
       } else {
-        this.$router.push("/loginType");
+        const logins = JSON.parse(e.smzcLoginModeId);
+        let FUNCTIONAL = {
+          path: e.path,
+          login: logins,
+        };
+        if (logins.length == 1) {
+          if (logins[0] == 0) {
+            // 0 代表免登录
+            this.$router.push(e.path);
+          } else if (logins[0] == 1) {
+            // 1 手机验证码登录
+            this.$router.push("/phoneLogin");
+          } else if (logins[0] == 2) {
+            // 2 刷代表身份证登录
+            this.$router.push("/brushCard");
+          } else if (logins[0] == 3) {
+            // 3 代表身份证+人脸验证登录
+            FUNCTIONAL.selectLogin = 3;
+            this.$router.push("/brushCard");
+          } else if (logins[0] == 4) {
+            // 4 代表输入身份证号登陆
+            this.$router.push("/idCardLogin");
+          }
+        } else {
+          this.$router.push("/loginType");
+        }
+        sessionStorage.setItem("FUNCTIONAL", JSON.stringify(FUNCTIONAL));
+        sessionStorage.setItem("gn", e.menuName || e.name);
       }
-      sessionStorage.setItem("FUNCTIONAL", JSON.stringify(FUNCTIONAL));
-      sessionStorage.setItem("gn", e.menuName || e.name);
+    },
+
+    satb(path) {
+      const cookie = null;
+      let firstUrl =
+        "https://www.chinatax.gov.cn/chinatax/n810219/c102025/common_listwyc.html";
+      let nextUrl = `${window.location.origin}${path}`;
+      var str1 = callbackObjAsync.doNextPage("2", cookie, firstUrl, nextUrl);
     },
   },
 };