65 lines
1.5 KiB
JavaScript
65 lines
1.5 KiB
JavaScript
// +----------------------------------------------------------------------
|
||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||
// +----------------------------------------------------------------------
|
||
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
|
||
// +----------------------------------------------------------------------
|
||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||
// +----------------------------------------------------------------------
|
||
// | Author: CRMEB Team <admin@crmeb.com>
|
||
// +----------------------------------------------------------------------
|
||
import request from "@/utils/request.js";
|
||
|
||
/**
|
||
* 调货列表
|
||
*
|
||
*/
|
||
export function getCommunityList(data) {
|
||
return request.get('community/lst', data, {
|
||
noAuth: true
|
||
});
|
||
}
|
||
/**
|
||
* 商品详情
|
||
*
|
||
*/
|
||
export function getCommunityshow(data) {
|
||
console.log(data)
|
||
return request.get('community/show/'+data,{}, {
|
||
noAuth: true
|
||
});
|
||
}
|
||
|
||
/**
|
||
* 可转售的订单列表
|
||
*
|
||
*/
|
||
export function getCommunitygetOrderList(data) {
|
||
return request.get('community/getOrderList', data, {
|
||
noAuth: true
|
||
});
|
||
}
|
||
|
||
/**
|
||
* 发起转售
|
||
*
|
||
*/
|
||
export function getCommunitycreate( data) {
|
||
return request.post(`community/create`, data, { login: true });
|
||
}
|
||
|
||
/**
|
||
* 修改转售
|
||
*
|
||
*/
|
||
export function getCommunityUpdate( data) {
|
||
return request.post(`community/update`, data, { login: true });
|
||
}
|
||
/**
|
||
* 加入购物车
|
||
*
|
||
*/
|
||
export function getCommunityaddCart(data) {
|
||
return request.get('community/addCart', data, {
|
||
noAuth: true
|
||
});
|
||
} |