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' });
});
},

涉及实物交易的小程序需缴纳保证金,否则跳转功能是不能用的。