You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
3.1 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/release/personAuth/index"],{"475b":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n("f431"),o=getApp(),i={data:function(){return{form:{legalPersonName:"",legalPhone:"",legalPersonIdcard:"",idcardPicFront:"",idcardPicBehind:"",idcardPicHold:""},isEdit:!1}},components:{},props:{},onLoad:function(t){if(t.authInfo){var e=JSON.parse(decodeURIComponent(t.authInfo));this.setData({}),this.isEdit=!0,this.form.authorizationType=2,this.form.id=e.id,this.form.idcardPicHold=e.idcardPicHold,this.form.idcardPicBehind=e.idcardPicBehind,this.form.idcardPicFront=e.idcardPicFront,this.form.legalPersonIdcard=e.legalPersonIdcard,this.form.legalPhone=e.legalPhone||"",this.form.legalPersonName=e.legalPersonName}},methods:{inpChange:function(t){var e=t.currentTarget.dataset.type,n=t.detail.value;"name"==e?(this.setData({}),this.form.legalPersonName=n):"phone"==e?(this.setData({}),this.form.legalPhone=n):"idcard"==e&&(this.setData({}),this.form.legalPersonIdcard=n)},upCard:function(t){var e=this,n=t.currentTarget.dataset.type;a.chooseImages((function(t){"f"==n?(e.setData({}),e.form.idcardPicFront=t):"b"==n?(e.setData({}),e.form.idcardPicBehind=t):(e.setData({}),e.form.idcardPicHold=t)}))},submit:function(){var e=this.form;""!=e.legalPersonName?""!=e.legalPhone?""!=e.legalPersonIdcard?0==this.isEdit?o.http("post","EnterpriseAuthentication/createAuthenticInfoOne",this.form).then((function(e){e.data.success?t.showModal({title:"提示!",content:"提交成功!请等待审核",success:function(e){t.navigateBack({delta:1})}}):t.showToast({title:e.data.msg,icon:"none"})})):o.http("post","EnterpriseAuthentication/editAuthenticInfo",this.form).then((function(e){e.data.success?t.showModal({title:"提示!",content:"提交成功!请等待审核",success:function(e){t.navigateBack({delta:1})}}):t.showToast({title:e.data.msg,icon:"none"})})):t.showToast({title:"请填写身份证号",icon:"none"}):t.showToast({title:"请填写手机号",icon:"none"}):t.showToast({title:"请填写姓名",icon:"none"})}}};e.default=i}).call(this,n("543d")["default"])},"70cd":function(t,e,n){"use strict";var a=n("dc54"),o=n.n(a);o.a},"883e":function(t,e,n){"use strict";(function(t){n("0371");a(n("66fd"));var e=a(n("a232"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"9e0b":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var o=function(){var t=this,e=t.$createElement;t._self._c},i=[]},a232:function(t,e,n){"use strict";n.r(e);var a=n("9e0b"),o=n("df6f");for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("70cd");var r,c=n("f0c5"),s=Object(c["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],r);e["default"]=s.exports},dc54:function(t,e,n){},df6f:function(t,e,n){"use strict";n.r(e);var a=n("475b"),o=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a}},[["883e","common/runtime","common/vendor"]]]);