2025-02-19 18:58:59 +08:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2025-03-14 15:15:54 +08:00
|
|
|
* data获取个人地址列表
|
2025-02-19 18:58:59 +08:00
|
|
|
*/
|
|
|
|
|
export function queryCustAddrApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/custaddr/queryCustAddrForApp',
|
|
|
|
|
method: 'post',
|
2025-03-14 15:15:54 +08:00
|
|
|
// headers: {
|
|
|
|
|
// "custId": uni.getStorageSync('custId'),
|
|
|
|
|
// "openid": uni.getStorageSync('openId'),
|
|
|
|
|
// "sourceType": "7",
|
|
|
|
|
// },
|
2025-02-19 18:58:59 +08:00
|
|
|
data
|
|
|
|
|
})
|
2025-03-14 15:15:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 新增个人地址
|
|
|
|
|
*/
|
|
|
|
|
export function addCustAddrForAppApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/custaddr/addCustAddrForApp',
|
|
|
|
|
method: 'post',
|
|
|
|
|
// headers: {
|
|
|
|
|
// "custId": uni.getStorageSync('custId'),
|
|
|
|
|
// "openid": uni.getStorageSync('openId'),
|
|
|
|
|
// "sourceType": "7",
|
|
|
|
|
// },
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 删除个人地址
|
|
|
|
|
*/
|
|
|
|
|
export function deleteCustAddrForAppApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/custaddr/deleteCustAddrForApp',
|
|
|
|
|
method: 'post',
|
|
|
|
|
// headers: {
|
|
|
|
|
// "custId": uni.getStorageSync('custId'),
|
|
|
|
|
// "openid": uni.getStorageSync('openId'),
|
|
|
|
|
// "sourceType": "7",
|
|
|
|
|
// },
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2025-02-19 18:58:59 +08:00
|
|
|
|
|
|
|
|
/**
|
2025-03-14 15:15:54 +08:00
|
|
|
* data获取单个地址
|
2025-02-19 18:58:59 +08:00
|
|
|
*/
|
|
|
|
|
export function queryChildPlaceByIdApi(data) {
|
|
|
|
|
return request({
|
2025-03-14 15:15:54 +08:00
|
|
|
url: '/smart-canteen/custPlace/queryChildPlaceById',
|
2025-02-19 18:58:59 +08:00
|
|
|
method: 'post',
|
2025-03-14 15:15:54 +08:00
|
|
|
// headers: {
|
|
|
|
|
// "openid": uni.getStorageSync('openId'),
|
|
|
|
|
// "sourceType": "7",
|
|
|
|
|
// },
|
2025-02-19 18:58:59 +08:00
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2025-03-14 15:15:54 +08:00
|
|
|
* 编辑个人地址
|
2025-02-19 18:58:59 +08:00
|
|
|
*/
|
|
|
|
|
export function updateCustAddrApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/custaddr/updateCustAddrForApp',
|
|
|
|
|
method: 'post',
|
2025-03-14 15:15:54 +08:00
|
|
|
// headers: {
|
|
|
|
|
// "openid": uni.getStorageSync('openId'),
|
|
|
|
|
// "sourceType": "7",
|
|
|
|
|
// },
|
2025-02-19 18:58:59 +08:00
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2025-03-14 15:15:54 +08:00
|
|
|
* 设置默认地址
|
2025-02-19 18:58:59 +08:00
|
|
|
*/
|
|
|
|
|
export function updateDefaultAddrApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/custaddr/updateDefaultAddrForApp',
|
|
|
|
|
method: 'post',
|
2025-03-14 15:15:54 +08:00
|
|
|
// headers: {
|
|
|
|
|
// "openid": uni.getStorageSync('openId'),
|
|
|
|
|
// "sourceType": "7",
|
|
|
|
|
// },
|
2025-02-19 18:58:59 +08:00
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|