This commit is contained in:
KangKang0928 2024-08-09 14:14:44 +08:00
parent 34c27d5e2c
commit 332a0aa0da
2 changed files with 375 additions and 737 deletions

View File

@ -1,4 +1,5 @@
import $http from '@/utils/httpRequest.js'
import city_data from '@/utils/country-level2-data.js'
export const mer_admin = {
/**
@ -50,5 +51,17 @@ export const mer_admin = {
//商户商品分类
getProductCategory: () => {
return $http.get(`/merchant-api/product/category/list?shopId=${JSON.parse(sessionStorage.getItem('userInfo')).shopId}`);
},
//获取销售单位
getSaleUnit: (data) => {
return $http.request({ url: `/merchant-api/product/unit/list`, method: 'get', params: data });
},
//文件上传
uploadFile:()=>{
return `${window.SITE_CONFIG['baseUrl']}/merchant-api/file/upload`
},
//直接获取城市数据
getCityOptions:()=>{
return city_data;
}
}

File diff suppressed because it is too large Load Diff