webpackJsonp([98],{snfc:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"identityVerification",beforeRouteEnter:function(t,e,i){"/identityVerification"==t.path&&(t.meta.keepAlive=!0),i()},beforeRouteLeave:function(t,e,i){"/regionSelect"==t.path||"/identityVerificationUpload"==t.path?e.meta.keepAlive=!0:e.meta.keepAlive=!1,i()},data:function(){return{getFlag:!0,countrySelectOptions:{},dataInfo:{},regionSelect:"请选择",certificateType:"请选择",certificateTypeId:0,certificateCode:"",dateTime:"请选择",nameVal:"",middlenameVal:"",surnameVal:"",identityType:[{id:1,text:"身份证"},{id:2,text:"护照"},{id:3,text:"驾驶证"}],show:!1,dateShow:!1,minDate:new Date("1930/1/1"),maxDate:new Date,currentDate:new Date("2000/1/1")}},computed:{},activated:function(){if(this.getFlag)this.getIdentityVerificationInfo();else{var t=JSON.parse(localStorage.getItem("countrySelectOptions"));null!=t&&void 0!=t&&""!=t&&(this.countrySelectOptions=t,this.regionSelect=t.country_name,localStorage.removeItem("currencySelectOptions"))}},mounted:function(){},methods:{getIdentityVerificationInfo:function(){var t=this;this.$api.mine.identityVerificationInfo().then(function(e){var i=t;t.getFlag=!1,3==e.data.status&&(t.dataInfo=e.data,t.regionSelect=e.data.country,t.certificateTypeId=e.data.type,t.certificateCode=e.data.credential_no,t.currentDate=new Date(e.data.birthday),t.dateTime=t.dateFilter(t.currentDate),t.nameVal=e.data.first_name,t.middlenameVal=e.data.middle_name,t.surnameVal=e.data.last_name,t.identityType.forEach(function(t){t.id==e.data.type&&(i.certificateType=t.text)}))})},regionSelectClick:function(){this.$router.push("/regionSelect")},certificateTypeClick:function(){this.show=!0},certificateTypeChoose:function(t){this.certificateType=t.text,this.certificateTypeId=t.id,this.show=!1},dateSelectClick:function(){this.dateShow=!0},dateChange:function(){this.dateShow=!1,this.dateTime=this.dateFilter(this.currentDate)},next:function(){if("请选择"==this.regionSelect)return this.$toast(this.$t("请选择国家/地区"));if(0==this.certificateTypeId)return this.$toast(this.$t("请选择证件类型"));if(""==this.certificateCode)return this.$toast(this.$t("请填写证件编码"));if(""==this.dateTime)return this.$toast(this.$t("请选择出生日期"));if(""==this.nameVal)return this.$toast(this.$t("请填写名字"));if(""==this.surnameVal)return this.$toast(this.$t("请填写姓氏"));var t={};t.regionSelect=this.regionSelect,t.certificateTypeId=this.certificateTypeId,t.certificateCode=this.certificateCode,t.birthday=this.dateTime,t.nameVal=this.nameVal,t.surnameVal=this.surnameVal,this.$store.dispatch("setIdentity",t),this.$router.push("/identityVerificationUpload")},dateFilter:function(t){var e=new Date(t);return e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()}}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"identityVerification"},[a("app-nav"),t._v(" "),a("div",{staticClass:"content"},[a("p",{staticClass:"content_title"},[t._v(t._s(t.$t("基础认证")))]),t._v(" "),a("p",{staticClass:"content_tips"},[t._v("\n "+t._s(t.$t("请注意认证信息一经验证不能修改,务必填写准确信息"))+"\n ")]),t._v(" "),a("div",{staticClass:"content_info",on:{click:t.regionSelectClick}},[a("p",{staticClass:"content_info_l"},[t._v(t._s(t.$t("国家/地区")))]),t._v(" "),a("div",{staticClass:"content_info_r"},[a("p",[t._v(t._s(t.$t(t.regionSelect)))]),t._v(" "),a("img",{attrs:{src:i("ibO1"),alt:""}})])]),t._v(" "),a("div",{staticClass:"content_info",on:{click:t.certificateTypeClick}},[a("p",{staticClass:"content_info_l"},[t._v(t._s(t.$t("证件类型")))]),t._v(" "),a("div",{staticClass:"content_info_r"},[a("p",[t._v(t._s(t.$t(t.certificateType)))]),t._v(" "),a("img",{attrs:{src:i("ibO1"),alt:""}})])]),t._v(" "),a("div",{staticClass:"content_info"},[a("p",{staticClass:"content_info_l"},[t._v(t._s(t.$t("证件编码")))]),t._v(" "),a("div",{staticClass:"content_info_r"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.certificateCode,expression:"certificateCode"}],attrs:{type:"text",placeholder:t.$t("请输入编码")},domProps:{value:t.certificateCode},on:{input:function(e){e.target.composing||(t.certificateCode=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"content_info",on:{click:t.dateSelectClick}},[a("p",{staticClass:"content_info_l"},[t._v(t._s(t.$t("出生日期")))]),t._v(" "),a("div",{staticClass:"content_info_r"},[a("p",[t._v(t._s(t.$t(t.dateTime)))]),t._v(" "),a("img",{attrs:{src:i("ibO1"),alt:""}})])]),t._v(" "),a("div",{staticClass:"content_info"},[a("p",{staticClass:"content_info_l"},[t._v(t._s(t.$t("名字")))]),t._v(" "),a("div",{staticClass:"content_info_r"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.nameVal,expression:"nameVal"}],attrs:{type:"text",placeholder:t.$t("请输入")},domProps:{value:t.nameVal},on:{input:function(e){e.target.composing||(t.nameVal=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"content_info"},[a("p",{staticClass:"content_info_l"},[t._v(t._s(t.$t("姓氏")))]),t._v(" "),a("div",{staticClass:"content_info_r"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.surnameVal,expression:"surnameVal"}],attrs:{type:"text",placeholder:t.$t("请输入")},domProps:{value:t.surnameVal},on:{input:function(e){e.target.composing||(t.surnameVal=e.target.value)}}})])]),t._v(" "),3==t.dataInfo.status?a("div",{staticClass:"content_fail"},[a("div",{staticClass:"content_fail_title"},[a("img",{staticClass:"content_fail_title_i",attrs:{src:i("Uvac"),alt:""}}),t._v(" "),a("span",{staticClass:"content_fail_title_s"},[t._v(t._s(t.$t("温馨提示")))])]),t._v(" "),a("p",{staticClass:"content_fail_text"},[t._v(t._s(t.dataInfo.refuse_reson))])]):t._e(),t._v(" "),a("div",{staticClass:"content_btn",on:{click:t.next}},[t._v("\n "+t._s(t.$t("下一步"))+"\n ")])]),t._v(" "),a("van-popup",{staticClass:"popup",attrs:{position:"bottom"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[t._l(t.identityType,function(e,i){return a("div",{key:i,staticClass:"popup_type",on:{click:function(i){t.certificateTypeChoose(e)}}},[t._v("\n "+t._s(t.$t(e.text))+"\n ")])}),t._v(" "),a("div",{staticClass:"popup_btn"},[t._v("\n "+t._s(t.$t("取消"))+"\n ")])],2),t._v(" "),a("van-popup",{staticClass:"popup",attrs:{position:"bottom"},model:{value:t.dateShow,callback:function(e){t.dateShow=e},expression:"dateShow"}},[a("van-datetime-picker",{attrs:{type:"date","confirm-button-text":t.$t("确定"),"cancel-button-text":t.$t("取消"),"min-date":t.minDate,"max-date":t.maxDate},on:{confirm:function(e){t.dateChange()},cancel:function(e){t.dateShow=!1}},model:{value:t.currentDate,callback:function(e){t.currentDate=e},expression:"currentDate"}})],1)],1)},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(t){i("yew7")},"data-v-aa674bb4",null);e.default=s.exports},yew7:function(t,e){}}); //# sourceMappingURL=98.5ce3d1e860b6d3560a2b.js.map