| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- 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 供应链商品 -- 修改销售价
- */
- /**
- * @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
- })
- }
- /**商品列表
- *
- * page = 1 & limit = 20 & mer_cate_id = & cate_id = & keyword = & type = 1 & is_gift_bag = & p_type =
- */
- export function getProductList(data) {
- return myRequestPhp({
- url: `${pre}mer/store/product/lst`,
- method: 'GET',
- data,
- apiType
- })
- }
- // 平台商品分类
- export function getGoodsClassCategory(data) {
- return myRequestPhp({
- url: `${pre}mer/store/category/list`,
- method: 'GET',
- data,
- apiType
- })
- }
- // 商品评价
- /**
- * is_reply:
- nickname:
- keyword:
- order_sn:
- status:
- date:
- page: 1
- limit: 20
- * */
- export function getGoodsEvaluate(data) {
- return myRequestPhp({
- url: `${pre}mer/store/reply/lst`,
- method: 'GET',
- data,
- apiType
- })
- }
- // 商品评价回复获取规则
- export function reviewGoodsEvaluateReply(id) {
- return myRequestPhp({
- url: `${pre}mer/store/reply/form/${id}`,
- method: 'GET',
- apiType
- })
- }
- //商品评价回复
- export function reviewGoodsReplyApi(id,data) {
- return myRequestPhp({
- url: `${pre}mer/store/reply/reply/${id}.html`,
- method: 'POST',
- data,
- apiType
- })
- }
- /**
- * @description 商品列表 -- 上下架
- */
- export function changeshowApi(id, data) {
- return myRequestPhp({
- url: `${pre}mer/store/product/status/${id}`,
- method: 'POST',
- data,
- apiType
- })
- }
- /**
- * @description 商品列表--删除
- */
- export function destoryApi(id,data) {
- return myRequestPhp({
- url: `${pre}mer/store/product/destory/${id}`,
- method: 'DELETE',
- data,
- apiType
- })
- }
- /**
- * @description 商品列表 -- 删除
- */
- export function productDeleteApi(id,data) {
- return myRequestPhp({
- url: `${pre}mer/store/product/delete/${id}`,
- method: 'DELETE',
- data,
- apiType
- })
- }
- /***
- * @description 商品列表 -- 恢复商品
- */
- export function productRestoreApi(id,data) {
- return myRequestPhp({
- url: `${pre}mer/store/product/restore/${id}`,
- method: 'POST',
- data,
- apiType
- })
- }
- export function Addseckill(data) {
- return myRequestPhp({
- url: `${pre}mer/store/product/seckill`,
- method: 'POST',
- data,
- apiType
- })
- }
|