收藏
回答

小程序内跳转e签宝小程序签合同提示:“由于小程序违规,该功能暂时无法使用“怎么解决?

handleEsignJump(formDataString) {

    uni.showLoading({ title: '准备签署中...' });


    request1(`order/contractSign`, 'Post', formDataString).then(res => {

        uni.hideLoading();

        if (res.code == 1) {

            const { signFlowId, psnId, env } = res.data;


            uni.showModal({

                title: '提示',

                content: '即将前往 e签宝 完成合同签署',

                confirmText: '立即前往',

                success: (modalRes) => {

                    if (modalRes.confirm) {

                        uni.navigateToMiniProgram({

                            appId: 'wx1cf2708c2de46337', 

                            path: '/pages/index/index',

                            extraData: {

                                requestObj: {

                                    flowId: signFlowId,   

                                    accountId: psnId, 

                                    type: 'SIGN',        

                                    env: env || 'prod'  

                                }

                            },

                            success: (res) => {

                                console.log("跳转成功", res);

                            },

                            fail: (err) => {

                                console.error("跳转失败", err);

                                uni.showToast({ title: '无法唤起签署小程序', icon: 'none' });

                            }

                        });

                    }

                }

            });

        } else {

            uni.showToast({ title: res.msg, icon: 'none' });

        }

    }).catch(err => {

        uni.hideLoading();

        uni.showToast({ title: '服务器开小差了', icon: 'none' });

    });

},

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容