add
This commit is contained in:
parent
34c27d5e2c
commit
332a0aa0da
|
@ -1,4 +1,5 @@
|
|||
import $http from '@/utils/httpRequest.js'
|
||||
import city_data from '@/utils/country-level2-data.js'
|
||||
|
||||
export const mer_admin = {
|
||||
/**
|
||||
|
@ -32,23 +33,35 @@ export const mer_admin = {
|
|||
},
|
||||
//商品管理
|
||||
//保存商品信息
|
||||
saveProduct:(data)=>{
|
||||
return $http.post(`/merchant-api/product/save`,data);
|
||||
saveProduct: (data) => {
|
||||
return $http.post(`/merchant-api/product/save`, data);
|
||||
},
|
||||
//保存商品基本信息
|
||||
saveProductBase:(data)=>{
|
||||
return $http.post(`/merchant-api/product/save/basic`,data);
|
||||
saveProductBase: (data) => {
|
||||
return $http.post(`/merchant-api/product/save/basic`, data);
|
||||
},
|
||||
//返回商品分类以及列表(聚合)
|
||||
getPolyProduct:(data)=>{
|
||||
return $http.post(`/merchant-api/product/polymerization/list`,data);
|
||||
getPolyProduct: (data) => {
|
||||
return $http.post(`/merchant-api/product/polymerization/list`, data);
|
||||
},
|
||||
//商品分页
|
||||
getProductPage:(data)=>{
|
||||
return $http.post(`/merchant-api/product/page`,data);
|
||||
getProductPage: (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}`);
|
||||
},
|
||||
//获取销售单位
|
||||
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
Loading…
Reference in New Issue