whyczyk
2022-05-18 aebf1e1b37328ec369cc96ffe8eb504805a5ccef
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
import axios from "@/assets/js/axios";
import md5 from "js-md5";
import formatPassword from "@/assets/js/tools/formatPassword";
/**
 * 登录系统
 * 参数 "uinf.UName="+用户名+"&uinf.Upassword="+密码+"&uinf.UId="+是否记住密码(0,1)
 * 密码需要使用hex_md5加密
 */
export const login = (username, password, verity) => {
    return axios({
        method: "post",
        url: `LoginAction_login?uinf.UName=${username}&uinf.Upassword=${encodeURIComponent(encodeURIComponent(formatPassword(password)))}&uinf.UNote=${verity}&uinf.UId=0`,
        data: null
    });
}
/**
 * 注册账号
 * 参数 "uinf.UName="+用户名+"&uinf.Upassword="+密码+"&uinf.UId="+是否记住密码(0,1)
 * 密码需要使用hex_md5加密
 */
export const register = (UName, USnId, USex, UMobilephone) => {
    return axios({
        method: "post",
        url: `User_infAction!register`,
        data: "addjson=" + JSON.stringify({
            UName,
            USnId: encodeURIComponent(encodeURIComponent(formatPassword(USnId))),
            USex,
            UMobilephone
        })
    });
};
 
export const getLoginVerity = () => {
    return axios({
        method: "post",
        url: `MessageAction!getFontDynamicCode`,
        data: null
    });
};
 
//查询系统名称
export const searchPlatformName = () => {
    return axios({
        method: 'post',
        url: 'PageParamAction!findByCategoryId',
        data: 'json=' + JSON.stringify({ categoryId: 5 })
    })
}
 
//查询系统名称
export const getRealTabsConfig = (type) => {
    type = type ? type : 1;
    return axios({
        method: 'post',
        url: 'PageParamUserAction!getAll',
        data: "json=" + JSON.stringify({
            type,
        })
    })
}