import Vue from 'vue';
|
import { config } from '@/common/config.js'
|
const http = uni.$u.http
|
// 获取验证码
|
export function getCode(param) {
|
return http.get('/verify/get', {params: param}, { custom: { loading: true }});
|
}
|
// /verify/check 校验验证码
|
export function checkCode(data) {
|
return http.post('/verify/check', data)
|
}
|
// 验证码登录 /verify/login
|
export function codeLogin(data) {
|
return http.post('/verify/login', data, { custom: { loading: true }});
|
}
|
// 新增企业信息 注册 /system/company/add
|
export function registerCompany(data) {
|
return http.post('/system/company/add', data, { custom: { loading: true }});
|
}
|
// 获取账号信息
|
export function getInfo(data) {
|
return http.get('/system/user/profile', {params: data});
|
}
|
// 获取企业信息
|
export function getCompanyInfo(data) {
|
return http.get(`/system/company/${data.companyId}`, {params: data});
|
}
|