1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
!function(t){var e={};function o(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=25)}([function(t,e,o){"use strict";function n(t,e,o,n,r,a,i,s,c,l){var u,f="function"==typeof t?t.options:t;if(c){f.components||(f.components={});var p=Object.prototype.hasOwnProperty;for(var d in c)p.call(c,d)&&!p.call(f.components,d)&&(f.components[d]=c[d])}if(l&&((l.beforeCreate||(l.beforeCreate=[])).unshift((function(){this[l.__module]=this})),(f.mixins||(f.mixins=[])).push(l)),e&&(f.render=e,f.staticRenderFns=o,f._compiled=!0),n&&(f.functional=!0),a&&(f._scopeId="data-v-"+a),i?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},f._ssrRegister=u):r&&(u=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),u)if(f.functional){f._injectStyles=u;var g=f.render;f.render=function(t,e){return u.call(e),g(t,e)}}else{var h=f.beforeCreate;f.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:f}}o.d(e,"a",(function(){return n}))},function(t,e){t.exports={bgLightBlue:{backgroundColor:"#f3f5fd"},fullHeight:{height:100},bgWhite:{backgroundColor:"#FFFFFF"},btn:{borderRadius:"3"},primaryText:{color:"#5181F6"},primaryText2:{color:"#F49006"},primaryText3:{color:"#44D7B6"},primaryText4:{color:"#F67F51"},primaryText5:{color:"#7851F6"},redText:{color:"#EA3941"},fixedHeaderBox:{position:"fixed",top:0,left:0,width:100,backgroundColor:"#FFFFFF",zIndex:2},headerBox:{height:"44",alignItems:"center",backgroundColor:"#FFFFFF",color:"#2a2b5b",justifyContent:"center",position:"relative",zIndex:2,borderBottomWidth:"1",borderBottomStyle:"solid",borderBottomColor:"rgba(194,194,194,0.2)",fontSize:"16"},fixedHeaderPageContent:{paddingTop:"48"},"scroll-view_H":{whiteSpace:"nowrap",paddingTop:0,paddingRight:"20",paddingBottom:0,paddingLeft:0,backgroundColor:"#FFFFFF"},blockBox:{backgroundColor:"#FFFFFF",paddingTop:"10",paddingRight:"10",paddingBottom:"10",paddingLeft:"10",marginTop:"10",marginRight:0,marginBottom:"10",marginLeft:0},dataBox:{display:"flex",alignItems:"center"},placeholderBox:{marginTop:"100",marginBottom:"100",textAlign:"center"},modalBox:{position:"fixed",backgroundColor:"rgba(0,0,0,0.5)",width:100,height:100,top:0,left:0,color:"#262D47"},formBox:{marginTop:"20",marginRight:"15",marginBottom:"20",marginLeft:"15"},formBox2:{marginTop:"30",marginRight:"20",marginBottom:"10",marginLeft:"20"},cl:{color:"rgba(42,43,91,0.3)"},"uni-select":{display:"flex",alignItems:"center",justifyContent:"space-between"},star:{color:"#dd524d",marginRight:"5",fontSize:"16",verticalAlign:"middle"},submitBtn:{borderRadius:"40",marginTop:"30",height:"40",lineHeight:"40",borderWidth:"1",borderStyle:"solid",borderColor:"#2b8df3"},deleteBtn:{borderRadius:"40",height:"40",lineHeight:"40",borderWidth:"1",borderStyle:"solid",borderColor:"#e64340",color:"#e64340",backgroundColor:"#FFFFFF",marginTop:"15"},"@VERSION":2}},function(t,e,o){"use strict";o.r(e);var n=o(0),r=Object(n.a)({},void 0,void 0,!1,null,null,"f27202b2",!1,void 0,void 0);e.default=r.exports},function(t,e,o){"use strict";var n=o(15),r=o(6),a=o(0);var i=Object(a.a)(r.default,n.b,n.c,!1,null,"52bf4538","069b846e",!1,n.a,void 0);(function(t){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(o(22).default,this.options.style):Object.assign(this.options.style,o(22).default)}).call(i),e.default=i.exports},,function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,o){"use strict";var n=o(7),r=o.n(n);e.default=r.a},function(t,e,o){"use strict";(function(t){var n=o(5);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;n(o(2));var r={data:function(){return{fil:!0,imgList:[""],statusBar:"",CustomBar:0,tips:"\u8bf7\u5c06\u4eba\u8138\u653e\u7f6e\u5728\u6b63\u4e2d\u95f4",faceScore:0}},onLoad:function(t){this.faceScore=t.faceScore},onReady:function(){this.context=uni.createLivePusherContext("livePusher",this);var e=this;uni.getSystemInfo({success:function(o){e.statusBar=o.statusBarHeight,"android"==o.platform?e.CustomBar=o.statusBarHeight+50:e.CustomBar=o.statusBarHeight+45,t("log",e.statusBar," at pages/projectEnd/laborManage/faceRecognition.nvue:53")}}),this.startPreview()},methods:{Timer:function(){},statechange:function(e){t("log","statechange:"+JSON.stringify(e)," at pages/projectEnd/laborManage/faceRecognition.nvue:71")},netstatus:function(e){t("log","netstatus:"+JSON.stringify(e)," at pages/projectEnd/laborManage/faceRecognition.nvue:74")},error:function(e){t("log","error:"+JSON.stringify(e)," at pages/projectEnd/laborManage/faceRecognition.nvue:77")},start:function(){this.context.start({success:function(e){t("log","livePusher.start:"+JSON.stringify(e)," at pages/projectEnd/laborManage/faceRecognition.nvue:82")}})},close:function(){this.context.close({success:function(e){t("log","livePusher.close:"+JSON.stringify(e)," at pages/projectEnd/laborManage/faceRecognition.nvue:89")}})},snapshot:function(){var e=this;this.context.snapshot({success:function(o){t("log",JSON.stringify(o)," at pages/projectEnd/laborManage/faceRecognition.nvue:98"),e.getMinImage(o.message.tempImagePath)}})},startPreview:function(){t("log","1"," at pages/projectEnd/laborManage/faceRecognition.nvue:107");var e=this;this.context.startPreview({success:function(o){t("log","livePusher.startPreview:"+JSON.stringify(o)," at pages/projectEnd/laborManage/faceRecognition.nvue:111"),setTimeout((function(){e.snapshot()}),2e3)}})},faceComparison:function(e){var o=this,n=JSON.parse(uni.getStorageSync("userInfo")).workerId;uni.request({url:getApp().globalData.siteUrl+"xmgl/recognition/faceComparison?lang="+uni.getStorageSync("language"),data:{faceScore:this.faceScore,fileUrl:e,workerId:n},method:"POST",success:function(n){if(t("log","\u6bd4\u5bf9\u7ed3\u679c",n," at pages/projectEnd/laborManage/faceRecognition.nvue:142"),500==n.data.code)setTimeout((function(){o.snapshot()}),2e3);else{uni.showToast({title:"\u8bc6\u522b\u6210\u529f\uff01"});var r=getCurrentPages();r[r.length-2].$vm.photoUrl=e,uni.navigateBack({delta:1})}o.tips=n.data.message},fail:function(e){t("log","fail",e," at pages/projectEnd/laborManage/faceRecognition.nvue:169")}})},getMinImage:function(e){var o=this;plus.zip.compressImage({src:e,dst:e,overwrite:!0,quality:40},(function(e){setTimeout((function(){var n=new plus.io.FileReader;n.onloadend=function(e){var n=e.target.result;t("log",getApp().globalData.siteUrl+"upload/uploadBase64"," at pages/projectEnd/laborManage/faceRecognition.nvue:190"),uni.request({url:getApp().globalData.siteUrl+"upload/uploadBase64",data:{base64Image:n},method:"POST",header:{"content-type":"application/x-www-form-urlencoded"},success:function(e){t("log","obj",e," at pages/projectEnd/laborManage/faceRecognition.nvue:201"),o.faceComparison(e.data.data.imageUrl)},fail:function(e){t("log","fail",e," at pages/projectEnd/laborManage/faceRecognition.nvue:206")}})},n.readAsDataURL(plus.io.convertLocalFileSystemURL(e.target))}),1e3)}),(function(e){t("log","Compress error!",e," at pages/projectEnd/laborManage/faceRecognition.nvue:219")}))},BackPage:function(){uni.navigateBack({delta:1})}}};e.default=r}).call(this,o(21).default)},function(t,e){t.exports={custom:{backgroundColor:"#5181F6"},navcontent:{height:"45",display:"flex",justifyContent:"space-between",flexDirection:"row",color:"#FFFFFF"},livePusher:{width:"375",height:"375",backgroundColor:"rgb(204,204,204)"},livefater:{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center",marginTop:"50rpx",marginBottom:"50rpx",height:"350"},gaiimg:{width:"375",height:"375",marginTop:"-375"},tips:{justifyContent:"center",flexDirection:"row"},"@VERSION":2}},,,,,,,function(t,e,o){"use strict";o.d(e,"b",(function(){return r})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){return n}));var n={uniIcons:o(2).default},r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[o("view",[o("div",{staticClass:["custom"],style:{height:t.CustomBar+"px"}},[o("view",{staticClass:["navcontent"],style:[{top:t.statusBar+"px"}]},[o("uni-icons",{staticClass:["backImg"],staticStyle:{lineHeight:"45px",paddingLeft:"15px"},attrs:{type:"arrowleft",size:"28",color:"white"},on:{click:t.BackPage}}),o("u-text",{staticStyle:{color:"#FFFFFF",fontSize:"16px",lineHeight:"45px"},appendAsTree:!0,attrs:{append:"tree"}},[t._v("\u4eba\u8138\u8bc6\u522b")]),o("u-text",{staticStyle:{opacity:"0"},appendAsTree:!0,attrs:{append:"tree"}},[t._v("\u8fd4\u56de")])],1)]),o("div",{staticClass:["livefater"]},[o("div",{staticStyle:{width:"375px",height:"375px",borderRadius:"350px",overflow:"hidden"}},[o("live-pusher",{ref:"livePusher",staticClass:["livePusher"],attrs:{id:"livePusher",url:"",mode:"SD",muted:!0,enableCamera:!0,autoFocus:!0,beauty:1,whiteness:"2",aspect:"1:1"},on:{statechange:t.statechange,netstatus:t.netstatus,error:t.error}})],1),o("cover-image",{staticClass:["gaiimg"],attrs:{src:"/static/circleBox.png"}})],1),o("div",{staticClass:["tips"]},[o("u-text",[t._v(t._s(t.tips))])])])])},a=[]},,,function(t,e,o){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(o(19).default,Vue.prototype.__$appStyle__)},function(t,e,o){"use strict";o.r(e);var n=o(1),r=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e.default=r.a},function(t,e){if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(o){return e.resolve(t()).then((function(){return o}))}),(function(o){return e.resolve(t()).then((function(){throw o}))}))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){var o=uni.requireGlobal();ArrayBuffer=o.ArrayBuffer,Int8Array=o.Int8Array,Uint8Array=o.Uint8Array,Uint8ClampedArray=o.Uint8ClampedArray,Int16Array=o.Int16Array,Uint16Array=o.Uint16Array,Int32Array=o.Int32Array,Uint32Array=o.Uint32Array,Float32Array=o.Float32Array,Float64Array=o.Float64Array,BigInt64Array=o.BigInt64Array,BigUint64Array=o.BigUint64Array}},function(t,e,o){"use strict";function n(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function r(){return"string"==typeof __channelId__&&__channelId__}function a(t,e){switch(n(e)){case"Function":return"function() { [native code] }";default:return e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];var i=e.shift();if(r())return e.push(e.pop().replace("at ","uni-app:///")),console[i].apply(console,e);var s=e.map((function(t){var e=Object.prototype.toString.call(t).toLowerCase();if("[object object]"===e||"[object array]"===e)try{t="---BEGIN:JSON---"+JSON.stringify(t,a)+"---END:JSON---"}catch(o){t=e}else if(null===t)t="---NULL---";else if(void 0===t)t="---UNDEFINED---";else{var o=n(t).toUpperCase();t="NUMBER"===o||"BOOLEAN"===o?"---BEGIN:"+o+"---"+t+"---END:"+o+"---":String(t)}return t})),c="";if(s.length>1){var l=s.pop();c=s.join("---COMMA---"),0===l.indexOf(" at ")?c+=l:c+="---COMMA---"+l}else c=s[0];console[i](c)},e.log=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];console[t].apply(console,o)}},function(t,e,o){"use strict";o.r(e);var n=o(8),r=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e.default=r.a},,,function(t,e,o){"use strict";o.r(e);o(18),o(20);var n=o(3);n.default.mpType="page",n.default.route="pages/projectEnd/laborManage/faceRecognition",n.default.el="#root",new Vue(n.default)}]); |