1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
| import { httpJson } from "@/request/http";
| // 网络请求demo 列子
|
| // 获取当前项目信息
| // export const getCurrentProjectInfo = {
| // url: "projectInfoApp/getCurrentProjectInfo",
| // method: "get",
| // isLoading: true
| // }
|
| const getCurrentProjectInfo = (params) => {
| return httpJson({
| url: "projectInfoApp/getCurrentProjectInfo",
| method: "get",
| isLoading: true
| }, params)
| };
| //注册用户
| ///
| const registerUser = (params) => {
| return httpJson({
| url: "/api/localuser!registerNoVerifcode.action",
| method: "get",
| isLoading: true
| }, params)
| };
| //登录
| const loginUser = (params) => {
| return httpJson({
| url: "/api/user!login.action",
| method: "get",
| isLoading: true
| }, params)
| };
|
|
| /// 发送邮箱 手机验证码
| const sendVerifyCode = (params) => {
| return httpJson({
| url: "/api/idcode!execute.action",
| method: "get",
| isLoading: false
| }, params)
| };
|
| /// 帮助中心
| const helpCenter = (params) => {
| return httpJson({
| url: "/api/cms!list.action",
| method: "get",
| isLoading: false
| }, params)
| };
|
| //试用注册登录
| const registerTest = (params) => {
| return httpJson({
| url: "/api/localuser!registerTest.action",
| method: "get",
| isLoading: true
| }, params)
| };
|
| const save_email = (params) => {
| return httpJson({
| url: "/api/localuser!save_email.action",
| method: "get",
| isLoading: true
| }, params)
| };
| const registerNoVerifcodeSafeword = (params) => {
| return httpJson({
| url: "/api/localuser!registerNoVerifcodeSafeword.action",
| method: "get",
| isLoading: true
| }, params)
| };
|
| const apiList = {
| getCurrentProjectInfo, registerUser, sendVerifyCode, loginUser, helpCenter, registerTest,save_email,registerNoVerifcodeSafeword
| }
|
| export default apiList
|
|