修改确认订单逻辑

This commit is contained in:
2025-09-28 09:47:09 +08:00
parent 86edc7bb02
commit 87fafdbf9a
18 changed files with 4785 additions and 1816 deletions

View File

@@ -85,26 +85,53 @@ export const joinMember = (data) => {
}
//会员购买支付
export const ltPayMember = (data) => {
// #ifdef MP-WEIXIN
const openId=uni.cache.get('userInfo').wechatOpenId;
// #endif
// #ifdef MP-ALIPAY
const openId=uni.cache.get('userInfo').alipayOpenId;
// #endif
return request({
url: url + '/pay/ltPayMember',
method: 'post',
data: {
platformType,
payType,
openId: uni.cache.get('miniAppOpenId'),
openId,
...data
}
})
}
//智慧充值
export const recharge = (data) => {
// #ifdef MP-WEIXIN
const openId=uni.cache.get('userInfo').wechatOpenId;
// #endif
// #ifdef MP-ALIPAY
const openId=uni.cache.get('userInfo').alipayOpenId;
// #endif
return request({
url: url + '/pay/recharge',
method: 'post',
data: {
platformType,
payType,
openId: uni.cache.get('miniAppOpenId'),
openId,
...data
}
})
}
export const rechargePayOrder = (data) => {
return request({
url: url + '/pay/rechargePayOrder',
method: 'post',
data: {
platformType,
payType,
openId: uni.cache.get('userInfo').wechatOpenId,
...data
}
})