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