(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/bsinessadmin/supplierges"],{3314:function(t,e,n){"use strict";n.r(e);var o=n("4ab3"),a=n("8a28");for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("77ab");var s,c=n("f0c5"),r=Object(c["a"])(a["default"],o["b"],o["c"],!1,null,"7f91d614",null,!1,o["a"],s);e["default"]=r.exports},"4ab3":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var a=function(){var t=this,e=t.$createElement;t._self._c},i=[]},"77ab":function(t,e,n){"use strict";var o=n("b5f6"),a=n.n(o);a.a},"7f2d":function(t,e,n){"use strict";(function(t){n("5413");o(n("66fd"));var e=o(n("3314"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},"8a28":function(t,e,n){"use strict";n.r(e);var o=n("c72b"),a=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},b5f6:function(t,e,n){},c72b:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,a=n("595d"),i={data:function(){return{checked:1,form:{name:"",socialCode:"",legalPerson:"",password:"",contacts:"",contactsMobile:"",identifyPics:[],proxyFile:[]}}},onLoad:function(t){o=this,t.checked&&(this.checked=t.checked)},methods:{acountRegister:function(){var e=this.form;0!=e.name.length?0!=e.socialCode.length?0!=e.legalPerson.length?0!=e.contacts.length?0!=e.contactsMobile.length?0!=e.identifyPics.length?0!=e.proxyFile.length?(e.checked=1,console.log(e),t.navigateTo({url:"/pages/bsinessadmin/register?form="+JSON.stringify(e)})):this.$toast("请上传授权委托书"):this.$toast("请上传认证照片"):this.$toast("请输入联系电话"):this.$toast("请输入联系人"):this.$toast("请输入法人姓名"):this.$toast("请输入统一社会信用代码"):this.$toast("输入供货商名称")},upImages:function(t){1==t?this.chooseImage(1):2==t&&this.chooseImage(2)},chooseImage:function(e){t.chooseImage({count:1,success:function(t){for(var n in t.tempFilePaths)o.upText(t.tempFilePaths[n],e)},complete:function(t){return[]}})},upText:function(e,n){t.showLoading({}),t.uploadFile({url:a.mainUrl+"/api/File",filePath:e,name:"File",fileType:"image",header:{"User-Agent":"apifox/1.0.0 (https://www.apifox.cn)"},formData:{File:JSON.stringify(e)},success:function(e){t.hideLoading();var a=JSON.parse(e.data);200==a.code?1==n?o.form.identifyPics.push(a.data.file):2==n&&o.form.proxyFile.push(a.data.file):t.showModal({title:"",content:a.msg,showCancel:!1})},fail:function(e){e&&e.msg&&t.showModal({title:"错误",content:e.msg,showCancel:!1})}})}}};e.default=i}).call(this,n("543d")["default"])}},[["7f2d","common/runtime","common/vendor"]]]);