import { myRequestPhp } from './requestPhp.js' const pre = "" const apiType = "php" /** * 获取供应链tab */ export function getSupplyChainTab(data) { return myRequestPhp({ url: `${pre}mer/store/product/gong_lst_filter`, method: 'GET', data, apiType }) } /** * 获取供应链tab */ // export function getSupplyChainTab(data) { // return myRequestPhp({ // url: `${pre}mer/store/product/gong_lst_filter`, // method: 'GET', // data, // apiType // }) // } /** * 供应链列表 * page: 1 limit: 20 keyword: type: 1 2 spec_type: 商品规格 null 0 1 * @param {*} data * @returns */ export function getSupplyChainList(data) { return myRequestPhp({ url: `${pre}mer/store/product/gong_lst`, method: 'GET', data, apiType }) } // 供应链修改价格 /** *{ "skuArr": [{ "sku_id": "Se88f891b5d", "edit_price": "10.5" }], "type": 1 } * @param {*} id * @param {*} data * @returns */ export function editSupplyChainPrice(id,data) { return myRequestPhp({ url: `${pre}mer/store/product/edit_price/${id}`, method: 'POST', data, apiType }) } /** * @description 供应链商品 -- 上下架 */ export function postchangeshow(data) { return myRequestPhp({ url: `${pre}mer/store/product/change_show`, method: 'POST', data, apiType }) } /**商品列表 */ // 商品列表tab export function getGoodsTab(data) { return myRequestPhp({ url: `${pre}mer/store/product/lst_filter`, method: 'GET', data, apiType }) } // 平台商品分类 export function getGoodsClassCategory(data) { return myRequestPhp({ url: `${pre}mer/store/category/list`, method: 'GET', data, apiType }) }