mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-11 01:10:29 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
1 line
6.7 KiB
JavaScript
1 line
6.7 KiB
JavaScript
webpackJsonp([180],{"0O9c":function(n,a,t){(n.exports=t("FZ+f")(!1)).push([n.i,"\n@media screen and (max-width: 1590px) {\n.up-box[data-v-442f9f14] {\n width: 386px;\n}\n.card-box[data-v-442f9f14] {\n width: 386px;\n}\n.avatar[data-v-442f9f14] {\n max-width: 386px;\n}\n.two-li[data-v-442f9f14] {\n margin-left: 40px;\n}\n}\n@media screen and (min-width: 1590px) {\n.up-box[data-v-442f9f14] {\n width: 486px;\n}\n.card-box[data-v-442f9f14] {\n width: 486px;\n}\n.avatar[data-v-442f9f14] {\n max-width: 486px;\n}\n.two-li[data-v-442f9f14] {\n margin-left: 80px;\n}\n}\n.none-data[data-v-442f9f14] {\n font-size: 16px;\n color: #74777c;\n line-height: 308px;\n}\n.card-box[data-v-442f9f14] {\n height: 335px;\n display: inline-block;\n margin-top: 80px;\n text-align: center;\n position: relative;\n background: #f4f5f9;\n padding: 0 0 0 15px;\n overflow-y: auto;\n margin-left: -65px;\n}\n.avatar-uploader .el-upload[data-v-442f9f14] {\n border: 1px dashed #aaa;\n border-radius: 6px;\n cursor: pointer;\n position: relative;\n overflow: hidden;\n}\n.avatar-uploader .el-upload[data-v-442f9f14]:hover {\n border-color: #409eff;\n}\n.avatar-uploader-icon[data-v-442f9f14] {\n border: 1px dashed #aaa;\n font-size: 28px;\n color: #8c939d;\n width: 178px;\n height: 178px;\n line-height: 178px;\n text-align: center;\n display: none;\n}\n.up-box[data-v-442f9f14] {\n text-align: center;\n line-height: 335px;\n height: 335px;\n display: 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.avatar[data-v-442f9f14] {\n max-height: 335px;\n vertical-align: middle;\n text-align: center;\n margin-top: -5px;\n}\n.card-info[data-v-442f9f14] {\n text-align: left;\n position: relative;\n padding-left: 20px;\n height: 281px;\n border-radius: 6px;\n padding-top: 15px;\n}\n.card-info li[data-v-442f9f14] {\n font-size: 14px;\n line-height: 30px;\n}\n.card-info li span[data-v-442f9f14] {\n font-size: 14px;\n}\nli[data-v-442f9f14] {\n list-style: none;\n line-height: 30px;\n}\n.simulator-box[data-v-442f9f14] {\n position: relative;\n min-height: 280px;\n width: 1500px;\n}\n.simulator-box .result-tip-text[data-v-442f9f14] {\n padding-left: 5px;\n border-left: 4px solid #3399FF;\n display: inline-block;\n float: left;\n height: 18px;\n line-height: 18px;\n font-size: 14px;\n margin-top: 40px;\n}\n[data-v-442f9f14] .el-upload--picture-card {\n width: 170px;\n height: 170px;\n}\n[data-v-442f9f14] .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-442f9f14] .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.default-frame[data-v-442f9f14] {\n height: 147px;\n width: 110px;\n margin-bottom: 13px;\n margin-right: 24px;\n background: url("+t("gpWv")+") center no-repeat;\n}\n.card-avatar[data-v-442f9f14] {\n display: inline-block;\n position: absolute;\n right: 23px;\n top: 25px;\n}\n.card-avatar img[data-v-442f9f14] {\n max-height: 110px;\n max-width: 110px;\n}\n",""])},gqxl:function(n,a,t){var e=t("0O9c");"string"==typeof e&&(e=[[n.i,e,""]]),e.locals&&(n.exports=e.locals);t("rjj0")("7550056e",e,!0)},x0xk:function(n,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e=t("MZdq"),i=(t("9Zzp"),t("mBCk")),s=t("COE1"),r={mixins:[i.a],data:function(){return{uploading:!1,tips:"请上传名片",formatTips:"图片支持jpg、jpeg、png、bmp、jfif 格式,像素4000*3000以内,最大支持3MB",idCardUrl:"",responseText:"",result:{},idCardBackInfo:{},isShowInfo:!1,types:["image/jpeg","image/png","image/bmp","image/jpg","image/jfif"]}},methods:{upload:function(n){var a=this;this.uploading=!0,this.result={};var t={channelCode:"system",image:n};e.b.businessCardOcr(t).then(function(n){a.uploading=!1,n.data&&n.success?(a.isShowInfo=!0,a.result=n.data,a.responseText=n):(a.isShowInfo=!1,a.$message.error(n.message),a.responseText=n)}).catch(function(n){a.uploading=!1,a.$message.error(a.err),a.result={}})}},components:{responseText:s.a}},l={render:function(){var n=this,a=n.$createElement,t=n._self._c||a;return t("div",{staticClass:"app-container"},[t("el-card",{attrs:{shadow:"hover"}},[t("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t("span",{staticStyle:{"font-size":"14px"}},[n._v("通过上传的名片图片,对图片中各字段的自动定位与识别。")])]),n._v(" "),t("div",{staticClass:"simulator-box"},[t("div",{staticClass:"up-box",staticStyle:{position:"relative"}},[t("img-upload",{attrs:{buttonText:"上传图片",uploading:n.uploading,tips:n.tips,types:n.types,formatTip:n.formatTips,fileSize:3},on:{upload:n.upload}})],1),n._v(" "),t("span",{staticClass:"result-tip-text"},[n._v("识别结果")]),n._v(" "),t("div",{staticClass:"card-box"},[n.isShowInfo?t("ul",{staticClass:"card-info"},[t("li",[n._v("\n 姓名:\n "),t("span",[n._v(n._s(n.result.per?n.result.per[0].data:""))])]),n._v(" "),t("li",[n._v("\n 公司:\n "),t("span",[n._v(n._s(n.result.orgComp?n.result.orgComp[0].data:""))])]),n._v(" "),t("li",[n._v("\n 部门:\n "),t("span",[n._v(n._s(n.result.orgDepart?n.result.orgDepart[0].data:""))])]),n._v(" "),t("li",[n._v("\n 职位:\n "),t("span",[n._v(n._s(n.result.miscPost?n.result.miscPost[0].data:""))])]),n._v(" "),t("li",[n._v("\n 地址:\n "),t("span",[n._v(n._s(n.result.loc?n.result.loc[0].data:""))])]),n._v(" "),t("li",[n._v("\n 邮箱:\n "),t("span",[n._v(n._s(n.result.miscMail?n.result.miscMail[0].data:""))])]),n._v(" "),t("li",[n._v("\n 手机:\n "),t("span",[n._v(n._s(n.result.mobile?n.result.mobile[0].data:""))])]),n._v(" "),t("li",[n._v("\n 电话:\n "),t("span",[n._v(n._s(n.result.phone?n.result.phone[0].data:""))])]),n._v(" "),t("li",[n._v("\n 传真: \n "),t("span",[n._v(n._s(n.result.fax?n.result.fax[0].data:""))])]),n._v(" "),t("li",[n._v("\n QQ/微信:\n "),t("span",[n._v(n._s(n.result.miscSs?n.result.miscSs[0].data:""))])]),n._v(" "),t("li",[n._v("\n 网址:\n "),t("span",[n._v(n._s(n.result.miscWeb?n.result.miscWeb[0].data:""))])])]):n._e(),n._v(" "),n.isShowInfo?n._e():t("span",{staticClass:"none-data"},[n._v("暂无数据")])])])]),n._v(" "),t("response-text",{attrs:{responseText:n.responseText}})],1)},staticRenderFns:[]};var p=t("VU/8")(r,l,!1,function(n){t("gqxl")},"data-v-442f9f14",null);a.default=p.exports}}); |