lzrmie
lzrmie
  • 发布:2020-12-28 16:49
  • 更新:2020-12-28 16:49
  • 阅读:871

uni.requestment不执行回调成功函数

分类:uni-app

1.用自定义基座能执行到
2.打包到安卓却不执行回调函数

uni.requestPayment({  
                                provider:'wxpay',  
                                orderInfo: payParam,  
                                success(res) {  
                                    toast(JSON.stringify(res))  
                                    let url = '';  
                                    if (that.options.flag == 0) {  
                                        url = '/pages_recycle/pages/success/success?orderNumber=' + orderNumber +  
                                            '&openid=' + openId;  
                                    } else {  
                                        url = '/pages_recycle/pages/order_detail/order_detail?orderNumber=' +  
                                            orderNumber + '&openid=' + openId;  
                                    }  
                                    uni.redirectTo({  
                                        url: url  
                                    });  
                                },  
                                fail(err) {  
                                    toast(JSON.stringify(err))  
                                }  

                            });
2020-12-28 16:49 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复