| | |
| | | }); |
| | | |
| | | |
| | | let temLogin = (params, config = {}) => http.get(`/api/LogoIn/LogoinFast?jscode=${params}`, params,{ |
| | | let temLogin = (params, config = {}) => http.get(`/api/LogoIn/LogoinFast?jscode=${params}`, params, { |
| | | custom: { |
| | | methodName: 'LogoinFast', |
| | | needToken: false |
| | |
| | | } |
| | | }); |
| | | |
| | | //本地选择图片转base64,再上传服务器存储返回地址 |
| | | let UpdateFileBase64 = (params, config = {}) => http.post('/api/UpFile/UpdateFileBase64', params, { |
| | | custom: { |
| | | methodName: 'topUp.UpdateFileBase64', |
| | | needToken: true |
| | | } |
| | | }); |
| | | |
| | | // 增加人脸特征 |
| | | let IaiAddPerso = (params, config = {}) => http.post(`/api/UpFile/IaiAddPerso`, params, { |
| | | custom: { |
| | | methodName: 'topUp.IaiAddPerso', |
| | | needToken: true |
| | | }, |
| | | params:config |
| | | }); |
| | | |
| | | // 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下 |
| | | export { |
| | | temLogin, //登录 |
| | | CreateUser, //注册并登录 |
| | | UpdateFileBase64, //转换成base64 |
| | | IaiAddPerso |
| | | }; |
| | | // } |
| | | |