(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/me/company"],{"27c4":function(t,e,n){"use strict";var o=n("cffb"),s=n.n(o);s.a},"432f":function(t,e,n){"use strict";n.r(e);var o=n("4534"),s=n("7dd2");for(var i in s)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(i);n("27c4");var r=n("828b"),c=Object(r["a"])(s["default"],o["b"],o["c"],!1,null,"1804c0c9",null,!1,o["a"],void 0);e["default"]=c.exports},4534:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var o={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"b80a"))}},s=function(){var t=this,e=t.$createElement,n=(t._self._c,t.urlList.length),o=t.urlList.length;t._isMounted||(t.e0=function(e){t.userInfo.logourl=""}),t.$mp.data=Object.assign({},{$root:{g0:n,g1:o}})},i=[]},"5db5":function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=o(n("7ca3")),i=n("8f59");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}var c={data:function(){return{userInfo:{address:"",area:"",city:"",desc:"",logo:"",logourl:"",mobile:"",name:"",pics:[],pos:"",province:"",staffcnt:"",yearlyincome:"",yearlytax:""},urlList:[],pathList:[]}},components:{pickRegions:function(){Promise.all([n.e("common/vendor"),n.e("uni_modules/pick-regions/pick-regions")]).then(function(){return resolve(n("a65db"))}.bind(null,n)).catch(n.oe)}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){(0,s.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,i.mapState)(["user"])),onLoad:function(){var t=[],e=[];this.userInfo=this.user.cominfo?this.user.cominfo:{},this.user.cominfo&&this.user.cominfo.pics.length&&this.user.cominfo.pics.forEach((function(n){t.push(n.url),e.push(n.path)})),this.urlList=t,this.pathList=e,console.log("this.user",this.user)},methods:{confirmInfo:function(){var e=this;this.userInfo.name?this.userInfo.province?this.userInfo.address?this.userInfo.pos?this.userInfo.mobile?(this.userInfo.pics=this.pathList,console.log("提交",this.userInfo),e.$model.getSubmitCom(this.userInfo).then((function(n){0==n.code?(e.$tools.msg("提交成功"),e.$store.dispatch("getUserInfo"),t.navigateBack({delta:2})):e.$tools.msg(n.message)}))):this.$tools.msg("请输入公司电话"):this.$tools.msg("请输入公司职位"):this.$tools.msg("请输入公司详细地址"):this.$tools.msg("请选择公司所在地"):this.$tools.msg("请输入公司名称")},handleimage:function(e){var n=this,o=[];t.chooseImage({count:1==e?1:6,sourceType:["album","camera"],success:function(s){t.showLoading({title:"识别中..."}),o.push(s.tempFilePaths),o.forEach((function(o){o.forEach((function(o){n.$model.getUpLoadimg({uploadpath:o}).then((function(o){t.hideLoading(),0==o.code?1==e?(n.userInfo.logo=o.data.path,n.userInfo.logourl=o.data.url):(n.urlList.push(o.data.url),n.pathList.push(o.data.path)):n.$tools.msg("不支持该图像")}))}))}))}})},handleDel:function(t){this.urlList.splice(t,1),this.pathList.splice(t,1)},handleGetRegion:function(t){console.log("省市区",t),this.userInfo.province=t[0].name,this.userInfo.city=t[1].name,this.userInfo.area=t[2].name}}};e.default=c}).call(this,n("df3c")["default"])},"7dd2":function(t,e,n){"use strict";n.r(e);var o=n("5db5"),s=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=s.a},cffb:function(t,e,n){},df40:function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("e92e");o(n("3240"));var s=o(n("432f"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(s.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["df40","common/runtime","common/vendor"]]]);