39 lines
889 B
TypeScript
39 lines
889 B
TypeScript
import ProductDetail from "@/pages/canteen/product-detail.vue"
|
|
import request from "@/sheep/utils/request"
|
|
|
|
export default {
|
|
// 查询详情
|
|
detail: (id: any) =>
|
|
request({
|
|
url: `/hard/hard-user-map-address/app/detail/${id}`,
|
|
method: "GET",
|
|
}),
|
|
// 查询默认地址(没有默认地址就查询第一个地址)
|
|
defaultAddress: () =>
|
|
request({
|
|
url: "/hard/hard-user-map-address/app/default-address",
|
|
method: "GET",
|
|
}),
|
|
// app分页查询
|
|
page: (params: any) =>
|
|
request({
|
|
url: "/hard/hard-user-map-address/app/page",
|
|
method: "GET",
|
|
params,
|
|
}),
|
|
// app新增或者修改地址
|
|
createOrUpdate: (data: any) =>
|
|
request({
|
|
url: "/hard/hard-user-map-address/app/createOrUpdate",
|
|
method: "POST",
|
|
data,
|
|
}),
|
|
// app删除地址
|
|
delete: (data: any) =>
|
|
request({
|
|
url: "/hard/hard-user-map-address/app/del",
|
|
method: "DELETE",
|
|
data,
|
|
}),
|
|
}
|