Commit a5e0f4af authored by chenwei's avatar chenwei

提交关于个人信息的代码

parent 79ebf587
import request from '@/utils/request' import request from "@/utils/request";
export function login(data) { export function login(data) {
return request({ return request({
url: '/app-api/member/login', url: "/app-api/member/login",
method: 'post', method: "post",
data data,
}) });
} }
export function reg(data) { export function reg(data) {
return request({ return request({
url: '/app-api/member/reg', url: "/app-api/member/reg",
method: 'post', method: "post",
data data,
}) });
} }
export function smsLogin(data) { export function smsLogin(data) {
return request({ return request({
url: '/app-api/member/sms-login', url: "/app-api/member/sms-login",
method: 'post', method: "post",
data data,
}) });
} }
export function resetPwd(data) { export function resetPwd(data) {
return request({ return request({
url: '/app-api/member/reset-password', url: "/app-api/member/reset-password",
method: 'post', method: "post",
data data,
}) });
} }
export function getInfo(query) { export function getInfo(query) {
return request({ return request({
url: '/app-api/member/user/get', url: "/app-api/member/user/get",
method: 'get', method: "get",
params: query params: query,
}) });
} }
export function getCompanyInfo(query) { export function getCompanyInfo(query) {
return request({ return request({
url: '/app-api/member/user/getCompanyInfo', url: "/app-api/member/user/getCompanyInfo",
method: 'get', method: "get",
params: query params: query,
}) });
} }
export function logout() { export function logout() {
return request({ return request({
url: '/vue-element-admin/user/logout', url: "/vue-element-admin/user/logout",
method: 'post' method: "post",
}) });
} }
export function getCode(data) { export function getCode(data) {
return request({ return request({
url: '/app-api/member/send-sms-code', url: "/app-api/member/send-sms-code",
method: 'post', method: "post",
data data,
}) });
} }
export function updatePwd(data) { export function updatePwd(data) {
return request({ return request({
url: '/app-api/member/update-password', url: "/app-api/member/update-password",
method: 'post', method: "post",
data data,
}) });
} }
export function update(data) { export function update(data) {
return request({ return request({
url: '/app-api/member/user/update', url: "/app-api/member/user/update",
method: 'put', method: "put",
data data,
}) });
} }
export function createCompanyInfo(data) { export function createCompanyInfo(data) {
return request({ return request({
url: '/app-api/member/user/createCompanyInfo', url: "/app-api/member/user/createCompanyInfo",
method: 'post', method: "post",
data data,
}) });
} }
export function updateCompanyInfo(data) { export function updateCompanyInfo(data) {
return request({ return request({
url: '/app-api/member/user/updateCompanyInfo', url: "/app-api/member/user/updateCompanyInfo",
method: 'put', method: "put",
data data,
}) });
} }
export function getCountryList(query) { export function getCountryList(query) {
return request({ return request({
url: '/app-api/ecw/country/list-all', url: "/app-api/ecw/country/list-all",
method: 'get', method: "get",
params: query params: query,
}) });
} }
export function updateMobile(data) { export function updateMobile(data) {
return request({ return request({
url: '/app-api/member/user/update-mobile', url: "/app-api/member/user/update-mobile",
method: 'post', method: "post",
data data,
}) });
} }
export function authIdCard(data) { export function authIdCard(data) {
return request({ return request({
url: '/app-api/member/user/auth-idcard', url: "/app-api/member/user/auth-idcard",
method: 'put', method: "put",
data data,
}) });
} }
export function uploadFile(data) { export function uploadFile(data) {
return request({ return request({
url: '/app-api/file/upload', url: "/app-api/file/upload",
method: 'post', method: "post",
data: data data: data,
}) });
} }
export function upNamefile(data) { export function upNamefile(data) {
return request({ return request({
url: '/app-api/file/org-name/up', url: "/app-api/file/org-name/up",
method: 'post', method: "post",
data: data data: data,
}) });
} }
export function getIdCard(query) { export function getIdCard(query) {
return request({ return request({
url: '/app-api/member/user/get-auth-idcard-info', url: "/app-api/member/user/get-auth-idcard-info",
method: 'get', method: "get",
params: query params: query,
}) });
} }
export function updateAvatar(data) { export function updateAvatar(data) {
return request({ return request({
url: '/app-api/member/user/new/update-Avatar?avatar=' + data, url: "/app-api/member/user/new/update-Avatar?avatar=" + data,
method: 'put' method: "put",
}) });
} }
export function sendEmailCode(data) { export function sendEmailCode(data) {
return request({ return request({
url: '/app-api/member/send-email-code', url: "/app-api/member/send-email-code",
method: 'post', method: "post",
data: data data: data,
}) });
} }
export function bindEmail(data) { export function bindEmail(data) {
return request({ return request({
url: '/app-api/member/user/bind-email', url: "/app-api/member/user/bind-email",
method: 'post', method: "post",
data: data data: data,
}) });
} }
export function getMark(query) { export function getMark(query) {
return request({ return request({
url: '/app-api/member/user/angle-mark', url: "/app-api/member/user/angle-mark",
method: 'get', method: "get",
params: query params: query,
}) });
} }
// 重置控货密码 // 重置控货密码
export function resetControlPwd(data) { export function resetControlPwd(data) {
return request({ return request({
url: '/app-api/member/reset-control-password', url: "/app-api/member/reset-control-password",
method: 'post', method: "post",
data data,
}) });
} }
// 检查是否有设置控货密码,按订单id // 检查是否有设置控货密码,按订单id
export function checkControlPwd(orderId) { export function checkControlPwd(orderId) {
return request({ return request({
url: '/app-api/order/order-cargo-control/controlPassword/' + orderId, url: "/app-api/order/order-cargo-control/controlPassword/" + orderId,
method: 'get' method: "get",
}) });
}
//获取城市
export function getCityListByParent(query) {
console.log("99999", query);
return request({
url: "/admin-api/ecw/region/getCityListByParent",
method: "get",
params: query,
});
}
//获取国家
export function getTradeCountryList(query) {
return request({
url: "/admin-api/ecw/region/getTradeCountryList",
method: "get",
params: query,
});
} }
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment