From 6bea66d8cf0b585b89cfa5f3534d87bf24a643c2 Mon Sep 17 00:00:00 2001 From: chengwenyou <3451066845@qq.com> Date: Wed, 31 Jul 2024 15:14:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E8=AF=81=E8=AF=86=E5=88=AB?= =?UTF-8?q?=E7=BB=86=E8=8A=82=E6=9D=A1=E4=BB=B6=E4=BB=A5=E5=8F=8A=E4=BA=BA?= =?UTF-8?q?=E8=84=B8=E8=AF=86=E5=88=AB=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/updateFace.css | 141 ++------------- src/views/components/IDrecognition.vue | 7 +- src/views/updateFace/midPic.vue | 169 ++++++++++++++---- src/views/updateFace/updateFace.vue | 187 +++----------------- src/views/updateIDCard/listIDResultShow.vue | 1 - src/views/updateIDCard/updateIDCard.vue | 3 +- vue.config.js | 2 +- 7 files changed, 178 insertions(+), 332 deletions(-) diff --git a/src/assets/styles/updateFace.css b/src/assets/styles/updateFace.css index ec5f703..7085bbc 100644 --- a/src/assets/styles/updateFace.css +++ b/src/assets/styles/updateFace.css @@ -1,3 +1,7 @@ +:root{ + --custom-Facesize:3rem +} + body { background-image: url('../images/backimg.png'); background-size: 100% 100%; @@ -14,150 +18,37 @@ body { .mainContent { display: flex; - /* background-color: antiquewhite; */ width: 116rem; height: 51rem; margin-left: 2.5rem; - } .boxLevelOne { display: flex; - /* padding-left: .625rem; */ margin-right: .75rem; - + flex-direction: column; + position: relative; } -.leftBoxLevelOne { - flex: 3; - /* background-color: blue; */ - flex-direction: column; - +.sideBoxLevelOne { + flex: 3; } .midBoxLevelOne { flex: 5; - position: relative; - display: flex; - flex-direction: column; border: .0625rem solid rgba(204, 252, 253, 0.3); border-radius: 1.5rem; - -} - -.rightBoxLevelOne { - flex: 3; - /* background-color:yellow ; */ - flex-direction: column; - } .boxLevelTwo { flex: 1; - /* background-color: hotpink; */ position: relative; -} - -/* 二级标题图片 */ -.boxLevelTwoHeaderPic { - width: 29.0625rem; - /* 宽度 */ - height: 2.4375rem; - opacity: .51; - /* 高度 */ -} - -.boxLevelTwo { border: .0625rem solid rgba(204, 252, 253, 0.3); border-radius: .6rem; } - - .boxLevelTwoFst { margin-bottom: 1rem; - -} - -.boxLevelTwoText { - position: absolute; - top: .6rem; - left: 2.1rem; - font-size: 1.125rem; - font-weight: bold; - color: #FFFFFF; - letter-spacing: .3rem; -} - - -.faceContentBox { - padding-left: 1.25rem; - padding-right: 1.25rem; - position: relative; - -} - -.faceContentTable { - width: 100%; - - -} - -tbody { - height: 14.5rem; - overflow: auto; - display: block; - scroll-behavior: smooth; -} - -.faceContentRow { - width: 100%; - background: linear-gradient(to bottom, rgba(47, 47, 214, .6), rgba(255, 255, 255, .7)); - display: flex; - height: 2.1rem; - /* 底部边框为2像素宽的黑色边框 */ -} - -.faceContentRowPrime { - background-color: RGBA(13, 31, 75, .8); - display: flex; -} - -.faceContentRowEven { - background-color: RGBA(6, 19, 48, .9); - display: flex; - -} - -.faceContentColume { - font-size: 1rem; - padding-top: .3rem; - padding-bottom: .4rem; - text-align: center; - height: 2rem; - color: #FFFFFF; - -} - -.faceContentColumeSort { - /* border: #51AEFE 1px solid; */ - flex: 1 -} - -.faceContentColumeIPAddr { - /* border: #55636f 1px solid; */ - text-align: center; - flex: 2 -} - -.faceContentColumeDate { - /* border: #2f6ca2 1px solid; */ - flex: 2 -} - -.faceContentColumeTime { - /* border: #530303 1px solid; */ - flex: 1 } @@ -168,24 +59,18 @@ tbody { /* background-color: #51AEFE; */ } -.resultHeader { - width: 100%; - height: 3.0625rem; -} - .el-upload-list__item-thumbnail, .el-upload-list__item, -.el-upload-list__item-actions>li { - width: calc(var(--custom-size) *4.6) !important; +.el-upload-list__item-actions>li{ background-color: transparent; border-radius: 0rem; + /* border: 1px solid transparent; */ } - .el-upload-dragger, -.el-upload { - height: calc(var(--custom-size) *3.0) !important; - width: calc(var(--custom-size) *4.6) !important; +.el-upload{ background-color: transparent !important; border-radius: 0rem; + /* border: 1px dotted #fff; */ + } \ No newline at end of file diff --git a/src/views/components/IDrecognition.vue b/src/views/components/IDrecognition.vue index d987ec0..ceb990f 100644 --- a/src/views/components/IDrecognition.vue +++ b/src/views/components/IDrecognition.vue @@ -221,7 +221,12 @@ export default { this.$modal.msgSuccess("识别成功"); } else if (res.data.data.code == 20001) { - this.$modal.msgError("身份证信息不完整,请重新上传"); + // this.$modal.msgError(""); + this.$message({ + message: '身份证信息不完整,请重新上传', + type: 'warning' + }); + } else if (res.data.data.code == 20003) { this.$modal.msgError("图片base64编码转换异常,请重新上传"); diff --git a/src/views/updateFace/midPic.vue b/src/views/updateFace/midPic.vue index 32ee848..3a5a1a6 100644 --- a/src/views/updateFace/midPic.vue +++ b/src/views/updateFace/midPic.vue @@ -1,17 +1,18 @@