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 }});
|
}
|