1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- import { http } from '@/common/service/service.js'
- import configService from '@/common/service/config.service.js';
- const apiService = {
-
- /**
- * 登录
- */
- login(params) {
- return http.post('/ibps/oauth2/v3/user/login/apply',params)
- },
-
- context(url, params) {
- return http.post(url,params)
- },
-
- sign(params){
- return http.post('/ibps/business/v3/mobile/sys/sign',params)
- },
- /**
- * 手机号码登录
- */
- phoneNoLogin(params) {
- return http.post('/ibps/business/v3/mobile/sys/phoneLogin',params);
- },
- /**
- * 退出
- */
- logout(url, params) {
- return http.post(url,params);
- },
-
- authorize(params) {
- return http.post('/ibps/oauth2/v3/authorize/apply',params);
- },
- authentication(params) {
- return http.post('/ibps/oauth2/v3/authentication/apply',params);
- },
-
- /**
- * 获取文件访问路径
- * @param avatar
- * @param subStr
- * @returns {*}
- */
- getFileAccessHttpUrl(avatar,subStr){
- if(!subStr) subStr = 'http'
- if(avatar && avatar.startsWith(subStr)){
- return avatar;
- }else{
- return configService.staticDomainURL + "/" + avatar;
- }
- }
- };
- export default apiService;
|