2021-05-13 11:03:32 +08:00
|
|
|
/**
|
|
|
|
* 店铺相关API
|
|
|
|
*/
|
|
|
|
|
|
|
|
import {http, Method} from '@/utils/request.js';
|
|
|
|
|
2021-11-29 09:58:39 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-13 11:03:32 +08:00
|
|
|
/**
|
|
|
|
* 获取店铺列表
|
|
|
|
* @param params
|
|
|
|
*/
|
2021-11-29 09:58:39 +08:00
|
|
|
export function getStoreList(params) {
|
2021-05-13 11:03:32 +08:00
|
|
|
return http.request({
|
2022-10-27 10:25:30 +08:00
|
|
|
url: '/store/store',
|
2021-05-13 11:03:32 +08:00
|
|
|
method: Method.GET,
|
|
|
|
params,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取店铺基本信息
|
|
|
|
* @param storeId
|
|
|
|
*/
|
2021-08-09 18:40:06 +08:00
|
|
|
export function getStoreBaseInfo(storeId) {
|
2021-05-13 11:03:32 +08:00
|
|
|
return http.request({
|
2022-02-10 18:57:17 +08:00
|
|
|
url: `/store/store/get/detail/${storeId}`,
|
2021-05-13 11:03:32 +08:00
|
|
|
method: Method.GET,
|
|
|
|
loading: false,
|
|
|
|
});
|
2021-08-09 18:40:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取店铺分类
|
|
|
|
* @param id
|
|
|
|
*/
|
|
|
|
export function getStoreCategory(id) {
|
|
|
|
return http.request({
|
2022-02-10 18:57:17 +08:00
|
|
|
url: `/store/store/label/get/${id}`,
|
2021-08-09 18:40:06 +08:00
|
|
|
method: Method.GET,
|
|
|
|
});
|
|
|
|
}
|
2021-08-11 17:09:37 +08:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 营业执照
|
|
|
|
* @param id
|
|
|
|
*/
|
|
|
|
export function getLicencePhoto(id) {
|
|
|
|
return http.request({
|
2022-02-10 18:57:17 +08:00
|
|
|
url: `/store/store/get/licencePhoto/${id}`,
|
2021-08-11 17:09:37 +08:00
|
|
|
method: Method.GET,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-11-22 17:19:09 +08:00
|
|
|
/**
|
|
|
|
* 获取自提点信息
|
|
|
|
* @param id
|
|
|
|
*/
|
|
|
|
export function getStoreAddress(storeId,params) {
|
|
|
|
return http.request({
|
|
|
|
url: `/store/address/page/${storeId}`,
|
|
|
|
method: Method.GET,
|
|
|
|
params
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2021-08-11 17:09:37 +08:00
|
|
|
|
|
|
|
|