From 01e6f99e9021ed3d37f8e2ed6db9e24f1ef9ec0f Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Wed, 19 Feb 2025 18:19:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(collectCode):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=AD=BE=E5=90=8D=E5=8A=9F=E8=83=BD=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=AD=BE=E7=BD=B2=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 app/config/index.js 中添加新的路由名称 - 实现签名面板组件,支持签名、清空和确认功能 - 优化个人资料页面,支持国内外签署流程 - 更新签署协议页面,增加直接签署功能- 引入 vue-signature-pad 依赖 --- app/config/index.js | 2 +- .../collectCode/signature/panel/index.vue | 103 +++++++++++++++++- .../signature/personal-Info/index.vue | 38 ++++--- .../collectCode/signature/protocol/index.vue | 23 ++-- app/pages/signature/protocol/index.vue | 5 +- package.json | 3 +- pnpm-lock.yaml | 25 +++++ 7 files changed, 167 insertions(+), 32 deletions(-) diff --git a/app/config/index.js b/app/config/index.js index a14a5ce..a7a8a50 100644 --- a/app/config/index.js +++ b/app/config/index.js @@ -1,3 +1,3 @@ export const useAppFooterRouteNames= ['index', 'profile'] -export const useAppHeaderRouteNames= ['index', 'profile','login','collectCode-login','collectCode-mine','payment-result'] +export const useAppHeaderRouteNames= ['index', 'profile','login','collectCode-login','collectCode-mine','payment-result','collectCode-signature-personal-Info'] diff --git a/app/pages/collectCode/signature/panel/index.vue b/app/pages/collectCode/signature/panel/index.vue index c3f7297..33ebb19 100644 --- a/app/pages/collectCode/signature/panel/index.vue +++ b/app/pages/collectCode/signature/panel/index.vue @@ -1,18 +1,109 @@ - - + + + + + + 返回 + + + 清空 + + + 确认 + + + + + + + \ No newline at end of file diff --git a/app/pages/collectCode/signature/personal-Info/index.vue b/app/pages/collectCode/signature/personal-Info/index.vue index a551fd6..952b086 100644 --- a/app/pages/collectCode/signature/personal-Info/index.vue +++ b/app/pages/collectCode/signature/personal-Info/index.vue @@ -58,22 +58,30 @@ const nextClick=async ()=>{ message.warning('请填写完整信息') return } - const res=await fddInfo({ - phone:formData.value.phone - }) - if (res.status===0){ -if (res.data.status===2){ - router.push('/collectCode/signature/protocol') -}else { - const res1=await signOffline({ - userInfo:formData.value, - signOrder:Number(number.value), - }) - if (res1.status===0){ - window.location.href=res1.data.fddVerifyUrl - } -} + //国内签署要用法大大 + if (formData.value.countryCode==='86'&&formData.value.cardType===1){ + const res=await fddInfo({ + phone:formData.value.phone + }) + if (res.status===0){ + if (res.data.status===2){ + router.push('/collectCode/signature/protocol') + }else { + const res1=await signOffline({ + userInfo:formData.value, + signOrder:Number(number.value), + }) + if (res1.status===0){ + window.location.href=res1.data.fddVerifyUrl + } + + } + } + //国外签署直接去确认然后签字版 + }else { + router.push('/collectCode/signature/protocol') } + // /* if (formData.value.countryCode==='86'&&formData.value.cardType===1){ diff --git a/app/pages/collectCode/signature/protocol/index.vue b/app/pages/collectCode/signature/protocol/index.vue index 3c044a6..28d0723 100644 --- a/app/pages/collectCode/signature/protocol/index.vue +++ b/app/pages/collectCode/signature/protocol/index.vue @@ -1,19 +1,26 @@ diff --git a/app/pages/signature/protocol/index.vue b/app/pages/signature/protocol/index.vue index 95c9583..fb0ba2c 100644 --- a/app/pages/signature/protocol/index.vue +++ b/app/pages/signature/protocol/index.vue @@ -1,9 +1,12 @@