Merge branch 'master' into salesman

This commit is contained in:
pikachu1995@126.com
2026-08-11 15:34:46 +08:00
46 changed files with 2688 additions and 678 deletions

View File

@@ -65,7 +65,7 @@ export function addCartGoods (params) {
/**
* 创建交易
* @param client 客户端:H5/移动端 PC/PC端,WECHAT_MP/小程序端,APP/移动应用端
* @param way 购物车购买:CART/立即购买:BUY_NOW / 积分购买:POINT
* @param way 购物车:CART / 立即购买:BUY_NOW / 积分:POINTS / 拼团:PINTUAN / 砍价:KANJIA
* @param remark 备注 非必填
*/
export function createTrade (data) {
@@ -81,7 +81,7 @@ export function createTrade (data) {
/**
* 选择优惠券
* @param memberCouponId 优惠券id
* @param way 购物车购买:CART/立即购买:BUY_NOW/ 积分购买:POINT
* @param way 购物车:CART / 立即购买:BUY_NOW / 积分:POINTS
* @param used 使用true 弃用 false
*/
export function selectCoupon (params) {
@@ -95,7 +95,7 @@ export function selectCoupon (params) {
/**
* 选择礼品卡
* @param way 购物车购买:CART/立即购买:BUY_NOW/拼团购买:PINTUAN / 积分购买:POINT
* @param way 购物车:CART / 立即购买:BUY_NOW / 拼团:PINTUAN / 积分:POINTS / 砍价:KANJIA
* @param credentialId 礼品卡凭证 id;used=false 且不传则清空全部
* @param used 使用 true / 弃用 false
*/

View File

@@ -33,12 +33,13 @@ export function goodsDetail (goodsId) {
});
}
// id获取商品Sku详情
// id获取商品Sku详情(支持未登录浏览,登录后可选携带 token)
export function goodsSkuDetail (params) {
return request({
url: `/buyer/goods/goods/sku/${params.goodsId}/${params.skuId}`,
method: Method.GET,
needToken: true,
needToken: false,
optionalToken: true,
params
});
}

View File

@@ -24,12 +24,13 @@ export function tradeDetail (params) {
* @param payClient 调起方式 可用值:APP,NATIVE,JSAPI,H5
* @param sn 订单编号
*/
export function pay (params) {
export function pay (params, config = {}) {
return request({
url: `/buyer/payment/cashier/pay/${params.paymentMethod}/${params.paymentClient}`,
needToken: true,
method: Method.GET,
params
params,
skipMessage: !!config.skipMessage,
});
}

View File

@@ -46,7 +46,8 @@ export function applyThird (params) {
export function getDetailById (id) {
return request({
url: `/buyer/store/store/get/detail/${id}`,
needToken: true,
needToken: false,
optionalToken: true,
method: Method.GET
})
}