chunk-0855327f.1576505904923.js 16.2 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0855327f"],{"0964":function(t,i,e){},"2bab":function(t,i,e){"use strict";var s=e("5397"),o=e.n(s);o.a},3082:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAMCAYAAAC0qUeeAAAA1UlEQVQokX3QIUtDURjG8d+dIihYBNMMwpCF+QEMNocYTLJ0FdGBX2FfwqhJtmIQxCFYbQOj1WAWBsKQgVH0GnwvHAbXf3kPD//DeZ+TTfOGYAE9HGEZn7jGOb6gFuIcHrCObdRjbmCILJU7KHCGSWQTdLGIg1RuYxAXUorId1P5RzVZeSjlEQ4rxGM8pvItlnCBlchWcRWv3qfyN06wj3eM8YS3KFfMFnyOMk2sxbzEC7ZgPsI+dvA6s/MHcn9/3c6meWOIu9i7ilPs1dAqC/zDDTZ/AdA9KrVTzbxKAAAAAElFTkSuQmCC"},5397:function(t,i,e){},6373:function(t,i,e){"use strict";var s=e("0964"),o=e.n(s);o.a},"7f3b":function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAPCAYAAAAGRPQsAAABp0lEQVQ4jY3TTYhNcRjH8c893WEjL0Wm1CiTIg1FInVNmgUlKWXBeIlM8paMYqMJGxYWpohiNaMsxoamWcwCCxKSzGwoUbJQ1GUlNMbi//x1THMnvzqdznPO//u8/J5T+bqzVWgbjmI1KhjBNdzCuH/VjZ+4Ug5W434Z29GD/fiNdpzDZnRiLJJcChg040wZtidAa/CxlKgfg3iC4+jFDXRErI4uzIz340W0dnYCKKsemY9gFVZgPd7HGNqxAUtyZcvxeBJQ1iMswmgAy3qNtvxQ4BvmTgGbhx9xNWELlmIlatIc/8IGcWAKWBeGsBZvJLNe4ZPk9Assy7Dz2CTNrVqCFDghGdSPYVzFYuzDXrTiHh6gpRJ71obbmIGH0mrUpP3qlEz4gGMNqu/Dr1zJqORUB05hNg7jfgA3SsvcSDcxUJRaqkVFn/E9gFsxB9Mj3khfMCtX1oyL0swWYBpOB/wt3kWygQawdRiplP7NrAtokWaV1Y2DkqP1Cd/Px1P0FP5PvXgprcHuSLZQcvUZ7qKvOsnBIantssawA7twCNclY57jJO7AH/fhX5eMwlinAAAAAElFTkSuQmCC"},8335:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAA1klEQVQokZXPoUqDYRTG8d/3+YoGsW9N1mTaNchARe9AWLDYBgoWi8GbsGg3CQYxGIziBSwsegkyYVU0+DpeDjL9nvTwP+cP51TjfkfII/b/YgkbuMRKZst4C2LJXnGccI0DjPLgBZtBLNkqbmpUhQRb8fbARphPaOHql+VZaSW847ahuJswwVNDcVIHsIde7tvYyb2XZ9NEcR3d3NeK3s2zaVIQ7/CR+33BHzA3S7zw/fMA55kd4QxLOPxZrMb9zjCe8Y8Mayyi3UBqYyHhFM/4bCCffAH4hyNSHFS3egAAAABJRU5ErkJggg=="},d2228:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAMCAYAAACEJVa/AAAA+0lEQVQokZXRQStEYRTG8d+9pllYTVNExOKGBQufwjewudnJJxArs2AlUrKz5WPIxs5iUhoWsh+lGXeDsjAW86brjrlx6tTbOe/z73k6UZYmVRxiDXV/rxecYyvGAeaxhOgfvRh0e1GWJp0AaGMBm/jAKPbxUOJmEq1KiNAO9AY28B4gZ1jF5xBIhHolN5jFXQDAG24wFT4PrTzkGTOFfYIOeiVOfkBe0cQRLrCCq+Cs1Emce1exHAQ1nGAcI7k/vUIPxNnVv/t1btbETth92//NSVf/VLUCAC4xVpJkAt0oS5NjzGEdTyWCYk3jFK0Y23jEvcHMZX0bdI0vl9c/F1Eh42QAAAAASUVORK5CYII="},f72f:function(t,i,e){"use strict";var s=function(){var t=this,i=t.$createElement,s=t._self._c||i;return t.showPanel?s("div",[t.showUnAuth?s("div",[s("div",{staticClass:"alert"},[s("img",{staticClass:"icon",attrs:{src:e("a164"),alt:""}}),s("div",{staticClass:"txt"},[t._v("\n        "+t._s(t.$t("customService.unauth.tips"))+"\n        "),s("span",{staticClass:"pointer btn",on:{click:t.gotoLoginPage}},[t._v(t._s(t.$t("customService.unauth.login")))]),t._v(" "+t._s(t.$t("customService.unauth.or"))+"\n        "),s("span",{staticClass:"pointer btn",on:{click:t.gotoRegisterPage}},[t._v(t._s(t.$t("customService.unauth.register")))])]),"suggest"==t.model?s("img",{staticClass:"pointer close",attrs:{src:e("ddb8"),alt:""},on:{click:function(i){t.showSuggest=!1}}}):t._e()])]):t._e(),t.showProfileInfo?s("div",[s("div",{staticClass:"alert"},[s("img",{staticClass:"icon",attrs:{src:e("a164"),alt:""}}),s("div",{staticClass:"txt"},[t._v("\n        "+t._s(t.$t("customService.unauth.baseInfoTip"))+"\n        "),s("span",{staticClass:"pointer btn",on:{click:t.gotoInformationPage}},[t._v(t._s(t.$t("customService.unauth.infoBtn")))])])])]):t._e(),"suggest"!=t.model?s("div",{staticClass:"empty-line"}):t._e()]):t._e()},o=[],n=(e("efce"),e("4634"),e("ed8b"),e("7cfd"),e("97a3")),a=e("591a");function r(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);i&&(s=s.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,s)}return e}function c(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?r(e,!0).forEach((function(i){Object(n["a"])(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):r(e).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}var l={props:{model:{type:String,default:"auth"},checkProfile:{type:Boolean,default:!1}},data:function(){return{key:"value",showProfileInfo:!1,showUnAuth:!1,showSuggest:!0}},components:{},computed:c({},Object(a["c"])({userInfo:function(t){return t.userInfo}}),{locale:function(){return this.$i18n.locale||"tc"},i18n:function(){return this.$i18n.messages&&this.$i18n.locale?this.$i18n.messages[this.$i18n.locale]:{}},showPanel:function(){var t="auth"==this.model&&(this.showProfileInfo||this.showUnAuth),i="suggest"==this.model&&this.showSuggest;return t||i}}),methods:{initData:function(){this.userInfo&&this.userInfo.name?this.loginAction():this.logoutAction()},loginAction:function(){this.showUnAuth=!1,this.checkProfile?1==this.userInfo.hadFullInfo?this.$emit("onLogin",this.userInfo):this.showProfileInfo=!0:this.$emit("onLogin",this.userInfo)},logoutAction:function(){this.showUnAuth=!0,this.showProfileInfo=!1,this.$emit("onLogout",{})},gotoLoginPage:function(){var t=this.$route.path,i="?";for(var e in this.$route.query)t+=i+e+"="+this.$route.query[e],i="&";this.$router.push({path:"/login?callback="+t})},gotoRegisterPage:function(){this.$router.push({path:"/register"})},gotoInformationPage:function(){this.$router.push({path:"/infomation/improve"})},noAuth:function(){this.$store.commit("SET_USER_INFO",null),this.initData(),this.$emit("onLogout",{})}},mounted:function(){this.initData()},created:function(){},watch:{userInfo:function(t){t&&t.name?this.loginAction():this.logoutAction()}}},u=l,m=(e("2bab"),e("6691")),d=Object(m["a"])(u,s,o,!1,null,"d02776a8",null);i["a"]=d.exports},ffae:function(t,i,e){"use strict";e.r(i);var s=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",[s("modal-simple-comp",{attrs:{visible:t.modalSimpleVisiable,"show-confirm":!1,icon:t.modalIcon,content:t.modalContent,confirm:t.closeModal,overlay:t.closeModal,close:t.closeModal}}),s("modal-comp",{attrs:{visible:t.modalVisiable,"show-confirm":!1,icon:t.modalIcon,content:t.modalContent,confirm:t.modalCallback,overlay:t.modalCallback}}),s("div",{staticClass:"content"},[t._m(0),s("div",{staticClass:"top-space"}),s("div",{staticClass:"box"},[s("div",{staticClass:"login"},[s("auth",{on:{onLogin:t.userLogin,onLogout:t.userLogout}}),t.showForm?[s("div",{staticClass:"login-tit"},[t._v(t._s(t.$t("infomationImprove.title")))]),s("div",{staticClass:"login-tit-space-1"}),s("div",{staticClass:"gird-g form"},[s("div",{staticClass:"pure-u-1 pure-u-md-1-2 form-item"},[s("div",{staticClass:"label"},[s("img",{attrs:{src:e("3082")}}),t._v(" "+t._s(t.$t("infomationImprove.t1c1"))+"\n\t\t\t\t")]),s("div",{staticClass:"ipt-wrap"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.information.lastName,expression:"information.lastName"}],staticClass:"ipt",class:{err:t.errorTips.e1.length>0},attrs:{type:"text"},domProps:{value:t.information.lastName},on:{input:function(i){i.target.composing||t.$set(t.information,"lastName",i.target.value)}}})]),t.errorTips.e1.length>0?s("div",{staticClass:"validator"},[s("img",{attrs:{src:e("b98c"),alt:""}}),t._v(" "+t._s(t.errorTips.e1)+"\n\t\t\t\t")]):t._e()]),s("div",{staticClass:"pure-u-1 pure-u-md-1-2 form-item"},[s("div",{staticClass:"label"},[s("img",{attrs:{src:e("3082")}}),t._v(" "+t._s(t.$t("infomationImprove.t1c2"))+"\n\t\t\t\t")]),s("div",{staticClass:"ipt-wrap"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.information.firstName,expression:"information.firstName"}],staticClass:"ipt",class:{err:t.errorTips.e1.length>0},attrs:{type:"text"},domProps:{value:t.information.firstName},on:{input:function(i){i.target.composing||t.$set(t.information,"firstName",i.target.value)}}})]),t.errorTips.e1.length>0?s("div",{staticClass:"validator"},[s("img",{attrs:{src:e("b98c"),alt:""}}),t._v(" "+t._s(t.errorTips.e1)+"\n\t\t\t\t")]):t._e()]),s("div",{staticClass:"pure-u-1 form-item"},[s("div",{staticClass:"label"},[s("img",{attrs:{src:e("7f3b")}}),t._v(" "+t._s(t.$t("infomationImprove.t2"))+"\n\t\t\t\t")]),s("div",{staticClass:"ipt-wrap"},[s("div",{staticClass:"down-arrow"}),s("select",{directives:[{name:"model",rawName:"v-model",value:t.information.sex,expression:"information.sex"}],staticClass:"ipt",class:{err:t.errorTips.e2.length>0},on:{change:function(i){var e=Array.prototype.filter.call(i.target.options,(function(t){return t.selected})).map((function(t){var i="_value"in t?t._value:t.value;return i}));t.$set(t.information,"sex",i.target.multiple?e:e[0])}}},[t.sexCandidates?t._l(t.sexCandidates,(function(i,e){return s("option",{key:e,domProps:{value:i.value}},[t._v(t._s(i.name))])})):t._e()],2)]),t.errorTips.e2.length>0?s("div",{staticClass:"validator"},[s("img",{attrs:{src:e("b98c"),alt:""}}),t._v(" "+t._s(t.errorTips.e2)+"\n\t\t\t\t")]):t._e()]),s("div",{staticClass:"pure-u-1 form-item"},[s("div",{staticClass:"label"},[s("img",{attrs:{src:e("8335")}}),t._v(" "+t._s(t.$t("infomationImprove.t3"))+"\n\t\t\t\t")]),s("div",{staticClass:"ipt-wrap"},[s("date-picker",{staticClass:"date",attrs:{filtModel:["future","today"]},model:{value:t.birthDate,callback:function(i){t.birthDate=i},expression:"birthDate"}})],1),t.errorTips.e3.length>0?s("div",{staticClass:"validator"},[s("img",{attrs:{src:e("b98c"),alt:""}}),t._v(" "+t._s(t.errorTips.e3)+"\n\t\t\t\t")]):t._e()]),s("div",{staticClass:"pure-u-1 form-item"},[s("div",{staticClass:"label"},[s("img",{attrs:{src:e("d2228")}}),t._v(" "+t._s(t.$t("infomationImprove.t4"))+"\n\t\t\t\t")]),s("div",{staticClass:"ipt-wrap"},[s("div",{staticClass:"down-arrow"}),s("select",{directives:[{name:"model",rawName:"v-model",value:t.information.idType,expression:"information.idType"}],staticClass:"ipt",class:{err:t.errorTips.e4.length>0},on:{change:function(i){var e=Array.prototype.filter.call(i.target.options,(function(t){return t.selected})).map((function(t){var i="_value"in t?t._value:t.value;return i}));t.$set(t.information,"idType",i.target.multiple?e:e[0])}}},[t.idTypeCandidates?t._l(t.idTypeCandidates,(function(i,e){return s("option",{key:e,domProps:{value:i.value}},[t._v(t._s(i.name))])})):t._e()],2)]),t.errorTips.e4.length>0?s("div",{staticClass:"validator"},[s("img",{attrs:{src:e("b98c"),alt:""}}),t._v(" "+t._s(t.errorTips.e4)+"\n\t\t\t\t")]):t._e()]),s("div",{staticClass:"pure-u-1 form-item"},[s("div",{staticClass:"label"},[s("img",{attrs:{src:e("d2228")}}),t._v(" "+t._s(t.$t("infomationImprove.t5"))+"\n\t\t\t\t")]),s("div",{staticClass:"ipt-wrap"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.information.idNo,expression:"information.idNo"}],staticClass:"ipt",class:{err:t.errorTips.e5.length>0},attrs:{type:"text"},domProps:{value:t.information.idNo},on:{input:function(i){i.target.composing||t.$set(t.information,"idNo",i.target.value)}}})]),t.errorTips.e5.length>0?s("div",{staticClass:"validator"},[s("img",{attrs:{src:e("b98c"),alt:""}}),t._v(" "+t._s(t.errorTips.e5)+"\n\t\t\t\t")]):t._e()])]),s("div",{staticClass:"login-btn-wrap"},[s("div",{staticClass:"login-submit pointer flex-center",class:{disabled:t.submitBtnDisabled},on:{click:function(i){return t.onUpdateHandler()}}},[t.loading?s("van-loading"):t._e(),s("span",[t._v(t._s(t.$t("infomationImprove.submit")))])],1)])]:t._e()],2)])])],1)},o=[function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"ebg"},[s("img",{attrs:{src:e("dd6c")}})])}],n=(e("efce"),e("4634"),e("ed8b"),e("97a3")),a=(e("0171"),e("2b97")),r=e("4ec3"),c=e.n(r),l=e("ed0b"),u=e("591a"),m=e("f72f"),d=e("79c3"),f=e("daf4"),h=e("6fd8"),p=e("6e6d");function v(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);i&&(s=s.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,s)}return e}function g(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?v(e,!0).forEach((function(i){Object(n["a"])(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):v(e).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}p["a"].use(a["a"]);var A={data:function(){return{loading:!1,showForm:!1,key:"value",values:{vcodeuuid:"",token:"",deviceId:"",imageBase64:"",password:"",passwordRepeat:""},birthDate:"",information:{firstName:"",lastName:"",sex:"",birthDate:"",idNo:"",idType:""},errorTips:{e1:"",e2:"",e3:"",e4:"",e5:""},modalSimpleVisiable:!1,modalVisiable:!1,targetPath:"",modalIcon:"succ",modalContent:""}},components:{modalComp:d["a"],DatePicker:h["a"],Auth:m["a"],modalSimpleComp:f["a"]},computed:g({},Object(u["c"])({userInfo:function(t){return t.userInfo}}),{locale:function(){return this.$i18n.locale||"tc"},i18n:function(){return this.$i18n.messages&&this.$i18n.locale?this.$i18n.messages[this.$i18n.locale]:{}},sexCandidates:function(){var t=this.$i18n.messages[this.$i18n.locale];return t.infomationImprove.candidates.sex},idTypeCandidates:function(){var t=this.$i18n.messages[this.$i18n.locale];return t.infomationImprove.candidates.idType},submitBtnDisabled:function(){var t=!this.information.firstName,i=!this.information.lastName,e=!this.information.sex,s=!this.information.birthDate,o=!this.information.idNo,n=!this.information.idType;return t||i||e||s||o||n}}),methods:{showModal:function(t,i){i=i&&"undefined"!==typeof i?i:"succ",this.modalIcon=i,this.modalContent=t,"succ"==i?this.modalVisiable=!0:this.modalSimpleVisiable=!0},closeModal:function(){this.modalVisiable=!1,this.modalSimpleVisiable=!1},initData:function(){var t=this;Object(l["c"])({url:c.a.profile,sid:!0}).then((function(i){t.information=i,i&&i.birthDate&&(t.birthDate=i.birthDate)}))},onUpdateHandler:function(){var t=this;if(!this.submitBtnDisabled){var i=this.checkCnName(),e=this.checkIdNo(),s=this.checkBirthday(),o=this.checkSex(),n=this.checkIdType(),a=i&e&s&o&n;a&&(this.information.birthDate=this.birthDate,this.loadIdentify().then((function(){t.loading||(t.loading=!0,Object(l["c"])({url:c.a.updateInformation,data:t.information,sid:!0}).then((function(i){t.loading=!1;var e="";switch(i.returnCode){case"GS_MODIFYFIVEKEYS_ERROR_IDNOERROR":e=t.i18n.infomationImprove.errorTips.e6,t.errorTips.e5=e;break;case"COMMON_ERROR_036":t.showModal(t.i18n.infomationImprove.errorTips.e7,"info"),t.errorTips.e5=e;break;case"0":e=t.i18n.infomationImprove.successMsg,t.showModal(e,"succ");var s=t.$route.query.callback||"/";t.targetPath=s,t.userInfo.hadFullInfo=1,t.$store.commit("SET_USER_INFO",t.userInfo);break}})).catch((function(i){t.loading=!1})))})))}},loadIdentify:function(){return new Promise((function(t,i){t()}))},checkCnName:function(){if(!this.information.firstName||!this.information.lastName){var t=this.i18n.infomationImprove.errorTips.e1;return this.errorTips.e1=t,!1}return!0},checkSex:function(){if(!this.information.sex){var t=this.i18n.infomationImprove.errorTips.e2;return this.errorTips.e2=t,!1}return!0},checkBirthday:function(){if(!this.birthDate){var t=this.i18n.infomationImprove.errorTips.e3;return this.errorTips.e3=t,!1}return!0},checkIdType:function(){if(!this.information.idType){var t=this.i18n.infomationImprove.errorTips.e4;return this.errorTips.e4=t,!1}return!0},checkIdNo:function(){var t=this.i18n.infomationImprove.errorTips.e5;if(!this.information.idNo)return this.errorTips.e5=t,!1;if(!this.information.idType)return!0;t=this.i18n.infomationImprove.errorTips.e6;var i=this.information.idNo+"";switch(this.information.idType){case"2":t=i.length>3&&i.length<50?"":t;break;case"3":t=i.length>6&&i.length<50?"":t;break;case"6":0!=i.indexOf("81")&&0!=i.indexOf("82")||(/\\d{15}/.test(i)||/\\d{17}/.test(i))&&(t="");break;case"V":0!=i.indexOf("81")&&0!=i.indexOf("82")||(/\\d{15}/.test(i)||/\\d{17}/.test(i))&&(t="");break;case"W":0!=i.indexOf("83")&&0!=i.indexOf("82")||(/\\d{15}/.test(i)||/\\d{17}/.test(i))&&(t="");break;default:t="";break}return!0},modalCallback:function(){this.modalVisiable=!1,this.targetPath&&this.$router.push({path:this.targetPath})},userLogout:function(){this.$router.push({path:"/"})},userLogin:function(t){this.showForm=!0}},mounted:function(){this.initData()},watch:{"information.cnName":function(){this.errorTips.e1=""},"information.sex":function(){this.errorTips.e2=""},birthDate:function(){this.errorTips.e3="",this.information.birthDate=this.birthDate},"information.idNo":function(){this.errorTips.e4=""},"information.idType":function(){this.errorTips.e5=""}},created:function(){}},b=A,C=(e("6373"),e("6691")),I=Object(C["a"])(b,s,o,!1,null,"818dd1fc",null);i["default"]=I.exports}}]);