From 5f0ba4bd0c69fd1ebcad122a2dcab8840d929188 Mon Sep 17 00:00:00 2001
From: ZZJ <zzjdsg2300@163.com>
Date: 星期五, 10 十二月 2021 18:24:46 +0800
Subject: [PATCH] 登录前配置页

---
 src/pages/index/api.ts |  111 ++++++++++++++++++++++++++++---------------------------
 1 files changed, 56 insertions(+), 55 deletions(-)

diff --git a/src/pages/index/api.ts b/src/pages/index/api.ts
index 4d4c24f..26369c4 100644
--- a/src/pages/index/api.ts
+++ b/src/pages/index/api.ts
@@ -1,66 +1,67 @@
 import request from '@/scripts/httpRequest'
 import qs from 'qs'
 
-// 鐧诲綍
-export const tologin = (query: any) => {
-  // let query = 'username=' + user.loginName + '&password=' + user.password
+ //鑾峰彇鏄惁淇濆瓨杩囩敤鎴峰悕瀵嗙爜 浠ュ強鏄惁淇濆瓨杩囨敞鍐屼俊鎭�
+export const getInitInfo = (query: any) => {
   return request({
-    url: '/data/api-u/sys/login',
-    method: 'post',
-    data: qs.stringify(query)
-  })
-}
+    url: "/data/api-v/sysinit/getInitInfo",
+    method: "get",
+    params: query
+  });
+};
 
-// 閫�鍑�
-export const logout = () => {
+//鑾峰彇娉ㄥ唽淇℃伅
+export const getRegInfo = (query: any) => {
   return request({
-    url: '/data/api-u/sys/logout',
-    method: 'get'
-  })
-}
+    url: "/data/api-v/sysinit/getRegInfo" ,
+    method: "get",
+    params: query
+  });
+};
 
-// 鑾峰彇鐢ㄦ埛淇℃伅
-// export const getLoginUserData = () => {
-//   let token =
-//     sessionStorage.getItem('loginedInfo') &&
-//     JSON.parse(sessionStorage.getItem('loginedInfo')).access_token
-//   return request({
-//     url: '/data/api-u/users/current',
-//     method: 'get',
-//     headers: {
-//       'Content-Type': 'application/x-www-form-urlencoded',
-//       Authorization: token || ''
-//     }
-//   })
-// }
 
-export const getLoginUserData = () => {
-    let token =
-      sessionStorage.getItem('loginedInfo') &&
-      JSON.parse(sessionStorage.getItem('loginedInfo')).access_token
-    return request({
-      url: '/data/api-u/users/profile',
-      method: 'get',
-      headers: {
-        'Content-Type': 'application/x-www-form-urlencoded',
-        Authorization: token || ''
-      }
-    })
-  }
-
-//淇敼瀵嗙爜
-export const updatePwd = (query: any) => {
+//鑾峰彇缃戝崱鍒楄〃
+export const networkList = (query: any) => {
   return request({
-    url: '/data/api-u/users/updatePwd',
-    method: 'post',
-    data: qs.stringify(query)
-  })
-}
+    url: "/data/api-v/sysinit/networkList",
+    method: "get",
+    params: query
+  });
+};
 
-//鑾峰彇椤圭洰鍚嶇О
-export const getServerName = (query: any) => {
+
+//淇濆瓨鐢ㄦ埛鍚嶅瘑鐮�
+export const savePassword = (data: any) => {
   return request({
-    url: '/data/api-v/info/getServerName',
-    method: 'get'
-  })
-}
+    url: "/data/api-v/sysinit/savePassword",
+    method: "post",
+    data
+  });
+};
+
+
+//鍒濆鍖栫綉缁�
+export const initNetwork = (data: any) => {
+  return request({
+    url: "/data/api-v/sysinit/initNetwork",
+    method: "post",
+    data
+  });
+};
+
+//淇濆瓨娉ㄥ唽淇℃伅
+export const saveRegInfo = (data: any) => {
+  return request({
+    url:  "/data/api-v/sysinit/saveRegInfo" ,
+    method: "post",
+    data
+  });
+};
+
+export const getList = (query: any) => {
+  return request({
+    url: "/data/api-v/gb28181/findAreaByParentId",
+    method: "get",
+    params: query
+  });
+};
\ No newline at end of file

--
Gitblit v1.8.0