From 79124cbce7b6dc47e9fa825fcecd4b6fe19b5c30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E5=BD=A6=E7=A5=96?= <605893810@qq.com> Date: Wed, 13 Aug 2025 12:16:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=AD=BE?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mine_package/mine_order/mine_order.vue | 38 +++++++++----------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/pages/mine_package/mine_order/mine_order.vue b/pages/mine_package/mine_order/mine_order.vue index 3ff3f1a..74046ea 100644 --- a/pages/mine_package/mine_order/mine_order.vue +++ b/pages/mine_package/mine_order/mine_order.vue @@ -410,15 +410,15 @@ export default { */ confirmReceiptOk(item) { const then = this; - // uni.showModal({ - // title: '提示', - // content: '是否确认收货?', - // success: function (res) { - // if (res.confirm) { - // then.confirmReceiptFun(item); - // } - // } - // }); + uni.showModal({ + title: '提示', + content: '是否确认收货?', + success: function (res) { + if (res.confirm) { + then.confirmReceiptFun(item); + } + } + }); }, async confirmReceiptFun(item) { const params = { @@ -431,6 +431,7 @@ export default { this.loadData(); } }, + // 判断是否已经签名 async checkSigned() { const { bizcode, data } = await isSignContract(); @@ -438,12 +439,12 @@ export default { this.isCheckSigne = data; } }, + // 发起合同签章 async onSignContract(item) { const params = { // 需要的参数 orderId: item.id, - // orderId: 'yDt4ZUUckp9j355lUEEr2XwS6QZTaLFb' } const { bizcode, data } = await signContract(params); if (bizcode === 100) { @@ -460,19 +461,16 @@ export default { // #endif } }, + // 获取H5签署链接 async onGetSignUrl(flowId) { - - console.log("获取H5签署链接", flowId) const params = { // 需要的参数 flowId: flowId, } const { bizcode, data } = await getSignUrl(params); - console.log("获取H5签署链接-1", data) if (bizcode === 100) { - this.signUrl = data.flowApproverUrlInfos[0].longUrl - // this.onGetMiniProgramSignUrl(data) + this.signUrl = data.flowApproverUrlInfos[0].longUrl; } else { this.$refs.uToastRef.show({ type: 'error', @@ -500,17 +498,16 @@ export default { return null; } }, + // 电子签的回调地址 handleMessage(e) { const data = e.detail; console.log('电子签的回调地址', e); - }, - // 小程序签名 - openTencentESign() { - // 这个链接需要后端调用腾讯电子签 API 获取 - const signPath = `/pages/guide?from=app&to=CONTRACT_DETAIL&id=${this.flowId}` // 腾讯电子签小程序内部页面路径 + // 小程序签名 + openTencentESign(signPath) { + // 这个链接需要后端调用腾讯电子签 API 获取 uni.navigateToMiniProgram({ appId: 'wxa023b292fd19d41d', // 腾讯电子签官方小程序的 appId path: signPath, // 跳转到的页面路径 + 参数 @@ -524,7 +521,6 @@ export default { } }) } - } }