shop-applet/api/payment.js

45 lines
1.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// +----------------------------------------------------------------------
// | 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);
}