1 line
4.2 KiB
JavaScript
1 line
4.2 KiB
JavaScript
|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/me/company"],{"056a":function(t,e,o){"use strict";var n=o("b14f"),s=o.n(n);s.a},"6d6c":function(t,e,o){"use strict";(function(t,e){var n=o("4ea4");o("eaf2");n(o("66fd"));var s=n(o("7841"));t.__webpack_require_UNI_MP_PLUGIN__=o,e(s.default)}).call(this,o("bc2e")["default"],o("543d")["createPage"])},7841:function(t,e,o){"use strict";o.r(e);var n=o("a75e"),s=o("95b3");for(var i in s)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return s[t]}))}(i);o("056a");var r=o("f0c5"),u=Object(r["a"])(s["default"],n["b"],n["c"],!1,null,"15b557ec",null,!1,n["a"],void 0);e["default"]=u.exports},"95b3":function(t,e,o){"use strict";o.r(e);var n=o("f26c"),s=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);e["default"]=s.a},a75e:function(t,e,o){"use strict";o.d(e,"b",(function(){return s})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){return n}));var n={uniIcons:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(o.bind(null,"c6b6"))}},s=function(){var t=this,e=t.$createElement,o=(t._self._c,t.urlList.length),n=t.urlList.length;t._isMounted||(t.e0=function(e){t.userInfo.logourl=""}),t.$mp.data=Object.assign({},{$root:{g0:o,g1:n}})},i=[]},b14f:function(t,e,o){},f26c:function(t,e,o){"use strict";(function(t){var n=o("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=n(o("9523")),i=o("26cb");function r(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}var u={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([o.e("common/vendor"),o.e("uni_modules/pick-regions/pick-regions")]).then(function(){return resolve(o("d033"))}.bind(null,o)).catch(o.oe)}},computed:function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?r(Object(o),!0).forEach((function(e){(0,s.default)(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,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(o){t.push(o.url),e.push(o.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.logourl?this.userInfo.mobile?(this.userInfo.pics=this.pathList,console.log("提交",this.userInfo),e.$model.getSubmitCom(this.userInfo).then((function(o){0==o.code?(e.$tools.msg("提交成功"),e.$store.dispatch("getUserInfo"),t.navigateBack({delta:2})):e.$tools.msg(o.message)}))):this.$tools.msg("请输入公司电话"):this.$tools.msg("请上传公司logo"):this.$tools.msg("请选择公司职位"):this.$tools.msg("请输入公司详细地址"):this.$tools.msg("请选择公司所在地"):this.$tools.msg("请输入公司名称")},handleimage:function(e){var o=this,n=[];t.chooseImage({count:1==e?1:6,sourceType:["album","camera"],success:function(s){t.showLoading({title:"识别中..."}),n.push(s.tempFilePaths),n.forEach((function(n){n.forEach((function(n){o.$model.getUpLoadimg({uploadpath:n}).then((function(n){t.hideLoading(),0==n.code?1==e?(o.userInfo.logo=n.data.path,o.userInfo.logourl=n.data.url):(o.urlList.push(n.data.url),o.pathList.push(n.data.path)):o.$tools.msg("不支持该图像")}))}))}))}})},handleDel:function(t){this.urlList.splice(t,1),this.pathList.splice(t,1)},handleGetRegion:function(t){console.log("省<EFBFBD>
|