webpackJsonp([21],{"73AB":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("vMJZ"),i={name:"AOAssetReturn",data:function(){return{sfrz_txt:this.$t("person.sfrz_txt"),upload_img_url:"http://www.blesintex.com/web/uploadImg",form:{id_card_face:"",id_card_back:""},dialogImageUrl:"",dialogVisible:!1,is_auth:-1,show:!1,zh:"",en:""}},mounted:function(){var t=this;Object(a.e)().then(function(e){t.show=!0,t.is_auth=e.is_auth,t.zh=e.message_zh,t.en=e.message_en,console.log(e)})},methods:{rz:function(){var t=this;Object(a.i)(this.form).then(function(e){t.$store.dispatch("updateInfo",{is_auth:2})})},handleAvatarSuccess:function(t,e){t.message&&this.$message({message:t.message,type:0===t.code?"success":"error"}),0===t.code&&(this.form[t.key]=t.data.url)},handlePictureCardPreview:function(t){this.dialogImageUrl=t.url,this.dialogVisible=!0}}},r={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"ao-person-sfrz"},[s("div",{staticClass:"title"},[t._v(t._s(t.sfrz_txt[0]))]),t._v(" "),s("div",{staticClass:"line"}),t._v(" "),1==t.is_auth?s("el-button",{staticStyle:{"margin-top":"16px"},attrs:{type:"primary"}},[t._v(t._s(t.sfrz_txt[1]))]):2==t.is_auth?s("el-button",{staticStyle:{"margin-top":"16px"},attrs:{type:"primary"}},[t._v(t._s(t.sfrz_txt[2]))]):s("el-form",{ref:"form",attrs:{model:t.form,"label-width":"100px"}},[s("el-form-item",{attrs:{label:t.sfrz_txt[3]}},[s("el-upload",{attrs:{action:t.upload_img_url,"show-file-list":!1,"on-success":t.handleAvatarSuccess,"list-type":"picture-card","on-preview":t.handlePictureCardPreview,data:{key:"id_card_face"}}},[t.form.id_card_face?s("img",{staticClass:"avatar",attrs:{src:t.form.id_card_face}}):s("i",{staticClass:"el-icon-plus"})])],1),t._v(" "),s("el-form-item",{attrs:{label:t.sfrz_txt[4]}},[s("el-upload",{attrs:{action:t.upload_img_url,"show-file-list":!1,"on-success":t.handleAvatarSuccess,"list-type":"picture-card","on-preview":t.handlePictureCardPreview,data:{key:"id_card_back"}}},[t.form.id_card_back?s("img",{staticClass:"avatar",attrs:{src:t.form.id_card_back}}):s("i",{staticClass:"el-icon-plus"})])],1),t._v(" "),-1==t.is_auth?s("el-form-item",[t.zh?s("div",{staticStyle:{"font-size":"14px",color:"#fff"}},[t._v(t._s(t.zh))]):t._e(),t._v(" "),t.en?s("div",{staticStyle:{"font-size":"14px",color:"#fff"}},[t._v(t._s(t.en))]):t._e()]):t._e(),t._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"primary"},on:{click:t.rz}},[t._v(t._s(t.sfrz_txt[5]))])],1)],1),t._v(" "),s("el-dialog",{attrs:{visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[s("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1)},staticRenderFns:[]};var l=s("C7Lr")(i,r,!1,function(t){s("Ucun")},null,null);e.default=l.exports},Ucun:function(t,e){}});
//# sourceMappingURL=21.09b106451b7d5e5816ec.js.map