shop-applet/api/payment.js

60 lines
1.5 KiB
JavaScript
Raw Normal View History

2024-05-14 17:25:13 +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);
}
/**
* 根据店铺 获取商品
*/
export function getProductInfo1(data) {
return request.get(`order_mix`, 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);
}
/**
* 收付款详情
*/
export function paymentDetail(data) {
return request.get(`admin/${data.mer_id}/expenditure`, data);
}