diff --git a/src/api/shop.ts b/src/api/shop.ts index 9ce5f8f..3f1f41d 100644 --- a/src/api/shop.ts +++ b/src/api/shop.ts @@ -7,58 +7,58 @@ export function storeListApi(id:any, data:any) { return request.get(`server/${id}/product/lst`, { params: data }) } -// /** -// * @description 商品详情 -// */ -// export function getAttrValue(id:any, data:any) { -// return request.get(`store/product/detail/${id}`, { params: data }) -// } +/** + * @description 商品详情 + */ +export function getAttrValue(id:any, data:any) { + return request.get(`store/product/detail/${id}`, { params: data }) +} -// /** -// * @description 免审编辑 -// */ -// export function userFreeTrialApi(id:any, data:any) { -// return request.post(`user_free_trial/${id}`, data) -// } +/** + * @description 免审编辑 + */ +export function userFreeTrialApi(id:any, data:any) { + return request.post(`user_free_trial/${id}`, data) +} -// /** -// * @description 商品状态分类数量 -// */ -// export function productTitleApi(id:any, data:any) { -// return request.get(`server/${id}/product/title`, { params: data }) -// } +/** + * @description 商品状态分类数量 + */ +export function productTitleApi(id:any, data:any) { + return request.get(`server/${id}/product/title`, { params: data }) +} -// /** -// * @description 上下架 -// */ -// export function productStatusApi(mer_id:any, id:any, data:any) { -// return request.post(`server/${mer_id}/product/status/${id}`, data) -// } +/** + * @description 上下架 + */ +export function productStatusApi(mer_id:any, id:any, data:any) { + return request.post(`server/${mer_id}/product/status/${id}`, data) +} -// /** -// * @description 平台分类 -// */ -// export function categoryListApi(mer_id:any, data:any) { -// return request.get(`server/${mer_id}/category/list`, { params: data }) -// } +/** + * @description 平台分类 + */ +export function categoryListApi(mer_id:any, data:any) { + return request.get(`server/${mer_id}/category/list`, { params: data }) +} -// /** -// * @description 添加商品 -// */ -// export function productCreateApi(mer_id:any, data:any) { -// return request.post(`server/${mer_id}/product/create`, data) -// } +/** + * @description 添加商品 + */ +export function productCreateApi(mer_id:any, data:any) { + return request.post(`server/${mer_id}/product/create`, data) +} -// /** -// * @description 编辑商品 -// */ -// export function productUpdateApi(mer_id:any, id:any, data:any) { -// return request.post(`server/${mer_id}/product/update/${id}`, data) -// } +/** + * @description 编辑商品 + */ +export function productUpdateApi(mer_id:any, id:any, data:any) { + return request.post(`server/${mer_id}/product/update/${id}`, data) +} -// /** -// * @description 商品详情 -// */ -// export function productDetailApi(mer_id:any, id:any, data:any) { -// return request.get(`server/${mer_id}/product/detail/${id}`, { params: data }) -// } +/** + * @description 商品详情 + */ +export function productDetailApi(mer_id:any, id:any, data:any) { + return request.get(`server/${mer_id}/product/detail/${id}`, { params: data }) +} diff --git a/src/views/shop/component/add.vue b/src/views/shop/component/add.vue index 2cda0b9..633684f 100644 --- a/src/views/shop/component/add.vue +++ b/src/views/shop/component/add.vue @@ -1,7 +1,6 @@