mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
4f79e10bd6
Former-commit-id: 376f94edd602d3dfed1cbada6e08361ee7b08e73
1 line
7.0 KiB
JavaScript
1 line
7.0 KiB
JavaScript
webpackJsonp([194],{"6aa3":function(t,e,n){var a=n("oFJe");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("40eebf58",a,!0)},oFJe: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-074ea0d2] {\n width: 386px;\n}\n.card-box[data-v-074ea0d2] {\n width: 386px;\n}\n.avatar[data-v-074ea0d2] {\n max-width: 386px;\n}\n.two-li[data-v-074ea0d2] {\n margin-left: 40px;\n}\n}\n@media screen and (min-width: 1590px) {\n.up-box[data-v-074ea0d2] {\n width: 486px;\n}\n.card-box[data-v-074ea0d2] {\n width: 486px;\n}\n.avatar[data-v-074ea0d2] {\n max-width: 486px;\n}\n.two-li[data-v-074ea0d2] {\n margin-left: 80px;\n}\n}\n.none-data[data-v-074ea0d2] {\n font-size: 16px;\n color: #74777c;\n line-height: 308px;\n}\n.card-box[data-v-074ea0d2] {\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-074ea0d2] {\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-074ea0d2]:hover {\n border-color: #409eff;\n}\n.avatar-uploader-icon[data-v-074ea0d2] {\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-074ea0d2] {\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-074ea0d2] {\n max-height: 335px;\n vertical-align: middle;\n text-align: center;\n margin-top: -5px;\n}\n.card-info[data-v-074ea0d2] {\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-074ea0d2] {\n font-size: 14px;\n line-height: 30px;\n}\n.card-info li span[data-v-074ea0d2] {\n font-size: 14px;\n}\n.card-info li div[data-v-074ea0d2] {\n display: inline-block;\n}\n.card-info li .item-title[data-v-074ea0d2] {\n margin-right: 20px;\n width: 180px;\n}\nli[data-v-074ea0d2] {\n list-style: none;\n line-height: 30px;\n}\n.simulator-box[data-v-074ea0d2] {\n position: relative;\n min-height: 280px;\n width: 1500px;\n}\n.simulator-box .result-tip-text[data-v-074ea0d2] {\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-074ea0d2] .el-upload--picture-card {\n width: 170px;\n height: 170px;\n}\n[data-v-074ea0d2] .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-074ea0d2] .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-074ea0d2] {\n height: 147px;\n width: 110px;\n margin-bottom: 13px;\n margin-right: 24px;\n background: url("+n("gpWv")+") center no-repeat;\n}\n.card-avatar[data-v-074ea0d2] {\n display: inline-block;\n position: absolute;\n right: 23px;\n top: 25px;\n}\n.card-avatar img[data-v-074ea0d2] {\n max-height: 110px;\n max-width: 110px;\n}\n",""])},uxM1:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("MZdq"),i=(n("9Zzp"),n("mBCk")),r=n("COE1"),d={mixins:[i.a],data:function(){return{tips:"请上传车辆图片",formatTips:"图片支持jpg、jpeg、png、bmp、jfif 格式,像素4000*3000以内,最大支持3MB",idCardUrl:"",responseText:"",vehicleAttribute:{},idCardBackInfo:{},isShowInfo:!1,types:["image/jpeg","image/png","image/bmp","image/jpg","image/jfif"]}},methods:{upload:function(t){var e=this,n={channelCode:"system",image:t};a.b.vehicleProperties(n).then(function(t){if(t.data&&t.success){e.isShowInfo=!0;for(var n=t.data.vehicleAttributeInfos,a=0;a<n.length;a++)e.vehicleAttribute[n[a].attributeKey]={attributeDescription:n[a].attributeDescription,attributeScore:n[a].attributeScore};e.responseText=t}else e.isShowInfo=!1,e.$message.error(t.message),e.responseText=t})}},components:{responseText:r.a}},l={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",{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("span",{staticClass:"result-tip-text"},[t._v("识别结果")]),t._v(" "),n("div",{staticClass:"card-box"},[t.isShowInfo?n("ul",{staticClass:"card-info"},[n("li",[n("div",{staticClass:"item-title"},[t._v("\n 颜色:\n "),n("span",[t._v(t._s(t.vehicleAttribute.vehicleColor?t.vehicleAttribute.vehicleColor.attributeDescription:""))])]),t._v(" "),n("div",[t._v("\n 识别分:\n "),n("span",[t._v(t._s(t.vehicleAttribute.vehicleColor?t.vehicleAttribute.vehicleColor.attributeScore:""))])])]),t._v(" "),n("li",[n("div",{staticClass:"item-title"},[t._v("\n 车型:\n "),n("span",[t._v(t._s(t.vehicleAttribute.vehicleType?t.vehicleAttribute.vehicleType.attributeDescription:""))])]),t._v(" "),n("div",[t._v("\n 识别分:\n "),n("span",[t._v(t._s(t.vehicleAttribute.vehicleType?t.vehicleAttribute.vehicleType.attributeScore:""))])])]),t._v(" "),n("li",[n("div",{staticClass:"item-title"},[t._v("\n 品牌:\n "),n("span",{staticStyle:{"margin-right":"54px"}},[t._v(t._s(t.vehicleAttribute.vehicleBrand?t.vehicleAttribute.vehicleBrand.attributeDescription:""))])]),t._v(" "),n("div",[t._v("\n 识别分:\n "),n("span",[t._v(t._s(t.vehicleAttribute.vehicleBrand?t.vehicleAttribute.vehicleBrand.attributeScore:""))])])]),t._v(" "),n("li",[n("div",{staticClass:"item-title"},[t._v("\n 方向:\n "),n("span",{staticStyle:{"margin-right":"54px"}},[t._v(t._s(t.vehicleAttribute.direction?t.vehicleAttribute.direction.attributeDescription:""))])]),t._v(" "),n("div",[t._v("\n 识别分:\n "),n("span",[t._v(t._s(t.vehicleAttribute.direction?t.vehicleAttribute.direction.attributeScore:""))])])])]):t._e(),t._v(" "),t.isShowInfo?t._e():n("span",{staticClass:"none-data"},[t._v("暂无数据")])])])]),t._v(" "),n("response-text",{attrs:{responseText:t.responseText}})],1)},staticRenderFns:[]};var o=n("VU/8")(d,l,!1,function(t){n("6aa3")},"data-v-074ea0d2",null);e.default=o.exports}}); |