feat:签署
This commit is contained in:
@@ -134,7 +134,17 @@ export default {
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
// 小程序
|
||||
this.onGetMiniProgramSignUrl(this.flowId)
|
||||
uni.showModal({
|
||||
title: "请复制链接前往APP签署合同?",
|
||||
content: `APP下载地址:https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/document/android/trustbridge.apk`,
|
||||
confirmText: "复制链接",
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
copyData('https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/document/android/trustbridge.apk');
|
||||
}
|
||||
},
|
||||
});
|
||||
// this.onGetMiniProgramSignUrl(this.flowId)
|
||||
// #endif
|
||||
}
|
||||
},
|
||||
@@ -161,11 +171,11 @@ export default {
|
||||
async onGetMiniProgramSignUrl(flowId) {
|
||||
const params = {
|
||||
flowId: flowId,
|
||||
endPoint: 'HTTP_SHORT_URL'
|
||||
// endPoint: 'HTTP_SHORT_URL'
|
||||
}
|
||||
const { bizcode, data } = await getMiniProgramSignUrl(params);
|
||||
if (bizcode === 100) {
|
||||
console.log("跳转至腾讯电子签小程序的签署链接", data);
|
||||
console.log("", data);
|
||||
this.openTencentESign(data.schemeUrl);
|
||||
} else {
|
||||
this.$refs.uToastRef.show({
|
||||
@@ -186,7 +196,7 @@ export default {
|
||||
// 这个链接需要后端调用腾讯电子签 API 获取
|
||||
uni.navigateToMiniProgram({
|
||||
appId: 'wxa023b292fd19d41d', // 腾讯电子签官方小程序的 appId
|
||||
path: signPath, // 跳转到的页面路径 + 参数
|
||||
path:"pages/home/home", // 跳转到的页面路径 + 参数
|
||||
extraData: {}, // 如果需要传额外参数
|
||||
envVersion: 'release', // 小程序版本 release / trial / develop
|
||||
success(res) {
|
||||
|
||||
Reference in New Issue
Block a user