You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
264 lines
5.2 KiB
264 lines
5.2 KiB
// +----------------------------------------------------------------------
|
|
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
|
// +----------------------------------------------------------------------
|
|
// | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
|
|
// +----------------------------------------------------------------------
|
|
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
|
// +----------------------------------------------------------------------
|
|
// | Author: CRMEB Team <admin@crmeb.com>
|
|
// +----------------------------------------------------------------------
|
|
import request from "@/utils/request.js";
|
|
|
|
/**
|
|
* 拼团列表
|
|
*
|
|
*/
|
|
export function getCombinationList(data) {
|
|
return request.get('store/product/group/lst', data, {
|
|
noAuth: true
|
|
});
|
|
}
|
|
/**
|
|
* 拼团参与人
|
|
*
|
|
*/
|
|
export function getCombinationUser(data) {
|
|
return request.get('store/product/group/count', data, {
|
|
noAuth: true
|
|
});
|
|
}
|
|
/**
|
|
* 活动分类
|
|
*
|
|
*/
|
|
export function getActivitycategory(type) {
|
|
return request.get('product/spu/active/category/' + type, {}, {
|
|
noAuth: true
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 拼团详情
|
|
*
|
|
*/
|
|
export function getCombinationDetail(id) {
|
|
return request.get('store/product/group/detail/' + id, {}, {
|
|
noAuth: true
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 拼团 开团
|
|
*/
|
|
export function getCombinationPink(id) {
|
|
return request.get("store/product/group/get/" + id);
|
|
}
|
|
|
|
|
|
/**
|
|
* 拼团 取消开团
|
|
*/
|
|
export function postCombinationRemove(data) {
|
|
return request.post("store/product/group/cancel", data);
|
|
}
|
|
|
|
/**
|
|
* 秒杀产品详情
|
|
* @param int id
|
|
*/
|
|
export function getSeckillDetail(id) {
|
|
return request.get('store/product/seckill/detail/' + id, {}, {
|
|
noAuth: true
|
|
});
|
|
}
|
|
|
|
|
|
/**
|
|
* 拼团海报
|
|
* @param object data
|
|
*
|
|
*/
|
|
export function getCombinationPoster(data) {
|
|
return request.post('combination/poster', data)
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* 获取秒杀小程序二维码
|
|
*/
|
|
export function seckillCode(id, data) {
|
|
return request.get("seckill/code/" + id, data);
|
|
}
|
|
|
|
/**
|
|
* 获取拼团小程序二维码
|
|
*/
|
|
export function scombinationCode(id) {
|
|
return request.get("combination/code/" + id);
|
|
}
|
|
/**
|
|
* 秒杀产品时间区间
|
|
*
|
|
*/
|
|
export function getSeckillIndexTime() {
|
|
return request.get('store/product/seckill/select', {}, {
|
|
noAuth: true
|
|
});
|
|
}
|
|
/**
|
|
* 秒杀产品列表
|
|
* @param int time
|
|
* @param object data
|
|
*/
|
|
export function getSeckillList(data) {
|
|
return request.get('store/product/seckill/lst', data, {
|
|
noAuth: true
|
|
});
|
|
|
|
}
|
|
/**
|
|
* 预售列表
|
|
*/
|
|
export function getPresellList(data) {
|
|
return request.get('store/product/presell/lst', data, {
|
|
noAuth: true
|
|
});
|
|
}
|
|
/**
|
|
* 助力列表
|
|
*/
|
|
export function getAssistList(data) {
|
|
return request.get('store/product/assist/lst', data, {
|
|
noAuth: true
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 助力列表 -- 发起助力
|
|
*/
|
|
export function initiateAssistApi(id) {
|
|
return request.post('store/product/assist/create/' + id);
|
|
}
|
|
/**
|
|
* 助力详情
|
|
*/
|
|
export function getAssistDetail(id,data) {
|
|
return request.get('store/product/assist/detail/' + id,data);
|
|
}
|
|
/**
|
|
* 助力好友
|
|
*/
|
|
export function assistHelpList(id, data) {
|
|
return request.get('store/product/assist/user/' + id, data);
|
|
}
|
|
/**
|
|
* 预售协议
|
|
*/
|
|
export function presellAgreement() {
|
|
return request.get('store/product/presell/agree');
|
|
}
|
|
/**
|
|
* 已助力成功数据
|
|
*/
|
|
export function assistUserData(data) {
|
|
return request.get('store/product/assist/count', data, {
|
|
noAuth: true
|
|
});
|
|
}
|
|
/**
|
|
* 为好友助力
|
|
*/
|
|
export function postAssistHelp(id) {
|
|
return request.post('store/product/assist/set/' + id);
|
|
}
|
|
/**
|
|
* 获取助力查看分享次数
|
|
*/
|
|
export function getAssistUser(id) {
|
|
return request.get('store/product/assist/share/' + id);
|
|
}
|
|
/**
|
|
* 助力记录列表
|
|
*/
|
|
export function getBargainUserList(data) {
|
|
return request.get('store/product/assist/set/lst', data);
|
|
}
|
|
/**
|
|
* 助力记录列表 -- 取消
|
|
*/
|
|
export function getBargainUserCancel(id) {
|
|
return request.post('store/product/assist/set/delete/' + id);
|
|
}
|
|
/**
|
|
* 活动专题列表
|
|
*/
|
|
export function getTopicList(id, data) {
|
|
return request.get(`activity/lst/${id}`, data, {
|
|
noAuth: true
|
|
});
|
|
}
|
|
/**
|
|
* 活动专题详情
|
|
*/
|
|
export function getTopicDetail(id) {
|
|
return request.get(`activity/info/${id}`,{}, {
|
|
noAuth: true
|
|
});
|
|
}
|
|
/**
|
|
* 活动专题商品
|
|
*/
|
|
export function getTopicProLst(data) {
|
|
return request.get(`product/spu/labels`,data, {
|
|
noAuth: true
|
|
});
|
|
}
|
|
/**
|
|
* 获取本地服务商户列表
|
|
*/
|
|
export function getMerchantServiceLst(data) {
|
|
return request.get(`store/merchant/local`,data, {
|
|
noAuth: true
|
|
});
|
|
}
|
|
/**
|
|
* 获取优惠券列表
|
|
*/
|
|
export function getCouponLst(data) {
|
|
return request.get(`coupon/getlst`,data, {
|
|
noAuth: true
|
|
});
|
|
}
|
|
/**
|
|
* 获取优惠券列表
|
|
*/
|
|
export function getNewPeopleCouponLst(data) {
|
|
return request.get(`coupon/new_people`,data, {
|
|
noAuth: true
|
|
});
|
|
}
|
|
/**
|
|
* 获取热卖排行列表
|
|
*/
|
|
export function hotRankingApi(data) {
|
|
return request.get(`product/spu/get_hot_ranking`,data, {
|
|
noAuth: true
|
|
});
|
|
}
|
|
/**
|
|
* 热卖排行列表分类
|
|
*/
|
|
export function spuTop(data) {
|
|
return request.get(`store/product/category/hotranking`, {}, {
|
|
noAuth: true
|
|
});
|
|
}
|
|
/**
|
|
* 热卖排行列表
|
|
*/
|
|
export function spuTopList(data) {
|
|
return request.get(`product/spu/get_hot_ranking`, data, {
|
|
noAuth: true
|
|
});
|
|
} |