From 708f172edf473b6020ad54fbfcaec384e622fa05 Mon Sep 17 00:00:00 2001 From: liuminjian <517059477@qq.com> Date: Thu, 1 Dec 2022 13:50:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=94=B5=E5=AD=90=E7=AD=BE?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 +- src/api/lawEnforcement/index.js | 9 + src/router/index.js | 9 + src/views/yinnong/my.vue | 11 ++ src/views/yinnong/signature.vue | 162 ++++++++++++++++++ .../yinnong/signatureUploadSignature.vue | 161 +++++++++++++++++ 6 files changed, 354 insertions(+), 1 deletion(-) create mode 100644 src/views/yinnong/signature.vue create mode 100644 src/views/yinnong/signatureUploadSignature.vue diff --git a/package.json b/package.json index c83bbabf..7e3e98b8 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,8 @@ "vue": "^2.5.2", "vue-baidu-map": "^0.21.22", "vue-cookies": "^1.7.4", - "vue-esign": "^1.0.5", + "vue-cropper": "^0.5.8", + "vue-esign": "^1.1.4", "vue-pdf": "^4.3.0", "vue-qrcode-reader": "^3.1.0", "vue-quill-editor": "^3.0.6", diff --git a/src/api/lawEnforcement/index.js b/src/api/lawEnforcement/index.js index e6d30b31..ecdab44a 100644 --- a/src/api/lawEnforcement/index.js +++ b/src/api/lawEnforcement/index.js @@ -889,3 +889,12 @@ export function casePointList(query) { }) } +// 用户上传签字 +export function electronicSignature(data) { + return request({ + url: '/system/user/profile/electronicSignature', + method: 'post', + data: data + }) +} + diff --git a/src/router/index.js b/src/router/index.js index 4d04c048..31476f0a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1824,6 +1824,15 @@ export const constantRoutes = [ hidden: true, }, component: (resolve) => require(['@/views/yinnong/password'], resolve) + } , + { + path: '/yinnong/signature', + name: 'yinnongSignature', + meta: { + title: '电子签名', + hidden: true, + }, + component: (resolve) => require(['@/views/yinnong/signature'], resolve) }, { path: '/yinnong/livePay', diff --git a/src/views/yinnong/my.vue b/src/views/yinnong/my.vue index 16079b1c..6b102451 100644 --- a/src/views/yinnong/my.vue +++ b/src/views/yinnong/my.vue @@ -79,6 +79,17 @@ /> + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/yinnong/signatureUploadSignature.vue b/src/views/yinnong/signatureUploadSignature.vue new file mode 100644 index 00000000..d364fff5 --- /dev/null +++ b/src/views/yinnong/signatureUploadSignature.vue @@ -0,0 +1,161 @@ + + + 上传签字图片 + + + + + + + + + + + + 上传文件 + + + + + + 提交 + + + + + + + + + + \ No newline at end of file