Commit 8efc2616 by 无尘

fix: 修改上传图片类型限制

parent 1b761faa
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-集团后台</title><link href=./static/css/app.f6a5039ab0f9faebbdf160fd694a05a8.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.6a37dcb72a57f67df8bb.js></script><script type=text/javascript src=./static/js/vendor.634a4bfa2fa26d2b4636.js></script><script type=text/javascript src=./static/js/app.9ffa97438e5d2651a884.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-集团后台</title><link href=./static/css/app.7b42c09a47882d930768ec65f3a5360c.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.3a422bafdf50ad87885a.js></script><script type=text/javascript src=./static/js/vendor.634a4bfa2fa26d2b4636.js></script><script type=text/javascript src=./static/js/app.9ffa97438e5d2651a884.js></script></body></html>
\ No newline at end of file
webpackJsonp([19],{"1H9E":function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a,o=t("bOdI"),i=t.n(o),s=t("//Fk"),n=t.n(s),l=t("mvHQ"),u=t.n(l),c=t("3E4D"),m=t("Ch4/"),p=t("Mk6G"),d=function(e){var r=new Date,t=r.getFullYear(),a=r.getMonth()+1,o=r.getDate(),i=[];return e.split("-").forEach(function(e,r){i.push(e.split(":"))}),[new Date(t,a,o,i[0][0],i[0][1]),new Date(t,a,o,i[1][0],i[1][1])]},g=function(e){function r(e){return e>9?""+e:"0"+e}return console.log(e),r(new Date(e[0]).getHours())+":"+r(new Date(e[0]).getMinutes())+"-"+(r(new Date(e[1]).getHours())+":"+r(new Date(e[1]).getMinutes()))},h=t("3Xzz"),v=t("P9l9"),f=(t("mw3O"),a={name:"public_num_attention",data:function(){return{projectName:"gic-clique",areaOptions:{provinceName:"",provinceId:"",cityName:"",cityId:"",countryName:"",countyId:""},navpath:[{name:"首页",path:"/"},{name:"集团信息",path:""}],upUrl:"",ruleForm:{cliqueName:"",enterpriseName:"",region:"",addressDetail:"",qcloudImageUrl:"",enterpriseList:[{enterpriseId:"",enterpriseName:"达摩",qcloudImageUrl:"/"}],storeBusinessTime:[new Date(2016,9,10,8,40),new Date(2016,9,10,9,40)],date1:"",date2:"",customerPhone:"",enterpriseDescription:""},rules:{cliqueName:[{required:!0,message:"请输入集团名称",trigger:"blur"}],enterpriseName:[{required:!0,message:"请输入公司名称",trigger:"blur"}],region:[{required:!0,message:"请选择所在地区",trigger:"blur"}],addressDetail:[{required:!0,message:"请输入详细地址",trigger:"change"}],storeBusinessTime:[{required:!0,message:"请选择营业时间",trigger:"change"}],date1:[{type:"date",required:!0,message:"请选择日期",trigger:"change"}],date2:[{type:"date",required:!0,message:"请选择时间",trigger:"change"}],customerPhone:[{required:!0,message:"请输入客服热线",trigger:"change"}],enterpriseDescription:[{required:!0,message:"请输入集团简介",trigger:"blur"}]},inputNumObj:{cliqueName:0,enterpriseName:0,addressDetail:0,customerPhone:0,enterpriseDescription:0},inputFlag:"",inputFlagNum:"",baseUrl:""}},beforeMount:function(){var e=window.location.origin;console.log("当前host:",e),"-1"!=e.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=e,this.upUrl=this.baseUrl+"/api-plug/upload-img?wxFlag=1"},created:function(){console.log("created")},mounted:function(){console.log("mounted"),this.getGroupInfo()},methods:{uploadUrl:function(){var e,r=window.location.origin;return console.log("当前host:",r),e="-1"!=r.indexOf("localhost")?"http://gicdev.demogic.com":r,this.upUrl=e+"/api-plug/upload-img?wxFlag=1&requestProject=gic-clique",console.log(this.upUrl),this.upUrl},changeRoute:function(e){this.$router.push(e)},submitForm:function(e){var r=this;r.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),r.$message.error({duration:1e3,message:"请填写完信息"}),!1;var t=JSON.parse(u()(r.ruleForm));console.log(t),t.storeBusinessTime=g(t.storeBusinessTime),console.log(t.storeBusinessTime),r.saveGroupInfo(t)})},handleAvatarSuccess:function(e,r){console.log("上传成功回调:",e),0==e.errorCode?(this.ruleForm.qcloudImageUrl=e.result[0].qcloudImageUrl,this.ruleForm.imageFiledCode=e.result[0].imageFiledCode,this.ruleForm.imageUrl=e.result[0].wxImg):m.a.errorMsg(e)},beforeAvatarUpload:function(e){var r=this,t="image/jpeg"===e.type,a=e.size/1024/1024<=1;return t||r.$message.error("上传头像图片只能是 JPG 格式!"),a||r.$message.error("上传头像图片大小不能超过 1MB!"),t&&a&&new n.a(function(t,a){var o=new FileReader;o.onload=function(e){var o=new Image;o.onload=function(){var e=this.width,o=this.height;console.log(e,o),e!==o&&(r.$message.error("图片比例必须为1:1的"),a()),t()},o.src=e.target.result,console.log("上传成功:",e.target.result)},o.readAsDataURL(e)})},focus:function(e,r){console.log(e,r),this.inputFlag=e,this.inputFlagNum=r},toInput:function(e){console.log(e);var r="";r=p.a.getByteVal(e.target.value,this.inputFlagNum);console.log(r),this.ruleForm[this.inputFlag]=r.trim(),this.inputNumObj[this.inputFlag]=p.a.getZhLen(this.ruleForm[this.inputFlag]),console.log(this.ruleForm[this.inputFlag])},selected:function(e){console.log(e);e.country?(this.ruleForm.region=e,console.log(e.areaId),this.ruleForm.areaId=e.areaId):this.ruleForm.region=""},saveGroupInfo:function(e){var r=this,t={requestProject:r.projectName,cliqueName:e.cliqueName,enterpriseName:e.enterpriseName,brandName:e.brandName,addressDetail:e.addressDetail,imageUrl:e.imageUrl,imageFieldCode:e.imageFieldCode,qcloudImageUrl:e.qcloudImageUrl,storeBusinessTime:e.storeBusinessTime,customerPhone:e.customerPhone,enterpriseDescription:e.enterpriseDescription,areaId:e.areaId};Object(v.a)("/api-admin/save-enterprise-info",t).then(function(e){var r=e.data;0!=r.errorCode?m.a.errorMsg(r):c.a.showmsg("保存成功","success")}).catch(function(e){console.log(e),r.$message.error({duration:1e3,message:e.message})})},redirect:function(e,r){var t=this,a={eid:r};Object(v.a)("/api-auth/do-login-for-clique",a).then(function(e){var r=e.data;if(0!=r.errorCode)m.a.errorMsg(r);else{var a=t.baseUrl+"";window.open(a,"_blank","toolbar=yes, width=1300, height=900")}}).catch(function(e){console.log(e),t.$message.error({duration:1e3,message:e.message})})},getGroupInfo:function(){var e=this,r={requestProject:e.projectName};Object(v.a)("/api-admin/enterprise-info",r).then(function(r){var t=r.data;if(0==t.errorCode){var a=t.result.enterprise;console.log(t.result.enterprise),a.region={},a.region.areaId=a.areaId,a.region.provinceId=a.province,a.region.provinceName=a.provinceName,a.region.cityId=a.city,a.region.cityName=a.cityName,a.region.countyId=a.country,a.region.countryName=a.countryName,e.areaOptionsNew={},e.areaOptionsNew.provinceName=a.provinceName,e.areaOptionsNew.provinceId=a.province,e.areaOptionsNew.cityName=a.cityName,e.areaOptionsNew.cityId=a.city,e.areaOptionsNew.countryName=a.countryName,e.areaOptionsNew.countyId=a.country;var o=u()(e.areaOptionsNew);return e.areaOptions=JSON.parse(o),a.storeBusinessTime&&(a.storeBusinessTime=d(a.storeBusinessTime)),a.cliqueName&&(e.inputNumObj.cliqueName=p.a.getZhLen(a.cliqueName)),a.enterpriseName&&(e.inputNumObj.enterpriseName=p.a.getZhLen(a.enterpriseName)),a.addressDetail&&(e.inputNumObj.addressDetail=p.a.getZhLen(a.addressDetail)),a.customerPhone&&(e.inputNumObj.customerPhone=p.a.getZhLen(a.customerPhone)),a.enterpriseDescription&&(e.inputNumObj.enterpriseDescription=p.a.getZhLen(a.enterpriseDescription)),e.ruleForm=a,e.ruleForm.enterpriseList=t.result.enterpriseList,void console.log(e.ruleForm)}m.a.errorMsg(t)}).catch(function(r){console.log(r),e.$message.error({duration:1e3,message:r.message})})},setArea:function(e){console.log(e),this.areaOptions.areaId=e.areaId,this.areaOptions.provinceId=e.province,this.areaOptions.provinceName=e.provinceName,this.areaOptions.cityId=e.city,this.areaOptions.cityName=e.cityName,this.areaOptions.countyId=e.country,this.areaOptions.countryName=e.countryName,console.log(this.areaOptions)},login:function(){Object(v.a)("/api-auth/do-login?loginName=damo123&password=123456&eid=ff80808162ddfe1a0162e0ebd39c0000").then(function(e){e.data.errorCode})}},watch:{}},i()(a,"beforeMount",function(){console.log("mounted")}),i()(a,"updated",function(){console.log("updated")}),i()(a,"components",{topNav:h.a}),a),N={render:function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"right-wrap"},[t("topNav",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"attention-wrap"},[t("div",{staticClass:"group-contain"},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"110px"}},[t("el-form-item",{attrs:{label:"集团名称",prop:"cliqueName"}},[t("el-input",{on:{focus:function(r){e.focus("cliqueName",10)}},nativeOn:{keyup:function(r){return t=r,e.toInput(t);var t}},model:{value:e.ruleForm.cliqueName,callback:function(r){e.$set(e.ruleForm,"cliqueName",r)},expression:"ruleForm.cliqueName"}}),e._v(" "),t("label",{staticClass:"input-label"},[e._v(e._s(e.inputNumObj.cliqueName)+"/10")])],1),e._v(" "),t("el-form-item",{attrs:{label:"公司名称",prop:"enterpriseName"}},[t("el-input",{on:{focus:function(r){e.focus("enterpriseName",20)}},nativeOn:{keyup:function(r){return t=r,e.toInput(t);var t}},model:{value:e.ruleForm.enterpriseName,callback:function(r){e.$set(e.ruleForm,"enterpriseName",r)},expression:"ruleForm.enterpriseName"}}),e._v(" "),t("label",{staticClass:"input-label"},[e._v(e._s(e.inputNumObj.enterpriseName)+"/20")])],1),e._v(" "),t("el-form-item",{staticClass:"city-area",attrs:{label:"所在地区",prop:"region"}},[t("vue-area-ab",{attrs:{projectName:e.projectName,areaOptions:e.areaOptions},on:{selected:e.selected}})],1),e._v(" "),t("el-form-item",{attrs:{label:"详细地址",prop:"addressDetail"}},[t("el-input",{on:{focus:function(r){e.focus("addressDetail",50)}},nativeOn:{keyup:function(r){return t=r,e.toInput(t);var t}},model:{value:e.ruleForm.addressDetail,callback:function(r){e.$set(e.ruleForm,"addressDetail",r)},expression:"ruleForm.addressDetail"}}),e._v(" "),t("label",{staticClass:"input-label"},[e._v(e._s(e.inputNumObj.addressDetail)+"/50")])],1),e._v(" "),t("el-form-item",{attrs:{label:"集团logo",prop:"qcloudImageUrl"}},[t("div",[t("el-upload",{staticClass:"avatar-uploader",attrs:{action:e.uploadUrl(),"show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload}},[e.ruleForm.qcloudImageUrl?t("img",{staticClass:"avatar",attrs:{src:e.ruleForm.qcloudImageUrl}}):t("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),e._v(" "),t("p",{staticClass:"upload-tip"},[e._v("只能上传规格为1:1的 jpg 图片,且不超过1Mb")])],1)]),e._v(" "),t("el-form-item",{attrs:{label:"关联商户"}},[t("div",{staticClass:"link-shop"},[e._l(e.ruleForm.enterpriseList,function(r,a){return[t("router-link",{attrs:{tag:"a",target:"_blank",to:{path:"/login",query:{enterpriseId:r.enterpriseId}}}},[t("img",{attrs:{src:r.qcloudImageUrl,alt:""}}),e._v(" "),t("span",[e._v(e._s(r.enterpriseName))])])]})],2)]),e._v(" "),t("el-form-item",{attrs:{label:"营业时间模板",prop:"storeBusinessTime"}},[t("el-time-picker",{attrs:{"is-range":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:"选择时间范围",format:"HH:mm"},model:{value:e.ruleForm.storeBusinessTime,callback:function(r){e.$set(e.ruleForm,"storeBusinessTime",r)},expression:"ruleForm.storeBusinessTime"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"客服热线",prop:"customerPhone"}},[t("el-input",{on:{focus:function(r){e.focus("customerPhone",30)}},nativeOn:{keyup:function(r){return t=r,e.toInput(t);var t}},model:{value:e.ruleForm.customerPhone,callback:function(r){e.$set(e.ruleForm,"customerPhone",r)},expression:"ruleForm.customerPhone"}}),e._v(" "),t("label",{staticClass:"input-label"},[e._v(e._s(e.inputNumObj.customerPhone)+"/30")])],1),e._v(" "),t("el-form-item",{attrs:{label:"集团简介",prop:"enterpriseDescription"}},[t("el-input",{staticStyle:{height:"96px"},attrs:{type:"textarea"},on:{focus:function(r){e.focus("enterpriseDescription",200)}},nativeOn:{keyup:function(r){return t=r,e.toInput(t);var t}},model:{value:e.ruleForm.enterpriseDescription,callback:function(r){e.$set(e.ruleForm,"enterpriseDescription",r)},expression:"ruleForm.enterpriseDescription"}}),e._v(" "),[t("label",{staticClass:"input-label textarea-label"},[e._v(e._s(e.inputNumObj.enterpriseDescription)+"/200")])]],2),e._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:function(r){e.submitForm("ruleForm")}}},[e._v("保 存")])],1)],1)],1)])])]),e._v(" "),t("vue-gic-footer")],1)},staticRenderFns:[]};var b=t("VU/8")(f,N,!1,function(e){t("qiDm")},"data-v-507cdf5a",null);r.default=b.exports},qiDm:function(e,r){}});
//# sourceMappingURL=19.6750f278930e019e7d78.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/common/js/timeFormat.js","webpack:///src/view/companyGroup/membershipSystem/companyGroupInfo.vue","webpack:///./src/view/companyGroup/membershipSystem/companyGroupInfo.vue?c935","webpack:///./src/view/companyGroup/membershipSystem/companyGroupInfo.vue"],"names":["timeFormat","val","date","Date","y","getFullYear","m","getMonth","day","getDate","newArr","split","forEach","ele","index","push","formatDig","num","console","log","getHours","getMinutes","companyGroupInfo","_name$data$beforeMoun","name","data","projectName","areaOptions","provinceName","provinceId","cityName","cityId","countryName","countyId","navpath","path","upUrl","ruleForm","cliqueName","enterpriseName","region","addressDetail","qcloudImageUrl","enterpriseList","enterpriseId","storeBusinessTime","date1","date2","customerPhone","enterpriseDescription","rules","required","message","trigger","type","inputNumObj","inputFlag","inputFlagNum","baseUrl","beforeMount","host","window","location","origin","indexOf","this","created","mounted","getGroupInfo","methods","uploadUrl","changeRoute","route","$router","submitForm","formName","that","$refs","validate","valid","$message","error","duration","newFormData","JSON","parse","stringify_default","saveGroupInfo","handleAvatarSuccess","res","file","errorCode","result","imageFiledCode","imageUrl","wxImg","errorMsg","beforeAvatarUpload","isJPG","isLt2M","size","promise_default","a","resolve","reject","reader","FileReader","onload","event","image","Image","width","height","src","target","readAsDataURL","focus","toInput","value","temp","strlen","getByteVal","trim","getZhLen","selected","country","areaId","form","para","requestProject","brandName","imageFieldCode","Object","api","then","resData","showmsg","catch","redirect","e","eid","href","open","newEnterprise","enterprise","province","city","areaOptionsNew","obj","setArea","login","watch","defineProperty_default","topNav","nav","membershipSystem_companyGroupInfo","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","_v","ref","model","label-width","label","prop","on","$event","nativeOn","keyup","callback","$$v","$set","expression","_s","action","show-file-list","on-success","before-upload","_l","item","tag","to","query","alt","is-range","range-separator","start-placeholder","end-placeholder","placeholder","format","staticStyle","click","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"iNAMAA,EAIc,SAASC,GACnB,IAAIC,EAAO,IAAIC,KACXC,EAAIF,EAAKG,cACTC,EAAIJ,EAAKK,WAAY,EACrBC,EAAMN,EAAKO,UAEJC,KAMX,OALWT,EAAIU,MAAM,KAChBC,QAAQ,SAASC,EAAIC,GACxBJ,EAAOK,KAAKF,EAAIF,MAAM,SAEnB,IAAIR,KAAKC,EAAEE,EAAEE,EAAIE,EAAO,GAAG,GAAGA,EAAO,GAAG,IAAI,IAAIP,KAAKC,EAAEE,EAAEE,EAAIE,EAAO,GAAG,GAAGA,EAAO,GAAG,MAf7FV,EAAe,SAqBFC,GAGT,SAASe,EAAUC,GACjB,OAAOA,EAAM,EAAI,GAAKA,EAAM,IAAMA,EAMpC,OATAC,QAAQC,IAAIlB,GAMHe,EAAU,IAAIb,KAAKF,EAAI,IAAImB,YAAY,IAAIJ,EAAU,IAAIb,KAAKF,EAAI,IAAIoB,c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,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,CACAlL,EACAqI,GATA,EAVA,SAAA8C,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/19.6750f278930e019e7d78.js","sourcesContent":["\n/*\n * 时间日期转换\n * @param: \"10:00-22:00\"/ new Date()\n */\n\nexport default {\n /*\n * var storeBusinessTime=\"10:00-22:00\" to\n */\n timeToDate: function(val) {\n var date = new Date()\n var y = date.getFullYear();\n var m = date.getMonth() +1;\n var day = date.getDate();\n\n var d = [],newArr = [];\n var dArr = val.split('-');\n dArr.forEach(function(ele,index){\n newArr.push(ele.split(':'))\n })\n d = [new Date(y,m,day,newArr[0][0],newArr[0][1]),new Date(y,m,day,newArr[1][0],newArr[1][1])]\n return d;\n },\n\n\n\n dateToTime(val) {\n console.log(val)\n // (0-9)年月数字的显示\n function formatDig(num) {\n return num > 9 ? '' + num : '0' + num;\n }\n var t;\n var t1 = formatDig(new Date(val[0]).getHours())+':'+formatDig(new Date(val[0]).getMinutes())\n var t2 = formatDig(new Date(val[1]).getHours())+':'+formatDig(new Date(val[1]).getMinutes())\n t= t1+'-'+t2\n return t;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/common/js/timeFormat.js","<template>\n <div class=\"right-wrap\">\n <topNav :navpath=\"navpath\"></topNav>\n <div class=\"right-content\">\n <div class=\"right-box\">\n <div class=\"attention-wrap\">\n <div class=\"group-contain\">\n <el-form :model=\"ruleForm\" :rules=\"rules\" ref=\"ruleForm\" label-width=\"110px\" class=\"demo-ruleForm\">\n <el-form-item label=\"集团名称\" prop=\"cliqueName\">\n <el-input v-model=\"ruleForm.cliqueName\" @focus=\"focus('cliqueName',10)\" @keyup.native=\"(value) => toInput(value)\">\n <!-- <template slot=\"append\"><label class=\"input-label\">{{inputNumObj.cliqueName}}/10</label></template> -->\n </el-input>\n <label class=\"input-label\">{{inputNumObj.cliqueName}}/10</label>\n </el-form-item>\n <el-form-item label=\"公司名称\" prop=\"enterpriseName\">\n <el-input v-model=\"ruleForm.enterpriseName\" @focus=\"focus('enterpriseName',20)\" @keyup.native=\"(value) => toInput(value)\">\n <!-- <template slot=\"append\"><label class=\"input-label\">{{inputNumObj.enterpriseName}}/20</label></template> -->\n </el-input>\n <label class=\"input-label\">{{inputNumObj.enterpriseName}}/20</label>\n </el-form-item>\n <el-form-item label=\"所在地区\" prop=\"region\" class=\"city-area\">\n <vue-area-ab :projectName=\"projectName\" :areaOptions=\"areaOptions\" @selected=\"selected\"></vue-area-ab>\n </el-form-item>\n <el-form-item label=\"详细地址\" prop=\"addressDetail\">\n <el-input v-model=\"ruleForm.addressDetail\" @focus=\"focus('addressDetail',50)\" @keyup.native=\"(value) => toInput(value)\">\n <!-- <template slot=\"append\"><label class=\"input-label\">{{inputNumObj.addressDetail}}/50</label></template> -->\n </el-input>\n <label class=\"input-label\">{{inputNumObj.addressDetail}}/50</label>\n </el-form-item>\n <el-form-item label=\"集团logo\" prop=\"qcloudImageUrl\">\n <div>\n\n <!-- <img src=\"\" alt=\"\"> -->\n <el-upload\n class=\"avatar-uploader\"\n :action=\"uploadUrl()\"\n :show-file-list=\"false\"\n :on-success=\"handleAvatarSuccess\"\n :before-upload=\"beforeAvatarUpload\">\n <img v-if=\"ruleForm.qcloudImageUrl\" :src=\"ruleForm.qcloudImageUrl\" class=\"avatar\">\n <i v-else class=\"el-icon-plus avatar-uploader-icon\"></i>\n </el-upload>\n <p class=\"upload-tip\">只能上传规格为1:1的 jpg 图片,且不超过1Mb</p>\n </div>\n </el-form-item>\n <el-form-item label=\"关联商户\">\n <div class=\"link-shop\">\n <!-- <a v-for=\"(item,index) in ruleForm.enterpriseList\">\n <img :src=\"item.qcloudImageUrl\" alt=\"\"/>\n <span>{{item.enterpriseName}}</span>\n </a> -->\n <template v-for=\"(item,index) in ruleForm.enterpriseList\">\n <router-link tag=\"a\" target=\"_blank\" :to=\"{path:'/login',query:{enterpriseId: item.enterpriseId}}\" >\n <img :src=\"item.qcloudImageUrl\" alt=\"\"/>\n <span>{{item.enterpriseName}}</span>\n </router-link>\n </template>\n\n </div>\n </el-form-item>\n <el-form-item label=\"营业时间模板\" prop=\"storeBusinessTime\">\n <!-- <el-time-select\n v-model=\"ruleForm.date1\"\n :picker-options=\"{\n start: '00:00',\n step: '00:15',\n end: '23:55'\n }\"\n placeholder=\"选择时间\">\n </el-time-select>至\n <el-time-select\n v-model=\"ruleForm.date2\"\n :picker-options=\"{\n start: '08:30',\n step: '00:15',\n end: '18:30'\n }\"\n placeholder=\"选择时间\">\n </el-time-select> -->\n <el-time-picker\n is-range\n v-model=\"ruleForm.storeBusinessTime\"\n range-separator=\"至\"\n start-placeholder=\"开始时间\"\n end-placeholder=\"结束时间\"\n placeholder=\"选择时间范围\" format=\"HH:mm\">\n </el-time-picker>\n </el-form-item>\n <el-form-item label=\"客服热线\" prop=\"customerPhone\">\n <el-input v-model=\"ruleForm.customerPhone\" @focus=\"focus('customerPhone',30)\" @keyup.native=\"(value) => toInput(value)\">\n <!-- <template slot=\"append\"><label class=\"input-label\">{{inputNumObj.customerPhone}}/30</label></template> -->\n </el-input>\n <label class=\"input-label\">{{inputNumObj.customerPhone}}/30</label>\n </el-form-item>\n <el-form-item label=\"集团简介\" prop=\"enterpriseDescription\">\n <el-input type=\"textarea\" v-model=\"ruleForm.enterpriseDescription\" style=\"height: 96px;\" @focus=\"focus('enterpriseDescription',200)\" @keyup.native=\"(value) => toInput(value)\">\n\n </el-input>\n <template><label class=\"input-label textarea-label\">{{inputNumObj.enterpriseDescription}}/200</label></template>\n </el-form-item>\n <el-form-item>\n <el-button type=\"primary\" @click=\"submitForm('ruleForm')\">保 存</el-button>\n </el-form-item>\n </el-form>\n\n </div>\n\n </div>\n </div>\n </div>\n <vue-gic-footer></vue-gic-footer>\n </div>\n</template>\n<script>\nimport showMsg from '@/common/js/showmsg';\nimport errMsg from '@/common/js/error';\nimport strLength from '@/common/js/strlen';\nimport newTime from '@/common/js/timeFormat';\nimport topNav from 'components/nav/nav'\nimport { getRequest } from '@/api/api';\nimport qs from 'qs'\n\nexport default {\n name: \"public_num_attention\",\n data() {\n return {\n projectName: 'gic-clique', // 当前项目名\n areaOptions: {\n provinceName: '',\n provinceId: '',\n cityName: '',\n cityId: '',\n countryName: '',\n countyId: ''\n },\n navpath: [{\n name: '首页',\n path: '/'\n },\n {\n name: '集团信息',\n path: ''\n }\n ],\n\n upUrl: '',// 上传地址\n\n\n\n ruleForm: {\n cliqueName: '',\n enterpriseName: '',\n region: '',\n addressDetail: '',\n qcloudImageUrl: '',\n enterpriseList:[\n {\n enterpriseId: '',\n enterpriseName: '达摩',\n qcloudImageUrl: '/',\n },\n\n ],\n storeBusinessTime: [new Date(2016, 9, 10, 8, 40), new Date(2016, 9, 10, 9, 40)],\n date1: '',\n date2: '',\n customerPhone: '',\n enterpriseDescription: ''\n },\n rules: {\n cliqueName: [\n { required: true, message: '请输入集团名称', trigger: 'blur' },\n ],\n enterpriseName: [\n { required: true, message: '请输入公司名称', trigger: 'blur' },\n ],\n region: [\n { required: true, message: '请选择所在地区', trigger: 'blur' }\n ],\n addressDetail: [\n { required: true, message: '请输入详细地址', trigger: 'change' }\n ],\n storeBusinessTime: [\n { required: true, message: '请选择营业时间', trigger: 'change' }\n ],\n date1: [\n { type: 'date', required: true, message: '请选择日期', trigger: 'change' }\n ],\n date2: [\n { type: 'date', required: true, message: '请选择时间', trigger: 'change' }\n ],\n\n customerPhone: [\n { required: true, message: '请输入客服热线', trigger: 'change' }\n ],\n enterpriseDescription: [\n { required: true, message: '请输入集团简介', trigger: 'blur' }\n ]\n },\n\n inputNumObj: {//输入字数\n cliqueName: 0,\n enterpriseName: 0,\n addressDetail: 0,\n customerPhone: 0,\n enterpriseDescription: 0\n\n },\n // 记录输入的\n inputFlag: '',\n inputFlagNum: '',\n\n baseUrl: '', // 域名\n }\n },\n beforeMount() {\n var that = this\n var host = window.location.origin;\n console.log(\"当前host:\",host)\n if (host.indexOf('localhost') != '-1') {\n that.baseUrl = 'http://gicdev.demogic.com';\n }else {\n that.baseUrl = host\n }\n\n that.upUrl = that.baseUrl + '/api-plug/upload-img?wxFlag=1'\n },\n created() {\n // this.selectReplayStyle()\n console.log(\"created\")\n\n },\n mounted() {\n var that = this;\n console.log(\"mounted\")\n that.getGroupInfo();\n },\n\n methods: {\n\n uploadUrl() {\n var that = this\n var host = window.location.origin;\n var baseUrl;\n console.log(\"当前host:\",host)\n if (host.indexOf('localhost') != '-1') {\n baseUrl = 'http://gicdev.demogic.com';\n }else {\n baseUrl = host\n }\n\n that.upUrl = baseUrl + '/api-plug/upload-img?wxFlag=1&requestProject=gic-clique'\n console.log(that.upUrl)\n return that.upUrl\n },\n\n changeRoute(route) {\n var that= this\n that.$router.push(route);\n },\n\n // 保存\n submitForm(formName) {\n var that= this\n that.$refs[formName].validate((valid) => {\n if (valid) {\n\n var newFormData = JSON.parse(JSON.stringify(that.ruleForm))\n console.log(newFormData)\n newFormData.storeBusinessTime = newTime.dateToTime(newFormData.storeBusinessTime)\n // 发送的数据\n console.log(newFormData.storeBusinessTime)\n // 保存方法\n that.saveGroupInfo(newFormData)\n\n } else {\n console.log('error submit!!');\n that.$message.error({\n duration: 1000,\n message: \"请填写完信息\"\n })\n return false;\n }\n });\n },\n\n // 上传\n handleAvatarSuccess(res, file) {\n var that = this\n\n console.log(\"上传成功回调:\",res)\n if (res.errorCode == 0) {\n that.ruleForm.qcloudImageUrl = res.result[0].qcloudImageUrl;//URL.createObjectURL(file.raw);\n that.ruleForm.imageFiledCode = res.result[0].imageFiledCode;\n that.ruleForm.imageUrl = res.result[0].wxImg;\n }else {\n errMsg.errorMsg(res)\n }\n\n },\n beforeAvatarUpload(file) {\n var that = this\n const isJPG = file.type === 'image/jpeg';\n const isLt2M = file.size / 1024 / 1024 <= 1;\n\n if (!isJPG) {\n that.$message.error('上传头像图片只能是 JPG 格式!');\n }\n if (!isLt2M) {\n that.$message.error('上传头像图片大小不能超过 1MB!');\n }\n return isJPG && isLt2M && new Promise(function(resolve, reject) {\n let reader = new FileReader();\n reader.onload = function(event) {\n let image = new Image();\n image.onload = function () {\n let width = this.width;\n let height = this.height;\n console.log(width,height)\n\n if (width !== height){\n that.$message.error('图片比例必须为1:1的');\n reject();\n }\n\n resolve();\n };\n image.src = event.target.result;\n console.log(\"上传成功:\",event.target.result)\n };\n reader.readAsDataURL(file);\n })\n },\n\n focus(name,num) {\n var that = this\n console.log(name,num)\n that.inputFlag = name;\n that.inputFlagNum = num;\n },\n\n // 输入\n toInput: function(value) {\n var that = this;\n console.log(value)\n\n var temp = '';\n var temp = strLength.getByteVal(value.target.value,that.inputFlagNum)\n console.log(temp)\n that.ruleForm[that.inputFlag] = temp.trim()\n\n that.inputNumObj[that.inputFlag] = strLength.getZhLen(that.ruleForm[that.inputFlag]);\n\n console.log(that.ruleForm[that.inputFlag])\n },\n\n // 省市县选择\n selected(val) {\n console.log(val)\n var that = this\n if (!!val.country) {\n that.ruleForm.region = val;\n console.log(val.areaId)\n that.ruleForm.areaId = val.areaId\n }else {\n that.ruleForm.region = ''\n }\n },\n // 保存集团信息\n saveGroupInfo(form) {\n var that = this\n var para = {\n\n requestProject: that.projectName,\n cliqueName: form.cliqueName,\n enterpriseName: form.enterpriseName,\n brandName: form.brandName,\n addressDetail: form.addressDetail,\n imageUrl: form.imageUrl,\n imageFieldCode: form.imageFieldCode,\n qcloudImageUrl: form.qcloudImageUrl,\n storeBusinessTime: form.storeBusinessTime,\n customerPhone: form.customerPhone,\n enterpriseDescription: form.enterpriseDescription,\n areaId: form.areaId,\n }\n\n getRequest('/api-admin/save-enterprise-info',para)\n .then((res) => {\n // console.log(res,res.data,res.data.errorCode)\n var resData = res.data\n if (resData.errorCode == 0) {\n showMsg.showmsg('保存成功','success')\n return;\n }\n // that.userFormVisible = false;\n errMsg.errorMsg(resData)\n\n })\n .catch(function (error) {\n console.log(error);\n // that.toLogin()\n // that.userFormVisible = false;\n that.$message.error({\n duration: 1000,\n message: error.message\n })\n });\n },\n\n // 跳转商户\n redirect(e,enterpriseId){\n var that = this\n var para = {\n eid: enterpriseId\n }\n getRequest('/api-auth/do-login-for-clique',para)\n .then((res) => {\n // console.log(res,res.data,res.data.errorCode)\n var resData = res.data\n if (resData.errorCode == 0) {\n\n var href = that.baseUrl + ''\n window.open(href, '_blank','toolbar=yes, width=1300, height=900');\n return;\n }\n // that.userFormVisible = false;\n errMsg.errorMsg(resData)\n\n })\n .catch(function (error) {\n console.log(error);\n // that.toLogin()\n // that.userFormVisible = false;\n that.$message.error({\n duration: 1000,\n message: error.message\n })\n });\n },\n\n // 获取集团信息\n getGroupInfo() {\n var that = this\n var para = {\n requestProject: that.projectName\n }\n\n getRequest('/api-admin/enterprise-info',para)\n .then((res) => {\n // console.log(res,res.data,res.data.errorCode)\n var resData = res.data\n if (resData.errorCode == 0) {\n // 设置省市县\n var newEnterprise = resData.result.enterprise\n // that.setArea(JSON.parse(JSON.stringify(newEnterprise)));\n //\n console.log(resData.result.enterprise)\n newEnterprise.region = {};\n newEnterprise.region.areaId = newEnterprise.areaId;\n newEnterprise.region.provinceId = newEnterprise.province;\n newEnterprise.region.provinceName = newEnterprise.provinceName;\n newEnterprise.region.cityId = newEnterprise.city;\n newEnterprise.region.cityName = newEnterprise.cityName;\n newEnterprise.region.countyId = newEnterprise.country;\n newEnterprise.region.countryName = newEnterprise.countryName;\n\n that.areaOptionsNew = {}\n that.areaOptionsNew.provinceName = newEnterprise.provinceName; // 默认的省市区传值\n that.areaOptionsNew.provinceId = newEnterprise.province;\n that.areaOptionsNew.cityName = newEnterprise.cityName;\n that.areaOptionsNew.cityId = newEnterprise.city;\n that.areaOptionsNew.countryName = newEnterprise.countryName;\n that.areaOptionsNew.countyId = newEnterprise.country;\n var obj = JSON.stringify(that.areaOptionsNew); // 深拷贝\n that.areaOptions = JSON.parse(obj);\n // that.areaOptions = JSON.parse(JSON.stringify(newEnterprise.region))\n // 时间\n if (!!newEnterprise.storeBusinessTime) {\n newEnterprise.storeBusinessTime = newTime.timeToDate(newEnterprise.storeBusinessTime)\n }\n\n\n // 长度\n if (!!newEnterprise.cliqueName) {\n that.inputNumObj.cliqueName = strLength.getZhLen(newEnterprise.cliqueName)\n }\n if (!!newEnterprise.enterpriseName) {\n that.inputNumObj.enterpriseName = strLength.getZhLen(newEnterprise.enterpriseName)\n }\n\n if (!!newEnterprise.addressDetail) {\n that.inputNumObj.addressDetail = strLength.getZhLen(newEnterprise.addressDetail)\n }\n\n if (!!newEnterprise.customerPhone) {\n that.inputNumObj.customerPhone = strLength.getZhLen(newEnterprise.customerPhone)\n }\n\n if (!!newEnterprise.enterpriseDescription) {\n that.inputNumObj.enterpriseDescription = strLength.getZhLen(newEnterprise.enterpriseDescription)\n }\n\n\n\n that.ruleForm = newEnterprise;\n\n that.ruleForm.enterpriseList = resData.result.enterpriseList\n\n\n console.log(that.ruleForm)\n return;\n }\n // that.userFormVisible = false;\n errMsg.errorMsg(resData)\n\n })\n .catch(function (error) {\n console.log(error);\n // that.toLogin()\n // that.userFormVisible = false;\n that.$message.error({\n duration: 1000,\n message: error.message\n })\n });\n },\n\n setArea(obj) {\n var that = this\n console.log(obj)\n that.areaOptions.areaId = obj.areaId;\n that.areaOptions.provinceId = obj.province;\n that.areaOptions.provinceName = obj.provinceName;\n that.areaOptions.cityId = obj.city;\n that.areaOptions.cityName = obj.cityName;\n that.areaOptions.countyId = obj.country;\n that.areaOptions.countryName = obj.countryName;\n console.log(that.areaOptions)\n },\n login() {\n var that = this\n getRequest('/api-auth/do-login?loginName=damo123&password=123456&eid=ff80808162ddfe1a0162e0ebd39c0000',)\n .then((res) => {\n // console.log(res,res.data,res.data.errorCode)\n var resData = res.data\n if (resData.errorCode == 0) {\n\n }\n })\n }\n },\n watch: {\n\n },\n beforeMount:function(){\n var that = this;\n // that.login()\n console.log(\"mounted\")\n // that.getGroupInfo();\n },\n\n updated : function(){\n console.log(\"updated\")\n var that = this;\n },\n components: {\n topNav\n },\n\n}\n\n</script>\n<style lang=\"scss\" scoped>\n\n.attention-wrap {\n\n padding: 24px 32px;\n background: #fff;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n .item-label {\n font-size: 14px;\n color: #606266;\n margin-bottom: 30px;\n span {\n display: inline-block;\n width: 80px;\n }\n }\n .attention-content-wrap {}\n /deep/ .el-form-item__label{\n padding: 0 12px 0 0;\n }\n\n /deep/ .el-form {\n .el-form-item:last-child {\n /*margin-bottom: 0;*/\n }\n\n .el-form-item__content {\n width: 700px;\n }\n\n .city-area {\n /deep/ .w-160 {\n width: 228px;\n &+.w-160 {\n /*margin-left: 6px;*/\n }\n }\n }\n }\n}\n\n.group-contain {\n\n .el-input {\n width: 700px;\n &.el-date-editor {\n width: 300px;\n }\n }\n\n .el-textarea {\n width: 700px;\n /*height: 300px;*/\n\n /deep/ .el-textarea__inner {\n resize: none;\n height: 96px;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n }\n\n /deep/ .input-label {\n position: absolute;\n right: 10px;\n top: 2px;\n color: #909399;\n font-size: 12px;\n }\n\n .textarea-label {\n position: absolute;\n right: 10px;\n top: 90px;\n color: #909399;\n }\n\n .upload-tip {\n color: #909399;\n font-size: 12px;\n line-height: 12px;\n }\n\n .avatar-uploader {\n /deep/ .el-upload {\n border: 1px dashed #d9d9d9;\n border-radius: 6px;\n cursor: pointer;\n position: relative;\n overflow: hidden;\n &:hover {\n border-color: #1890ff;\n }\n }\n }\n .avatar-uploader .el-upload:hover {\n border-color: #1890ff;\n }\n .avatar-uploader-icon {\n font-size: 28px;\n color: #8c939d;\n width: 100px;\n height: 100px;\n line-height: 100px;\n text-align: center;\n }\n .avatar {\n width: 100px;\n height: 100px;\n display: block;\n }\n\n .link-shop {\n width: 800px;\n font-size: 0;\n a {\n\n display: inline-block;\n width: 250px;\n border: 1px solid #e3e5e9;\n border-radius: 2px;\n padding: 10px 15px;\n margin-right: 16px;\n margin-bottom: 10px;\n color: #333;\n font-size: 14px;\n cursor: pointer;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n &+a {\n /*margin-left: 10px;*/\n }\n }\n img {\n display: inline-block;\n vertical-align: middle;\n width: 60px;\n height: 60px;\n }\n span {\n display: inline-block;\n vertical-align: middle;\n }\n }\n\n .el-form-item.is-success /deep/ .el-input__inner, .el-form-item.is-success /deep/ .el-input__inner:focus, .el-form-item.is-success /deep/ .el-textarea__inner, .el-form-item.is-success /deep/ .el-textarea__inner:focus {\n border-color: #dcdfe6;\n }\n}\n\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/view/companyGroup/membershipSystem/companyGroupInfo.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"right-wrap\"},[_c('topNav',{attrs:{\"navpath\":_vm.navpath}}),_vm._v(\" \"),_c('div',{staticClass:\"right-content\"},[_c('div',{staticClass:\"right-box\"},[_c('div',{staticClass:\"attention-wrap\"},[_c('div',{staticClass:\"group-contain\"},[_c('el-form',{ref:\"ruleForm\",staticClass:\"demo-ruleForm\",attrs:{\"model\":_vm.ruleForm,\"rules\":_vm.rules,\"label-width\":\"110px\"}},[_c('el-form-item',{attrs:{\"label\":\"集团名称\",\"prop\":\"cliqueName\"}},[_c('el-input',{on:{\"focus\":function($event){_vm.focus('cliqueName',10)}},nativeOn:{\"keyup\":function($event){return (function (value) { return _vm.toInput(value); })($event)}},model:{value:(_vm.ruleForm.cliqueName),callback:function ($$v) {_vm.$set(_vm.ruleForm, \"cliqueName\", $$v)},expression:\"ruleForm.cliqueName\"}}),_vm._v(\" \"),_c('label',{staticClass:\"input-label\"},[_vm._v(_vm._s(_vm.inputNumObj.cliqueName)+\"/10\")])],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"公司名称\",\"prop\":\"enterpriseName\"}},[_c('el-input',{on:{\"focus\":function($event){_vm.focus('enterpriseName',20)}},nativeOn:{\"keyup\":function($event){return (function (value) { return _vm.toInput(value); })($event)}},model:{value:(_vm.ruleForm.enterpriseName),callback:function ($$v) {_vm.$set(_vm.ruleForm, \"enterpriseName\", $$v)},expression:\"ruleForm.enterpriseName\"}}),_vm._v(\" \"),_c('label',{staticClass:\"input-label\"},[_vm._v(_vm._s(_vm.inputNumObj.enterpriseName)+\"/20\")])],1),_vm._v(\" \"),_c('el-form-item',{staticClass:\"city-area\",attrs:{\"label\":\"所在地区\",\"prop\":\"region\"}},[_c('vue-area-ab',{attrs:{\"projectName\":_vm.projectName,\"areaOptions\":_vm.areaOptions},on:{\"selected\":_vm.selected}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"详细地址\",\"prop\":\"addressDetail\"}},[_c('el-input',{on:{\"focus\":function($event){_vm.focus('addressDetail',50)}},nativeOn:{\"keyup\":function($event){return (function (value) { return _vm.toInput(value); })($event)}},model:{value:(_vm.ruleForm.addressDetail),callback:function ($$v) {_vm.$set(_vm.ruleForm, \"addressDetail\", $$v)},expression:\"ruleForm.addressDetail\"}}),_vm._v(\" \"),_c('label',{staticClass:\"input-label\"},[_vm._v(_vm._s(_vm.inputNumObj.addressDetail)+\"/50\")])],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"集团logo\",\"prop\":\"qcloudImageUrl\"}},[_c('div',[_c('el-upload',{staticClass:\"avatar-uploader\",attrs:{\"action\":_vm.uploadUrl(),\"show-file-list\":false,\"on-success\":_vm.handleAvatarSuccess,\"before-upload\":_vm.beforeAvatarUpload}},[(_vm.ruleForm.qcloudImageUrl)?_c('img',{staticClass:\"avatar\",attrs:{\"src\":_vm.ruleForm.qcloudImageUrl}}):_c('i',{staticClass:\"el-icon-plus avatar-uploader-icon\"})]),_vm._v(\" \"),_c('p',{staticClass:\"upload-tip\"},[_vm._v(\"只能上传规格为1:1的 jpg 图片,且不超过1Mb\")])],1)]),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"关联商户\"}},[_c('div',{staticClass:\"link-shop\"},[_vm._l((_vm.ruleForm.enterpriseList),function(item,index){return [_c('router-link',{attrs:{\"tag\":\"a\",\"target\":\"_blank\",\"to\":{path:'/login',query:{enterpriseId: item.enterpriseId}}}},[_c('img',{attrs:{\"src\":item.qcloudImageUrl,\"alt\":\"\"}}),_vm._v(\" \"),_c('span',[_vm._v(_vm._s(item.enterpriseName))])])]})],2)]),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"营业时间模板\",\"prop\":\"storeBusinessTime\"}},[_c('el-time-picker',{attrs:{\"is-range\":\"\",\"range-separator\":\"至\",\"start-placeholder\":\"开始时间\",\"end-placeholder\":\"结束时间\",\"placeholder\":\"选择时间范围\",\"format\":\"HH:mm\"},model:{value:(_vm.ruleForm.storeBusinessTime),callback:function ($$v) {_vm.$set(_vm.ruleForm, \"storeBusinessTime\", $$v)},expression:\"ruleForm.storeBusinessTime\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"客服热线\",\"prop\":\"customerPhone\"}},[_c('el-input',{on:{\"focus\":function($event){_vm.focus('customerPhone',30)}},nativeOn:{\"keyup\":function($event){return (function (value) { return _vm.toInput(value); })($event)}},model:{value:(_vm.ruleForm.customerPhone),callback:function ($$v) {_vm.$set(_vm.ruleForm, \"customerPhone\", $$v)},expression:\"ruleForm.customerPhone\"}}),_vm._v(\" \"),_c('label',{staticClass:\"input-label\"},[_vm._v(_vm._s(_vm.inputNumObj.customerPhone)+\"/30\")])],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"集团简介\",\"prop\":\"enterpriseDescription\"}},[_c('el-input',{staticStyle:{\"height\":\"96px\"},attrs:{\"type\":\"textarea\"},on:{\"focus\":function($event){_vm.focus('enterpriseDescription',200)}},nativeOn:{\"keyup\":function($event){return (function (value) { return _vm.toInput(value); })($event)}},model:{value:(_vm.ruleForm.enterpriseDescription),callback:function ($$v) {_vm.$set(_vm.ruleForm, \"enterpriseDescription\", $$v)},expression:\"ruleForm.enterpriseDescription\"}}),_vm._v(\" \"),[_c('label',{staticClass:\"input-label textarea-label\"},[_vm._v(_vm._s(_vm.inputNumObj.enterpriseDescription)+\"/200\")])]],2),_vm._v(\" \"),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){_vm.submitForm('ruleForm')}}},[_vm._v(\"保 存\")])],1)],1)],1)])])]),_vm._v(\" \"),_c('vue-gic-footer')],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-507cdf5a\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/view/companyGroup/membershipSystem/companyGroupInfo.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-507cdf5a\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!sass-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./companyGroupInfo.vue\")\n}\nvar normalizeComponent = require(\"!../../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./companyGroupInfo.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./companyGroupInfo.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-507cdf5a\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./companyGroupInfo.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-507cdf5a\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/view/companyGroup/membershipSystem/companyGroupInfo.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
webpackJsonp([19],{"1H9E":function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a,o=t("bOdI"),i=t.n(o),s=t("//Fk"),n=t.n(s),l=t("mvHQ"),u=t.n(l),c=t("3E4D"),m=t("Ch4/"),p=t("Mk6G"),d=function(e){var r=new Date,t=r.getFullYear(),a=r.getMonth()+1,o=r.getDate(),i=[];return e.split("-").forEach(function(e,r){i.push(e.split(":"))}),[new Date(t,a,o,i[0][0],i[0][1]),new Date(t,a,o,i[1][0],i[1][1])]},g=function(e){function r(e){return e>9?""+e:"0"+e}return console.log(e),r(new Date(e[0]).getHours())+":"+r(new Date(e[0]).getMinutes())+"-"+(r(new Date(e[1]).getHours())+":"+r(new Date(e[1]).getMinutes()))},h=t("3Xzz"),v=t("P9l9"),f=(t("mw3O"),a={name:"public_num_attention",data:function(){return{projectName:"gic-clique",areaOptions:{provinceName:"",provinceId:"",cityName:"",cityId:"",countryName:"",countyId:""},navpath:[{name:"首页",path:"/"},{name:"集团信息",path:""}],upUrl:"",ruleForm:{cliqueName:"",enterpriseName:"",region:"",addressDetail:"",qcloudImageUrl:"",enterpriseList:[{enterpriseId:"",enterpriseName:"达摩",qcloudImageUrl:"/"}],storeBusinessTime:[new Date(2016,9,10,8,40),new Date(2016,9,10,9,40)],date1:"",date2:"",customerPhone:"",enterpriseDescription:""},rules:{cliqueName:[{required:!0,message:"请输入集团名称",trigger:"blur"}],enterpriseName:[{required:!0,message:"请输入公司名称",trigger:"blur"}],region:[{required:!0,message:"请选择所在地区",trigger:"blur"}],addressDetail:[{required:!0,message:"请输入详细地址",trigger:"change"}],storeBusinessTime:[{required:!0,message:"请选择营业时间",trigger:"change"}],date1:[{type:"date",required:!0,message:"请选择日期",trigger:"change"}],date2:[{type:"date",required:!0,message:"请选择时间",trigger:"change"}],customerPhone:[{required:!0,message:"请输入客服热线",trigger:"change"}],enterpriseDescription:[{required:!0,message:"请输入集团简介",trigger:"blur"}]},inputNumObj:{cliqueName:0,enterpriseName:0,addressDetail:0,customerPhone:0,enterpriseDescription:0},inputFlag:"",inputFlagNum:"",baseUrl:""}},beforeMount:function(){var e=window.location.origin;console.log("当前host:",e),"-1"!=e.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=e,this.upUrl=this.baseUrl+"/api-plug/upload-img?wxFlag=1"},created:function(){console.log("created")},mounted:function(){console.log("mounted"),this.getGroupInfo()},methods:{uploadUrl:function(){var e,r=window.location.origin;return console.log("当前host:",r),e="-1"!=r.indexOf("localhost")?"http://gicdev.demogic.com":r,this.upUrl=e+"/api-plug/upload-img?wxFlag=1&requestProject=gic-clique",console.log(this.upUrl),this.upUrl},changeRoute:function(e){this.$router.push(e)},submitForm:function(e){var r=this;r.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),r.$message.error({duration:1e3,message:"请填写完信息"}),!1;var t=JSON.parse(u()(r.ruleForm));console.log(t),t.storeBusinessTime=g(t.storeBusinessTime),console.log(t.storeBusinessTime),r.saveGroupInfo(t)})},handleAvatarSuccess:function(e,r){console.log("上传成功回调:",e),0==e.errorCode?(this.ruleForm.qcloudImageUrl=e.result[0].qcloudImageUrl,this.ruleForm.imageFiledCode=e.result[0].imageFiledCode,this.ruleForm.imageUrl=e.result[0].wxImg):m.a.errorMsg(e)},beforeAvatarUpload:function(e){var r=this,t="image/jpeg"===e.type||"image/jpg"===e.type,a=e.size/1024/1024<=1;return t||r.$message.error("上传头像图片只能是 JPG 格式!"),a||r.$message.error("上传头像图片大小不能超过 1MB!"),t&&a&&new n.a(function(t,a){var o=new FileReader;o.onload=function(e){var o=new Image;o.onload=function(){var e=this.width,o=this.height;console.log(e,o),e!==o&&(r.$message.error("图片比例必须为1:1的"),a()),t()},o.src=e.target.result,console.log("上传成功:",e.target.result)},o.readAsDataURL(e)})},focus:function(e,r){console.log(e,r),this.inputFlag=e,this.inputFlagNum=r},toInput:function(e){console.log(e);var r="";r=p.a.getByteVal(e.target.value,this.inputFlagNum);console.log(r),this.ruleForm[this.inputFlag]=r.trim(),this.inputNumObj[this.inputFlag]=p.a.getZhLen(this.ruleForm[this.inputFlag]),console.log(this.ruleForm[this.inputFlag])},selected:function(e){console.log(e);e.country?(this.ruleForm.region=e,console.log(e.areaId),this.ruleForm.areaId=e.areaId):this.ruleForm.region=""},saveGroupInfo:function(e){var r=this,t={requestProject:r.projectName,cliqueName:e.cliqueName,enterpriseName:e.enterpriseName,brandName:e.brandName,addressDetail:e.addressDetail,imageUrl:e.imageUrl,imageFieldCode:e.imageFieldCode,qcloudImageUrl:e.qcloudImageUrl,storeBusinessTime:e.storeBusinessTime,customerPhone:e.customerPhone,enterpriseDescription:e.enterpriseDescription,areaId:e.areaId};Object(v.a)("/api-admin/save-enterprise-info",t).then(function(e){var r=e.data;0!=r.errorCode?m.a.errorMsg(r):c.a.showmsg("保存成功","success")}).catch(function(e){console.log(e),r.$message.error({duration:1e3,message:e.message})})},redirect:function(e,r){var t=this,a={eid:r};Object(v.a)("/api-auth/do-login-for-clique",a).then(function(e){var r=e.data;if(0!=r.errorCode)m.a.errorMsg(r);else{var a=t.baseUrl+"";window.open(a,"_blank","toolbar=yes, width=1300, height=900")}}).catch(function(e){console.log(e),t.$message.error({duration:1e3,message:e.message})})},getGroupInfo:function(){var e=this,r={requestProject:e.projectName};Object(v.a)("/api-admin/enterprise-info",r).then(function(r){var t=r.data;if(0==t.errorCode){var a=t.result.enterprise;console.log(t.result.enterprise),a.region={},a.region.areaId=a.areaId,a.region.provinceId=a.province,a.region.provinceName=a.provinceName,a.region.cityId=a.city,a.region.cityName=a.cityName,a.region.countyId=a.country,a.region.countryName=a.countryName,e.areaOptionsNew={},e.areaOptionsNew.provinceName=a.provinceName,e.areaOptionsNew.provinceId=a.province,e.areaOptionsNew.cityName=a.cityName,e.areaOptionsNew.cityId=a.city,e.areaOptionsNew.countryName=a.countryName,e.areaOptionsNew.countyId=a.country;var o=u()(e.areaOptionsNew);return e.areaOptions=JSON.parse(o),a.storeBusinessTime&&(a.storeBusinessTime=d(a.storeBusinessTime)),a.cliqueName&&(e.inputNumObj.cliqueName=p.a.getZhLen(a.cliqueName)),a.enterpriseName&&(e.inputNumObj.enterpriseName=p.a.getZhLen(a.enterpriseName)),a.addressDetail&&(e.inputNumObj.addressDetail=p.a.getZhLen(a.addressDetail)),a.customerPhone&&(e.inputNumObj.customerPhone=p.a.getZhLen(a.customerPhone)),a.enterpriseDescription&&(e.inputNumObj.enterpriseDescription=p.a.getZhLen(a.enterpriseDescription)),e.ruleForm=a,e.ruleForm.enterpriseList=t.result.enterpriseList,void console.log(e.ruleForm)}m.a.errorMsg(t)}).catch(function(r){console.log(r),e.$message.error({duration:1e3,message:r.message})})},setArea:function(e){console.log(e),this.areaOptions.areaId=e.areaId,this.areaOptions.provinceId=e.province,this.areaOptions.provinceName=e.provinceName,this.areaOptions.cityId=e.city,this.areaOptions.cityName=e.cityName,this.areaOptions.countyId=e.country,this.areaOptions.countryName=e.countryName,console.log(this.areaOptions)},login:function(){Object(v.a)("/api-auth/do-login?loginName=damo123&password=123456&eid=ff80808162ddfe1a0162e0ebd39c0000").then(function(e){e.data.errorCode})}},watch:{}},i()(a,"beforeMount",function(){console.log("mounted")}),i()(a,"updated",function(){console.log("updated")}),i()(a,"components",{topNav:h.a}),a),N={render:function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"right-wrap"},[t("topNav",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"attention-wrap"},[t("div",{staticClass:"group-contain"},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"110px"}},[t("el-form-item",{attrs:{label:"集团名称",prop:"cliqueName"}},[t("el-input",{on:{focus:function(r){e.focus("cliqueName",10)}},nativeOn:{keyup:function(r){return t=r,e.toInput(t);var t}},model:{value:e.ruleForm.cliqueName,callback:function(r){e.$set(e.ruleForm,"cliqueName",r)},expression:"ruleForm.cliqueName"}}),e._v(" "),t("label",{staticClass:"input-label"},[e._v(e._s(e.inputNumObj.cliqueName)+"/10")])],1),e._v(" "),t("el-form-item",{attrs:{label:"公司名称",prop:"enterpriseName"}},[t("el-input",{on:{focus:function(r){e.focus("enterpriseName",20)}},nativeOn:{keyup:function(r){return t=r,e.toInput(t);var t}},model:{value:e.ruleForm.enterpriseName,callback:function(r){e.$set(e.ruleForm,"enterpriseName",r)},expression:"ruleForm.enterpriseName"}}),e._v(" "),t("label",{staticClass:"input-label"},[e._v(e._s(e.inputNumObj.enterpriseName)+"/20")])],1),e._v(" "),t("el-form-item",{staticClass:"city-area",attrs:{label:"所在地区",prop:"region"}},[t("vue-area-ab",{attrs:{projectName:e.projectName,areaOptions:e.areaOptions},on:{selected:e.selected}})],1),e._v(" "),t("el-form-item",{attrs:{label:"详细地址",prop:"addressDetail"}},[t("el-input",{on:{focus:function(r){e.focus("addressDetail",50)}},nativeOn:{keyup:function(r){return t=r,e.toInput(t);var t}},model:{value:e.ruleForm.addressDetail,callback:function(r){e.$set(e.ruleForm,"addressDetail",r)},expression:"ruleForm.addressDetail"}}),e._v(" "),t("label",{staticClass:"input-label"},[e._v(e._s(e.inputNumObj.addressDetail)+"/50")])],1),e._v(" "),t("el-form-item",{attrs:{label:"集团logo",prop:"qcloudImageUrl"}},[t("div",[t("el-upload",{staticClass:"avatar-uploader",attrs:{action:e.uploadUrl(),"show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload}},[e.ruleForm.qcloudImageUrl?t("img",{staticClass:"avatar",attrs:{src:e.ruleForm.qcloudImageUrl}}):t("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),e._v(" "),t("p",{staticClass:"upload-tip"},[e._v("只能上传规格为1:1的 jpg 图片,且不超过1Mb")])],1)]),e._v(" "),t("el-form-item",{attrs:{label:"关联商户"}},[t("div",{staticClass:"link-shop"},[e._l(e.ruleForm.enterpriseList,function(r,a){return[t("router-link",{attrs:{tag:"a",target:"_blank",to:{path:"/login",query:{enterpriseId:r.enterpriseId}}}},[t("img",{attrs:{src:r.qcloudImageUrl,alt:""}}),e._v(" "),t("span",[e._v(e._s(r.enterpriseName))])])]})],2)]),e._v(" "),t("el-form-item",{attrs:{label:"营业时间模板",prop:"storeBusinessTime"}},[t("el-time-picker",{attrs:{"is-range":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:"选择时间范围",format:"HH:mm"},model:{value:e.ruleForm.storeBusinessTime,callback:function(r){e.$set(e.ruleForm,"storeBusinessTime",r)},expression:"ruleForm.storeBusinessTime"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"客服热线",prop:"customerPhone"}},[t("el-input",{on:{focus:function(r){e.focus("customerPhone",30)}},nativeOn:{keyup:function(r){return t=r,e.toInput(t);var t}},model:{value:e.ruleForm.customerPhone,callback:function(r){e.$set(e.ruleForm,"customerPhone",r)},expression:"ruleForm.customerPhone"}}),e._v(" "),t("label",{staticClass:"input-label"},[e._v(e._s(e.inputNumObj.customerPhone)+"/30")])],1),e._v(" "),t("el-form-item",{attrs:{label:"集团简介",prop:"enterpriseDescription"}},[t("el-input",{staticStyle:{height:"96px"},attrs:{type:"textarea"},on:{focus:function(r){e.focus("enterpriseDescription",200)}},nativeOn:{keyup:function(r){return t=r,e.toInput(t);var t}},model:{value:e.ruleForm.enterpriseDescription,callback:function(r){e.$set(e.ruleForm,"enterpriseDescription",r)},expression:"ruleForm.enterpriseDescription"}}),e._v(" "),[t("label",{staticClass:"input-label textarea-label"},[e._v(e._s(e.inputNumObj.enterpriseDescription)+"/200")])]],2),e._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:function(r){e.submitForm("ruleForm")}}},[e._v("保 存")])],1)],1)],1)])])]),e._v(" "),t("vue-gic-footer")],1)},staticRenderFns:[]};var b=t("VU/8")(f,N,!1,function(e){t("8AqO")},"data-v-614fb5c1",null);r.default=b.exports},"8AqO":function(e,r){}});
//# sourceMappingURL=19.b43ed44cc22e7eb7c359.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/common/js/timeFormat.js","webpack:///src/view/companyGroup/membershipSystem/companyGroupInfo.vue","webpack:///./src/view/companyGroup/membershipSystem/companyGroupInfo.vue?15b2","webpack:///./src/view/companyGroup/membershipSystem/companyGroupInfo.vue"],"names":["timeFormat","val","date","Date","y","getFullYear","m","getMonth","day","getDate","newArr","split","forEach","ele","index","push","formatDig","num","console","log","getHours","getMinutes","companyGroupInfo","_name$data$beforeMoun","name","data","projectName","areaOptions","provinceName","provinceId","cityName","cityId","countryName","countyId","navpath","path","upUrl","ruleForm","cliqueName","enterpriseName","region","addressDetail","qcloudImageUrl","enterpriseList","enterpriseId","storeBusinessTime","date1","date2","customerPhone","enterpriseDescription","rules","required","message","trigger","type","inputNumObj","inputFlag","inputFlagNum","baseUrl","beforeMount","host","window","location","origin","indexOf","this","created","mounted","getGroupInfo","methods","uploadUrl","changeRoute","route","$router","submitForm","formName","that","$refs","validate","valid","$message","error","duration","newFormData","JSON","parse","stringify_default","saveGroupInfo","handleAvatarSuccess","res","file","errorCode","result","imageFiledCode","imageUrl","wxImg","errorMsg","beforeAvatarUpload","isJPG","isLt2M","size","promise_default","a","resolve","reject","reader","FileReader","onload","event","image","Image","width","height","src","target","readAsDataURL","focus","toInput","value","temp","strlen","getByteVal","trim","getZhLen","selected","country","areaId","form","para","requestProject","brandName","imageFieldCode","Object","api","then","resData","showmsg","catch","redirect","e","eid","href","open","newEnterprise","enterprise","province","city","areaOptionsNew","obj","setArea","login","watch","defineProperty_default","topNav","nav","membershipSystem_companyGroupInfo","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","_v","ref","model","label-width","label","prop","on","$event","nativeOn","keyup","callback","$$v","$set","expression","_s","action","show-file-list","on-success","before-upload","_l","item","tag","to","query","alt","is-range","range-separator","start-placeholder","end-placeholder","placeholder","format","staticStyle","click","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"iNAMAA,EAIc,SAASC,GACnB,IAAIC,EAAO,IAAIC,KACXC,EAAIF,EAAKG,cACTC,EAAIJ,EAAKK,WAAY,EACrBC,EAAMN,EAAKO,UAEJC,KAMX,OALWT,EAAIU,MAAM,KAChBC,QAAQ,SAASC,EAAIC,GACxBJ,EAAOK,KAAKF,EAAIF,MAAM,SAEnB,IAAIR,KAAKC,EAAEE,EAAEE,EAAIE,EAAO,GAAG,GAAGA,EAAO,GAAG,IAAI,IAAIP,KAAKC,EAAEE,EAAEE,EAAIE,EAAO,GAAG,GAAGA,EAAO,GAAG,MAf7FV,EAAe,SAqBFC,GAGT,SAASe,EAAUC,GACjB,OAAOA,EAAM,EAAI,GAAKA,EAAM,IAAMA,EAMpC,OATAC,QAAQC,IAAIlB,GAMHe,EAAU,IAAIb,KAAKF,EAAI,IAAImB,YAAY,IAAIJ,EAAU,IAAIb,KAAKF,EAAI,IAAIoB,cAEzE,KADGL,EAAU,IAAIb,KAAKF,EAAI,IA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dAC,EAAA,OAcAC,CACAlL,EACAqI,GATA,EAVA,SAAA8C,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/19.b43ed44cc22e7eb7c359.js","sourcesContent":["\n/*\n * 时间日期转换\n * @param: \"10:00-22:00\"/ new Date()\n */\n\nexport default {\n /*\n * var storeBusinessTime=\"10:00-22:00\" to\n */\n timeToDate: function(val) {\n var date = new Date()\n var y = date.getFullYear();\n var m = date.getMonth() +1;\n var day = date.getDate();\n\n var d = [],newArr = [];\n var dArr = val.split('-');\n dArr.forEach(function(ele,index){\n newArr.push(ele.split(':'))\n })\n d = [new Date(y,m,day,newArr[0][0],newArr[0][1]),new Date(y,m,day,newArr[1][0],newArr[1][1])]\n return d;\n },\n\n\n\n dateToTime(val) {\n console.log(val)\n // (0-9)年月数字的显示\n function formatDig(num) {\n return num > 9 ? '' + num : '0' + num;\n }\n var t;\n var t1 = formatDig(new Date(val[0]).getHours())+':'+formatDig(new Date(val[0]).getMinutes())\n var t2 = formatDig(new Date(val[1]).getHours())+':'+formatDig(new Date(val[1]).getMinutes())\n t= t1+'-'+t2\n return t;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/common/js/timeFormat.js","<template>\n <div class=\"right-wrap\">\n <topNav :navpath=\"navpath\"></topNav>\n <div class=\"right-content\">\n <div class=\"right-box\">\n <div class=\"attention-wrap\">\n <div class=\"group-contain\">\n <el-form :model=\"ruleForm\" :rules=\"rules\" ref=\"ruleForm\" label-width=\"110px\" class=\"demo-ruleForm\">\n <el-form-item label=\"集团名称\" prop=\"cliqueName\">\n <el-input v-model=\"ruleForm.cliqueName\" @focus=\"focus('cliqueName',10)\" @keyup.native=\"(value) => toInput(value)\">\n <!-- <template slot=\"append\"><label class=\"input-label\">{{inputNumObj.cliqueName}}/10</label></template> -->\n </el-input>\n <label class=\"input-label\">{{inputNumObj.cliqueName}}/10</label>\n </el-form-item>\n <el-form-item label=\"公司名称\" prop=\"enterpriseName\">\n <el-input v-model=\"ruleForm.enterpriseName\" @focus=\"focus('enterpriseName',20)\" @keyup.native=\"(value) => toInput(value)\">\n <!-- <template slot=\"append\"><label class=\"input-label\">{{inputNumObj.enterpriseName}}/20</label></template> -->\n </el-input>\n <label class=\"input-label\">{{inputNumObj.enterpriseName}}/20</label>\n </el-form-item>\n <el-form-item label=\"所在地区\" prop=\"region\" class=\"city-area\">\n <vue-area-ab :projectName=\"projectName\" :areaOptions=\"areaOptions\" @selected=\"selected\"></vue-area-ab>\n </el-form-item>\n <el-form-item label=\"详细地址\" prop=\"addressDetail\">\n <el-input v-model=\"ruleForm.addressDetail\" @focus=\"focus('addressDetail',50)\" @keyup.native=\"(value) => toInput(value)\">\n <!-- <template slot=\"append\"><label class=\"input-label\">{{inputNumObj.addressDetail}}/50</label></template> -->\n </el-input>\n <label class=\"input-label\">{{inputNumObj.addressDetail}}/50</label>\n </el-form-item>\n <el-form-item label=\"集团logo\" prop=\"qcloudImageUrl\">\n <div>\n\n <!-- <img src=\"\" alt=\"\"> -->\n <el-upload\n class=\"avatar-uploader\"\n :action=\"uploadUrl()\"\n :show-file-list=\"false\"\n :on-success=\"handleAvatarSuccess\"\n :before-upload=\"beforeAvatarUpload\">\n <img v-if=\"ruleForm.qcloudImageUrl\" :src=\"ruleForm.qcloudImageUrl\" class=\"avatar\">\n <i v-else class=\"el-icon-plus avatar-uploader-icon\"></i>\n </el-upload>\n <p class=\"upload-tip\">只能上传规格为1:1的 jpg 图片,且不超过1Mb</p>\n </div>\n </el-form-item>\n <el-form-item label=\"关联商户\">\n <div class=\"link-shop\">\n <!-- <a v-for=\"(item,index) in ruleForm.enterpriseList\">\n <img :src=\"item.qcloudImageUrl\" alt=\"\"/>\n <span>{{item.enterpriseName}}</span>\n </a> -->\n <template v-for=\"(item,index) in ruleForm.enterpriseList\">\n <router-link tag=\"a\" target=\"_blank\" :to=\"{path:'/login',query:{enterpriseId: item.enterpriseId}}\" >\n <img :src=\"item.qcloudImageUrl\" alt=\"\"/>\n <span>{{item.enterpriseName}}</span>\n </router-link>\n </template>\n\n </div>\n </el-form-item>\n <el-form-item label=\"营业时间模板\" prop=\"storeBusinessTime\">\n <!-- <el-time-select\n v-model=\"ruleForm.date1\"\n :picker-options=\"{\n start: '00:00',\n step: '00:15',\n end: '23:55'\n }\"\n placeholder=\"选择时间\">\n </el-time-select>至\n <el-time-select\n v-model=\"ruleForm.date2\"\n :picker-options=\"{\n start: '08:30',\n step: '00:15',\n end: '18:30'\n }\"\n placeholder=\"选择时间\">\n </el-time-select> -->\n <el-time-picker\n is-range\n v-model=\"ruleForm.storeBusinessTime\"\n range-separator=\"至\"\n start-placeholder=\"开始时间\"\n end-placeholder=\"结束时间\"\n placeholder=\"选择时间范围\" format=\"HH:mm\">\n </el-time-picker>\n </el-form-item>\n <el-form-item label=\"客服热线\" prop=\"customerPhone\">\n <el-input v-model=\"ruleForm.customerPhone\" @focus=\"focus('customerPhone',30)\" @keyup.native=\"(value) => toInput(value)\">\n <!-- <template slot=\"append\"><label class=\"input-label\">{{inputNumObj.customerPhone}}/30</label></template> -->\n </el-input>\n <label class=\"input-label\">{{inputNumObj.customerPhone}}/30</label>\n </el-form-item>\n <el-form-item label=\"集团简介\" prop=\"enterpriseDescription\">\n <el-input type=\"textarea\" v-model=\"ruleForm.enterpriseDescription\" style=\"height: 96px;\" @focus=\"focus('enterpriseDescription',200)\" @keyup.native=\"(value) => toInput(value)\">\n\n </el-input>\n <template><label class=\"input-label textarea-label\">{{inputNumObj.enterpriseDescription}}/200</label></template>\n </el-form-item>\n <el-form-item>\n <el-button type=\"primary\" @click=\"submitForm('ruleForm')\">保 存</el-button>\n </el-form-item>\n </el-form>\n\n </div>\n\n </div>\n </div>\n </div>\n <vue-gic-footer></vue-gic-footer>\n </div>\n</template>\n<script>\nimport showMsg from '@/common/js/showmsg';\nimport errMsg from '@/common/js/error';\nimport strLength from '@/common/js/strlen';\nimport newTime from '@/common/js/timeFormat';\nimport topNav from 'components/nav/nav'\nimport { getRequest } from '@/api/api';\nimport qs from 'qs'\n\nexport default {\n name: \"public_num_attention\",\n data() {\n return {\n projectName: 'gic-clique', // 当前项目名\n areaOptions: {\n provinceName: '',\n provinceId: '',\n cityName: '',\n cityId: '',\n countryName: '',\n countyId: ''\n },\n navpath: [{\n name: '首页',\n path: '/'\n },\n {\n name: '集团信息',\n path: ''\n }\n ],\n\n upUrl: '',// 上传地址\n\n\n\n ruleForm: {\n cliqueName: '',\n enterpriseName: '',\n region: '',\n addressDetail: '',\n qcloudImageUrl: '',\n enterpriseList:[\n {\n enterpriseId: '',\n enterpriseName: '达摩',\n qcloudImageUrl: '/',\n },\n\n ],\n storeBusinessTime: [new Date(2016, 9, 10, 8, 40), new Date(2016, 9, 10, 9, 40)],\n date1: '',\n date2: '',\n customerPhone: '',\n enterpriseDescription: ''\n },\n rules: {\n cliqueName: [\n { required: true, message: '请输入集团名称', trigger: 'blur' },\n ],\n enterpriseName: [\n { required: true, message: '请输入公司名称', trigger: 'blur' },\n ],\n region: [\n { required: true, message: '请选择所在地区', trigger: 'blur' }\n ],\n addressDetail: [\n { required: true, message: '请输入详细地址', trigger: 'change' }\n ],\n storeBusinessTime: [\n { required: true, message: '请选择营业时间', trigger: 'change' }\n ],\n date1: [\n { type: 'date', required: true, message: '请选择日期', trigger: 'change' }\n ],\n date2: [\n { type: 'date', required: true, message: '请选择时间', trigger: 'change' }\n ],\n\n customerPhone: [\n { required: true, message: '请输入客服热线', trigger: 'change' }\n ],\n enterpriseDescription: [\n { required: true, message: '请输入集团简介', trigger: 'blur' }\n ]\n },\n\n inputNumObj: {//输入字数\n cliqueName: 0,\n enterpriseName: 0,\n addressDetail: 0,\n customerPhone: 0,\n enterpriseDescription: 0\n\n },\n // 记录输入的\n inputFlag: '',\n inputFlagNum: '',\n\n baseUrl: '', // 域名\n }\n },\n beforeMount() {\n var that = this\n var host = window.location.origin;\n console.log(\"当前host:\",host)\n if (host.indexOf('localhost') != '-1') {\n that.baseUrl = 'http://gicdev.demogic.com';\n }else {\n that.baseUrl = host\n }\n\n that.upUrl = that.baseUrl + '/api-plug/upload-img?wxFlag=1'\n },\n created() {\n // this.selectReplayStyle()\n console.log(\"created\")\n\n },\n mounted() {\n var that = this;\n console.log(\"mounted\")\n that.getGroupInfo();\n },\n\n methods: {\n\n uploadUrl() {\n var that = this\n var host = window.location.origin;\n var baseUrl;\n console.log(\"当前host:\",host)\n if (host.indexOf('localhost') != '-1') {\n baseUrl = 'http://gicdev.demogic.com';\n }else {\n baseUrl = host\n }\n\n that.upUrl = baseUrl + '/api-plug/upload-img?wxFlag=1&requestProject=gic-clique'\n console.log(that.upUrl)\n return that.upUrl\n },\n\n changeRoute(route) {\n var that= this\n that.$router.push(route);\n },\n\n // 保存\n submitForm(formName) {\n var that= this\n that.$refs[formName].validate((valid) => {\n if (valid) {\n\n var newFormData = JSON.parse(JSON.stringify(that.ruleForm))\n console.log(newFormData)\n newFormData.storeBusinessTime = newTime.dateToTime(newFormData.storeBusinessTime)\n // 发送的数据\n console.log(newFormData.storeBusinessTime)\n // 保存方法\n that.saveGroupInfo(newFormData)\n\n } else {\n console.log('error submit!!');\n that.$message.error({\n duration: 1000,\n message: \"请填写完信息\"\n })\n return false;\n }\n });\n },\n\n // 上传\n handleAvatarSuccess(res, file) {\n var that = this\n\n console.log(\"上传成功回调:\",res)\n if (res.errorCode == 0) {\n that.ruleForm.qcloudImageUrl = res.result[0].qcloudImageUrl;//URL.createObjectURL(file.raw);\n that.ruleForm.imageFiledCode = res.result[0].imageFiledCode;\n that.ruleForm.imageUrl = res.result[0].wxImg;\n }else {\n errMsg.errorMsg(res)\n }\n\n },\n beforeAvatarUpload(file) {\n var that = this\n const isJPG = file.type === 'image/jpeg' || file.type === 'image/jpg';\n const isLt2M = file.size / 1024 / 1024 <= 1;\n\n if (!isJPG) {\n that.$message.error('上传头像图片只能是 JPG 格式!');\n }\n if (!isLt2M) {\n that.$message.error('上传头像图片大小不能超过 1MB!');\n }\n return isJPG && isLt2M && new Promise(function(resolve, reject) {\n let reader = new FileReader();\n reader.onload = function(event) {\n let image = new Image();\n image.onload = function () {\n let width = this.width;\n let height = this.height;\n console.log(width,height)\n\n if (width !== height){\n that.$message.error('图片比例必须为1:1的');\n reject();\n }\n\n resolve();\n };\n image.src = event.target.result;\n console.log(\"上传成功:\",event.target.result)\n };\n reader.readAsDataURL(file);\n })\n },\n\n focus(name,num) {\n var that = this\n console.log(name,num)\n that.inputFlag = name;\n that.inputFlagNum = num;\n },\n\n // 输入\n toInput: function(value) {\n var that = this;\n console.log(value)\n\n var temp = '';\n var temp = strLength.getByteVal(value.target.value,that.inputFlagNum)\n console.log(temp)\n that.ruleForm[that.inputFlag] = temp.trim()\n\n that.inputNumObj[that.inputFlag] = strLength.getZhLen(that.ruleForm[that.inputFlag]);\n\n console.log(that.ruleForm[that.inputFlag])\n },\n\n // 省市县选择\n selected(val) {\n console.log(val)\n var that = this\n if (!!val.country) {\n that.ruleForm.region = val;\n console.log(val.areaId)\n that.ruleForm.areaId = val.areaId\n }else {\n that.ruleForm.region = ''\n }\n },\n // 保存集团信息\n saveGroupInfo(form) {\n var that = this\n var para = {\n\n requestProject: that.projectName,\n cliqueName: form.cliqueName,\n enterpriseName: form.enterpriseName,\n brandName: form.brandName,\n addressDetail: form.addressDetail,\n imageUrl: form.imageUrl,\n imageFieldCode: form.imageFieldCode,\n qcloudImageUrl: form.qcloudImageUrl,\n storeBusinessTime: form.storeBusinessTime,\n customerPhone: form.customerPhone,\n enterpriseDescription: form.enterpriseDescription,\n areaId: form.areaId,\n }\n\n getRequest('/api-admin/save-enterprise-info',para)\n .then((res) => {\n // console.log(res,res.data,res.data.errorCode)\n var resData = res.data\n if (resData.errorCode == 0) {\n showMsg.showmsg('保存成功','success')\n return;\n }\n // that.userFormVisible = false;\n errMsg.errorMsg(resData)\n\n })\n .catch(function (error) {\n console.log(error);\n // that.toLogin()\n // that.userFormVisible = false;\n that.$message.error({\n duration: 1000,\n message: error.message\n })\n });\n },\n\n // 跳转商户\n redirect(e,enterpriseId){\n var that = this\n var para = {\n eid: enterpriseId\n }\n getRequest('/api-auth/do-login-for-clique',para)\n .then((res) => {\n // console.log(res,res.data,res.data.errorCode)\n var resData = res.data\n if (resData.errorCode == 0) {\n\n var href = that.baseUrl + ''\n window.open(href, '_blank','toolbar=yes, width=1300, height=900');\n return;\n }\n // that.userFormVisible = false;\n errMsg.errorMsg(resData)\n\n })\n .catch(function (error) {\n console.log(error);\n // that.toLogin()\n // that.userFormVisible = false;\n that.$message.error({\n duration: 1000,\n message: error.message\n })\n });\n },\n\n // 获取集团信息\n getGroupInfo() {\n var that = this\n var para = {\n requestProject: that.projectName\n }\n\n getRequest('/api-admin/enterprise-info',para)\n .then((res) => {\n // console.log(res,res.data,res.data.errorCode)\n var resData = res.data\n if (resData.errorCode == 0) {\n // 设置省市县\n var newEnterprise = resData.result.enterprise\n // that.setArea(JSON.parse(JSON.stringify(newEnterprise)));\n //\n console.log(resData.result.enterprise)\n newEnterprise.region = {};\n newEnterprise.region.areaId = newEnterprise.areaId;\n newEnterprise.region.provinceId = newEnterprise.province;\n newEnterprise.region.provinceName = newEnterprise.provinceName;\n newEnterprise.region.cityId = newEnterprise.city;\n newEnterprise.region.cityName = newEnterprise.cityName;\n newEnterprise.region.countyId = newEnterprise.country;\n newEnterprise.region.countryName = newEnterprise.countryName;\n\n that.areaOptionsNew = {}\n that.areaOptionsNew.provinceName = newEnterprise.provinceName; // 默认的省市区传值\n that.areaOptionsNew.provinceId = newEnterprise.province;\n that.areaOptionsNew.cityName = newEnterprise.cityName;\n that.areaOptionsNew.cityId = newEnterprise.city;\n that.areaOptionsNew.countryName = newEnterprise.countryName;\n that.areaOptionsNew.countyId = newEnterprise.country;\n var obj = JSON.stringify(that.areaOptionsNew); // 深拷贝\n that.areaOptions = JSON.parse(obj);\n // that.areaOptions = JSON.parse(JSON.stringify(newEnterprise.region))\n // 时间\n if (!!newEnterprise.storeBusinessTime) {\n newEnterprise.storeBusinessTime = newTime.timeToDate(newEnterprise.storeBusinessTime)\n }\n\n\n // 长度\n if (!!newEnterprise.cliqueName) {\n that.inputNumObj.cliqueName = strLength.getZhLen(newEnterprise.cliqueName)\n }\n if (!!newEnterprise.enterpriseName) {\n that.inputNumObj.enterpriseName = strLength.getZhLen(newEnterprise.enterpriseName)\n }\n\n if (!!newEnterprise.addressDetail) {\n that.inputNumObj.addressDetail = strLength.getZhLen(newEnterprise.addressDetail)\n }\n\n if (!!newEnterprise.customerPhone) {\n that.inputNumObj.customerPhone = strLength.getZhLen(newEnterprise.customerPhone)\n }\n\n if (!!newEnterprise.enterpriseDescription) {\n that.inputNumObj.enterpriseDescription = strLength.getZhLen(newEnterprise.enterpriseDescription)\n }\n\n\n\n that.ruleForm = newEnterprise;\n\n that.ruleForm.enterpriseList = resData.result.enterpriseList\n\n\n console.log(that.ruleForm)\n return;\n }\n // that.userFormVisible = false;\n errMsg.errorMsg(resData)\n\n })\n .catch(function (error) {\n console.log(error);\n // that.toLogin()\n // that.userFormVisible = false;\n that.$message.error({\n duration: 1000,\n message: error.message\n })\n });\n },\n\n setArea(obj) {\n var that = this\n console.log(obj)\n that.areaOptions.areaId = obj.areaId;\n that.areaOptions.provinceId = obj.province;\n that.areaOptions.provinceName = obj.provinceName;\n that.areaOptions.cityId = obj.city;\n that.areaOptions.cityName = obj.cityName;\n that.areaOptions.countyId = obj.country;\n that.areaOptions.countryName = obj.countryName;\n console.log(that.areaOptions)\n },\n login() {\n var that = this\n getRequest('/api-auth/do-login?loginName=damo123&password=123456&eid=ff80808162ddfe1a0162e0ebd39c0000',)\n .then((res) => {\n // console.log(res,res.data,res.data.errorCode)\n var resData = res.data\n if (resData.errorCode == 0) {\n\n }\n })\n }\n },\n watch: {\n\n },\n beforeMount:function(){\n var that = this;\n // that.login()\n console.log(\"mounted\")\n // that.getGroupInfo();\n },\n\n updated : function(){\n console.log(\"updated\")\n var that = this;\n },\n components: {\n topNav\n },\n\n}\n\n</script>\n<style lang=\"scss\" scoped>\n\n.attention-wrap {\n\n padding: 24px 32px;\n background: #fff;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n .item-label {\n font-size: 14px;\n color: #606266;\n margin-bottom: 30px;\n span {\n display: inline-block;\n width: 80px;\n }\n }\n .attention-content-wrap {}\n /deep/ .el-form-item__label{\n padding: 0 12px 0 0;\n }\n\n /deep/ .el-form {\n .el-form-item:last-child {\n /*margin-bottom: 0;*/\n }\n\n .el-form-item__content {\n width: 700px;\n }\n\n .city-area {\n /deep/ .w-160 {\n width: 228px;\n &+.w-160 {\n /*margin-left: 6px;*/\n }\n }\n }\n }\n}\n\n.group-contain {\n\n .el-input {\n width: 700px;\n &.el-date-editor {\n width: 300px;\n }\n }\n\n .el-textarea {\n width: 700px;\n /*height: 300px;*/\n\n /deep/ .el-textarea__inner {\n resize: none;\n height: 96px;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n }\n\n /deep/ .input-label {\n position: absolute;\n right: 10px;\n top: 2px;\n color: #909399;\n font-size: 12px;\n }\n\n .textarea-label {\n position: absolute;\n right: 10px;\n top: 90px;\n color: #909399;\n }\n\n .upload-tip {\n color: #909399;\n font-size: 12px;\n line-height: 12px;\n }\n\n .avatar-uploader {\n /deep/ .el-upload {\n border: 1px dashed #d9d9d9;\n border-radius: 6px;\n cursor: pointer;\n position: relative;\n overflow: hidden;\n &:hover {\n border-color: #1890ff;\n }\n }\n }\n .avatar-uploader .el-upload:hover {\n border-color: #1890ff;\n }\n .avatar-uploader-icon {\n font-size: 28px;\n color: #8c939d;\n width: 100px;\n height: 100px;\n line-height: 100px;\n text-align: center;\n }\n .avatar {\n width: 100px;\n height: 100px;\n display: block;\n }\n\n .link-shop {\n width: 800px;\n font-size: 0;\n a {\n\n display: inline-block;\n width: 250px;\n border: 1px solid #e3e5e9;\n border-radius: 2px;\n padding: 10px 15px;\n margin-right: 16px;\n margin-bottom: 10px;\n color: #333;\n font-size: 14px;\n cursor: pointer;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n &+a {\n /*margin-left: 10px;*/\n }\n }\n img {\n display: inline-block;\n vertical-align: middle;\n width: 60px;\n height: 60px;\n }\n span {\n display: inline-block;\n vertical-align: middle;\n }\n }\n\n .el-form-item.is-success /deep/ .el-input__inner, .el-form-item.is-success /deep/ .el-input__inner:focus, .el-form-item.is-success /deep/ .el-textarea__inner, .el-form-item.is-success /deep/ .el-textarea__inner:focus {\n border-color: #dcdfe6;\n }\n}\n\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/view/companyGroup/membershipSystem/companyGroupInfo.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"right-wrap\"},[_c('topNav',{attrs:{\"navpath\":_vm.navpath}}),_vm._v(\" \"),_c('div',{staticClass:\"right-content\"},[_c('div',{staticClass:\"right-box\"},[_c('div',{staticClass:\"attention-wrap\"},[_c('div',{staticClass:\"group-contain\"},[_c('el-form',{ref:\"ruleForm\",staticClass:\"demo-ruleForm\",attrs:{\"model\":_vm.ruleForm,\"rules\":_vm.rules,\"label-width\":\"110px\"}},[_c('el-form-item',{attrs:{\"label\":\"集团名称\",\"prop\":\"cliqueName\"}},[_c('el-input',{on:{\"focus\":function($event){_vm.focus('cliqueName',10)}},nativeOn:{\"keyup\":function($event){return (function (value) { return _vm.toInput(value); })($event)}},model:{value:(_vm.ruleForm.cliqueName),callback:function ($$v) {_vm.$set(_vm.ruleForm, \"cliqueName\", $$v)},expression:\"ruleForm.cliqueName\"}}),_vm._v(\" \"),_c('label',{staticClass:\"input-label\"},[_vm._v(_vm._s(_vm.inputNumObj.cliqueName)+\"/10\")])],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"公司名称\",\"prop\":\"enterpriseName\"}},[_c('el-input',{on:{\"focus\":function($event){_vm.focus('enterpriseName',20)}},nativeOn:{\"keyup\":function($event){return (function (value) { return _vm.toInput(value); })($event)}},model:{value:(_vm.ruleForm.enterpriseName),callback:function ($$v) {_vm.$set(_vm.ruleForm, \"enterpriseName\", $$v)},expression:\"ruleForm.enterpriseName\"}}),_vm._v(\" \"),_c('label',{staticClass:\"input-label\"},[_vm._v(_vm._s(_vm.inputNumObj.enterpriseName)+\"/20\")])],1),_vm._v(\" \"),_c('el-form-item',{staticClass:\"city-area\",attrs:{\"label\":\"所在地区\",\"prop\":\"region\"}},[_c('vue-area-ab',{attrs:{\"projectName\":_vm.projectName,\"areaOptions\":_vm.areaOptions},on:{\"selected\":_vm.selected}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"详细地址\",\"prop\":\"addressDetail\"}},[_c('el-input',{on:{\"focus\":function($event){_vm.focus('addressDetail',50)}},nativeOn:{\"keyup\":function($event){return (function (value) { return _vm.toInput(value); })($event)}},model:{value:(_vm.ruleForm.addressDetail),callback:function ($$v) {_vm.$set(_vm.ruleForm, \"addressDetail\", $$v)},expression:\"ruleForm.addressDetail\"}}),_vm._v(\" \"),_c('label',{staticClass:\"input-label\"},[_vm._v(_vm._s(_vm.inputNumObj.addressDetail)+\"/50\")])],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"集团logo\",\"prop\":\"qcloudImageUrl\"}},[_c('div',[_c('el-upload',{staticClass:\"avatar-uploader\",attrs:{\"action\":_vm.uploadUrl(),\"show-file-list\":false,\"on-success\":_vm.handleAvatarSuccess,\"before-upload\":_vm.beforeAvatarUpload}},[(_vm.ruleForm.qcloudImageUrl)?_c('img',{staticClass:\"avatar\",attrs:{\"src\":_vm.ruleForm.qcloudImageUrl}}):_c('i',{staticClass:\"el-icon-plus avatar-uploader-icon\"})]),_vm._v(\" \"),_c('p',{staticClass:\"upload-tip\"},[_vm._v(\"只能上传规格为1:1的 jpg 图片,且不超过1Mb\")])],1)]),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"关联商户\"}},[_c('div',{staticClass:\"link-shop\"},[_vm._l((_vm.ruleForm.enterpriseList),function(item,index){return [_c('router-link',{attrs:{\"tag\":\"a\",\"target\":\"_blank\",\"to\":{path:'/login',query:{enterpriseId: item.enterpriseId}}}},[_c('img',{attrs:{\"src\":item.qcloudImageUrl,\"alt\":\"\"}}),_vm._v(\" \"),_c('span',[_vm._v(_vm._s(item.enterpriseName))])])]})],2)]),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"营业时间模板\",\"prop\":\"storeBusinessTime\"}},[_c('el-time-picker',{attrs:{\"is-range\":\"\",\"range-separator\":\"至\",\"start-placeholder\":\"开始时间\",\"end-placeholder\":\"结束时间\",\"placeholder\":\"选择时间范围\",\"format\":\"HH:mm\"},model:{value:(_vm.ruleForm.storeBusinessTime),callback:function ($$v) {_vm.$set(_vm.ruleForm, \"storeBusinessTime\", $$v)},expression:\"ruleForm.storeBusinessTime\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"客服热线\",\"prop\":\"customerPhone\"}},[_c('el-input',{on:{\"focus\":function($event){_vm.focus('customerPhone',30)}},nativeOn:{\"keyup\":function($event){return (function (value) { return _vm.toInput(value); })($event)}},model:{value:(_vm.ruleForm.customerPhone),callback:function ($$v) {_vm.$set(_vm.ruleForm, \"customerPhone\", $$v)},expression:\"ruleForm.customerPhone\"}}),_vm._v(\" \"),_c('label',{staticClass:\"input-label\"},[_vm._v(_vm._s(_vm.inputNumObj.customerPhone)+\"/30\")])],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"集团简介\",\"prop\":\"enterpriseDescription\"}},[_c('el-input',{staticStyle:{\"height\":\"96px\"},attrs:{\"type\":\"textarea\"},on:{\"focus\":function($event){_vm.focus('enterpriseDescription',200)}},nativeOn:{\"keyup\":function($event){return (function (value) { return _vm.toInput(value); })($event)}},model:{value:(_vm.ruleForm.enterpriseDescription),callback:function ($$v) {_vm.$set(_vm.ruleForm, \"enterpriseDescription\", $$v)},expression:\"ruleForm.enterpriseDescription\"}}),_vm._v(\" \"),[_c('label',{staticClass:\"input-label textarea-label\"},[_vm._v(_vm._s(_vm.inputNumObj.enterpriseDescription)+\"/200\")])]],2),_vm._v(\" \"),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){_vm.submitForm('ruleForm')}}},[_vm._v(\"保 存\")])],1)],1)],1)])])]),_vm._v(\" \"),_c('vue-gic-footer')],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-614fb5c1\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/view/companyGroup/membershipSystem/companyGroupInfo.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-614fb5c1\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!sass-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./companyGroupInfo.vue\")\n}\nvar normalizeComponent = require(\"!../../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./companyGroupInfo.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./companyGroupInfo.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-614fb5c1\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./companyGroupInfo.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-614fb5c1\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/view/companyGroup/membershipSystem/companyGroupInfo.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,t,f){for(var d,o,b,i=0,u=[];i<a.length;i++)o=a[i],n[o]&&u.push(n[o][0]),n[o]=0;for(d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d]);for(c&&c(a,t,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)b=r(r.s=f[i]);return b};var a={},n={33:0};function r(c){if(a[c])return a[c].exports;var n=a[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var c=n[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,r){c=n[e]=[a,r]});c[2]=a;var t=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,r.nc&&f.setAttribute("nonce",r.nc),f.src=r.p+"static/js/"+e+"."+{0:"941b7928ac3ec125dffe",1:"d84116ddb7da8d636dae",2:"898e902c03247d4950cd",3:"c2dbaee2092c89d6bb92",4:"b4dcc6aadf91150f66db",5:"5b1afe039b0196c0894f",6:"2a27b6ee8413b8c3f627",7:"f356c8f6136a4f23a8aa",8:"d57c4669ad7e30c60e4a",9:"4aedd9d9f32e5bd5b794",10:"3b6408b1d99252eda551",11:"f0b71dac5722ed6c4628",12:"b8af2fcb45c72480bdb0",13:"fe6ae03c95a9571f97a5",14:"e7a642abb172a6eeda8c",15:"75b9f569824348cabdf0",16:"c3cd0e9a4f74e7fe1908",17:"d87c97f00c0f75e2f86d",18:"a64255b1fd390deb552e",19:"6750f278930e019e7d78",20:"5ca1dc2a926da3f19f62",21:"2d9d159547fd48b0ad9c",22:"f68b7dbd357d65f46fca",23:"c3d64d2c7ba03967c4a8",24:"56f2057036ab22585e0e",25:"2133fdde82de7785cbc4",26:"30fb9f14c41e89141c15",27:"b9fd5f8677a43cab4a3f",28:"44deebcea6ccd096081f",29:"9339e8311b77c469e738",30:"ebb71c6a502890f047f8"}[e]+".js";var d=setTimeout(o,12e4);function o(){f.onerror=f.onload=null,clearTimeout(d);var c=n[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return f.onerror=f.onload=o,t.appendChild(f),a},r.m=e,r.c=a,r.d=function(e,c,a){r.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},r.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(c,"a",c),c},r.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},r.p="./",r.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.6a37dcb72a57f67df8bb.js.map
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,t,d){for(var f,o,b,i=0,u=[];i<a.length;i++)o=a[i],n[o]&&u.push(n[o][0]),n[o]=0;for(f in t)Object.prototype.hasOwnProperty.call(t,f)&&(e[f]=t[f]);for(c&&c(a,t,d);u.length;)u.shift()();if(d)for(i=0;i<d.length;i++)b=r(r.s=d[i]);return b};var a={},n={33:0};function r(c){if(a[c])return a[c].exports;var n=a[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var c=n[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,r){c=n[e]=[a,r]});c[2]=a;var t=document.getElementsByTagName("head")[0],d=document.createElement("script");d.type="text/javascript",d.charset="utf-8",d.async=!0,d.timeout=12e4,r.nc&&d.setAttribute("nonce",r.nc),d.src=r.p+"static/js/"+e+"."+{0:"941b7928ac3ec125dffe",1:"d84116ddb7da8d636dae",2:"898e902c03247d4950cd",3:"c2dbaee2092c89d6bb92",4:"b4dcc6aadf91150f66db",5:"5b1afe039b0196c0894f",6:"2a27b6ee8413b8c3f627",7:"f356c8f6136a4f23a8aa",8:"d57c4669ad7e30c60e4a",9:"4aedd9d9f32e5bd5b794",10:"3b6408b1d99252eda551",11:"f0b71dac5722ed6c4628",12:"b8af2fcb45c72480bdb0",13:"fe6ae03c95a9571f97a5",14:"e7a642abb172a6eeda8c",15:"75b9f569824348cabdf0",16:"c3cd0e9a4f74e7fe1908",17:"d87c97f00c0f75e2f86d",18:"a64255b1fd390deb552e",19:"b43ed44cc22e7eb7c359",20:"5ca1dc2a926da3f19f62",21:"2d9d159547fd48b0ad9c",22:"f68b7dbd357d65f46fca",23:"c3d64d2c7ba03967c4a8",24:"56f2057036ab22585e0e",25:"2133fdde82de7785cbc4",26:"30fb9f14c41e89141c15",27:"b9fd5f8677a43cab4a3f",28:"44deebcea6ccd096081f",29:"9339e8311b77c469e738",30:"ebb71c6a502890f047f8"}[e]+".js";var f=setTimeout(o,12e4);function o(){d.onerror=d.onload=null,clearTimeout(f);var c=n[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return d.onerror=d.onload=o,t.appendChild(d),a},r.m=e,r.c=a,r.d=function(e,c,a){r.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},r.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(c,"a",c),c},r.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},r.p="./",r.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.3a422bafdf50ad87885a.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap 455e7b0ade8e4df32ec8"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","33","exports","module","l","e","installedChunkData","Promise","resolve","promise","reject","head","document","getElementsByTagName","script","createElement","type","charset","async","timeout","nc","setAttribute","src","p","0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","setTimeout","onScriptComplete","onerror","onload","clearTimeout","chunk","Error","undefined","appendChild","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,GAAA,GAIA,SAAAH,EAAAd,G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A2C,QAAA3C,EAAA4C,OAAA,KACAC,aAAAxC,GACA,IAAAyC,EAAAtE,EAAAL,GACA,IAAA2E,IACAA,GACAA,EAAA,OAAAC,MAAA,iBAAA5E,EAAA,aAEAK,EAAAL,QAAA6E,GAKA,OAfAhD,EAAA2C,QAAA3C,EAAA4C,OAAAF,EAaA7C,EAAAoD,YAAAjD,GAEAL,GAIAX,EAAAkE,EAAApE,EAGAE,EAAAmE,EAAAjE,EAGAF,EAAAoE,EAAA,SAAAhE,EAAAiE,EAAAC,GACAtE,EAAAuE,EAAAnE,EAAAiE,IACA3E,OAAA8E,eAAApE,EAAAiE,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAtE,EAAA4E,EAAA,SAAAvE,GACA,IAAAiE,EAAAjE,KAAAwE,WACA,WAA2B,OAAAxE,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAoE,EAAAE,EAAA,IAAAA,GACAA,GAIAtE,EAAAuE,EAAA,SAAAO,EAAAC,GAAsD,OAAArF,OAAAC,UAAAC,eAAAC,KAAAiF,EAAAC,IAGtD/E,EAAAyB,EAAA,KAGAzB,EAAAgF,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.6a37dcb72a57f67df8bb.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t33: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData === 0) {\n \t\t\treturn new Promise(function(resolve) { resolve(); });\n \t\t}\n\n \t\t// a Promise means \"currently loading\".\n \t\tif(installedChunkData) {\n \t\t\treturn installedChunkData[2];\n \t\t}\n\n \t\t// setup Promise in chunk cache\n \t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t});\n \t\tinstalledChunkData[2] = promise;\n\n \t\t// start chunk loading\n \t\tvar head = document.getElementsByTagName('head')[0];\n \t\tvar script = document.createElement('script');\n \t\tscript.type = \"text/javascript\";\n \t\tscript.charset = 'utf-8';\n \t\tscript.async = true;\n \t\tscript.timeout = 120000;\n\n \t\tif (__webpack_require__.nc) {\n \t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t}\n \t\tscript.src = __webpack_require__.p + \"static/js/\" + chunkId + \".\" + {\"0\":\"941b7928ac3ec125dffe\",\"1\":\"d84116ddb7da8d636dae\",\"2\":\"898e902c03247d4950cd\",\"3\":\"c2dbaee2092c89d6bb92\",\"4\":\"b4dcc6aadf91150f66db\",\"5\":\"5b1afe039b0196c0894f\",\"6\":\"2a27b6ee8413b8c3f627\",\"7\":\"f356c8f6136a4f23a8aa\",\"8\":\"d57c4669ad7e30c60e4a\",\"9\":\"4aedd9d9f32e5bd5b794\",\"10\":\"3b6408b1d99252eda551\",\"11\":\"f0b71dac5722ed6c4628\",\"12\":\"b8af2fcb45c72480bdb0\",\"13\":\"fe6ae03c95a9571f97a5\",\"14\":\"e7a642abb172a6eeda8c\",\"15\":\"75b9f569824348cabdf0\",\"16\":\"c3cd0e9a4f74e7fe1908\",\"17\":\"d87c97f00c0f75e2f86d\",\"18\":\"a64255b1fd390deb552e\",\"19\":\"6750f278930e019e7d78\",\"20\":\"5ca1dc2a926da3f19f62\",\"21\":\"2d9d159547fd48b0ad9c\",\"22\":\"f68b7dbd357d65f46fca\",\"23\":\"c3d64d2c7ba03967c4a8\",\"24\":\"56f2057036ab22585e0e\",\"25\":\"2133fdde82de7785cbc4\",\"26\":\"30fb9f14c41e89141c15\",\"27\":\"b9fd5f8677a43cab4a3f\",\"28\":\"44deebcea6ccd096081f\",\"29\":\"9339e8311b77c469e738\",\"30\":\"ebb71c6a502890f047f8\"}[chunkId] + \".js\";\n \t\tvar timeout = setTimeout(onScriptComplete, 120000);\n \t\tscript.onerror = script.onload = onScriptComplete;\n \t\tfunction onScriptComplete() {\n \t\t\t// avoid mem leaks in IE.\n \t\t\tscript.onerror = script.onload = null;\n \t\t\tclearTimeout(timeout);\n \t\t\tvar chunk = installedChunks[chunkId];\n \t\t\tif(chunk !== 0) {\n \t\t\t\tif(chunk) {\n \t\t\t\t\tchunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));\n \t\t\t\t}\n \t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t}\n \t\t};\n \t\thead.appendChild(script);\n\n \t\treturn promise;\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 455e7b0ade8e4df32ec8"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap 23429e5546dd315624c4"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","33","exports","module","l","e","installedChunkData","Promise","resolve","promise","reject","head","document","getElementsByTagName","script","createElement","type","charset","async","timeout","nc","setAttribute","src","p","0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","setTimeout","onScriptComplete","onerror","onload","clearTimeout","chunk","Error","undefined","appendChild","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,GAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAA,SAAApB,GACA,IAAAqB,EAAAhB,EAAAL,GACA,OAAAqB,EACA,WAAAC,QAAA,SAAAC,GAA0CA,MAI1C,GAAAF,EACA,OAAAA,EAAA,GAIA,IAAAG,EAAA,IAAAF,QAAA,SAAAC,EAAAE,GACAJ,EAAAhB,EAAAL,IAAAuB,EAAAE,KAEAJ,EAAA,GAAAG,EAGA,IAAAE,EAAA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jE,KAAAwE,WACA,WAA2B,OAAAxE,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAoE,EAAAE,EAAA,IAAAA,GACAA,GAIAtE,EAAAuE,EAAA,SAAAO,EAAAC,GAAsD,OAAArF,OAAAC,UAAAC,eAAAC,KAAAiF,EAAAC,IAGtD/E,EAAAyB,EAAA,KAGAzB,EAAAgF,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.3a422bafdf50ad87885a.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t33: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData === 0) {\n \t\t\treturn new Promise(function(resolve) { resolve(); });\n \t\t}\n\n \t\t// a Promise means \"currently loading\".\n \t\tif(installedChunkData) {\n \t\t\treturn installedChunkData[2];\n \t\t}\n\n \t\t// setup Promise in chunk cache\n \t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t});\n \t\tinstalledChunkData[2] = promise;\n\n \t\t// start chunk loading\n \t\tvar head = document.getElementsByTagName('head')[0];\n \t\tvar script = document.createElement('script');\n \t\tscript.type = \"text/javascript\";\n \t\tscript.charset = 'utf-8';\n \t\tscript.async = true;\n \t\tscript.timeout = 120000;\n\n \t\tif (__webpack_require__.nc) {\n \t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t}\n \t\tscript.src = __webpack_require__.p + \"static/js/\" + chunkId + \".\" + {\"0\":\"941b7928ac3ec125dffe\",\"1\":\"d84116ddb7da8d636dae\",\"2\":\"898e902c03247d4950cd\",\"3\":\"c2dbaee2092c89d6bb92\",\"4\":\"b4dcc6aadf91150f66db\",\"5\":\"5b1afe039b0196c0894f\",\"6\":\"2a27b6ee8413b8c3f627\",\"7\":\"f356c8f6136a4f23a8aa\",\"8\":\"d57c4669ad7e30c60e4a\",\"9\":\"4aedd9d9f32e5bd5b794\",\"10\":\"3b6408b1d99252eda551\",\"11\":\"f0b71dac5722ed6c4628\",\"12\":\"b8af2fcb45c72480bdb0\",\"13\":\"fe6ae03c95a9571f97a5\",\"14\":\"e7a642abb172a6eeda8c\",\"15\":\"75b9f569824348cabdf0\",\"16\":\"c3cd0e9a4f74e7fe1908\",\"17\":\"d87c97f00c0f75e2f86d\",\"18\":\"a64255b1fd390deb552e\",\"19\":\"b43ed44cc22e7eb7c359\",\"20\":\"5ca1dc2a926da3f19f62\",\"21\":\"2d9d159547fd48b0ad9c\",\"22\":\"f68b7dbd357d65f46fca\",\"23\":\"c3d64d2c7ba03967c4a8\",\"24\":\"56f2057036ab22585e0e\",\"25\":\"2133fdde82de7785cbc4\",\"26\":\"30fb9f14c41e89141c15\",\"27\":\"b9fd5f8677a43cab4a3f\",\"28\":\"44deebcea6ccd096081f\",\"29\":\"9339e8311b77c469e738\",\"30\":\"ebb71c6a502890f047f8\"}[chunkId] + \".js\";\n \t\tvar timeout = setTimeout(onScriptComplete, 120000);\n \t\tscript.onerror = script.onload = onScriptComplete;\n \t\tfunction onScriptComplete() {\n \t\t\t// avoid mem leaks in IE.\n \t\t\tscript.onerror = script.onload = null;\n \t\t\tclearTimeout(timeout);\n \t\t\tvar chunk = installedChunks[chunkId];\n \t\t\tif(chunk !== 0) {\n \t\t\t\tif(chunk) {\n \t\t\t\t\tchunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));\n \t\t\t\t}\n \t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t}\n \t\t};\n \t\thead.appendChild(script);\n\n \t\treturn promise;\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 23429e5546dd315624c4"],"sourceRoot":""}
\ No newline at end of file
......@@ -300,7 +300,7 @@ export default {
},
beforeAvatarUpload(file) {
var that = this
const isJPG = file.type === 'image/jpeg';
const isJPG = file.type === 'image/jpeg' || file.type === 'image/jpg';
const isLt2M = file.size / 1024 / 1024 <= 1;
if (!isJPG) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment