忘了写到哪了
This commit is contained in:
64
src/api/config.js
Normal file
64
src/api/config.js
Normal file
@ -0,0 +1,64 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
export function launch(data) {
|
||||
return request({
|
||||
url: "/v1/message/launch",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
// 省市区选择
|
||||
export function areaList(params) {
|
||||
return request({
|
||||
url: "/enterprise/v1/config/area",
|
||||
method: "get",
|
||||
params,
|
||||
});
|
||||
}
|
||||
// 领域
|
||||
export function industry(params) {
|
||||
return request({
|
||||
url: "/enterprise/v1/config/industry",
|
||||
method: "get",
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 省列表
|
||||
export function provinceList() {
|
||||
return request({
|
||||
url: "/region/allProvince",
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
// 市列表
|
||||
export function cityList(provinceCode) {
|
||||
return request({
|
||||
url: "/region/allCity",
|
||||
method: "get",
|
||||
params: {
|
||||
provinceCode,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 县区列表
|
||||
export function districtList(cityCode) {
|
||||
return request({
|
||||
url: "/region/allArea",
|
||||
method: "get",
|
||||
params: {
|
||||
cityCode,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 获取领域列表
|
||||
export function listSysIndustry(query) {
|
||||
return request({
|
||||
url: "/business/sysIndustry/list",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
53
src/api/enterprise/index.js
Normal file
53
src/api/enterprise/index.js
Normal file
@ -0,0 +1,53 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 个人信息录入
|
||||
export const insertClientUser = (data) => {
|
||||
return request({
|
||||
url: "/app/insertClientUser",
|
||||
method: "POST",
|
||||
data,
|
||||
});
|
||||
};
|
||||
// 企业信息修改
|
||||
export const updateEnterprise = (data) => {
|
||||
return request({
|
||||
url: "/app/updateEnterprise",
|
||||
method: "POST",
|
||||
data,
|
||||
});
|
||||
};
|
||||
|
||||
// 企业服务需求列表
|
||||
export const demandList = (params) => {
|
||||
return request({
|
||||
url: "/app/demandList",
|
||||
method: "GET",
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
// 产品列表
|
||||
export const getEnterpriseProduct = (params) => {
|
||||
return request({
|
||||
url: "/app/getEnterpriseProduct",
|
||||
method: "GET",
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
// 新增产品
|
||||
export const insertEnterpriseProduct = (data) => {
|
||||
return request({
|
||||
url: "/app/insertEnterpriseProduct",
|
||||
method: "POST",
|
||||
data,
|
||||
});
|
||||
};
|
||||
// 根据id获取产品信息
|
||||
export const getProductById = (params) => {
|
||||
return request({
|
||||
url: "/app/getProductById",
|
||||
method: "GET",
|
||||
params,
|
||||
});
|
||||
};
|
||||
76
src/api/identity/index.js
Normal file
76
src/api/identity/index.js
Normal file
@ -0,0 +1,76 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 首页每一项
|
||||
export function identity() {
|
||||
return request({
|
||||
url: "/app/getRoleStatus",
|
||||
});
|
||||
}
|
||||
// 当前状态
|
||||
export function settled() {
|
||||
return request({
|
||||
url: "/enterprise/v1/settled",
|
||||
});
|
||||
}
|
||||
// 当前状态切换
|
||||
export function identitySwitch(data) {
|
||||
return request({
|
||||
url: "/enterprise/v1/user/identity/switch",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
// 申请企业入住
|
||||
export function insertEnterprise(data) {
|
||||
return request({
|
||||
url: "/app/insertEnterprise",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
// 所属单位
|
||||
export function researchSelect() {
|
||||
return request({
|
||||
url: "/enterprise/v1/manage/research/select",
|
||||
});
|
||||
}
|
||||
// 所属单位>实验室
|
||||
export function laboratorySelect() {
|
||||
return request({
|
||||
url: "/enterprise/v1/manage/research/laboratory",
|
||||
});
|
||||
}
|
||||
// 专家入驻
|
||||
export function expert(data) {
|
||||
return request({
|
||||
url: "/enterprise/v1/settled/expert",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
// 科研机构入驻
|
||||
export function research(data) {
|
||||
return request({
|
||||
url: "/enterprise/v1/settled/research",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 实验室入驻
|
||||
export function laboratory(data) {
|
||||
return request({
|
||||
url: "/enterprise/v1/settled/laboratory",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 实验室入驻
|
||||
export function agent(data) {
|
||||
return request({
|
||||
url: "/enterprise/v1/settled/agent",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
import request from '@/utils/request'
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 登录方法
|
||||
export function login(username, password, code, uuid) {
|
||||
@ -6,54 +6,65 @@ export function login(username, password, code, uuid) {
|
||||
username,
|
||||
password,
|
||||
code,
|
||||
uuid
|
||||
}
|
||||
uuid,
|
||||
};
|
||||
return request({
|
||||
url: '/login',
|
||||
url: "/app/login",
|
||||
headers: {
|
||||
isToken: false
|
||||
isToken: false,
|
||||
},
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
method: "post",
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 注册方法
|
||||
export function register(data) {
|
||||
return request({
|
||||
url: '/register',
|
||||
url: "/app/register",
|
||||
headers: {
|
||||
isToken: false
|
||||
isToken: false,
|
||||
},
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
method: "post",
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 获取用户详细信息
|
||||
export function getInfo() {
|
||||
return request({
|
||||
url: '/getInfo',
|
||||
method: 'get'
|
||||
})
|
||||
url: "/app/info",
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
// 退出方法
|
||||
export function logout() {
|
||||
return request({
|
||||
url: '/logout',
|
||||
method: 'post'
|
||||
})
|
||||
url: "/logout",
|
||||
method: "post",
|
||||
});
|
||||
}
|
||||
|
||||
// 获取验证码
|
||||
export function getCodeImg() {
|
||||
return request({
|
||||
url: '/captchaImage',
|
||||
url: "/captchaImage",
|
||||
headers: {
|
||||
isToken: false
|
||||
isToken: false,
|
||||
},
|
||||
method: 'get',
|
||||
timeout: 20000
|
||||
})
|
||||
}
|
||||
method: "get",
|
||||
timeout: 20000,
|
||||
});
|
||||
}
|
||||
// 重置密码
|
||||
export function resetPassword() {
|
||||
return request({
|
||||
url: "/captchaImage",
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
method: "get",
|
||||
timeout: 20000,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user