mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 17:00:30 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
1 line
5.0 KiB
JavaScript
1 line
5.0 KiB
JavaScript
webpackJsonp([187],{"4OOg":function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"\n@media screen and (max-width: 1590px) {\n.up-box[data-v-2009aaa6] {\n width: 386px;\n}\n.result-box[data-v-2009aaa6] {\n width: 386px;\n}\n}\n@media screen and (min-width: 1590px) {\n.up-box[data-v-2009aaa6] {\n width: 486px;\n}\n.result-box[data-v-2009aaa6] {\n width: 486px;\n}\n}\n.none-data[data-v-2009aaa6] {\n font-size: 16px;\n color: #74777c;\n line-height: 308px;\n}\n.result-box[data-v-2009aaa6] {\n height: 335px;\n display: inline-block;\n margin-top: 80px;\n text-align: center;\n position: relative;\n background: #f4f5f9;\n padding-top: 32px;\n padding-left: 24px;\n}\n.imageBox[data-v-2009aaa6] {\n position: absolute;\n top: 0;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n left: 50%;\n top: 50%;\n}\n.frame[data-v-2009aaa6] {\n border: 2px solid #3399ff;\n position: absolute;\n display: none;\n}\n.up-box[data-v-2009aaa6] {\n vertical-align: middle;\n text-align: center;\n line-height: 335px;\n height: 335px;\n display: inline-block;\n float: left;\n margin-right: 80px;\n margin-top: 80px;\n margin-bottom: 74px;\n display: table-cell;\n background: #f4f5f9;\n}\n.result-info[data-v-2009aaa6] {\n text-align: left;\n position: relative;\n padding-top: 10px;\n}\n.simulator-box[data-v-2009aaa6] {\n position: relative;\n min-height: 280px;\n width: 1500px;\n}\n[data-v-2009aaa6] .el-upload--picture-card {\n width: 170px;\n height: 170px;\n}\n[data-v-2009aaa6] .el-upload-list--picture-card .el-upload-list__item {\n width: 170px;\n height: 170px;\n text-align: center;\n vertical-align: middle;\n}\n[data-v-2009aaa6] .el-upload-list--picture-card .el-upload-list__item-thumbnail {\n max-width: 170px;\n max-height: 170px;\n width: auto;\n height: auto;\n}\n\n",""])},dbj2:function(t,e,n){var a=n("4OOg");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("65c8ae4a",a,!0)},kSHK:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("+giH"),i=n("MZdq"),o=(n("9Zzp"),{data:function(){return{tips:"请上传图片",formatTips:"图片支持jpg、jpeg、png、bmp、jfif 格式,像素4000*3000以内,最大支持3MB",imageUrl:"",ajax:a.a,responseText:"",faceInfo:{},isShowInfo:!1,proportion:"",boxWidth:"",err:"",result:"",types:["image/jpeg","image/png","image/bmp","image/jpg","image/jfif"]}},mounted:function(){var t=this,e=this;window.onresize=function(){e.boxWidth=t.$refs.imgBox.offsetWidth}},beforeDestroy:function(){window.onresize=null},methods:{upload:function(t){var e=this,n={channelCode:"system",image:t,mode:"true"};i.b.silentLivingPicture(n).then(function(t){if(e.err=t.message,t.success&&t.data){e.responseText=t,e.isShowInfo=!0;var n=t.data.isAlive?"活体":"非活体";e.result=t.data.isAlive+":"+n,e.change()}else e.$nextTick(function(){e.isShowInfo=!1,e.$message.error(t.message),e.responseText=t})}).catch(function(t){e.$message.error(e.err)})},change:function(){var t=this,e=new Image;e.src=this.imageUrl,this.boxWidth=this.$refs.imgBox.offsetWidth,e.onload=function(){var n=e.height>=335?335:e.height;e.height<=e.width&&e.height<335||e.height<=e.width&&e.height<335&&document.body.clientWidth<1580&&e.width<386||e.height<=e.width&&e.height<335&&document.body.clientWidth>1580&&e.width<486?t.proportion=1:t.proportion=e.height>e.width?e.height/n:e.width/t.boxWidth,t.$refs.frame.style.display="inline-block",t.$refs.frame.style.width=t.faceInfo.width/t.proportion+"px",t.$refs.frame.style.height=t.faceInfo.height/t.proportion+"px",t.$refs.frame.style.top=t.faceInfo.y/t.proportion+"px",t.$refs.frame.style.left=t.faceInfo.x/t.proportion+"px"}}},watch:{boxWidth:function(t,e){this.change()}},components:{responseText:n("COE1").a}}),s={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-card",{attrs:{shadow:"hover"}},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",{staticStyle:{"font-size":"14px"}},[t._v("通过上传的静态照片,进行活体检测。")])]),t._v(" "),n("div",{staticClass:"simulator-box"},[n("div",{ref:"imgBox",staticClass:"up-box",staticStyle:{position:"relative"}},[n("img-upload",{attrs:{buttonText:"上传图片",tips:t.tips,types:t.types,formatTip:t.formatTips,fileSize:3},on:{upload:t.upload}})],1),t._v(" "),n("div",{staticClass:"result-box"},[t.isShowInfo?n("div",{staticClass:"result-info"},[t._v("\n "+t._s(t.result)+"\n ")]):t._e(),t._v(" "),t.isShowInfo?t._e():n("span",{staticClass:"none-data"},[t._v("暂无数据")]),t._v(" "),n("br"),t._v(" "),n("el-row",{staticStyle:{position:"absolute",top:"-50px",left:"0px"}},[n("span",{staticStyle:{"padding-left":"5px","border-left":"4px solid #3399FF",display:"inline-block",height:"18px","line-height":"18px","font-size":"14px"}},[t._v("识别结果")])])],1)])]),t._v(" "),n("response-text",{attrs:{responseText:t.responseText}})],1)},staticRenderFns:[]};var r=n("VU/8")(o,s,!1,function(t){n("dbj2")},"data-v-2009aaa6",null);e.default=r.exports}}); |