支付宝兼容,排队预约修改,订单逻辑修改

This commit is contained in:
GaoHao
2024-09-24 15:22:34 +08:00
parent 861e97b775
commit 5f03e44701
31 changed files with 823 additions and 737 deletions

View File

@@ -86,10 +86,15 @@
// #endif
success: async (infoRes) => {
console.log(infoRes)
uni.cache.set('weixincode', data.code);
let res = await Api.userwxlogin({
code: uni.cache.get('weixincode'), //临时登录凭证
code: data.code, //临时登录凭证
rawData: infoRes.rawData,
// #ifdef MP-WEIXIN
source: 'wechat',
// #endif
// #ifdef MP-ALIPAY
source: 'alipay',
// #endif
})
if (res.code == 0) {
uni.cache.set('token', res.data.token);