chunk-33c22007.1591168924542.js
20.4 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-33c22007"],{2011:function(t,i,e){},3082:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAMCAYAAAC0qUeeAAAA1UlEQVQokX3QIUtDURjG8d+dIihYBNMMwpCF+QEMNocYTLJ0FdGBX2FfwqhJtmIQxCFYbQOj1WAWBsKQgVH0GnwvHAbXf3kPD//DeZ+TTfOGYAE9HGEZn7jGOb6gFuIcHrCObdRjbmCILJU7KHCGSWQTdLGIg1RuYxAXUorId1P5RzVZeSjlEQ4rxGM8pvItlnCBlchWcRWv3qfyN06wj3eM8YS3KFfMFnyOMk2sxbzEC7ZgPsI+dvA6s/MHcn9/3c6meWOIu9i7ilPs1dAqC/zDDTZ/AdA9KrVTzbxKAAAAAElFTkSuQmCC"},"3c62":function(t,i,e){"use strict";var n=e("2011"),s=e.n(n);s.a},"56c3":function(t,i,e){"use strict";var n=e("71c3"),s=e.n(n);s.a},"623e":function(t,i,e){},"71c3":function(t,i,e){},"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=="},9318:function(t,i,e){"use strict";var n=e("623e"),s=e.n(n);s.a},d222:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAMCAYAAACEJVa/AAAA+0lEQVQokZXRQStEYRTG8d+9pllYTVNExOKGBQufwjewudnJJxArs2AlUrKz5WPIxs5iUhoWsh+lGXeDsjAW86brjrlx6tTbOe/z73k6UZYmVRxiDXV/rxecYyvGAeaxhOgfvRh0e1GWJp0AaGMBm/jAKPbxUOJmEq1KiNAO9AY28B4gZ1jF5xBIhHolN5jFXQDAG24wFT4PrTzkGTOFfYIOeiVOfkBe0cQRLrCCq+Cs1Emce1exHAQ1nGAcI7k/vUIPxNnVv/t1btbETth92//NSVf/VLUCAC4xVpJkAt0oS5NjzGEdTyWCYk3jFK0Y23jEvcHMZX0bdI0vl9c/F1Eh42QAAAAASUVORK5CYII="},daf4:function(t,i,e){"use strict";var n=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"comp",class:{hide:!t.visible}},[t.overlayShow?n("div",{staticClass:"overlay",on:{click:function(i){return t.onOverLayHandler()}}}):t._e(),n("div",{staticClass:"modal"},[n("div",{staticClass:"modal-title"},[t._v("\n\t\t\t"+t._s(t.title)+"\n\t\t\t"),n("img",{staticClass:"close-btn pointer",attrs:{src:e("ec03")},on:{click:function(i){return t.onCloseHandler()}}})]),n("div",{staticClass:"modal-content"},[t._v(t._s(t.content))])])])},s=[],o={props:{visible:{type:Boolean,default:!0},icon:{type:String,default:"succ"},title:{type:String,default:""},content:{type:String,default:""},confirmText:{type:String,default:"確認"},cancelText:{type:String,default:"取消"},showConfirm:{type:Boolean,default:!0},showCancel:{type:Boolean,default:!1},overlayShow:{type:Boolean,default:!0},confirm:{type:Function,default:null},cancel:{type:Function,default:null},close:{type:Function,default:null},overlay:{type:Function,default:null}},data:function(){return{key:"value"}},components:{},methods:{onConfirmHandler:function(){this.confirm&&this.confirm()},onCancelHandler:function(){this.cancel&&this.cancel()},onCloseHandler:function(){this.close&&this.close()},onOverLayHandler:function(){this.overlay&&this.overlay()},initData:function(){}},mounted:function(){},created:function(){}},a=o,r=(e("3c62"),e("4023")),c=Object(r["a"])(a,n,s,!1,null,"5b29ed92",null);i["a"]=c.exports},f72f:function(t,i,e){"use strict";var n=function(){var t=this,i=t.$createElement,n=t._self._c||i;return t.showPanel?n("div",[t.showUnAuth?n("div",[n("div",{staticClass:"alert"},[n("img",{staticClass:"icon",attrs:{src:e("a164"),alt:""}}),n("div",{staticClass:"txt"},[t._v("\n\t\t\t\t"+t._s(t.tips.tit)+"\n\t\t\t\t"),n("span",{staticClass:"pointer btn",on:{click:t.gotoLoginPage}},[t._v(t._s(t.$t("customService.unauth.login")))]),t._v("\n\t\t\t\t"+t._s(t.tips.or)+"\n\t\t\t\t"),n("span",{staticClass:"pointer btn",on:{click:t.gotoRegisterPage}},[t._v(t._s(t.$t("customService.unauth.register")))]),t._v("\n\t\t\t\t"+t._s(t.tips.tail)+"\n\t\t\t")]),"suggest"==t.model?n("img",{staticClass:"pointer close",attrs:{src:e("ddb8"),alt:""},on:{click:function(i){t.showSuggest=!1}}}):t._e()])]):t._e(),t.showProfileInfo?n("div",[n("div",{staticClass:"alert"},[n("img",{staticClass:"icon",attrs:{src:e("a164"),alt:""}}),n("div",{staticClass:"txt"},[t._v("\n\t\t\t\t"+t._s(t.$t("customService.unauth.baseInfoTip"))+" \n\t\t\t\t"),n("span",{staticClass:"pointer btn",on:{click:t.gotoInformationPage}},[t._v(t._s(t.$t("customService.unauth.infoBtn")))]),t._v("\n\t\t\t\t "+t._s(t.$t("customService.unauth.baseInfoTail"))+"\n\t\t\t")])])]):t._e(),"suggest"!=t.model?n("div",{staticClass:"empty-line"}):t._e()]):t._e()},s=[],o=(e("5ab2"),e("6d57"),e("e10e"),e("cc57"),e("70ea")),a=e("ae8c");function r(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,n)}return e}function c(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?r(Object(e),!0).forEach((function(i){Object(o["a"])(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):r(Object(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},tipModel:{type:String,default:"m3"}},data:function(){return{key:"value",showProfileInfo:!1,showUnAuth:!1,showSuggest:!0,tips:{}}},components:{},computed:c(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.tips=this.i18n.customService.unauth[this.tipModel],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(){var t=this.$route.fullPath;this.$router.push({path:"/infomation/improve",query:{c:t,a:1}})},noAuth:function(){this.$store.commit("SET_USER_INFO",null),this.initData(),this.$emit("onLogout",{})}},mounted:function(){this.initData()},created:function(){var t=this;this.$root.eventBus.$on("langChange",(function(){try{t.tips=t.i18n.customService.unauth[t.tipModel]}catch(i){}}))},watch:{userInfo:function(t){t&&t.name?this.loginAction():this.logoutAction()}}},u=l,f=(e("56c3"),e("4023")),h=Object(f["a"])(u,n,s,!1,null,"1633fcb9",null);i["a"]=h.exports},ffae:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",[n("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}}),n("modal-comp",{attrs:{visible:t.modalVisiable,"show-confirm":!1,icon:t.modalIcon,content:t.modalContent,confirm:t.modalCallback,overlay:t.modalCallback}}),n("div",{staticClass:"ebg"}),n("div",{staticClass:"content"},[n("div",{staticClass:"top-space"}),n("div",{staticClass:"box"},[n("div",{staticClass:"login"},[n("auth",{on:{onLogin:t.userLogin,onLogout:t.userLogout}}),t.showForm?[n("div",{staticClass:"login-tit"},[t._v(t._s(t.$t("infomationImprove.title")))]),n("div",{staticClass:"login-tit-space-1"}),n("div",{staticClass:"gird-g form"},[n("div",{staticClass:"pure-u-1 pure-u-md-1-2 form-item"},[n("div",{staticClass:"label"},[n("img",{attrs:{src:e("3082")}}),t._v(" "+t._s(t.$t("infomationImprove.t1c1"))+"\n\t\t\t\t\t\t\t")]),n("div",{staticClass:"ipt-wrap"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.information.lastName,expression:"information.lastName"}],staticClass:"ipt",class:{err:t.errorTips.ln.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.ln.length>0?n("div",{staticClass:"validator"},[n("img",{attrs:{src:e("b98c"),alt:""}}),t._v(" "+t._s(t.errorTips.ln)+"\n\t\t\t\t\t\t\t")]):t._e()]),n("div",{staticClass:"pure-u-1 pure-u-md-1-2 form-item"},[n("div",{staticClass:"label"},[n("img",{attrs:{src:e("3082")}}),t._v(" "+t._s(t.$t("infomationImprove.t1c2"))+"\n\t\t\t\t\t\t\t")]),n("div",{staticClass:"ipt-wrap"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.information.firstName,expression:"information.firstName"}],staticClass:"ipt",class:{err:t.errorTips.fn.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.fn.length>0?n("div",{staticClass:"validator"},[n("img",{attrs:{src:e("b98c"),alt:""}}),t._v(" "+t._s(t.errorTips.fn)+"\n\t\t\t\t\t\t\t")]):t._e()]),n("div",{staticClass:"pure-u-1 form-item"},[n("div",{staticClass:"label"},[n("img",{attrs:{src:e("7f3b")}}),t._v(" "+t._s(t.$t("infomationImprove.t2"))+"\n\t\t\t\t\t\t\t")]),n("div",{staticClass:"ipt-wrap"},[n("div",{staticClass:"down-arrow"}),n("el-select",{staticClass:"ipt",class:{err:t.errorTips.e2.length>0},model:{value:t.information.sex,callback:function(i){t.$set(t.information,"sex",i)},expression:"information.sex"}},[t.sexCandidates?t._l(t.sexCandidates,(function(t,i){return n("el-option",{key:i,attrs:{value:t.value,label:t.name}})})):t._e()],2)],1),t.errorTips.e2.length>0?n("div",{staticClass:"validator"},[n("img",{attrs:{src:e("b98c"),alt:""}}),t._v(" "+t._s(t.errorTips.e2)+"\n\t\t\t\t\t\t\t")]):t._e()]),n("div",{staticClass:"pure-u-1 form-item"},[n("div",{staticClass:"label"},[n("img",{attrs:{src:e("8335")}}),t._v(" "+t._s(t.$t("infomationImprove.t3"))+"\n\t\t\t\t\t\t\t")]),n("div",{staticClass:"ipt-wrap"},[n("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?n("div",{staticClass:"validator"},[n("img",{attrs:{src:e("b98c"),alt:""}}),t._v(" "+t._s(t.errorTips.e3)+"\n\t\t\t\t\t\t\t")]):t._e()]),n("div",{staticClass:"pure-u-1 form-item"},[n("div",{staticClass:"label"},[n("img",{attrs:{src:e("d222")}}),t._v(" "+t._s(t.$t("infomationImprove.t4"))+"\n\t\t\t\t\t\t\t")]),n("div",{staticClass:"ipt-wrap"},[n("div",{staticClass:"down-arrow"}),n("el-select",{staticClass:"ipt",class:{err:t.errorTips.e4.length>0},model:{value:t.information.idType,callback:function(i){t.$set(t.information,"idType",i)},expression:"information.idType"}},[t.idTypeCandidates?t._l(t.idTypeCandidates,(function(t,i){return n("el-option",{key:i,attrs:{value:t.value,label:t.name}})})):t._e()],2)],1),t.errorTips.e4.length>0?n("div",{staticClass:"validator"},[n("img",{attrs:{src:e("b98c"),alt:""}}),t._v(" "+t._s(t.errorTips.e4)+"\n\t\t\t\t\t\t\t")]):t._e()]),n("div",{staticClass:"pure-u-1 form-item"},[n("div",{staticClass:"label"},[n("img",{attrs:{src:e("d222")}}),t._v(" "+t._s(t.$t("infomationImprove.t5"))+"\n\t\t\t\t\t\t\t")]),n("div",{staticClass:"ipt-wrap"},[n("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?n("div",{staticClass:"validator"},[n("img",{attrs:{src:e("b98c"),alt:""}}),t._v(" "+t._s(t.errorTips.e5)+"\n\t\t\t\t\t\t\t")]):t._e()])]),1==t.errorModel?n("div",{staticClass:"flex-center validator authTip"},[t._m(0),n("div",[t._v(t._s(t.$t("customService.auth.defaultTip")))])]):t._e(),2==t.errorModel?n("div",{staticClass:"flex-center validator authTip"},[t._m(1),n("div",[t._v(t._s(t.$t("customService.auth.notMatch"))),"en"==t.locale?[t._v(" ")]:t._e(),n("span",{staticClass:"contact pointer underLine",on:{click:t.toContactUs}},[t._v(t._s(t.$t("customService.auth.customService")))]),t._v(" \n\t\t\t\t\t\t\t"+t._s(t.$t("customService.auth.notMatch2"))+"\n\t\t\t\t\t\t")],2)]):t._e(),3==t.errorModel?n("div",{staticClass:"flex-center validator authTip"},[t._m(2),n("div",[t._v("\n\t\t\t\t\t\t\t"+t._s(t.$t("customService.auth.notMatch"))),"en"==t.locale?[t._v(" ")]:t._e(),n("span",{staticClass:"contact pointer underLine",on:{click:t.toContactUs}},[t._v(t._s(t.$t("customService.auth.customService")))]),t._v(" \n\t\t\t\t\t\t\t"+t._s(t.$t("customService.auth.notMatch2"))+"\n\t\t\t\t\t\t")],2)]):t._e(),n("div",{staticClass:"login-btn-wrap"},[n("div",{staticClass:"login-submit pointer flex-center mr30",class:{disabled:t.submitBtnDisabled},on:{click:function(i){return t.onUpdateHandler()}}},[t.loading?n("van-loading"):t._e(),n("span",[t._v(t._s(t.$t("infomationImprove.submit")))])],1),n("div",{staticClass:"login-submit pointer flex-center",on:{click:function(i){return t.onSkipHandler()}}},[n("span",[t._v(t._s(t.$t("infomationImprove.cancel")))])])])]:t._e()],2)])])],1)},s=[function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"icon"},[n("img",{attrs:{src:e("b98c"),alt:""}})])},function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"icon"},[n("img",{attrs:{src:e("b98c"),alt:""}})])},function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"icon"},[n("img",{attrs:{src:e("b98c"),alt:""}})])}],o=(e("5ab2"),e("6d57"),e("e10e"),e("9a33"),e("70ea")),a=(e("8334"),e("d984")),r=e("4ec3"),c=e.n(r),l=e("ed0b"),u=e("ae8c"),f=e("71e2"),h=e("f72f"),m=e("79c3"),d=e("daf4"),p=e("6fd8"),v=e("fa7d"),g=e("0261");function b(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,n)}return e}function A(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?b(Object(e),!0).forEach((function(i){Object(o["a"])(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):b(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}g["default"].use(a["a"]);var C={data:function(){return{customerAuth:!1,errorModel:0,loading:!1,showForm:!1,key:"value",values:{vcodeuuid:"",token:"",deviceId:"",imageBase64:"",password:"",passwordRepeat:""},birthDate:"",information:{firstName:"",lastName:"",sex:"",birthDate:"",idNo:"",idType:""},errorTips:{fn:"",ln:"",e1:"",e2:"",e3:"",e4:"",e5:""},modalSimpleVisiable:!1,modalVisiable:!1,targetPath:"",modalIcon:"succ",modalContent:""}},components:{modalComp:m["a"],DatePicker:p["a"],Auth:h["a"],modalSimpleComp:d["a"]},computed:A(A({},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(){return Object(f["q"])(this.$i18n.locale)},submitBtnDisabled:function(){var t=!Object(v["a"])(this.information.firstName),i=!Object(v["a"])(this.information.lastName),e=!this.information.sex,n=!this.information.birthDate,s=!this.information.idNo,o=!this.information.idType;return t||i||e||n||s||o}}),methods:{toContactUs:function(){this.$router.push({path:"/custom/service",query:{q:"m1"}})},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){i&&(i.birthDate.indexOf(" ")>0&&(i.birthDate=i.birthDate.split(" ")[0]),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(),n=this.checkBirthday(),s=this.checkSex(),o=this.checkIdType(),a=i&e&n&s&o;a&&(this.information.birthDate=this.birthDate,this.loadIdentify().then((function(){t.customerAuth?t.doCustomerAuth():t.updateInformation()})))}},doCustomerAuth:function(){var t=this;this.loading||(this.loading=!0,Object(l["c"])({url:c.a.customerAuth,data:this.information,sid:!0}).then((function(i){if(t.loading=!1,console.log(i),"0"==i.returnCode){t.errorModel=0;var e=JSON.parse(JSON.stringify(t.userInfo));e.hadFullInfo=1,e.name=t.information.lastName+t.information.firstName,t.$store.commit("SET_USER_INFO",e),t.loading=!1;var n=t.$route.query.c||"/";t.targetPath=n,t.modalCallback()}else t.handleUpdateInfoResponse(i)})).catch((function(i){t.loading=!1,t.errorModel=3})))},testUpdateUserInfo:function(){var t=JSON.parse(JSON.stringify(this.userInfo));t.hadFullInfo=1,t.name=this.information.lastName+this.information.firstName,this.$store.commit("SET_USER_INFO",t)},updateInformation:function(){var t=this;this.loading||(this.loading=!0,Object(l["c"])({url:c.a.updateInformation,data:this.information,sid:!0}).then((function(i){t.loading=!1,t.handleUpdateInfoResponse(i)})).catch((function(i){t.loading=!1})))},handleUpdateInfoResponse:function(t){var i="";switch(t.returnCode){case"GS_MODIFYFIVEKEYS_ERROR_IDNOERROR":i=this.i18n.infomationImprove.errorTips.e6,this.errorTips.e5=i;break;case"COMMON_ERROR_036":i=this.i18n.infomationImprove.errorTips.e7,this.errorTips.e5=i;break;case"-1":this.errorModel=3;break;case"0":i=this.i18n.infomationImprove.successMsg;var e=this.$route.query.c||"/";this.targetPath=e;var n=JSON.parse(JSON.stringify(this.userInfo));n.hadFullInfo=1,n.name=this.information.lastName+this.information.firstName,this.$store.commit("SET_USER_INFO",n),this.modalCallback();break}},onSkipHandler:function(){var t=this.$route.query.c||"/";this.targetPath=t,this.modalCallback()},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+"";return!!i||(t="",!1)},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(){1==this.$route.query.a&&(this.customerAuth=!0,this.errorModel=1),this.initData()},watch:{"information.firstName":function(){Object(v["a"])(this.information.firstName)?this.errorTips.fn="":this.errorTips.fn=this.i18n.error.nameTip},"information.lastName":function(){Object(v["a"])(this.information.lastName)?this.errorTips.ln="":this.errorTips.ln=this.i18n.error.nameTip},"information.sex":function(){this.errorTips.e2=""},birthDate:function(){this.errorTips.e3="",this.information.birthDate=this.birthDate},"information.idNo":function(){this.errorTips.e5=""},"information.idType":function(){this.errorTips.e4=""}},created:function(){}},_=C,I=(e("9318"),e("4023")),y=Object(I["a"])(_,n,s,!1,null,"847dc394",null);i["default"]=y.exports}}]);