diff --git a/package-lock.json b/package-lock.json index 23bfc54..b2389d7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,6 +26,7 @@ "clipboard": "^2.0.11", "crypto-js": "^4.2.0", "dayjs": "^1.11.13", + "image-tools": "^1.4.0", "lodash-es": "^4.17.21", "pinia": "^2.3.0", "pinia-plugin-persistedstate": "^4.2.0", @@ -7790,6 +7791,12 @@ "node": ">= 4" } }, + "node_modules/image-tools": { + "version": "1.4.0", + "resolved": "https://repo.huaweicloud.com/repository/npm/image-tools/-/image-tools-1.4.0.tgz", + "integrity": "sha512-TKtvJ6iUwM0mfaD4keMnk1ENHFC470QEjBfA3IlvKdEOufzvWbjbaoNcoyYq6HlViF8+d5tOS1ooE6j7CHf1lQ==", + "license": "ISC" + }, "node_modules/immutable": { "version": "4.3.7", "resolved": "https://repo.huaweicloud.com/repository/npm/immutable/-/immutable-4.3.7.tgz", diff --git a/package.json b/package.json index de6096a..697388f 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "clipboard": "^2.0.11", "crypto-js": "^4.2.0", "dayjs": "^1.11.13", + "image-tools": "^1.4.0", "lodash-es": "^4.17.21", "pinia": "^2.3.0", "pinia-plugin-persistedstate": "^4.2.0", diff --git a/src/components/PersonIdCardForm/index.vue b/src/components/PersonIdCardForm/index.vue index 3f3c259..c156df1 100644 --- a/src/components/PersonIdCardForm/index.vue +++ b/src/components/PersonIdCardForm/index.vue @@ -21,7 +21,7 @@ size="small" type="primary" text="识别身份证(人像)" - @tap="onHandleRecognizeIdCard" + @tap="onHandleRecognizeIdCard(1)" /> @@ -93,7 +93,7 @@ size="small" type="primary" text="识别身份证(国徽)" - @tap="onHandleRecognizeIdCard" + @tap="onHandleRecognizeIdCard(2)" /> @@ -153,6 +153,10 @@