wjt
2024-06-20 6d79e62362f24665ccd8584d398be4b2f4671d67
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
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});
}