修改确认订单逻辑
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user