1
0

2 Commitit a37eb2f681 ... 7999a3be46

Tekijä SHA1 Viesti Päivämäärä
  Liuteng 7999a3be46 政务视频 2 viikkoa sitten
  Liuteng 3941530486 1 2 viikkoa sitten

+ 5 - 9
src/api/index.js

@@ -9,6 +9,7 @@ export function getAddress(data) {
     header: {},
   });
 }
+
 // 首页第一个接口(传mac)
 export function sentMac(data) {
   return request({
@@ -18,6 +19,7 @@ export function sentMac(data) {
     // params: data.mac
   });
 }
+
 // 获取headVo
 export function getjs(data) {
   return request({
@@ -27,7 +29,6 @@ export function getjs(data) {
 }
 
 // 获取税务菜单
-
 export function getTax(data) {
   return request({
     url: "/machine/all/getTax?jqbh=" + data,
@@ -36,7 +37,6 @@ export function getTax(data) {
 }
 
 // 向热门传参
-
 export function saveLog(data) {
   return request({
     url: "/machine/all/saveLog",
@@ -55,15 +55,14 @@ export function getSecon(data) {
 }
 
 // 获取征信菜单
-
 export function getcreditMenuTree() {
   return request({
     url: "/machine/all/creditMenuTree",
     method: "post",
   });
 }
-// 获取金融菜单
 
+// 获取金融菜单
 export function getjrService(data) {
   return request({
     url: "/machine/all/jrService",
@@ -71,8 +70,8 @@ export function getjrService(data) {
     data: data,
   });
 }
-// 获取便民服务菜单
 
+// 获取便民服务菜单
 export function getbmService(data) {
   return request({
     url: "/machine/all/bmService",
@@ -82,7 +81,6 @@ export function getbmService(data) {
 }
 
 // 获取易企办菜单
-
 export function yqbTree(data) {
   return request({
     url: "/machine/all/yqbTree",
@@ -92,7 +90,6 @@ export function yqbTree(data) {
 }
 
 // 获取府周(州)办菜单
-
 export function fzbService(data) {
   return request({
     url: "/machine/all/fzbService",
@@ -100,8 +97,8 @@ export function fzbService(data) {
     data: data,
   });
 }
-// 获取公共服务
 
+// 获取公共服务
 export function getggList(data) {
   return request({
     url: "/machine/smzcPublicUse/getList?vertexName=" + data,
@@ -111,7 +108,6 @@ export function getggList(data) {
 }
 
 // 获取首页热门
-
 export function gethomeHot(data) {
   return request({
     url: "/machine/all/homeHot",

+ 98 - 0
src/views/HVversion/menu/components/zwsp.vue

@@ -0,0 +1,98 @@
+<template>
+  <menus
+    :tree-data="treeData"
+    :hot-data="hotData"
+    vertex-id="政务视频"
+    @hotEvent="hotEvent"
+    @menuEvent="menuEvent"
+  ></menus>
+</template>
+
+<script>
+import menus from "../menus.vue";
+import { zwspService, gethomeHot } from "@/api/index";
+export default {
+  name: "NewsmzcMenuZwsp",
+
+  components: {
+    menus,
+  },
+
+  data() {
+    return {
+      treeData: {},
+      hotData: {},
+
+      backName: "",
+    };
+  },
+
+  mounted() {
+    this.getData();
+  },
+
+  methods: {
+    getData() {
+      let form = {
+        name: JSON.parse(sessionStorage.getItem("PUBLIC_INFO")).dname,
+      };
+      zwspService(form).then((res) => {
+        if (res.code === 200) {
+          this.treeData = res.tree.rootNodes[0];
+          this.gethot("政务视频");
+        }
+      });
+    },
+    gethot(e) {
+      this.$loading.show("正在查询...");
+      let form = {
+        vertexName: JSON.parse(sessionStorage.getItem("PUBLIC_INFO")).dname,
+        smzcTerminalId: JSON.parse(sessionStorage.getItem("MACHINE_INFO")).id,
+        vertexId: e,
+        hotType: "apple",
+        yhName: this.backName,
+      };
+      gethomeHot(form).then((res) => {
+        this.$loading.hide();
+        this.hotData = res.list;
+      });
+    },
+
+    hotEvent(e) {
+      let data = {
+        dname: e.vertexName,
+        id: e.code,
+        qname: e.county,
+        url: "",
+        url2: e.afUrl,
+      };
+      sessionStorage.setItem("PUBLIC_INFO", JSON.stringify(data));
+      this.$loading.show("正在加载中...");
+      window.location.href = e.preUrl;
+      try {
+        callbackObjAsync.showBackExit();
+      } catch (error) {
+        console.warn("壳子方法:", error);
+      }
+      setTimeout(() => {
+        this.$loading.hide();
+      }, 5000);
+    },
+
+    menuEvent(e) {
+      if (e.path[0] == "/") {
+        this.$router.push(e.path);
+      } else {
+        window.location.href = e.path;
+        try {
+          callbackObjAsync.showBackExit();
+        } catch (error) {
+          console.warn("壳子方法:", error);
+        }
+      }
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped></style>

+ 5 - 0
src/views/HVversion/menu/index.vue

@@ -39,6 +39,7 @@ import jrcp from "./components/jrcp.vue";
 import ggfw from "./components/ggfw.vue";
 import yqb from "./components/yqb.vue";
 import fzb from "./components/fzb.vue";
+import zwsp from "./components/zwsp.vue";
 export default {
   name: "NewsmzcMenuIndex",
 
@@ -51,6 +52,7 @@ export default {
     ggfw,
     yqb,
     fzb,
+    zwsp
   },
 
   data() {
@@ -112,6 +114,9 @@ export default {
       } else if (type == "fzb") {
         this.leftImg = require("@/assets/menu/leftgg.png");
         this.component = "fzb";
+      } else if (type == "zwsp") {
+        this.leftImg = require("@/assets/menu/leftgg.png");
+        this.component = "zwsp";
       }
     },
   },