完善功能
This commit is contained in:
@ -10,6 +10,37 @@ import type {
|
||||
} from '@/api/types/tea-room'
|
||||
import type { ITeaSpecialistFuture7DaysResult, ITeaSpecialistOrderDetailsResult } from '@/api/types/tea'
|
||||
|
||||
/**
|
||||
* 经纬度转换为城市
|
||||
*/
|
||||
export interface ILocationToCityParams {
|
||||
latitude: number
|
||||
longitude: number
|
||||
}
|
||||
|
||||
export function getLocationToCity(data: ILocationToCityParams) {
|
||||
return http.Post<{
|
||||
message: string
|
||||
result: {
|
||||
ad_info: {
|
||||
province: string
|
||||
city: string
|
||||
district: string
|
||||
adcode: string
|
||||
},
|
||||
location: {
|
||||
lat: number
|
||||
lng: number
|
||||
}
|
||||
}
|
||||
}>('/api/common/cityAddress',
|
||||
data,
|
||||
{
|
||||
meta: { ignoreAuth: true }
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取门店列表
|
||||
*/
|
||||
@ -296,7 +327,7 @@ export function getTeaRoomPackageOrderDetail(data: ITeaRoomPackageOrderDetailPar
|
||||
export interface ICalculateTeaRoomPriceParams {
|
||||
room_id: number // 房间id
|
||||
coupon_id: number // 优惠券id
|
||||
group_id: number // 团购券id
|
||||
group_coupon_id: number // 团购券id
|
||||
nums: number // 提交的小时数
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user