(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-certify"],{"00dd":function(t,e,n){var a=n("7571");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=n("4f06").default;o("3e8e22f1",a,!0,{sourceMap:!1,shadowMode:!1})},1167:function(t,e,n){"use strict";var a=n("c604"),o=n.n(a);o.a},"1a72":function(t,e,n){"use strict";var a=n("00dd"),o=n.n(a);o.a},"65a8":function(t,e,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.base64ToPath=function(t){return new Promise((function(e,n){if("object"===("undefined"===typeof window?"undefined":(0,o.default)(window))&&"document"in window){t=t.split(",");var a=t[0].match(/:(.*?);/)[1],i=atob(t[1]),r=i.length,s=new Uint8Array(r);while(r--)s[r]=i.charCodeAt(r);return e((window.URL||window.webkitURL).createObjectURL(new Blob([s],{type:a})))}var u=t.match(/data\:\S+\/(\S+);/);u?u=u[1]:n(new Error("base64 error"));var c=Date.now()+"."+u;if("object"!==("undefined"===typeof plus?"undefined":(0,o.default)(plus)))if("object"===("undefined"===typeof wx?"undefined":(0,o.default)(wx))&&wx.canIUse("getFileSystemManager")){var d=wx.env.USER_DATA_PATH+"/"+c;wx.getFileSystemManager().writeFile({filePath:d,data:t.replace(/^data:\S+\/\S+;base64,/,""),encoding:"base64",success:function(){e(d)},fail:function(t){n(t)}})}else n(new Error("not support"));else{var p=new plus.nativeObj.Bitmap("bitmap"+Date.now());p.loadBase64Data(t,(function(){var t="_doc/uniapp_temp/"+c;p.save(t,{},(function(){p.clear(),e(t)}),(function(t){p.clear(),n(t)}))}),(function(t){p.clear(),n(t)}))}}))},e.pathToBase64=function(t){return new Promise((function(e,n){if("object"===("undefined"===typeof window?"undefined":(0,o.default)(window))&&"document"in window){if("function"===typeof FileReader){var a=new XMLHttpRequest;return a.open("GET",t,!0),a.responseType="blob",a.onload=function(){if(200===this.status){var t=new FileReader;t.onload=function(t){e(t.target.result)},t.onerror=n,t.readAsDataURL(this.response)}},a.onerror=n,void a.send()}var i=document.createElement("canvas"),r=i.getContext("2d"),s=new Image;return s.onload=function(){i.width=s.width,i.height=s.height,r.drawImage(s,0,0),e(i.toDataURL()),i.height=i.width=0},s.onerror=n,void(s.src=t)}"object"!==("undefined"===typeof plus?"undefined":(0,o.default)(plus))?"object"===("undefined"===typeof wx?"undefined":(0,o.default)(wx))&&wx.canIUse("getFileSystemManager")?wx.getFileSystemManager().readFile({filePath:t,encoding:"base64",success:function(t){e("data:image/png;base64,"+t.data)},fail:function(t){n(t)}}):n(new Error("not support")):plus.io.resolveLocalFileSystemURL(function(t){if(0===t.indexOf("_www")||0===t.indexOf("_doc")||0===t.indexOf("_documents")||0===t.indexOf("_downloads"))return t;if(0===t.indexOf("file://"))return t;if(0===t.indexOf("/storage/emulated/0/"))return t;if(0===t.indexOf("/")){var e=plus.io.convertAbsoluteFileSystem(t);if(e!==t)return e;t=t.substr(1)}return"_www/"+t}(t),(function(t){t.file((function(t){var a=new plus.io.FileReader;a.onload=function(t){e(t.target.result)},a.onerror=function(t){n(t)},a.readAsDataURL(t)}),(function(t){n(t)}))}),(function(t){n(t)}))}))};var o=a(n("53ca"));n("c975"),n("d3b7"),n("d9e2"),n("d401"),n("ac1f"),n("466d"),n("81b2"),n("0eb6"),n("b7ef"),n("8bd4"),n("ace4"),n("5cc6"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("986a"),n("1d02"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("3ca3"),n("ddb0"),n("2b3d"),n("9861"),n("5319")},7571:function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.idCardBefore[data-v-31c6bbd2]{background:rgba(234,85,45,.1) url(/static/image/user/identy2.png) 50% no-repeat;background-size:auto 70%;padding:%?10?%}.idCardAfter[data-v-31c6bbd2]{background:rgba(234,85,45,.1) url(/static/image/user/identy1.png) 50% no-repeat;background-size:auto 70%;padding:%?10?%}.bankCardImage[data-v-31c6bbd2]{background:rgba(234,85,45,.1) url(/static/image/user/card.png) 50% no-repeat;background-size:auto 70%;padding:%?10?%}.imageBorder[data-v-31c6bbd2]{border:2px solid #ddd;padding:%?10?%}.cardImages > uni-view[data-v-31c6bbd2]{width:%?310?%;height:%?260?%}.cardImages > uni-view > uni-image[data-v-31c6bbd2]{width:100%;height:100%}.IDcardInfo .IDcardNotice[data-v-31c6bbd2],\n.BankCardInfo .BankCardNotice[data-v-31c6bbd2]{text-align:center;height:%?110?%;line-height:%?110?%}.inputView[data-v-31c6bbd2]{border-bottom:1px solid #ddd;height:%?90?%}.inputView > uni-view[data-v-31c6bbd2]:nth-of-type(1){flex-shrink:0;font-size:%?32?%;padding-left:12px;color:#333}.inputView > uni-view:nth-of-type(2) > uni-input[data-v-31c6bbd2]{font-size:%?30?%;color:#999}.BankCardInfo[data-v-31c6bbd2]{background-color:#fff;padding:%?30?%}.popup_box[data-v-31c6bbd2]{width:100%}.popup_title[data-v-31c6bbd2]{display:flex;justify-content:space-between;height:%?88?%;line-height:%?88?%;border-bottom:%?2?% solid #ebebeb;padding:0 %?20?%;background-color:#fff}.popup_title uni-view[data-v-31c6bbd2]{font-size:%?32?%;display:flex;align-items:center}.popup_title uni-text[data-v-31c6bbd2]{width:%?80?%;flex-shrink:0;text-align:center}.popup_title uni-text[data-v-31c6bbd2]{font-size:%?28?%;color:#999}.popup_title uni-text[data-v-31c6bbd2]:last-child{color:#ea552d}.popup_content[data-v-31c6bbd2]{padding:%?40?% %?30?%;background-color:#fff;text-align:center}.popup_content .body[data-v-31c6bbd2]{padding:%?20?% %?30?%}.popup_content .body uni-image[data-v-31c6bbd2]{width:%?540?%}',""]),t.exports=e},"8a6c":function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3");var a={props:{value:{type:Boolean,default:function(){return!1}},hideOnBlur:{type:Boolean,default:function(){return!0}},scroll:{type:Boolean,default:!0},type:{type:String,default:function(){return"bottom"}},offset:{type:Number,default:function(){return 0}},zIndex:{type:Number,default:function(){return 500}},width:{type:String,default:function(){return"600upx"}},radius:{type:String,default:function(){return"0upx"}}},computed:{containerStyle:function(){var t={opacity:this.opacity,width:this.width,"border-radius":this.radius};return this.transform&&(t.transform=this.transform),t}},created:function(){this.systemInfo=uni.getSystemInfoSync(),"undefined"!==typeof this.value&&this.value&&this.setAnimationShow()},watch:{value:function(t){t?this.setAnimationShow():this.setAnimationHide()}},data:function(){return{currentValue:!1,opacity:0,popupTop:"inherit",popupBottom:"inherit",transform:"",systemInfo:{},timer:null}},methods:{onTouchMove:function(t){!this.scroll&&t.preventDefault()},getPxRpx:function(t){var e=750/this.systemInfo.screenWidth;return e*t},setAnimationShow:function(){var t=this;this.currentValue=!0,this.$nextTick((function(){setTimeout((function(){t.timer&&clearTimeout(t.timer),t.$emit("input",!0),t.$emit("change",!0),"bottom"==t.type?(t.animationParsing({translateY:0,defaulTranslateY:1,opacity:1}),t.popupTop="0rpx",t.offset>0?t.popupBottom=t.offset+"rpx":t.popupBottom=t.getPxRpx(t.systemInfo.windowBottom)+"rpx"):"center"==t.type?(t.popupTop="0rpx",t.popupBottom="0rpx",t.animationParsing({scale:1,defaulScale:0,opacity:1})):"top"==t.type&&(t.animationParsing({defaulTranslateY:-1,translateY:0,opacity:1}),t.popupBottom="0rpx",t.offset>0?(t.popupTop=t.offset+t.getPxRpx(t.systemInfo.statusBarHeight)+"rpx",t.maskTop=t.popupTop):(t.popupTop="0rpx",t.maskTop="0rpx"))}))}))},setAnimationHide:function(){var t=this;this.timer&&clearTimeout(this.timer),this.timer=setTimeout((function(){t.currentValue=!1,t.$emit("input",!1),t.$emit("change",!1)}),300),"bottom"==this.type?(this.animationParsing({defaulTranslateY:0,translateY:1,opacity:0}),this.timer=setTimeout((function(){t.popupTop="inherit",t.popupBottom="0rpx",t.maskTop="0rpx",t.maskBottom="0rpx"}),300)):"center"==this.type?(this.popupTop="0rpx",this.popupBottom="0rpx",this.animationParsing({scale:0,defaulScale:1,opacity:0})):"top"==this.type&&(this.animationParsing({defaulTranslateY:0,translateY:-1,opacity:0}),this.timer=setTimeout((function(){t.popupTop="0rpx",t.popupBottom="inherit",t.maskTop="0rpx",t.maskBottom="0rpx"}),300))},animationParsing:function(t){var e="";t.hasOwnProperty("translateX")&&(e+=" translateX("+100*t.translateX+"%)"),t.hasOwnProperty("translateY")&&(e+=" translateY("+100*t.translateY+"%)"),t.hasOwnProperty("scale")&&(e+=" scale("+t.scale+")"),this.opacity=t.opacity,this.transform=e}}};e.default=a},a18d:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.currentValue?n("v-uni-view",{staticClass:"popup_view",class:{popup_view_bottom:"bottom"==t.type,popup_view_center:"center"==t.type,popup_view_top:"top"==t.type},style:{top:t.popupTop,bottom:t.popupBottom,zIndex:t.zIndex},on:{touchmove:function(e){arguments[0]=e=t.$handleEvent(e),t.onTouchMove.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"popup_mask",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.hideOnBlur&&t.setAnimationHide()}}}),n("v-uni-view",{ref:"popupContainer",staticClass:"popup_container",class:{popup_container_bottom:"bottom"==t.type,popup_container_center:"center"==t.type,popup_container_top:"top"==t.type},style:t.containerStyle},[t._t("default")],2)],1):t._e()},o=[]},a877:function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.popup_view[data-v-30ef55e4]{position:fixed;z-index:500;top:0;right:0;left:0;bottom:0;display:flex;flex-direction:row}.popup_view_bottom[data-v-30ef55e4]{align-items:flex-end;justify-content:center}.popup_view_top[data-v-30ef55e4]{align-items:flex-start;justify-content:center}.popup_view_center[data-v-30ef55e4]{align-items:center;justify-content:center}\n/*遮罩层*/.popup_mask[data-v-30ef55e4]{position:absolute;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.5)}.popup_container[data-v-30ef55e4]{max-width:100vw;max-height:100vh;min-height:%?50?%;transition:all .4s;z-index:2;z-index:501;opacity:0;font-size:%?28?%;position:relative;overflow:hidden}.popup_container_bottom[data-v-30ef55e4]{-webkit-transform:translateY(100%);transform:translateY(100%);width:%?750?%}.popup_container_top[data-v-30ef55e4]{-webkit-transform:translateY(-100%);transform:translateY(-100%);width:%?750?%}',""]),t.exports=e},c134:function(t,e,n){"use strict";n.r(e);var a=n("a18d"),o=n("e388");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("1167");var r=n("f0c5"),s=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"30ef55e4",null,!1,a["a"],void 0);e["default"]=s.exports},c1acc:function(t,e,n){"use strict";n.r(e);var a=n("cbc1"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},c604:function(t,e,n){var a=n("a877");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=n("4f06").default;o("07cf26df",a,!0,{sourceMap:!1,shadowMode:!1})},c7d3:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"page"},[n("public-module"),n("v-uni-view",{staticClass:"IDcardInfo p-3 mb-3",staticStyle:{"background-color":"#FFFFFF"}},[n("v-uni-view",{staticClass:"inputView d-flex"},[n("v-uni-view",{staticClass:"d-flex a-center"},[t._v("姓名")]),n("v-uni-view",{staticClass:"d-flex a-center"},[n("v-uni-input",{attrs:{placeholder:"请输入姓名"},model:{value:t.staffInfo.name,callback:function(e){t.$set(t.staffInfo,"name",e)},expression:"staffInfo.name"}})],1)],1),t.contentSlot?n("v-uni-view",{staticClass:"warp"},[n("v-uni-view",{staticClass:"mt-1 position-relative border-bottom"},[n("v-uni-view",{staticClass:"position-absolute d-flex a-center j-center left-0 top-0 font-weight",staticStyle:{width:"100rpx",height:"100%"}},[t._v("+86")]),n("v-uni-input",{staticClass:"uni-input common-input",staticStyle:{"padding-left":"100rpx"},attrs:{type:"text",placeholder:"手机号"},model:{value:t.staffInfo.phone,callback:function(e){t.$set(t.staffInfo,"phone",e)},expression:"staffInfo.phone"}})],1),n("v-uni-view",{staticClass:"mt-2 position-relative border-bottom"},[n("v-uni-input",{staticClass:"uni-input common-input",staticStyle:{"padding-right":"240rpx"},attrs:{type:"text",maxlength:"4",placeholder:"请输入验证码"},model:{value:t.staffInfo.phoneMsg,callback:function(e){t.$set(t.staffInfo,"phoneMsg",e)},expression:"staffInfo.phoneMsg"}}),n("v-uni-view",{staticClass:"position-absolute top-0 right-0 d-flex a-center j-center text-light-muted",staticStyle:{width:"240rpx",height:"100%"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getCheckNum1.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"d-flex a-center j-center ",class:t.codetime?"yanzhengmaView2":"yanzhengmaView1 main-text-color"},[t._v(t._s(t.codetime?t.codetime+" S后重新获取":"获取验证码"))])],1)],1)],1):t._e()],1),n("v-uni-button",{staticClass:"mx-3 my-5 d-flex a-center j-center main-bg-color",attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[t._v("提 交")])],1)},o=[]},cbc1:function(t,e,n){"use strict";(function(t){n("7a82");var a=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("ac1f"),n("00b4");var o=a(n("c7eb")),i=a(n("1da1")),r=a(n("5530")),s=n("26cb"),u=(a(n("e5ed")),n("65a8"),a(n("c134"))),c={components:{zPopup:u.default},data:function(){return{IdCardBefore:"",staffInfo:{name:"",phone:"",phoneMsg:"",jobNumber:""},contentSlot:!0,codetime:0}},computed:(0,r.default)({},(0,s.mapState)(["userInfo","userCheckInfo"])),onLoad:function(){this.staffInfo.jobNumber=this.userInfo.sysUser.id,t.log(this.userInfo.sysUser.id),t.log(this.staffInfo.jobNumber)},methods:(0,r.default)((0,r.default)({},(0,s.mapMutations)(["setUserModules"])),{},{getCheckNum1:function(){var e=this;return(0,i.default)((0,o.default)().mark((function n(){var a,i;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(uni.hideKeyboard(),!(e.codetime>0)){n.next=3;break}return n.abrupt("return");case 3:if(e.staffInfo.phone){n.next=5;break}return n.abrupt("return",uni.showToast({title:"请输入手机号",icon:"none"}));case 5:if(e.$base.phoneRegular.test(e.staffInfo.phone)){n.next=7;break}return n.abrupt("return",uni.showToast({title:"请输入正确的手机号码",icon:"none"}));case 7:return n.next=9,e.$http.get("/sendMsg",{phone:e.staffInfo.phone,type:"1"});case 9:if(a=n.sent,t.log(a),200==a.code){n.next=15;break}return n.abrupt("return",uni.showToast({title:a.msg,icon:"none"}));case 15:uni.showToast({title:"发送成功",icon:"none"});case 16:e.codetime=60,i=setInterval((function(){e.codetime--,e.codetime<1&&(clearInterval(i),e.codetime=0)}),1e3);case 18:case"end":return n.stop()}}),n)})))()},isName:function(){return/^([\u4e00-\u9fa5]{1,6}|[a-zA-Z\.\s]{1,6})$/.test(this.staffInfo.name)},submit:function(){var e=this;return(0,i.default)((0,o.default)().mark((function n(){var a,i,r;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.isName()){n.next=2;break}return n.abrupt("return",uni.showToast({title:"请输入正确的姓名",icon:"none"}));case 2:return a={sysUser:{},esmUserInternal:{},esmUserAgent:{}},Object.assign(a.sysUser,e.userInfo.sysUser),Object.assign(a.esmUserInternal,e.userInfo.esmUserInternal),Object.assign(a.esmUserAgent,e.userInfo.esmUserAgent),a.sysUser.name=e.staffInfo.name,a.sysUser.phone=e.staffInfo.phone,a.sysUser.jobCode="17",n.next=11,e.$http.post("/wechat/bindPhone",e.staffInfo);case 11:i=n.sent,t.log(i),200==i.code?(e.setUserModules({title:"userInfo",data:a}),setTimeout((function(){return uni.reLaunch({url:"/pages/index/index"})}),500)):"10100"==i.code?(r=e,uni.showToast({title:i.msg,icon:"none",duration:2e3}),uni.login({provider:"weixin",scopes:"auth_user",onlyAuthorize:!0,success:function(t){r.codeRes(t)}})):uni.showToast({title:i.msg,icon:"none",duration:2e3});case 14:case"end":return n.stop()}}),n)})))()},codeRes:function(t){var e=this;return(0,i.default)((0,o.default)().mark((function n(){return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.$login({url:"/wechat/login",data:{code:t.code}}).then((function(t){socket.init()}));case 1:case"end":return n.stop()}}),n)})))()}})};e.default=c}).call(this,n("5a52")["default"])},e388:function(t,e,n){"use strict";n.r(e);var a=n("8a6c"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},f7c8:function(t,e,n){"use strict";n.r(e);var a=n("c7d3"),o=n("c1acc");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("1a72");var r=n("f0c5"),s=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"31c6bbd2",null,!1,a["a"],void 0);e["default"]=s.exports}}]);