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 $http from '@/utils/httpRequest.js'
import city_data from '@/utils/country-level2-data.js'
export const mer_admin = { export const mer_admin = {
/** /**
@ -32,23 +33,35 @@ export const mer_admin = {
}, },
//商品管理 //商品管理
//保存商品信息 //保存商品信息
saveProduct:(data)=>{ saveProduct: (data) => {
return $http.post(`/merchant-api/product/save`,data); return $http.post(`/merchant-api/product/save`, data);
}, },
//保存商品基本信息 //保存商品基本信息
saveProductBase:(data)=>{ saveProductBase: (data) => {
return $http.post(`/merchant-api/product/save/basic`,data); return $http.post(`/merchant-api/product/save/basic`, data);
}, },
//返回商品分类以及列表(聚合) //返回商品分类以及列表(聚合)
getPolyProduct:(data)=>{ getPolyProduct: (data) => {
return $http.post(`/merchant-api/product/polymerization/list`,data); return $http.post(`/merchant-api/product/polymerization/list`, data);
}, },
//商品分页 //商品分页
getProductPage:(data)=>{ getProductPage: (data) => {
return $http.post(`/merchant-api/product/page`,data); return $http.post(`/merchant-api/product/page`, data);
}, },
//商户商品分类 //商户商品分类
getProductCategory:()=>{ getProductCategory: () => {
return $http.get(`/merchant-api/product/category/list?shopId=${JSON.parse(sessionStorage.getItem('userInfo')).shopId}`); 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