更新api列表

This commit is contained in:
KangKang0928 2024-08-19 17:14:37 +08:00
parent 7248cce277
commit 6d13688aa8
1 changed files with 44 additions and 2 deletions

View File

@ -57,11 +57,53 @@ export const mer_admin = {
return $http.request({ url: `/merchant-api/product/unit/list`, method: 'get', params: data }); return $http.request({ url: `/merchant-api/product/unit/list`, method: 'get', params: data });
}, },
//文件上传 //文件上传
uploadFile:()=>{ uploadFile: () => {
return `${window.SITE_CONFIG['baseUrl']}/merchant-api/file/upload` return `${window.SITE_CONFIG['baseUrl']}/merchant-api/file/upload`
}, },
//直接获取城市数据 //直接获取城市数据
getCityOptions:()=>{ getCityOptions: () => {
return city_data; return city_data;
},
//省市县数据
getCity: () => {
return $http.get(`/merchant-api/common/pca`);
},
//添加运费模板
addShippingTemplate: (data) => {
return $http.post(`/merchant-api/shippingTemplates/add`, data);
},
//删除模板
removeShippingTemplate: (id) => {
return $http.post(`/merchant-api/shippingTemplates/delete`, {
id
})
},
//更新模板
updateShippingTemplate: (data) => {
return $http.post(`/merchant-api/shippingTemplates/update`, data);
},
//获取模板分页
getShippingTemplatePage: (data) => {
return $http.request({
method: 'get',
url: '/merchant-api/shippingTemplates/page',
params: data
})
},
//获取配送模板列表
getShippingTemplateList: (data) => {
return $http.request({
method: 'get',
url: '/merchant-api/shippingTemplates/list',
params: data
})
},
//获取模板详情
getShippingTemplateInfo: (id) => {
return $http.request({
method: 'get',
url: '/merchant-api/shippingTemplates/list',
params: { id }
})
} }
} }