wjt
2024-06-27 69a74309ed12cc13f0fa9fb90c5bffad17ade360
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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});
}
// 查询惠企政策
export function docList(data) {
    return http.get(`/system/doc/list`, {params: data});
}
// 新注册获取验证码 /verify/getNew
export function getNewVerify(data) {
    return http.get(`/verify/getNew`, {params: data});
}
// 更换手机号码 updatePhone
export function updatePhone(data) {
    return http.post(`/system/user/profile/updatePhone/${data.phone}/${data.companyId}`, data);
}
// /system/company/list
export function getCompanyList(data){
    return http.get('/system/company/list',{params: data}, { custom: { loading: true }});
}