初始版本

This commit is contained in:
贾祥聪
2025-08-19 14:16:51 +08:00
commit f937a1f9b9
4373 changed files with 359728 additions and 0 deletions

105
staff_uniapp/src/api/app.ts Normal file
View File

@@ -0,0 +1,105 @@
import request from '@/utils/request'
//发送短信
export function smsSend(data: any) {
return request.post({ url: '/sms/sendCode', data: data })
}
export function getConfig() {
return request.get({ url: '/config/config' })
}
export function getPolicy() {
return request.get({ url: '/config/agreement' })
}
export function uploadImage(file: any, token?: string) {
return request.uploadFile({
url: '/upload/image',
filePath: file,
name: 'file',
header: {
token
},
fileType: 'image'
})
}
export function wxJsConfig(data: any) {
return request.get({ url: '/wechat/jsConfig', data })
}
//获取城市列表
export function getCityList(data?: any) {
return request.get({ url: '/city/getCityLists', data })
}
//获取其他列表
export function getOtherList(data?: any) {
return request.get({ url: '/coach/otherLists', data })
}
//获取技能列表
export function getSkillList(data?: any) {
return request.get({ url: '/coach/skillLists', data })
}
//获取服务项目列表
export function getGoodsList(data?: any) {
return request.get({ url: '/goods/lists', data })
}
//获取服务项目详情
export function getGoodsDetail(data?: any) {
return request.get({ url: '/goods/detail', data })
}
//申请技师
export function apply(data?: any) {
return request.post({ url: '/coach/apply', data })
}
//获取订单列表
export function getOrderList(data?: any) {
return request.get({ url: '/order/lists', data })
}
//提现配置列表
export function withdrawConfigLists(data?: any) {
return request.get({ url: '/withdraw/configLists', data })
}
//提现配置
export function withdrawConfig(data?: any) {
return request.get({ url: '/withdraw/getWithDrawWay', data })
}
//设置提现配置
export function setWithdrawConfig(data?: any) {
return request.post({ url: '/withdraw/setWithDrawWay', data })
}
//财务明细列表
export function apiFinanceLists(data?: any) {
return request.get({ url: '/finance/lists', data })
}
/**
* @param { Object } params { location: xxx,xxx }
* @return { Promise }
* @description 地址逆解析
*/
export const getGeocoderCoordinate = (params: any) =>
request.get({ url: '/city/geocoderCoordinate', data: params })
//获取附近地址
export const getNearbyLocation = (params: any) =>
request.get({ url: '/city/getNearbyLocation', data: params })
/**
* @param { Object } params
* @return { Promise }
* @description 获取地级市列表 以首字母排序
*/
export const apiRegionCity = (params: any) => request.get({ url: '/city/city', data: params })