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