2024-02-29 20:35:06 +08:00
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
// | 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 addCart(data) {
|
|
|
|
|
return request.post(`user/cart/create`, data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据店铺id 获取店铺信息
|
|
|
|
|
*/
|
|
|
|
|
export function getProductInfo(data) {
|
|
|
|
|
return request.get(`scanPay/product`, data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 订单校验
|
|
|
|
|
*/
|
|
|
|
|
export function orderCheck(data) {
|
|
|
|
|
return request.post(`v2/order/check`, data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 生成订单
|
|
|
|
|
*/
|
|
|
|
|
export function orderPay(data) {
|
|
|
|
|
return request.post(`v2/order/create`, data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 生成二维码
|
|
|
|
|
*/
|
|
|
|
|
export function qrcode(data) {
|
|
|
|
|
return request.get(`scanPay/qrcode`, data);
|
2024-03-13 17:24:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 收付款详情
|
|
|
|
|
*/
|
|
|
|
|
export function paymentDetail(data) {
|
|
|
|
|
return request.get(`admin/${data.mer_id}/expenditure`, data);
|
2024-02-29 20:35:06 +08:00
|
|
|
|
}
|