登录 个人 与 零星采购

This commit is contained in:
孙景学
2025-07-09 14:01:45 +08:00
parent 56da66ee21
commit b46b35cd4b
35 changed files with 1054 additions and 343 deletions

22
src/servers/api/login.ts Normal file
View File

@ -0,0 +1,22 @@
import request from '@/utils/request';
/**
* 验证码
*/
export async function getCaptcha() {
return request('/v1/login/getCaptcha', {
method: 'GET'
});
}
/**
* 登录
*/
export async function supplierLogin (data: API.LoginSupplier) {
return request('/v1/login/accountLogin/supplier', {
method: 'POST',
data
});
}

View File

@ -5,6 +5,13 @@ declare namespace API {
message: string;
data: T;
}
//登录
interface LoginSupplier {
account: string;
password: string;
identifying: string;
encryptValue: string;
}
// 省市区
interface RegionOption {
label: string;