| | |
| | | * 参数 "uinf.UName="+用户名+"&uinf.Upassword="+密码+"&uinf.UId="+是否记住密码(0,1) |
| | | * 密码需要使用hex_md5加密 |
| | | */ |
| | | export const login = (userName, password, deliveredCode) => { |
| | | export const login = (username, password, verity) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: 'login/loginByRSA', |
| | | params: { |
| | | userName, |
| | | password: encodeURIComponent(formatPassword(password)), |
| | | deliveredCode |
| | | } |
| | | url: `LoginAction_login?uinf.UName=${username}&uinf.Upassword=${encodeURIComponent(encodeURIComponent(formatPassword(password)))}&uinf.UNote=${verity}&uinf.UId=0`, |
| | | data: null |
| | | }); |
| | | }; |
| | | |
| | | /** |
| | | * 获取登录用的验证码 |
| | | * MessageAction!getFontDynamicCode // 旧 |
| | | */ |
| | | export const getLoginVerity = () => { |
| | | return axios({ |
| | | method: "GET", |
| | | url: 'message/getFontDynamicCode' |
| | | }); |
| | | } |
| | | |
| | | export const searchPlatformName = () => { |
| | | return axios({ |
| | | method: 'GET', |
| | | url: '/pageParam/allList', |
| | | params: { categoryId: 5 } |
| | | 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: 'GET', |
| | | url: '/pageParamUser/allList', |
| | | params: { type: type } |
| | | method: 'post', |
| | | url: 'PageParamUserAction!getAll', |
| | | data: "json=" + JSON.stringify({ |
| | | type, |
| | | }) |
| | | }) |
| | | } |