修改代码

This commit is contained in:
wangxiaowei
2026-01-30 01:13:52 +08:00
parent 5e5cd66f21
commit 26834c36c0
12 changed files with 756 additions and 454 deletions

View File

@ -196,3 +196,71 @@ export function openLock(order_id: number, type: number) {
export function getStoreBalanceLog() {
return http.Post<any>('/api/user/userStoreMoneyList', {})
}
/**
* 获取验证码
*/
export interface IGetStoreVerificationCodeParams {
mobile: string
scene: string
}
export function getVerificationCode(data: IGetStoreVerificationCodeParams) {
return http.Post('/storeapi/sms/sendCode', data, {
meta: { ignoreAuth: true }
})
}
/**
* 添加申请茶艺师
*/
export interface IAddTeaSpecialistParams {
license_img: string // 营业执照
username: string // 茶艺师名字
gender: number // 茶艺师性别(1男 2女)
both: number | string // 出生年月
height: string // 身高
weight: string // 体重
hobby_introduce: string // 兴趣爱好介绍
city_id: number // 城市ID
avatar: string // 头像
certificate: string // 健康证、资格证书信息
mobile: string // 联系电话
code: string // 验证码
}
export function addTeaSpecialist(data: IAddTeaSpecialistParams) {
return http.Post('/api/submitForm/addTeamaster', data)
}
/**
* 查看申请茶艺师表单状态
*/
export function getTeaSpecialistStatus() {
return http.Post<any>('/api/submitForm/teamasterRealStatus')
}
/**
* 添加加盟合作
*/
export interface IAddJoinCooperationParams {
operation_type: number // 加盟类型
license_img: string // 营业执照
username: string // 联系人姓名
mobile: string // 联系电话
code: string // 验证码
city_id: number // 城市ID
address: string // 详细地址
suggest: string // 意见建议
}
export function addJoinCooperation(data: IAddJoinCooperationParams) {
return http.Post('/api/submitForm/addStore', data)
}
/**
* 查看加盟合作表单状态
*/
export function getJoinCooperationStatus() {
return http.Post<any>('/api/submitForm/StoreRealStatus')
}