Liuteng 2 mesiacov pred
rodič
commit
a37eb2f681
1 zmenil súbory, kde vykonal 65 pridanie a 66 odobranie
  1. 65 66
      src/api/index.js

+ 65 - 66
src/api/index.js

@@ -1,122 +1,121 @@
-import request from "@/utils/request"
+import request from "@/utils/request";
 
 // 获取定位
 export function getAddress(data) {
-    return request({
-        url: "/machine/all/hqdw",
-        method: "post",
-        data: data,
-        header: {}
-    })
+  return request({
+    url: "/machine/all/hqdw",
+    method: "post",
+    data: data,
+    header: {},
+  });
 }
 // 首页第一个接口(传mac)
 export function sentMac(data) {
-    return request({
-        url: '/machine/all/getByMac?mac='+data.mac,
-        // url: '/machine/all/getByMac',
-        method: 'get',
-        // params: data.mac
-    })
+  return request({
+    url: "/machine/all/getByMac?mac=" + data.mac,
+    // url: '/machine/all/getByMac',
+    method: "get",
+    // params: data.mac
+  });
 }
 // 获取headVo
 export function getjs(data) {
-    return request({
-        url: '/tax/autoPurchaseTax/sqlSelectHead?'+data,
-        method: 'get',
-    })
+  return request({
+    url: "/tax/autoPurchaseTax/sqlSelectHead?" + data,
+    method: "get",
+  });
 }
 
 // 获取税务菜单
 
 export function getTax(data) {
-    return request({
-        url: '/machine/all/getTax?jqbh='+data ,
-        method: 'get',
-    })
+  return request({
+    url: "/machine/all/getTax?jqbh=" + data,
+    method: "get",
+  });
 }
 
 // 向热门传参
 
 export function saveLog(data) {
-    return request({
-        url: '/machine/all/saveLog' ,
-        method: 'post',
-        data: data
-    })
+  return request({
+    url: "/machine/all/saveLog",
+    method: "post",
+    data: data,
+  });
 }
 
 // 获取区县
 export function getSecon(data) {
-    return request({
-        url: '/humanSociety/area/getSecond',
-        method: 'post',
-        data: data
-    })
+  return request({
+    url: "/humanSociety/area/getSecond",
+    method: "post",
+    data: data,
+  });
 }
 
 // 获取征信菜单
 
 export function getcreditMenuTree() {
-    return request({
-        url: '/machine/all/creditMenuTree' ,
-        method: 'post',
-    })
+  return request({
+    url: "/machine/all/creditMenuTree",
+    method: "post",
+  });
 }
 // 获取金融菜单
 
 export function getjrService(data) {
-    return request({
-        url: '/machine/all/jrService',
-        method: 'post',
-        data: data
-    })
+  return request({
+    url: "/machine/all/jrService",
+    method: "post",
+    data: data,
+  });
 }
 // 获取便民服务菜单
 
 export function getbmService(data) {
-    return request({
-        url: '/machine/all/bmService',
-        method: 'post',
-        data: data
-    })
+  return request({
+    url: "/machine/all/bmService",
+    method: "post",
+    data: data,
+  });
 }
 
 // 获取易企办菜单
 
 export function yqbTree(data) {
-    return request({
-        url: '/machine/all/yqbTree',
-        method: 'post',
-        params: data
-    })
+  return request({
+    url: "/machine/all/yqbTree",
+    method: "post",
+    params: data,
+  });
 }
 
 // 获取府周(州)办菜单
 
 export function fzbService(data) {
-    return request({
-        url: '/machine/all/fzbService',
-        method: 'post',
-        data: data
-    })
+  return request({
+    url: "/machine/all/fzbService",
+    method: "post",
+    data: data,
+  });
 }
 // 获取公共服务
 
 export function getggList(data) {
-    return request({
-        url: '/machine/smzcPublicUse/getList?vertexName='+data,
-        method: 'get',
-        // param: data
-    })
+  return request({
+    url: "/machine/smzcPublicUse/getList?vertexName=" + data,
+    method: "get",
+    // param: data
+  });
 }
 
 // 获取首页热门
 
 export function gethomeHot(data) {
-    return request({
-        url: '/machine/all/homeHot',
-        method: 'post',
-        data: data
-    })
+  return request({
+    url: "/machine/all/homeHot",
+    method: "post",
+    data: data,
+  });
 }
-