酷炫数据营销平台

82.e38590476f41d60c6a92.js 6.8KB

1
  1. webpackJsonp([82],{V929:function(t,e){},Vgsa:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG4AAABuCAMAAADxhdbJAAAAt1BMVEUAAABlt0tluUtmu03D94V1v2Rlt0plt0llt0llt0llt0psvFHy72zz7m5luEpkt0plt0plt0tmuEpvwlJkt0lmt0pmuEpmuEtmuU5puVBltkplt0llt0llt0lkt0llt0pluEpnukzy7mxlt0nz72zz7mzy72zy72zz72xlt0nz723z72xluEpluEr072307m729nH09G//8Hj//4D//4Dz72xlt0llt0rz721lt0pmt0pktkny7mwl4XXkAAAAO3RSTlMAzDoeAgfB+u7YpxHwelzhd01JC+h8Uz00GfTJs62gkkQr8/Dq49nLv7qvq3BpYFobFxEIBs2JhM6YgAjxQIMAAAJzSURBVGje7dnJcuIwFIXhazwP2NhmniEJhJkASbr78P7P1SKkSAzq9MZXi8T/Qtuvrsolq0p0zmy8epbGlOXVmgZ9ZIQRmHPji5Z2oaC+edZ8DUqy3jxjhlPd1bDEVLK0zvORaAVRNSHWQgeimCitAoh8Yk4/ea5BdYiGxF4IUZM8sXqkIEtANXLFWicFLd/mOu3piBSUCMgiiHRSUElA2o/kduv5ZDyezNc7Bdy+HBzfC8p7bm47PX5quuXltg/HTA9bTm4/PV413TNy5eNNZT5uF9xywY6NWx8lrdm4uYybs3ETGTdh48YybszGBTIuYOOeZdwzG7eQcQs2biPjNmzc4f5Wuz98l0OMjMdr7dFg5Ojp+gf0RIyc8B4zsz0RL0dG+f7ylZQNBVejw2bxHAS/FpvDd7z4ERXcj+QMfbiq/Xl9eVnGo5SXS+OB1san3EHDYOL0imXjtmq/kT9nhjP8s06cL+e/Oviy2So/Th+08d/y4vyBDajizModoIxLIkAZ1/IAdVzoQB3ne4A6rhFBHWdUbKjj0i7AwrVKw6ReL+lm5hhxkT/XCvud9sfB3q003s2Gg7y5Vk3DTXavLsS6jZy5pGtDnvO7BuTLDTvgSM6NLJxTwaUvl21UwDVdXGLnjGVmNGYu7SETL6dryMTLjSJkY+WaVVzFyTXvcB0jN3JwEx+ny3aSjfNdSOLiDAuyuLgBpDFxFchj4mwoSnBfVHAFV3Cigiu4ghMVXMEVHEcataEwi1wozKMeFFajEAprkn8HZWlEVIGyYsGZHSiqR6daEZQ08+nsKZnPMzPPOLxFMX3KD3tuG0w5Wj8xzs5fj0R0WYPE7dEAAAAASUVORK5CYII="},gr0N:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("ZLEe"),s=i.n(a),n={data:function(){return{img1:{},img2:{},code_url:"",full_name:"",code:"",name:name,imgLen1:0,imgLen2:0,file1:"",loading:!1}},created:function(){window._czc&&window._czc.push(["_trackEvent","MCN","申请MCN页面"])},methods:{upload:function(t,e,i){var a=e.files,s=1==i?this.imgLen1:this.imgLen2,n=a.length+s,l=Math.floor(a[0].size/1024);if(n>1)return this.$message({message:"最多可以上传一张图片",type:"warning"}),!1;l>2097152&&this.$message({message:"请选择2M以内的图片",type:"warning"}),1==i?this.imgLen1++:this.imgLen2++,this.$set(t,a[0].name+"?"+(new Date).getTime()+s,a[0]),e.value=null},getObjectURL:function(t){var e=null;return void 0!=window.createObjectURL?e=window.createObjectURL(t):void 0!=window.URL?e=window.URL.createObjectURL(t):void 0!=window.webkitURL&&(e=window.webkitURL.createObjectURL(t)),e},detImg:function(t,e,i){this.$delete(e,t),1==i?this.imgLen1--:this.imgLen2--},apply:function(){var t=this;if(!this.name||!this.full_name)return this.$message.closeAll(),this.$message.error("请完整填写申请信息"),!1;if(0==s()(this.img1).length)return this.$message.closeAll(),this.$message.error("请上传公司LOGO"),!1;if(!this.code)return this.$message.closeAll(),this.$message.error("请完整填写申请信息"),!1;if(0==s()(this.img2).length)return this.$message.closeAll(),this.$message.error("请上传公司营业执照"),!1;var e=new FileReader,i=new FileReader,a=s()(this.img1)[0],n=s()(this.img2)[0];e.readAsDataURL(this.img1[a]),e.onload=function(){i.readAsDataURL(t.img2[n]),i.onload=function(){t.loading=!0,t.$axios({url:t.URL.BASEURL+t.URL.upload,data:{logo:e.result,code_url:i.result,name:t.name,code:t.code,full_name:t.full_name},method:"post"}).then(function(e){e=e.data;t.loading=!1,e&&0==e.errno?(window._czc&&window._czc.push(["_trackEvent","MCN","申请MCN页面","提交申请"]),t.$message({type:"success",message:"您的申请已提交,需要1~2个工作日,请耐心等待"}),setTimeout(function(){t.$router.push("/leaflets")},800)):t.$message({message:e.rst,type:"warning"})}).catch(function(e){t.loading=!1,t.$message({message:"请稍后重试!",type:"warning"})})}}}}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"apply"},[a("div",{staticClass:"title"},[t._v("申请开通MCN管理")]),t._v(" "),a("div",{staticClass:"form"},[a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v("MCN机构名称")]),t._v(" "),a("div",{staticClass:"content"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],staticClass:"input",attrs:{type:"text",placeholder:"请输入MCN机构名称"},domProps:{value:t.name},on:{input:function(e){e.target.composing||(t.name=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v("所属公司全称")]),t._v(" "),a("div",{staticClass:"content"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.full_name,expression:"full_name"}],staticClass:"input",attrs:{type:"text",placeholder:"请输入所属公司全称"},domProps:{value:t.full_name},on:{input:function(e){e.target.composing||(t.full_name=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"item",staticStyle:{margin:"20px 0"}},[a("div",{staticClass:"name"},[t._v("公司LOGO")]),t._v(" "),a("div",{staticClass:"content"},[0==Object.keys(t.img1).length?a("img",{attrs:{src:i("Vgsa"),alt:""}}):t._l(t.img1,function(e,i){return a("div",{key:i,staticClass:"imgbox"},[a("i",{staticClass:"el-icon-delete",on:{click:function(e){return t.detImg(i,t.img1,1)}}}),t._v(" "),a("el-image",{attrs:{src:t.getObjectURL(e),alt:""}})],1)}),t._v(" "),a("div",{staticClass:"right"},[a("button",[t._v("点击上传")]),t._v(" "),a("input",{ref:"inputer",staticClass:"upload",attrs:{type:"file",accept:"image/*",name:"点击上传",id:""},on:{change:function(e){return t.upload(t.img1,t.$refs.inputer,1)}}}),t._v(" "),a("p",[t._v("尺寸200*200,最大2M,支持PCG,JPG格式")])])],2)]),t._v(" "),a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[t._v("社会统一信用码")]),t._v(" "),a("div",{staticClass:"content"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.code,expression:"code"}],staticClass:"input",attrs:{type:"text",placeholder:"请输入社会统一信用码"},domProps:{value:t.code},on:{input:function(e){e.target.composing||(t.code=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"item",staticStyle:{margin:"20px 0"}},[a("div",{staticClass:"name"},[t._v("公司营业执照")]),t._v(" "),a("div",{staticClass:"content"},[0==Object.keys(t.img2).length?a("img",{attrs:{src:i("Vgsa"),alt:""}}):t._l(t.img2,function(e,i){return a("div",{key:i,staticClass:"imgbox"},[a("i",{staticClass:"el-icon-delete",on:{click:function(e){return t.detImg(i,t.img2,2)}}}),t._v(" "),a("el-image",{attrs:{src:t.getObjectURL(e),alt:""}})],1)}),t._v(" "),a("div",{staticClass:"right"},[a("button",[t._v("点击上传")]),t._v(" "),a("input",{ref:"inputer1",staticClass:"upload",attrs:{type:"file",accept:"image/*",name:"点击上传",id:""},on:{change:function(e){return t.upload(t.img2,t.$refs.inputer1,2)}}}),t._v(" "),a("p",[t._v("最大2M,支持PCG,JPG格式")])])],2)]),t._v(" "),a("button",{attrs:{id:"applyButton"},on:{click:t.apply}},[t._v("提交申请")])])])},staticRenderFns:[]};var o=i("C7Lr")(n,l,!1,function(t){i("V929")},"data-v-0c0300e8",null);e.default=o.exports}});