123456 |
- webpackJsonp([1],{"+zkC":function(t,e){},"0UKW":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={data:function(){return{infoObj:{},content:[],contentList:[],level:[],levelList:[],type:[],typeList:[],attr:[],attrList:[],group_id:"",groupList:[],app_id:"",wxList:this.$store.state.wxList,listArr:[],loadingManage:!1,showToast:!1,loadEdit:!1,options:[],value:"",keyword:"",total:1,page:1,teamId:"",page_size:20}},created:function(){this.init(),this.getList(1),this.getList(2),this.getList(3),this.getGroup(),this.listArr=this.wxList&&this.wxList.length>0?this.wxList:[],this.listArr.length>0&&(this.loadingManage=!1)},methods:{resetAttr:function(){var t=this;this.showToast=!0,this.attr=[],this.level=[],this.type=[],this.infoObj.account_level_info.forEach(function(e){t.level.push(e.id)}),this.infoObj.account_attr_info.forEach(function(e){t.attr.push(e.id)}),this.infoObj.content_type_info.forEach(function(e){t.type.push(e.id)}),this.group_id=this.infoObj.group_info?this.infoObj.group_info.id:""},getGroup:function(){var t=this;this.loadAttr=!0,this.$axios.post(this.URL.BASEURL+this.URL.groupList,{page_size:999,team_id:JSON.parse(this.$cookieStore.getCookie("teamObj")).id}).then(function(e){t.loadAttr=!1,(e=e.data)&&0==e.errno&&(t.groupList=[{name:"未分组",id:0}].concat(e.rst.data))}).catch(function(e){console.log(e),t.loadAttr=!1})},getList:function(t){var e=this;this.loadAttr=!0,this.$axios.get(this.URL.BASEURL+this.URL.attrList,{params:{type:t,team_id:JSON.parse(this.$cookieStore.getCookie("teamObj")).id}}).then(function(i){if(e.loadAttr=!1,(i=i.data)&&0==i.errno)switch(t){case 1:e.typeList=i.rst;break;case 2:e.levelList=i.rst;break;case 3:e.attrList=i.rst}}).catch(function(t){console.log(t),e.loadAttr=!1})},reset:function(t){var e=this;this.loading=!0,this.$axios.post(this.URL.BASEURL+this.URL.resetToken,{app_id:t.app_id}).then(function(t){e.loading=!1,(t=t.data)&&0==t.errno?(e.$message({message:"该公众号信息已更新",type:"success"}),e.init(1)):e.$message({message:t.err,type:"warning"})}).catch(function(t){console.log(t),e.loading=!1})},unbind:function(t){var e=this;this.loadingManage=!0,this.$axios.post(this.URL.BASEURL+this.URL.unbind,{app_id:t.app_id,team_id:JSON.parse(this.$cookieStore.getCookie("teamObj")).id}).then(function(t){e.loadingManage=!1,(t=t.data)&&0==t.errno?(e.$message({message:"解绑成功",type:"success"}),location.reload()):e.$message({message:t.err,type:"warning"})}).catch(function(t){console.log(t),e.loadingManage=!1})},init:function(t){var e=this;this.loadingManage=!0,this.page=t,this.$axios.post(this.URL.BASEURL+this.URL.accountList,{page:t,page_size:this.page_size,keyword:this.keyword,team_id:JSON.parse(this.$cookieStore.getCookie("teamObj")).id}).then(function(t){(e.loadingManage=!1,(t=t.data)&&0==t.errno)&&(t.rst.data.forEach(function(t){0==t.service_type||1==t.service_type?t.service_type="订阅号":t.service_type="服务号"}),e.listArr=t.rst.data,e.total=t.rst.pageInfo.total,e.page_size=Number(t.rst.pageInfo.size))}).catch(function(t){console.log(t),e.loadingManage=!1})},handleCurrentChange:function(t){this.init(t)},editAttr:function(){var t=this;this.loadEdit=!0;var e={app_id:this.app_id,group_id:this.group_id,content_type_ids:this.type.join(","),account_level_ids:this.level.join(","),account_attr_ids:this.attr.join(","),team_id:JSON.parse(this.$cookieStore.getCookie("teamObj")).id};this.$axios.post(this.URL.BASEURL+this.URL.addAttr,e).then(function(e){if(t.loadEdit=!1,(e=e.data)&&0==e.errno){e.rst.data;t.$message({message:"编辑成功",type:"success"}),t.showToast=!1,t.init(1)}else t.$message({message:e.err,type:"warning"})}).catch(function(e){console.log(e),t.loadEdit=!1})},toAdd:function(){this.$router.push("/addMange")},addWx:function(){var t=this;this.loadingManage=!0,this.$axios.get(this.URL.BASEURL+this.URL.authCode).then(function(e){t.loadingManage=!1,(e=e.data)&&0==e.errno?e.rst.data.url?window.open(e.rst.data.url):t.$message({message:"链接错误,请重试",type:"warning"}):t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loadingManage=!1})}},watch:{wxList:function(){this.listArr=this.wxList,this.listArr.length>0&&(this.loadingManage=!1)}}},n={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"manage"},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loadingManage,expression:"loadingManage"}],staticStyle:{"overflow-y":"scroll",height:"100%"},attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[s("div",{staticClass:"topTitle"},[t._v("\n 公众号列表\n ")]),t._v(" "),s("div",{staticClass:"topInfo"},[s("div",{staticClass:"searchCon"},[s("div",{staticClass:"rightBtn"},[s("button",{staticClass:"button primary",on:{click:t.addWx}},[t._v("添加公众号")]),t._v(" "),s("button",{staticClass:"button",on:{click:function(e){return t.$router.push("/managegroup?type=attr")}}},[t._v("管理公众号属性")]),t._v(" "),s("button",{staticClass:"button",on:{click:function(e){return t.$router.push("/managegroup?type=content")}}},[t._v("管理公众号内容")]),t._v(" "),s("button",{staticClass:"button",on:{click:function(e){return t.$router.push("/managegroup?type=grade")}}},[t._v("管理公众号等级")]),t._v(" "),s("button",{staticClass:"button",on:{click:function(e){return t.$router.push("/managegroup?type=group")}}},[t._v("管理公众号分组")])]),t._v(" "),s("div",{staticClass:"searchBox"},[s("el-input",{staticClass:"input",staticStyle:{width:"310px"},attrs:{placeholder:"输入公众号名称","prefix-icon":"el-icon-search"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),s("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.init(1)}}},[t._v("搜索")])],1)])]),t._v(" "),t.listArr.length>0?s("div",{staticClass:"wxList"},[t._l(t.listArr,function(e){return s("div",{staticClass:"wxItem"},[e.head_img?s("img",{staticClass:"icon",attrs:{src:e.head_img,alt:""}}):s("img",{staticClass:"icon",attrs:{src:i("JsJG"),alt:""}}),t._v(" "),s("div",{staticClass:"rightInfo"},[s("el-tooltip",{staticClass:"name",attrs:{size:"mini",effect:"dark",content:e.nickname,placement:"top-start"}},[s("el-button",[t._v(t._s(e.nickname))])],1),t._v(" "),s("div",{staticClass:"cate"},[s("div",{staticClass:"infoBox"},[0==e.verify_type||1==e.verify_type?s("img",{staticClass:"leftIcon",attrs:{src:i("bCDx"),alt:""}}):s("img",{staticClass:"leftIcon",attrs:{src:i("DFVw"),alt:""}}),t._v(" "),s("span",[t._v(t._s(0==e.verify_type||1==e.verify_type?"已认证":"未认证"))])]),t._v(" "),s("div",{staticClass:"infoBox"},["服务号"==e.service_type?s("img",{staticClass:"leftIcon",attrs:{src:i("RS4J"),alt:""}}):s("img",{staticClass:"leftIcon",attrs:{src:i("v77k"),alt:""}}),t._v(" "),s("span",[t._v(t._s(e.service_type))])])]),t._v(" "),s("div",{staticClass:"desc"},[t._v("\n "+t._s(e.principal_name)+"\n ")])],1),t._v(" "),s("div",{staticClass:"doneList"},[s("div",{staticClass:"doneItem",on:{click:function(i){t.app_id=e.app_id,t.infoObj=e,t.resetAttr()}}},[t._v("修改信息")]),t._v(" "),s("div",{staticClass:"doneItem",on:{click:function(i){return t.reset(e)}}},[t._v("更新信息")]),t._v(" "),s("div",{staticClass:"doneItem",on:{click:function(i){return t.unbind(e)}}},[t._v("解除授权")])])])}),t._v(" "),s("div",{staticClass:"wxItem add",on:{click:t.addWx}},[t._v("\n +\n "),s("div",{staticClass:"nameText"},[t._v("继续添加公众号")])])],2):t._e(),t._v(" "),t.listArr.length>0&&t.total>t.page_size?s("div",{staticClass:"bottom"},[s("el-pagination",{attrs:{background:"","current-page":t.page,"page-size":t.page_size,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e(),t._v(" "),0==t.listArr.length?s("div",{staticClass:"nullBox"},[s("img",{attrs:{src:i("3qAc"),alt:""}}),t._v(" "),s("div",{staticClass:"null"},[t._v("去添加自己喜欢的"),s("span",{staticStyle:{color:"#4589ff",cursor:"pointer"},on:{click:t.addWx}},[t._v("公众号")]),t._v("吧~")])]):t._e(),t._v(" "),s("my-dialog",{attrs:{visible:t.showToast,width:"30%",minWidth:"500px"},on:{"update:visible":function(e){t.showToast=e}}},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loadEdit,expression:"loadEdit"}],staticClass:"toast"},[s("h3",[t._v("修改信息")]),t._v(" "),s("div",{staticClass:"toastMain"},[s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName"}},[t._v("账号属性:")]),t._v(" "),s("el-select",{staticStyle:{width:"250px"},attrs:{id:"titleName",multiple:"",size:"mini",placeholder:"请选择"},model:{value:t.attr,callback:function(e){t.attr=e},expression:"attr"}},t._l(t.attrList,function(t){return s("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1)],1),t._v(" "),s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName1"}},[t._v("账号内容类型:")]),t._v(" "),s("el-select",{staticStyle:{width:"250px"},attrs:{id:"titleName1",multiple:"",size:"mini",placeholder:"请选择"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},t._l(t.typeList,function(t){return s("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1)],1),t._v(" "),s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName2"}},[t._v("账号等级:")]),t._v(" "),s("el-select",{staticStyle:{width:"250px"},attrs:{id:"titleName2",multiple:"",size:"mini",placeholder:"请选择"},model:{value:t.level,callback:function(e){t.level=e},expression:"level"}},t._l(t.levelList,function(t){return s("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1)],1),t._v(" "),s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName"}},[t._v("公众号分组:")]),t._v(" "),s("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:t.group_id,callback:function(e){t.group_id=e},expression:"group_id"}},t._l(t.groupList,function(t){return s("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1)],1)]),t._v(" "),s("div",{staticClass:"toastBtn"},[s("el-button",{attrs:{size:"mini"},on:{click:function(e){t.showToast=!1}}},[t._v("取消")]),t._v(" "),s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.editAttr}},[t._v("确定")])],1)])])],1)])},staticRenderFns:[]};var a=i("VU/8")(s,n,!1,function(t){i("LHBb"),i("UVNe")},"data-v-7840bc60",null);e.default=a.exports},"0eGq":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPQAAADICAYAAADfl8woAAAOJUlEQVR4Xu3de4wkVRXH8XN7eiUSHirrKzxiEBHXZP0DFXCJgA8CqKioCQQ07mTq1uzEMYgmhL/gD2M2BkKChtm+xStRsoiiwhJWXgKKIEhIgBggwT/UBLKw+ASyO7NT19Q6JMsyj6rqPn2qer6dTPaPvfeccz/Vv+3Z7p4eJ9wQQGBkBNzInISDIICAEGjuBAiMkACBHqGLyVEQINDcBxAYIYGBBtp7f2C32z0sz/O1e/bsObTNTs65V51zO2ZnZ1+84YYbdrX5LMy+egT6DnSSJGeKyN4v59wxI0r3HxF5sfiKMd6+Zs2an1999dXPjehZOVaLBWoHOkmS851z0yJyQovP38/o9zrnbh0bG9tOuPthZO8gBSoHOk3TdTHGyxcelQc5S5trXSUiV4UQ/tLmQzB7+wUqBXohzHeKyBHtP/rAT7CzCPVCsP898OoURKCEQOlAp2l6UozxoRI1V/uSZxZCPbPaITj/8AVKBdp7f5yIPD388drb0Tm3pdfrbWrvCZi8jQIrBnp8fPzgbrf7mIgc28YDGs/8mxBC8QoANwSGIrBioL33mYhMDGWa0WzyTAjhQ6N5NE7VNIFlAz0xMXFqp9O5r2lDt3Ce4o0ph4QQ5lo4OyO3SGDZQHvvbxGRc1p0niaPWjwLvj6E8EKTh2S2dgssGeiJiYnjO51O8X/nOrcdMcZWP4nmnHubiLxPRIo/B3V7Is/zCwdVjDrtFeh2u6/lef5sCGGgL3EuGeg0TS+OMW6uQLZbRK4cGxvbOjMz82SFfY1e6r2/TEQubfSQDNdmgRdijM/GGH/a6XTuDiH8rZ/DLBnoJEmecM6tL1n8FRE5JYTweMn1rVo2NTV1kIi8Z3Z29r2dTu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WpWrGi9BildDcgVapSddZZpcc4OVtVdEs7t7b6797snu4GJKWU0r59pSf4D1tV0LKtrb17S09QSscD8vXXpSeYylYV/Fvjt7bqVKf6m29Kj1FKxwPy1lux9k/QUmxVwck0c2vr4MFY33uv7BzldDYgcULu3h1HL7448gFsVcGsNWtr65lnqolqopr466/S3xcKifdxn3tufC7k55/rkXjuuVirqvTjH1fxc73tttH8PE9l9erS349x1f9EeKybNo3m5/ndd36lSejsFUhfvILYuzeuCG6+Ob7622/D+dNsVcEgjXZra3IyniduuSWeN/bvL/34aZh4ZXHBBfFK46OP5vZK5dChWB95pPTj6hpXIN0U3++JiVjXr4/1yJG5/fzeeSfOp/POK/34aJk4gdaujfX112P99depJ1j/BP3hh1iffTbWiy4qPX9XCQgp9f/+XnppnA8bN8bxTz9N/fn0erFOTsb68suxXndd6fkZU3FCLlhQeg6mJyDMRJwnCxeWnqOtOn8PJFfsgR4+XHoOIF/8PT50qPQcbSUgAGQREACyCAgAWQQEgCwCAkAWAQEgi4AAkEVAAMgiIABkERAAsggIAFkEBIAsAgJAFgEBIIuAAJBFQADIIiAAZBEQALIICABZBASALAICQBYBASCLgACQRUAAyCIgAGQREACyCAgAWQQEgCwCAkAWAQEgi4AAkEVAAMgiIABkERAAsggIAFkEBIAsAgJAFgEBIIuAAJBFQADIIiAAZBEQALIICABZBASALAICQBYBASCLgACQRUAAyCIgAGQREACyCAgAWQQEgCwCAkAWAQEgi4AAkEVAAMgiIABkERDGU5WqVB04UHqMVKc61X/9VXoMGAYBYTzVqU71zp2lx4iQNWAOAGamruu6ricmYt29ux61Xt2re99/X/r7AMPkCoSxVFVVVVW9XlyJbN48+gFSlapXXy39fQAgU1wJnHNOXBbs2zeay4/JyVgXLSr9+AGYowjJDTfEE/vhw8MJx8GD8edceWXpxwvAgE0NyaCuSHbtinXlytKPD4Ahm7q19cwzcbx37+yC8dRT8f+dfXbpxwMlVKUHgCaIIMybF0f/+1/cfF+2rP9fY52cjJvj33577CY9AAAAAAAAAAAAAAAAAAAAAAAAACP3f2f8Rp/8OBbxAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTExLTAxVDE0OjA0OjQ1KzA4OjAwQMIKlQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMS0wMVQxNDowNDo0NSswODowMDGfsikAAABKdEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL2hvbWUvYWRtaW4vaWNvbi1mb250L3RtcC9pY29uXzN5NjEwY2kzd3JnL3poaWRpbmcuc3ZnvUnNxgAAAABJRU5ErkJggg=="},"8KcA":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"addManage"},[i("div",{staticClass:"searchCon"},[i("label",{attrs:{for:"keyword"}},[t._v("公众号:")]),t._v(" "),i("input",{attrs:{type:"text",id:"keyword",placeholder:"请输入关键词后选择"}}),t._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"small"}},[t._v("查询")]),t._v(" "),i("el-button",{attrs:{plain:"",size:"small"},on:{click:function(e){t.showToast=!0}}},[t._v("新增")])],1),t._v(" "),i("my-dialog",{attrs:{visible:t.showToast,width:"30%",minWidth:"500px"},on:{"update:visible":function(e){t.showToast=e}}},[i("div",{staticClass:"toast"},[i("h3",[t._v("添加账号信息")]),t._v(" "),i("div",{staticClass:"toastMain"},[i("div",{staticClass:"inputItem"},[i("label",{attrs:{for:"titleName"}},[t._v("公众号:")]),t._v(" "),i("input",{attrs:{type:"text",id:"titleName",placeholder:"请输入"}})]),t._v(" "),i("div",{staticClass:"inputItem"},[i("label",{attrs:{for:"titleName"}},[t._v("登陆账号:")]),t._v(" "),i("input",{attrs:{type:"text",id:"titleName",placeholder:"请输入"}})]),t._v(" "),i("div",{staticClass:"inputItem"},[i("label",{attrs:{for:"titleName"}},[t._v("登陆密码:")]),t._v(" "),i("input",{attrs:{type:"text",id:"titleName",placeholder:"请输入"}})]),t._v(" "),i("div",{staticClass:"inputItem"},[i("label",{attrs:{for:"titleName"}},[t._v("绑定通知人:")]),t._v(" "),i("el-select",{attrs:{placeholder:"请选择",size:"mini"},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},t._l(t.options,function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1),t._v(" "),i("div",{staticClass:"add",on:{click:t.toAdd}},[t._v("+")])],1)]),t._v(" "),i("div",{staticClass:"toastBtn"},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.edit}},[t._v("确定")]),t._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){t.showToast=!1}}},[t._v("取消")])],1)])])],1)},staticRenderFns:[]};var n=i("VU/8")({data:function(){return{showToast:!1,options:[],value:"",articleTitle:""}},methods:{toAdd:function(){},edit:function(){}}},s,!1,function(t){i("DLja")},"data-v-b19b53f8",null);e.default=n.exports},BDhv:function(t,e,i){var s=i("kM2E");s(s.P+s.R,"Set",{toJSON:i("m9gC")("Set")})},DFVw:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAAVFBMVEUAAACjo6OkpKSMjIykpKSkpKSgoKCjo6OkpKSkpKSjo6Oenp6jo6Ojo6OkpKSioqKgoKCdnZ2jo6OkpKSjo6OkpKSjo6OioqKkpKShoaGjo6OkpKT02FO7AAAAG3RSTlMAQPMH+Wou3bmzOx/UpaImFw7qsJaKhIFiTHSMPT4CAAAAiklEQVQY023O2xKDIAxF0RipLSAC3m3+/z/LtSDjfsqshzOBnOZcQ9M5E83njYaFQstQaEVK4RrZqEiZlXHYUVPXID7gR44Zi/UvVuH7i8H+m8Kj6TAbCYcSvcrBJkMJLk5edTLi4BMsfhNjAkIHVR0Q61WxqYesU2WlnYW9HW5dI9F4QZPdNpvvHzgdFZleKypSAAAAAElFTkSuQmCC"},DLja:function(t,e){},LHBb:function(t,e){},RS4J:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAAe1BMVEUAAAA92oQ/3YU/3YU/3YU/3YQ81YE00XogxGk/3IQ/3YQ/3YQ/3YQ+3IQ+3II82YE/3YRA3YQ/3YU/3IU+3IVA3IU/3IQ/3IM824M+24A52IQ814A+0Xw/3IU/3YQ/3IQ/3IM/3YM+3YM+24M/24Q+3YNA3YQ924VA3YUogXXhAAAAKHRSTlMANsHuqXYYCwT69uOzXEIu59rQmpOQf0sqIx0TENW7oqGGb2NVUjwyY6urywAAAJRJREFUGNOdzkcSwyAQRNExIiiAsIKVnRP3P6GNBkpQ3vlv6HobBnzLWwuIS1lhsqOKsTNrj9B4glinAb4MlvAAtcP9Ev5DEBsI05U1wiGKM3q5C/ivqWcNpe2tnL0IJRN7Y25von1qrazNGjvjexq+luPOxqfBihGkmwTmws0OiFsSROVmaxFTV78OG+bZhsPup+kDDywZUeX9Ij8AAAAASUVORK5CYII="},UVNe:function(t,e){},bCDx:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAAWlBMVEUAAAA3m/8xjP84m/84nP84m/83mv80mf84nP84m/84m/82mv8zlv84nP81mf8vlv80l/85nP84m/84m/85m/84m/83m/84nP83mv83mv82mv85nP83mv85nP9Y4xnpAAAAHXRSTlMAQAek9PJqLvm5szsf1CYXDurg2bCWioSBYkz3dPukY1YAAACKSURBVBjTbc5JFoMgEEXRUiQSehP7pPa/zQAWQTm+4R388yFnpbRQtQ2Iw3ahfsTU2BeaOqS66WDHiIiZC9hgVVMhv8GnNhmLtY/PCV9fnuy/qSK6hmdDFVDH9bfuPRnXEJIY1ZKhhJgS6TSZUJBa8dQKRy0rxlqolYxaRNpb4NJuEM0OVX6ePVA/nrgXN9W+ITEAAAAASUVORK5CYII="},"iPd/":function(t,e,i){var s;s=function(t){return function(t){function e(s){if(i[s])return i[s].exports;var n=i[s]={exports:{},id:s,loaded:!1};return t[s].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var i={};return e.m=t,e.c=i,e.p="/",e(0)}([function(t,e,i){var s,n,a;n=[t,e,i(13),i(14),i(43),i(44)],void 0===(a="function"==typeof(s=function(t,e,i,s,n,a){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("function"!=typeof t)throw"imageLoaded directive error: objet "+t+" should be a function "+e}function c(t,e){var i=(0,u.default)(t),s=i.images.map(function(t){return{img:t.img,src:t.img.src}}),n=t.__imagesLoaded__.context;(function(t,e){var i=t.length;if(i!=e.length)return!1;for(var s=0;s<i;s++){var n=t[s],a=e[s];if(n.img!==a.img||n.src!==a.src)return!1}return!0})(n,s)||(function(t,e){var i=e.value,s=e.arg,n=e.modifiers;if(!s)return r(i),void t.on("always",function(t){return setTimeout(function(){return i(t)})});var a=!!n&&!!(0,d.default)(n).length,o=a?n:i,c=a?function(t){return i}:function(t){return i[t]},l=function(){var e=c(u);r(e,a?"":"property "+u+" of "+i),t[s](u,function(t,i){return setTimeout(function(){return e(t,i)})})};for(var u in o)l()}(i,e),(0,l.default)(t.__imagesLoaded__,{context:s,imageLoaded:i}))}Object.defineProperty(e,"__esModule",{value:!0});var l=o(i),d=o(s),u=o(n),h=o(a);e.default={bind:function(t){t.__imagesLoaded__={context:[]}},inserted:function(t,e){c(t,e)},componentUpdated:function(t,e){h.default.nextTick(function(){c(t,e)})},unbind:function(t,e){t.__imagesLoaded__=null}},t.exports=e.default})?s.apply(e,n):s)||(t.exports=a)},function(t,e){var i=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=i)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,i){t.exports=!i(2)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,i){var s=i(4),n=i(1),a=i(21),o=i(25),r="prototype",c=function(t,e,i){var l,d,u,h=t&c.F,g=t&c.G,m=t&c.S,p=t&c.P,v=t&c.B,A=t&c.W,f=g?n:n[e]||(n[e]={}),_=f[r],C=g?s:m?s[e]:(s[e]||{})[r];for(l in g&&(i=e),i)(d=!h&&C&&void 0!==C[l])&&l in f||(u=d?C[l]:i[l],f[l]=g&&"function"!=typeof C[l]?i[l]:v&&d?a(u,s):A&&C[l]==u?function(t){var e=function(e,i,s){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,s)}return t.apply(this,arguments)};return e[r]=t[r],e}(u):p&&"function"==typeof u?a(Function.call,u):u,p&&((f.virtual||(f.virtual={}))[l]=u,t&c.R&&_&&!_[l]&&o(_,l,u)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,i){var s=i(20);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==s(t)?t.split(""):Object(t)}},function(t,e,i){var s=i(30),n=i(23);t.exports=Object.keys||function(t){return s(t,n)}},function(t,e){var i=Math.ceil,s=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?s:i)(t)}},function(t,e,i){var s=i(8),n=i(6);t.exports=function(t){return s(n(t))}},function(t,e,i){var s=i(6);t.exports=function(t){return Object(s(t))}},function(t,e,i){t.exports={default:i(15),__esModule:!0}},function(t,e,i){t.exports={default:i(16),__esModule:!0}},function(t,e,i){i(40),t.exports=i(1).Object.assign},function(t,e,i){i(41),t.exports=i(1).Object.keys},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,i){var s=i(5);t.exports=function(t){if(!s(t))throw TypeError(t+" is not an object!");return t}},function(t,e,i){var s=i(11),n=i(37),a=i(36);t.exports=function(t){return function(e,i,o){var r,c=s(e),l=n(c.length),d=a(o,l);if(t&&i!=i){for(;l>d;)if((r=c[d++])!=r)return!0}else for(;l>d;d++)if((t||d in c)&&c[d]===i)return t||d||0;return!t&&-1}}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e,i){var s=i(17);t.exports=function(t,e,i){if(s(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,s){return t.call(e,i,s)};case 3:return function(i,s,n){return t.call(e,i,s,n)}}return function(){return t.apply(e,arguments)}}},function(t,e,i){var s=i(5),n=i(4).document,a=s(n)&&s(n.createElement);t.exports=function(t){return a?n.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,i){var s=i(28),n=i(33);t.exports=i(3)?function(t,e,i){return s.f(t,e,n(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){t.exports=!i(3)&&!i(2)(function(){return 7!=Object.defineProperty(i(22)("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){"use strict";var s=i(9),n=i(29),a=i(31),o=i(12),r=i(8),c=Object.assign;t.exports=!c||i(2)(function(){var t={},e={},i=Symbol(),s="abcdefghijklmnopqrst";return t[i]=7,s.split("").forEach(function(t){e[t]=t}),7!=c({},t)[i]||Object.keys(c({},e)).join("")!=s})?function(t,e){for(var i=o(t),c=arguments.length,l=1,d=n.f,u=a.f;c>l;)for(var h,g=r(arguments[l++]),m=d?s(g).concat(d(g)):s(g),p=m.length,v=0;p>v;)u.call(g,h=m[v++])&&(i[h]=g[h]);return i}:c},function(t,e,i){var s=i(18),n=i(26),a=i(38),o=Object.defineProperty;e.f=i(3)?Object.defineProperty:function(t,e,i){if(s(t),e=a(e,!0),s(i),n)try{return o(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,i){var s=i(24),n=i(11),a=i(19)(!1),o=i(34)("IE_PROTO");t.exports=function(t,e){var i,r=n(t),c=0,l=[];for(i in r)i!=o&&s(r,i)&&l.push(i);for(;e.length>c;)s(r,i=e[c++])&&(~a(l,i)||l.push(i));return l}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,i){var s=i(7),n=i(1),a=i(2);t.exports=function(t,e){var i=(n.Object||{})[t]||Object[t],o={};o[t]=e(i),s(s.S+s.F*a(function(){i(1)}),"Object",o)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,i){var s=i(35)("keys"),n=i(39);t.exports=function(t){return s[t]||(s[t]=n(t))}},function(t,e,i){var s=i(4),n="__core-js_shared__",a=s[n]||(s[n]={});t.exports=function(t){return a[t]||(a[t]={})}},function(t,e,i){var s=i(10),n=Math.max,a=Math.min;t.exports=function(t,e){return(t=s(t))<0?n(t+e,0):a(t,e)}},function(t,e,i){var s=i(10),n=Math.min;t.exports=function(t){return t>0?n(s(t),9007199254740991):0}},function(t,e,i){var s=i(5);t.exports=function(t,e){if(!s(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!s(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!s(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!s(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},function(t,e){var i=0,s=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+s).toString(36))}},function(t,e,i){var s=i(7);s(s.S+s.F,"Object",{assign:i(27)})},function(t,e,i){var s=i(12),n=i(9);i(32)("keys",function(){return function(t){return n(s(t))}})},function(t,e,i){var s,n;"undefined"!=typeof window&&window,s=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},s=i[t]=i[t]||[];return-1==s.indexOf(e)&&s.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},s=i[t]=i[t]||{};return s[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var s=i.indexOf(e);return-1!=s&&i.splice(s,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var s=0,n=i[s];e=e||[];for(var a=this._onceEvents&&this._onceEvents[t];n;){var o=a&&a[n];o&&(this.off(t,n),delete a[n]),n.apply(this,e),n=i[s+=o?0:1]}return this}},t},void 0===(n="function"==typeof s?s.call(e,i,e,t):s)||(t.exports=n)},function(t,e,i){var s,n;
- /*!
- * imagesLoaded v4.1.1
- * JavaScript is all like "You images are done yet or what?"
- * MIT License
- */!function(a,o){"use strict";s=[i(42)],void 0===(n=function(t){return function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function s(t,e,n){return this instanceof s?("string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=function(t){var e=[];if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e}(t),this.options=i({},this.options),"function"==typeof e?n=e:i(this.options,e),n&&this.on("always",n),this.getImages(),o&&(this.jqDeferred=new o.Deferred),void setTimeout(function(){this.check()}.bind(this))):new s(t,e,n)}function n(t){this.img=t}function a(t,e){this.url=t,this.element=e,this.img=new Image}var o=t.jQuery,r=t.console;s.prototype=Object.create(e.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&c[e]){for(var i=t.querySelectorAll("img"),s=0;s<i.length;s++){var n=i[s];this.addImage(n)}if("string"==typeof this.options.background){var a=t.querySelectorAll(this.options.background);for(s=0;s<a.length;s++){var o=a[s];this.addElementBackgroundImages(o)}}}};var c={1:!0,9:!0,11:!0};return s.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,s=i.exec(e.backgroundImage);null!==s;){var n=s&&s[2];n&&this.addBackground(n,t),s=i.exec(e.backgroundImage)}},s.prototype.addImage=function(t){var e=new n(t);this.images.push(e)},s.prototype.addBackground=function(t,e){var i=new a(t,e);this.images.push(i)},s.prototype.check=function(){function t(t,i,s){setTimeout(function(){e.progress(t,i,s)})}var e=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(e){e.once("progress",t),e.check()}):void this.complete()},s.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+i,t,e)},s.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},n.prototype=Object.create(e.prototype),n.prototype.check=function(){var t=this.getIsImageComplete();return t?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},n.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},n.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},n.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},n.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},n.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},a.prototype=Object.create(n.prototype),a.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var t=this.getIsImageComplete();t&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},a.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},a.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},s.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((o=e).fn.imagesLoaded=function(t,e){var i=new s(this,t,e);return i.jqDeferred.promise(o(this))})},s.makeJQueryPlugin(),s}(a,t)}.apply(e,s))||(t.exports=n)}(window)},function(e,i){e.exports=t}])},t.exports=s(i("7+uW"))},ioQ5:function(t,e,i){i("HpRW")("Set")},jgQM:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMsAAADICAMAAABxseWvAAAAolBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8ELnaCAAAANXRSTlMAv0CAVdQpiuaFoJRijloj4bJtzKbamHRpX0nz8LhxZjo0m3lNQy4eEg3HqnbqCPjRfRiuUUMOfB8AAASySURBVHja7d3XchpBEIXhA1pYckaYaMAIkYVCv/+rORbamW1gAVXRPZ7v0r7Rr0IbJgG5lmE9lxsWx9BvXqM/BiVoV6WDB+i2zNGnV6i2JnImJkfOxLyR5QfUSpM7MQtyKKZNMRsoFZJDMXWK60CnasahmDkXM4JO87aPkWnCxTSg06TmY2QaczHfoNM452NkSjsVs6W479DpyamYgesxWgcBe30fI9OMi+lCp9mLQzEfPkaogBgVJDIPGmEhlemTaOdjFrNijXQ4HTPZ1EmREzFv4QvpEuCIkZbP1tmYyoo0SiOm+k46pWALFH68jsyc50mvFAxDUuxlZ85Dq5Y2pgh1W+AgJN3aOAhIufIh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QDaF4sIEuWxILy+efjWa0++yy+/uLFtc+3dXG9li2LcVxbWl9+KRzAnIkFZeHCWOi3bo3jP//stkD98UeMmzfHuGBB7fPrm9NhL6WUsn373IRj+3YhB8YuFpqbb45xw4YY9+2LhejYsRiPHo1x+MP4l1+O8aabas9/2sR1Xbkyxo0bYxzeoZw4EePvv8d45Ei8Xlu2xLh6de35AwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATK3/A7bThdkhVZWpAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTExLTAxVDE0OjA0OjQ1KzA4OjAwQMIKlQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMS0wMVQxNDowNDo0NSswODowMDGfsikAAABJdEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL2hvbWUvYWRtaW4vaWNvbi1mb250L3RtcC9pY29uXzN5NjEwY2kzd3JnL3RpaHVhbi5zdmeGCOUrAAAAAElFTkSuQmCC"},juIH:function(t,e,i){"use strict";var s=i("bOdI"),n=i.n(s),a={props:["data","mediaUrl"],name:"AddArticle",components:{},data:function(){var t;return{countTimer1:null,timer:null,id:"editor",editor:null,msg:"从这里开始写正文",myConfig:(t={zIndex:1,imageScaleEnabled:!0,toolbars:[["undo","redo","|","fontsize","|","blockquote","horizontal","|","removeformat","formatmatch","|","source","link","unlink","emotion"],["bold","italic","underline","forecolor","backcolor","|","indent","justifyleft","justifyright","justifycenter","justifyjustify","|","rowspacingtop","rowspacingbottom","lineheight","|","insertorderedlist","insertunorderedlist","|","imagenone","imageleft","imageright","imagecenter","insertimage"]],UEDITOR_HOME_URL:"./static/UEditor/",initialFrameWidth:650,initialFrameHeight:450},n()(t,"initialFrameWidth","100%"),n()(t,"serverUrl",this.URL.BASEURL+this.URL.addMaterial),n()(t,"enableAutoSave",!0),t)}},mounted:function(){this.init()},methods:{getCon:function(){return this.editor.selection.getRange().select(),this.editor.selection.getText()},init:function(){var t=this;this.editor=window.UE.getEditor("editor",this.myConfig),this.editor.addListener("ready",function(){if(t.data){var e=t.data.replace("<html>","");e=e.replace("</html>",""),t.editor.setContent(e)}}),this.editor.addListener("contentChange",function(){t.msg=t.editor.getContent()})},getUEContent:function(){return this.editor.getContent()}},watch:{mediaUrl:function(){this.editor.execCommand("inserthtml",this.mediaUrl),this.$emit("edit",this.msg)},data:function(){var t=this;if(this.data!=this.msg){var e=this.data.replace("<html>","");e=e.replace("</html>",""),this.msg=e,this.editor&&this.editor.ready(function(){t.editor.setContent(t.msg),t.editor.setContent(t.data)})}},msg:function(){this.msg!=this.data&&this.$emit("edit",this.msg)}},destroyed:function(){this.editor.destroy()}},o={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ueditor"},[e("script",{attrs:{id:this.id,type:"text/plain"}})])},staticRenderFns:[]},r=i("VU/8")(a,o,!1,null,null,null);e.a=r.exports},lHA8:function(t,e,i){t.exports={default:i("pPW7"),__esModule:!0}},nYA0:function(t,e){},oCkk:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("lHA8"),n=i.n(s),a=i("c/Tr"),o=i.n(a),r=i("fZjL"),c=i.n(r),l=i("//Fk"),d=i.n(l),u=i("woOf"),h=i.n(u),g=i("mvHQ"),m=i.n(g),p=i("upwx"),v=i("ySD8"),A=i("ATNX"),f=i("/kzH"),_=i("OJeC"),C={props:["checkToast","activeTag","type"],data:function(){return{checkArt:[],materialListItemHeight:[],artUrl:"",keyword:"",txUrl:"",showToast:!1,showCheck:!1,loadingShow:!1,loadingMater:!1,checkList:[],listArr:[],showList:[],img2:"",page:1,page_size:20,total:""}},created:function(){this.showCheck=!this.showToast&&this.checkToast},components:{uploadFile:i("JQvz").a,Waterfall:f.a,WaterfallSlot:_.a},methods:{toAdd:function(t,e,i){var s=this,n=t;n.isCheck=!t.isCheck,this.$set(this.listArr[e].article,i,n),n.isCheck?(t.media_id=this.listArr[e].media_id,t.position=i,this.checkArt.push({media_id:this.listArr[e].media_id,position:i})):this.checkArt.forEach(function(t,n){t.key==e+"/"+i&&s.checkArt.splice(n,1)})},changeMedia:function(t){this.listArr.map(function(t,e){t.isCheck=!1}),this.$set(this.checkList,0,t.id)},change:function(t,e){var i=this,s=!0;if(t.article.forEach(function(t){t.isCheck&&(s=!1)}),!1!==s){var n=t;if(n.isCheck=!t.isCheck,this.$set(this.listArr,e,n),n.isCheck)t.article.forEach(function(e,s){i.checkArt.push({media_id:t.media_id,position:s})});else{this.checkArt;for(var a=0;a<this.checkArt.length;a++)t.article.forEach(function(t,s){i.checkArt[a].key==e+"/"+s&&(i.checkArt.splice(a,1),a=a-1<0?0:a-1)})}}},handleCurrentChange:function(t){"wxArt"==this.activeTag?this.initWxNews(t):this.getMater(t)},uploadSave:function(t){this.showToast=!1,this.checkList=[],this.$emit("addImg",t)},getMater:function(t){var e=this;this.page=t,this.listArr=[],this.loadingShow=!0,this.$axios.get(this.URL.BASEURL+this.URL.materialList,{params:{keyword:this.keyword,appId:this.appId,type:this.activeTag,page:this.page,page_size:this.page_size}}).then(function(t){e.loadingShow=!1,(t=t.data)&&0==t.errno?(e.listArr=t.rst.data,e.total=t.rst.pageInfo.count,e.page_size=Number(t.rst.pageInfo.page_size),e.showUpload=!0):e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loadingShow=!1,e.loadingCanvas=!1})},addIng:function(){var t=this;if("video"!=this.activeTag&&"art"!=this.activeTag){var e={};this.listArr.forEach(function(i,s){"wxArt"!=t.activeTag&&-1!=t.checkList.indexOf(i.id)&&(t.showList.push(i),(e=i).id=t.showList[t.showList.length-1].id,e.url=t.showList[t.showList.length-1].oss_url,e.type=t.activeTag,"postUrl"==t.type?t.$emit("uploading",e):t.$emit("addImg",e))}),"wxArt"==this.activeTag&&this.getContent()}else"video"==this.activeTag?(this.showToast=!1,this.$emit("addImg",this.txUrl)):"art"==this.activeTag&&(this.$emit("getDetail",this.artUrl),this.$emit("close"),this.showToast=!1);this.checkList=[]},getContent:function(t){var e=this,i=[];this.checkArt.forEach(function(t){i.push({media_id:t.media_id,position:t.position})}),this.loadingShow=!0,this.$axios.post(this.URL.BASEURL+this.URL.info,{news_info:m()(i),app_id:JSON.parse(this.$cookieStore.getCookie("wxName")).app_id}).then(function(t){if(e.loadingShow=!1,(t=t.data)&&0==t.errno){var i=t.rst.data;e.$emit("addArt",i),e.checkArt=[]}else e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loadingShow=!1})},addMaterial:function(t){var e=this;this.loadShow=!0,this.$axios.post(this.URL.BASEURL+this.URL.addMaterial,{appId:this.appId,file:t,type:this.activeTag,file_type:this.fileType,file_name:this.keyword,context:this.context}).then(function(t){e.loadShow=!1,(t=t.data)&&0==t.errno?(e.$message({message:"上传成功",type:"success"}),t.rst.oss_url=t.rst.url,t.rst.title=t.rst.file_name,e.$emit("uploadSave",t.rst)):e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loadShow=!1})},initWxNews:function(t,e){var i=this;this.page=t,this.listArr=[],this.loadingShow=!0,this.$axios.get(this.URL.BASEURL+this.URL.newsList,{params:{type:"news",page:t,page_size:this.page_size,label:1,is_refresh:e?1:0}}).then(function(t){i.loadingShow=!1,(t=t.data)&&0==t.errno?(i.listArr=[],i.materialListItemHeight=[],t.rst.data.forEach(function(t){0!=t.article.length&&(i.listArr.push(t),t.article.length>1?i.materialListItemHeight.push(180+74*(t.article.length-1)):i.materialListItemHeight.push(180))}),i.total=t.rst.pageInfo.total,i.page_size=Number(t.rst.pageInfo.size)):i.$message({message:t.err,type:"warning"})}).catch(function(t){i.loadingShow=!1})}},watch:{showToast:function(){this.showToast&&(this.artUrl="")},activeTag:function(){"art"==this.activeTag&&(this.$emit("close"),this.showToast=!0)},checkToast:function(){"art"!=this.activeTag?(this.showCheck=this.checkToast,this.checkToast&&"wxArt"!=this.activeTag?this.getMater(1):this.checkToast&&"wxArt"==this.activeTag&&0==this.listArr.length&&(this.checkArt=[],this.initWxNews(1))):(this.$emit("close"),this.showToast=!0)}}},y={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"showMater"},[s("my-dialog",{attrs:{visible:t.showCheck,width:"wxArt"!=t.activeTag?"45%":"1046px"},on:{"update:visible":function(e){t.showCheck=e},close:function(e){return t.$emit("close")}}},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loadingShow,expression:"loadingShow"}]},["video"!=t.activeTag&&"wxArt"!=t.activeTag&&"art"!=t.activeTag?s("div",{staticClass:"toast"},[s("h3",[t._v("选择素材-"+t._s("image"==t.activeTag?"图片":"voice"==t.activeTag?"音频":"视频"))]),t._v(" "),s("div",{staticClass:"toastMain"},[s("div",{staticClass:"inputItem"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.keyword,expression:"keyword"}],staticStyle:{width:"200px"},attrs:{type:"text",id:"titleName",autocomplete:"off",placeholder:"请输入"},domProps:{value:t.keyword},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getMater(1)},input:function(e){e.target.composing||(t.keyword=e.target.value)}}}),t._v(" "),s("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:function(e){return t.getMater(1)}}},[t._v("搜索")]),t._v(" "),s("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:"mini"},on:{click:function(e){t.$emit("close"),t.showToast=!0}}},[t._v("新建素材")])],1),t._v(" "),s("div",{staticClass:"wxList audio"},t._l(t.listArr,function(e,n){return s("div",{class:["wxItem",t.checkList[0]==e.id&&"active"],on:{click:function(i){return t.changeMedia(e)}}},[s("div",{staticStyle:{height:"137px",position:"relative",overflow:"hidden"}},["voice"!=t.activeTag?s("img",{staticClass:"icon icon2",attrs:{src:e.oss_url}}):t._e(),t._v(" "),"voice"==t.activeTag?s("img",{staticClass:"icon icon2",attrs:{src:i("u6Hf"),alt:""}}):t._e()]),t._v(" "),s("div",{staticClass:"bottomTitle"},[s("span",{staticClass:"time"},[t._v(t._s(e.title))])])])}),0),t._v(" "),t.listArr.length>0?s("div",{staticClass:"bottom"},[s("div"),t._v(" "),s("el-pagination",{attrs:{background:"","current-page":t.page,"page-size":t.page_size,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}}),t._v(" "),s("div")],1):t._e(),t._v(" "),0==t.listArr.length?s("div",{staticClass:"nullBox"},[s("img",{attrs:{src:i("3qAc"),alt:""}}),t._v(" "),s("div",{staticClass:"null"},[t._v("没有搜索到结果")])]):t._e()]),t._v(" "),s("div",{staticClass:"toastBtn"},[s("el-button",{attrs:{size:"mini"},on:{click:function(e){return t.$emit("close")}}},[t._v("取消")]),t._v(" "),s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.addIng}},[t._v("确定")])],1)]):t._e(),t._v(" "),"video"==t.activeTag?s("div",{staticClass:"toast"},[s("h3",[t._v("导入视频")]),t._v(" "),s("div",{staticClass:"toastMain"},[s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName"}},[t._v("视频网址:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.txUrl,expression:"txUrl"}],attrs:{autocomplete:"off",type:"text",id:"titleName",placeholder:"请输入腾讯视频地址"},domProps:{value:t.txUrl},on:{input:function(e){e.target.composing||(t.txUrl=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"inputItem"},[s("iframe",{attrs:{src:t.txUrl,frameborder:"0"}})])]),t._v(" "),s("div",{staticClass:"toastBtn"},[s("el-button",{attrs:{size:"mini"},on:{click:function(e){return t.$emit("close")}}},[t._v("取消")]),t._v(" "),s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.addIng}},[t._v("确定")])],1)]):t._e(),t._v(" "),"wxArt"==t.activeTag?s("div",{staticClass:"toast"},[s("h3",[t._v("选择素材-微信图文消息")]),t._v(" "),s("el-button",{staticClass:"reload",attrs:{size:"mini",type:"primary"},on:{click:function(e){return t.initWxNews(1,1)}}},[t._v("刷新")]),t._v(" "),s("div",{staticClass:"toastMain"},[s("waterfall",{staticClass:"wxList wxContent",attrs:{watch:t.listArr,"line-gap":244}},t._l(t.listArr,function(e,n){return s("waterfall-slot",{key:"checkWx"+n,class:["wxItem",e.article.length>1?"moreItem":""],staticStyle:{position:"absolute"},attrs:{order:n,width:244,height:t.materialListItemHeight[n]}},[s("div",{class:["mainInfo",e.isCheck?"active":""],on:{click:function(i){return t.change(e,n)}}},[s("div",[s("div",{staticClass:"topBox"},[s("span",{staticClass:"time"},[t._v("更新于"+t._s(e.updated_at))])]),t._v(" "),s("div",{class:["infoImg","infoBox",e.article[0].isCheck?"active":""]},[s("div",{staticClass:"btmTitle"},[t._v("\n "+t._s(e.article[0].title)+"\n ")]),t._v(" "),s("div",{staticStyle:{height:"120px",overflow:"hidden",position:"relative"}},[e.article[0].thumb_url?s("el-image",{staticClass:"icon",attrs:{src:e.article[0].thumb_url,alt:"",fit:"cover"}}):s("img",{staticClass:"icon",attrs:{src:i("NMrH"),alt:""}})],1),t._v(" "),s("div",{class:["add",e.isCheck?"none":""],on:{click:function(i){return i.stopPropagation(),t.toAdd(e.article[0],n,0)}}},[t._v(t._s(e.article[0].isCheck?"取消":"添加"))])]),t._v(" "),t._l(e.article,function(a,o){return e.article.length>1&&o>0?s("div",{class:["other",a.isCheck?"active":"",e.isCheck?"noAdd":""]},[s("div",{staticClass:"infoImg"},[s("div",{staticClass:"topTitle",staticStyle:{width:"calc(100% - 60px)"}},[t._v("\n "+t._s(a.title)+"\n ")]),t._v(" "),s("div",{staticStyle:{"text-align":"right"}},[a.thumb_url?s("el-image",{staticClass:"icon1",attrs:{src:a.thumb_url,alt:""}}):s("img",{staticClass:"icon1",attrs:{src:i("bZys"),alt:""}})],1)]),t._v(" "),s("div",{class:["add",e.isCheck?"none":""],on:{click:function(e){return e.stopPropagation(),t.toAdd(a,n,o)}}},[t._v(t._s(a.isCheck?"取消":"添加"))])]):t._e()})],2)])])}),1),t._v(" "),t.listArr.length>0?s("div",{staticClass:"bottom"},[s("div"),t._v(" "),s("el-pagination",{attrs:{background:"","current-page":t.page,"page-size":t.page_size,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}}),t._v(" "),s("div")],1):t._e(),t._v(" "),t.showCheck||0!=t.listArr.length?t._e():s("div",{staticClass:"nullBox"},[s("img",{attrs:{src:i("3qAc"),alt:""}}),t._v(" "),s("div",{staticClass:"null"},[t._v("没有搜索到结果")])])],1),t._v(" "),s("div",{staticClass:"toastBtn"},[s("el-button",{attrs:{size:"mini"},on:{click:function(e){return t.$emit("close")}}},[t._v("取消")]),t._v(" "),s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.addIng}},[t._v("确定")])],1)],1):t._e()])]),t._v(" "),s("my-dialog",{attrs:{visible:t.showToast,width:"30%",minWidth:"500px"},on:{"update:visible":function(e){t.showToast=e},close:function(e){t.$emit("close"),t.showToast=!1}}},["video"!=t.activeTag&&"art"!=t.activeTag?s("uploadFile",{attrs:{activeTag:t.activeTag},on:{uploadSave:t.uploadSave,cancel:function(e){t.showToast=!1}}}):t._e(),t._v(" "),"art"==t.activeTag?s("div",{staticClass:"toast"},[s("h3",[t._v("导入-"+t._s("art"==t.activeTag?"文章":""))]),t._v(" "),s("div",{staticClass:"toastMain"},[s("div",{staticClass:"inputItem",staticStyle:{"text-align":"center"}},[s("label",{attrs:{for:"article"}},[t._v("文章地址")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.artUrl,expression:"artUrl"}],staticStyle:{"margin-left":"10px"},attrs:{type:"text",id:"article",placeholder:"请输入文章url地址"},domProps:{value:t.artUrl},on:{input:function(e){e.target.composing||(t.artUrl=e.target.value)}}})])]),t._v(" "),s("div",{staticClass:"toastBtn"},[s("el-button",{attrs:{size:"mini"},on:{click:function(e){t.showToast=!1}}},[t._v("取消")]),t._v(" "),s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.addIng}},[t._v("确定")])],1)]):t._e()],1)],1)},staticRenderFns:[]};var x=i("VU/8")(C,y,!1,function(t){i("1nFR")},"data-v-d4d6ed08",null).exports,k=i("juIH"),w=i("iPd/"),b={props:["content"],directives:{imagesLoaded:i.n(w).a},data:function(){return{imgSrc:"",destWidth:"",destHeight:1200,imgHeight:0,lastHeight:0}},created:function(){/<img.*?(?:>|\/>)/gi.test(this.content)||this.imageAlways()},mounted:function(){},methods:{imageAlways:function(t){var e=this;this.$nextTick(function(){setTimeout(function(){e.getPdf({body:e.$refs.h5_body,cb:function(t){e.splitEvent(t)}})},3e3)})},splitEvent:function(t){var e=this;this.$nextTick(function(){var i=new Image;i.onload=function(){try{var t=i.width,s=i.height;e.imgHeight=s,console.log("imgWidth:",t,"imgHeight:",s),e.destWidth=t;var n=document.createElement("canvas");n.width=e.destWidth,n.height=e.destHeight;var a=n.getContext("2d"),o=e.getList(a,n,i),r=[];o.forEach(function(t){r.push(new d.a(function(i,s){e.addMaterial(t.url,function(e){i({height:t.height,body:e})})}))}),d.a.all(r).then(function(t){e.$emit("splitImgResult",t)})}catch(t){e.$emit("splitImgResult",[])}},i.onerror=function(t){e.$emit("splitImgResult",[]),console.log("图片错误:",t)},i.src=t})},getList:function(t,e,i){for(var s=i,n=[],a=0,o=0;a<this.imgHeight;){a+this.destHeight>this.imgHeight?(console.log("最后一页"),e.height=this.imgHeight-a,this.lastHeight=(this.imgHeight-a)/2,t.drawImage(s,0,this.destHeight*o,this.destWidth,e.height,0,0,this.destWidth,e.height)):t.drawImage(s,0,this.destHeight*o,this.destWidth,this.destHeight,0,0,this.destWidth,this.destHeight);var r=t.getImageData(0,0,this.destWidth,this.destHeight);t.putImageData(r,0,0);var c=e.toDataURL("image/png",1);n.push({height:0!=this.lastHeight?this.lastHeight:this.destHeight/2,url:c}),a+=this.destHeight,o+=1}return n},addMaterial:function(t,e){var i=this,s={file:[t]};s.appId=JSON.parse(this.$cookieStore.getCookie("wxName")).app_id,this.$axios.post(this.URL.BASEURL+this.URL.uploadImgMore,s).then(function(t){(t=t.data)&&0==t.errno?t.rst&&Array.isArray(t.rst.img_list)?e&&e(t.rst.img_list[0]):e&&e(!1):(e&&e(!1),i.$message({message:t.err,type:"warning"}))}).catch(function(t){e&&e(!1)})}}},L={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{directives:[{name:"images-loaded",rawName:"v-images-loaded:on.always",value:this.imageAlways,expression:"imageAlways",arg:"on",modifiers:{always:!0}}]},[e("div",{ref:"h5_body",staticClass:"h5_body",domProps:{innerHTML:this._s(this.content)}})])},staticRenderFns:[]};var I=i("VU/8")(b,L,!1,function(t){i("wdlU")},"data-v-79643e3c",null).exports,E=i("zL8q"),S={data:function(){return{placeList:[],isSave:!0,mediaUrl:"",checkImg:!1,checkFalg:!1,url:"",sync:"false",media_id:"",data:"",urlId:"",config:{initialFrameWidth:null,initialFrameHeight:300},ids:"container1",showType:"postUrl",sourceUrl:!1,id:"",itemObj:{},wxList:[],app_id:"",account:"",preview:!1,keyword:"",loadingEdit:!1,loadingSave:!1,index:0,artList:[{title:"",thumb_url:"",author:"",digest:"",content:"",need_open_comment:0,only_fans_can_comment:0,content_source_url:"",isWords:1}],listArr:[],img2:{},imgLen2:0,activeTag:1,showToast:!1,checkToast:!1,showSave:!1,articleHtml:"",articleTitle:"",allCount:"",countTimer:"",sizeCount:"",timer:null,isCommon:!1,imgIndex:0,replaceFlag:!1,bg_img_return_arr:[],convat_bg_img_arr:[],splitImgShow:!1,section_bg_list:[],loadingInstance:""}},components:{splitImg:I,priview:p.a,UE:k.a,showMater:x,checkImage:A.default,cutInto:v.a},created:function(){this.id=this.$route.query.id,this.isCommon=this.$route.query.common,this.media_id=this.$route.query.media_id,this.sync=this.$route.query.sync,this.id?(this.init(),this.isSave=!1):this.media_id&&this.initWx(),this.isCommon&&this.placeholder()},methods:{placeholder:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.cps_placeholder).then(function(e){(e=e.data)&&0==e.errno?t.placeList=e.rst.data:t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loadingEdit=!1})},getStrCount:function(t,e){for(var i=0;-1!=t.indexOf(e);)t=t.replace(e,""),i++;return i},closeBox:function(t){if(t){this.url=t.rst.url;var e=this.artList[this.index];e.thumb_url=t.rst.url,e.thumb_material_id=t.rst.id,this.isSave=!1,this.$set(this.artList,this.index,e)}this.checkFalg=!1},preViewIng:function(t){var e=this,i=[],s=!0;if(this.preview=!1,console.log(this.artList[this.index]),console.log("artList",this.artList),JSON.parse(m()(this.artList)).forEach(function(t,n){t.operate||(t.title?t.content?t.thumb_url||(e.$message({message:"封面不能为空",type:"error"}),s=!1):(e.$message({message:"内容不能为空",type:"error"}),s=!1):(e.$message({message:"标题不能为空",type:"error"}),s=!1),t.appId=JSON.parse(e.$cookieStore.getCookie("wxName")).app_id,t.show_cover_pic=1,t.thumb_media_id=t.thumb_media_id?t.thumb_media_id:"",delete t.isWords,"true"==e.sync?delete t.id:t.article_id=t.id,t.sort=n+1,i.push(t))}),!1===s)return!1;var n={articles:m()(i),account:t};this.media_id&&(n.media_id=this.media_id),this.loadingEdit=!0,this.preview=!1,this.$axios.post(this.URL.BASEURL+this.URL.none_preview,n).then(function(t){e.loadingEdit=!1,(t=t.data)&&0==t.errno?e.$message({message:"成功发送预览",type:"success"}):e.$message({message:t.err,type:"warning"})}).catch(function(t){console.log(t),e.loadingEdit=!1})},reset:function(t){var e=this;this.replaceFlag=!1,this.index=t,document.querySelector(".box").scrollTop=0,document.getElementsByClassName("centerBox")[0].scrollTo(0,0),clearTimeout(this.timer),this.timer=setTimeout(function(){e.isSave=!0},1e3)},deleteFun:function(t){var e=this,i=this.artList[t];i.hasOwnProperty("isAdd")&&i.isAdd?this.artList.splice(t,1):(i.operate="del",this.artList.forEach(function(t,i){t.operate||(e.index=i)}),this.$set(this.artList,t,i)),0==this.artList.filter(function(t){if(!t.hasOwnProperty("operate")||"del"!=t.operate)return console.log(t),t}).length&&(this.artList.push({title:"",thumb_url:"",author:"",digest:"",content:"",need_open_comment:0,only_fans_can_comment:0,content_source_url:"",isWords:1}),this.index=this.artList.length-1)},replaceFun:function(t,e){if(this.$message.closeAll(),this.replaceFlag=!1,2==e){var i=this.artList[t];this.artList.splice(t,1),this.artList.unshift(i),this.index=0}else if(3==e)this.replaceFlag=!0,this.showType="",this.activeTag="art",this.checkToast=!0,this.index=t;else{if(1==e)var s=t,n=t-e;else if(-1==e)s=t-e,n=t;if(n<0||s==this.artList.length)return this.$message({message:-1==e?"已经是最后一位了":"已经是第一位了",type:"error"}),!1;this.artList[s]=this.artList.splice(n,1,this.artList[s])[0],this.index=0}return this.artList},change:function(t){var e=this.artList[this.index];e.isWords=t,1==e.isWords?e.need_open_comment=0:2==e.isWords?(e.need_open_comment=1,e.only_fans_can_comment=0):(e.need_open_comment=1,e.only_fans_can_comment=1),this.$set(this.artList,this.index,e)},getEdiotrContent:function(){var t=this.$refs.ue.getUEContent();this.articleData.articleContent=t},addImg:function(t){if("image"==this.activeTag){var e=this.artList[this.index];this.checkImg=!1,this.imgIndex=this.imgIndex+1,t.url=t.url+"?v="+this.imgIndex,e.content+="<img src="+t.url+">",this.mediaUrl="<img style='max-width: 100%;' _src="+t.url+" src="+t.url+">"}else if("video"==this.activeTag){(e=this.artList[this.index]).content+="<iframe src="+t+"></iframe>",this.mediaUrl="<iframe class='video_iframe' style='max-width: 100%;' data-src="+t+" _src="+t+" data-src="+t+" src="+t+"></iframe>"}else{(e=this.artList[this.index]).content+="<audio src="+t.url+' controls="controls"></audio>',this.mediaUrl='<audio src="'+t.url+'" controls="controls"></audio><span style="opacity:0">1</span>'}this.$set(this.artList,this.index,e),this.checkToast=!1},close:function(t){"image"==t&&(this.checkImg=!1),this.checkToast=!1,this.showToast=!1},init:function(){var t=this;this.loadingEdit=!0;var e={news_id:this.id};this.isCommon&&(e.team_id=JSON.parse(this.$cookieStore.getCookie("teamObj")).id),this.$axios.get(this.URL.BASEURL+this.URL.newsDetail,{params:e}).then(function(e){(e=e.data)&&0==e.errno?(t.itemObj=e.rst.data,t.loadingEdit=!1,t.itemObj.article?(t.artList=t.itemObj.article,t.media_id=t.itemObj.media_id,t.artList.forEach(function(e,i){e.content_source_url&&(t.sourceUrl=!0),e.content=e.content.replace(/data-src/g,"src");var s=/(<iframe.*?src=[\'|\"])(.*?(?:[\'|\"]))(.*?[\/]?>)/,n=e.content.match(s),a="";(n=e.content.trim("").split("<iframe")).forEach(function(e,i){if(-1!=e.indexOf("src")&&" "==e[0]){var a=(e="<iframe".concat(e)).match(s)&&e.match(s)[2];t.$set(n,i,e.replace("src=",'src="'+a+" data-src="))}});a=n.join("");if(t.isCommon){a=a.replace(/\$\(#smallImgUrl#\)/g,'<img class="cui_small_img" style="width:200px;height:200px" src="https://kx-gw.oss-cn-beijing.aliyuncs.com/app-gw/newCode.png"/>').replace(/\$\(#middleImgUrl#\)/g,'<img class="cui_middle_img" style="width:400px;height:400px" src="https://kx-gw.oss-cn-beijing.aliyuncs.com/app-gw/newCode.png"/>').replace(/\$\(#bigImgUrl#\)/g,'<img class="cui_big_img" style="width:600px;height:600px" src="https://kx-gw.oss-cn-beijing.aliyuncs.com/app-gw/newCode.png"/>')}t.$set(e,"content",a),0==e.need_open_comment?e.isWords=1:1==e.only_fans_can_comment?e.isWords=3:e.isWords=2,t.$set(t.artList,i,e),clearTimeout(t.timer),t.timer=setTimeout(function(){t.isSave=!0},1e3)})):t.isSave=!0):(t.loadingEdit=!1,t.$message({message:e.err,type:"warning"}))}).catch(function(e){console.log(e),t.loadingEdit=!1})},getWx:function(t){var e=this;this.loadingSave=!0,this.$axios.post(this.URL.BASEURL+this.URL.accountList,{page:1,team_id:JSON.parse(this.$cookieStore.getCookie("teamObj")).id,admin_id:1,page_size:99999,keyword:this.keyword,app_id:""}).then(function(t){t=t.data;if(e.loadingSave=!1,t&&0==t.errno){var i=t.rst.data;e.wxList=i}else e.$message({message:t.err,type:"warning"})}).catch(function(t){console.log(t),e.loadingSave=!1})},addFun:function(){this.articleHtml="";var t=[];if(this.artList.forEach(function(e){e.hasOwnProperty("operate")&&"del"==e.operate||t.push(e)}),!this.artList[this.index].title)return this.$message({message:"文章标题不能为空",type:"error"}),!1;if(t.length>=8)return this.$message({message:"最多添加8篇文章",type:"error"}),!1;this.artList.unshift({title:"",thumb_url:"",author:"",digest:"",content:"",need_open_comment:0,only_fans_can_comment:0,content_source_url:"",isWords:1,id:""}),this.index=0},uploading:function(t){var e=this.artList[this.index];e.thumb_url=t.url,e.thumb_material_id=t.id,e.thumb_media_id=t.media_id,this.urlId=t.id,this.isSave=!1,this.$set(this.artList,this.index,e),this.checkToast=!1,this.checkImg=!1},addNews:function(t){var e=this,i=[],s=!0;if(JSON.parse(m()(this.artList)).forEach(function(n,a){e.media_id&&n.thumb_media_id&&delete n.thumb_media_id,n.operate||(n.sort=a,n.title?n.content?n.thumb_url||(e.$message({message:"封面不能为空",type:"error"}),s=!1):(e.$message({message:"内容不能为空",type:"error"}),s=!1):(e.$message({message:"标题不能为空",type:"error"}),s=!1),n.appId=t||JSON.parse(e.$cookieStore.getCookie("wxName")).app_id,n.show_cover_pic=1,n.thumb_media_id=n.thumb_media_id?n.thumb_media_id:"",n.thumb_material_id&&(n.thumb_media_id=""),n.news_id=n.news_id?n.news_id:"",n.id=n.id?n.id:"","true"==e.sync||t&&t!=JSON.parse(e.$cookieStore.getCookie("wxName")).app_id?(delete n.id,delete n.compose_id,delete n.is_ad):n.article_id=n.id,delete n.isWords,delete n.news_id,n.sort=a+1,i.push(n)),"del"==n.operate&&(n.id||n.news_id)&&"false"==e.sync&&i.push(n)}),!1===s)return!1;this.loadingEdit=!0;var n={articles:i};this.id&&"true"!=this.sync&&!t&&(n.news_id=Number(this.id),n.team_id=JSON.parse(this.$cookieStore.getCookie("teamObj")).id),n.articles.forEach(function(t,i){var s=t.content.replace(new RegExp('<img class="cui_small_img" style="width:200px;height:200px" src="https://kx-gw.oss-cn-beijing.aliyuncs.com/app-gw/newCode.png"/>',"g"),"$(#smallImgUrl#)").replace(new RegExp('<img class="cui_middle_img" style="width:400px;height:400px" src="https://kx-gw.oss-cn-beijing.aliyuncs.com/app-gw/newCode.png"/>',"g"),"$(#middleImgUrl#)").replace(new RegExp('<img class="cui_big_img" style="width:600px;height:600px" src="https://kx-gw.oss-cn-beijing.aliyuncs.com/app-gw/newCode.png"/>',"g"),"$(#bigImgUrl#)");try{var a=t.content.match(/(<img.*?class=[\'|\"]cui_)(.*?(?:[\'|\"]))(.*?[\/]?>)/);a&&4==a.length&&(s=-1!=a[2].indexOf("small")?s.replace(a[0],"$(#smallImgUrl#)"):-1!=a[2].indexOf("middle")?s.replace(a[0],"$(#middleImgUrl#)"):s.replace(a[0],"$(#bigImgUrl#)"))}catch(t){console.log(t)}e.$set(n.articles[i],"content",s)}),this.isCommon?(n.is_common=1,n.team_id=JSON.parse(this.$cookieStore.getCookie("teamObj")).id):this.is_common=0,n.app_id=t||JSON.parse(this.$cookieStore.getCookie("wxName")).app_id,this.$axios.post(this.URL.BASEURL+this.URL.addNews,n).then(function(t){e.loadingEdit=!1,(t=t.data)&&0==t.errno?(e.isSave=!0,e.$router.push("/editor?id="+t.rst.news_id+"&sync=false&common="+e.isCommon),e.$message({message:"保存成功",type:"success"})):e.$message({message:t.err,type:"warning"})}).catch(function(t){console.log(t),e.loadingEdit=!1})},saveAs:function(){this.showSave=!1,this.addNews(this.app_id)},send:function(){var t=this,e=[],i=!0;if(JSON.parse(m()(this.artList)).forEach(function(s,n){t.media_id&&s.thumb_media_id&&delete s.thumb_media_id,s.operate||(s.sort=n,s.title?s.content?s.thumb_url||(t.$message({message:"封面不能为空",type:"error"}),i=!1):(t.$message({message:"内容不能为空",type:"error"}),i=!1):(t.$message({message:"标题不能为空",type:"error"}),i=!1),s.appId=JSON.parse(t.$cookieStore.getCookie("wxName")).app_id,s.show_cover_pic=1,s.thumb_media_id=s.thumb_media_id?s.thumb_media_id:"",s.thumb_material_id&&(s.thumb_media_id=""),s.news_id=s.news_id?s.news_id:"",s.id=s.id?s.id:"","true"==t.sync?(delete s.id,delete s.compose_id,delete s.is_ad):s.article_id=s.id,delete s.isWords,delete s.news_id,s.sort=n+1,e.push(s)),"del"==s.operate&&(s.id||s.news_id)&&"false"==t.sync&&e.push(s)}),!1===i)return!1;this.loadingEdit=!0;var s={articles:e};"true"!=this.sync&&(s.news_id=Number(this.id)),this.$axios.post(this.URL.BASEURL+this.URL.saveSending,s).then(function(e){t.loadingEdit=!1,(e=e.data)&&0==e.errno?(t.$message({message:"保存成功",type:"success"}),t.isSave=!0,t.$router.push("/addTeam?news_id="+e.rst.data.news_id)):t.$message({message:e.err,type:"warning"})}).catch(function(e){console.log(e),t.loadingEdit=!1})},copyBs:function(t){var e=this,i="";"ks"==t&&(i="--不使用背景文章之开始--"),"js"==t&&(i="--不使用背景文章之结束--"),this.$copy(i,function(){e.$message({message:"复制成功",type:"success"})})},splitImgResult:function(t,e){console.log(t,e),this.section_bg_list[e].show=!1,this.section_bg_list[e].bgImg=t;try{var i=!1;if(this.section_bg_list.forEach(function(t,e){"bg"==t.type&&(t.bgImg||(console.log("转化未完成",e),i=!0))}),!i){console.log("转化完成");var s=[];if(this.section_bg_list.map(function(t){var e="";return e="bg"==t.type?t.bgImg.map(function(t){return'<p><span style="display:block;height:'+t.height+"px;background: url("+t.body+') no-repeat center;background-size:350px 100%; "></span></p>'}).join(" "):t.body,h()(t,{z_body:e})}),s='<div style="max-width:375px;text-align: center;">'+(s=this.section_bg_list.map(function(t){return t.z_body}).join(" "))+'<section style="position: fixed;top:0;right:10000px;opacity:0;"><span>22'+this.artList[this.index].title+"</span></section></div>"){var n=JSON.parse(m()(this.artList[this.index]));n.content=s,this.$set(this.artList,this.index,n)}this.loadingInstance.close()}}catch(t){this.$message({message:"生成背景图模式失败!",type:"warning"})}},bgImgModeConfirm:function(){var t=this;this.loadingInstance=E.Loading.service({lock:!0,spinner:"el-icon-loading",background:"rgba(255, 255, 255, 0.3)",text:"努力生成中,请稍后..."});var e=[];JSON.parse(m()(this.artList[this.index].content)).split("--不使用背景文章之开始--").forEach(function(t,i){0==i?e.push({type:"bg",body:t}):t.split("--不使用背景文章之结束--").forEach(function(t,i){0==i?e.push({type:"no_bg",body:t}):e.push({type:"bg",body:t})})});var i=[],s=0;!function n(){new d.a(function(n){var a=e[s];t.artList[t.index].content=a.body,t.$nextTick(function(){var e=t.$refs.ue.getUEContent().replace(/https:\/\/mmbiz.qpic.cn/g,"http://liewu.kuxuan-inc.com/wx_image");e=e.replace(/http:\/\/mmbiz.qpic.cn/g,"http://liewu.kuxuan-inc.com/wx_image"),i.push({type:a.type,body:e}),n()})}).then(function(){s<e.length-1?(s++,n()):t.$nextTick(function(){t.section_bg_list=i.map(function(t){return h()(t,{show:!0})}),t.splitImgShow=!0,console.log(t.section_bg_list)})})}()},isCheck:function(t,e){var i=this;"image"==t||"postUrl"==t?(this.showType=e,this.checkImg=!0,this.activeTag=t):"code"==t?(this.mediaUrl="",setTimeout(function(){i.mediaUrl='\n <section style="text-align:center">\n <img class="cui_'+e+'" style="width:'+("small_img"==e?"200px":"middle_img"==e?"400px":"600px")+";height:"+("small_img"==e?"200px":"middle_img"==e?"400px":"600px")+'" src="https://kx-gw.oss-cn-beijing.aliyuncs.com/app-gw/newCode.png"/>\n </section>'})):(this.showType=e,this.activeTag=t,this.checkToast=!0)},upload:function(t,e,i){c()(this.img2).length>0&&this.detImg();var s=e.files,n=1==i?this.imgLen1:this.imgLen2,a=(s.length,Math.floor(s[0].size/1024));if(3==this.activeTag||4==this.activeTag){if(a>2097152)return this.$message({message:"请选择2M以内的文件",type:"warning"}),!1;3==this.activeTag&&-1==s[0].type.toString().indexOf("png")&&-1==s[0].type.toString().indexOf("jpeg")&&-1==s[0].type.toString().indexOf("jpg")&&-1==s[0].type.toString().indexOf("gif")?this.$message({message:"格式错误,请重新上传",type:"warning"}):4==this.activeTag&&-1==s[0].type.toString().indexOf("mp3")&&-1==s[0].type.toString().indexOf("amr")?this.$message({message:"格式错误,请重新上传",type:"warning"}):5==this.activeTag&&-1==s[0].type.toString().indexOf("mp4")&&this.$message({message:"格式错误,请重新上传",type:"warning"})}else if(a>10485760)return this.$message({message:"请选择10M以内的视频",type:"warning"}),!1;1==i?this.imgLen1++:this.imgLen2++,this.$set(t,s[0].name+"?"+(new Date).getTime()+n,s[0]),e.value=null},detImg:function(){this.$delete(this.img2,c()(this.img2)[0]),this.imgLen2--},getObjectURL:function(t){var e=null;return void 0!=window.createObjectURL?e=window.createObjectURL(t):void 0!=window.URL?e=window.URL.createObjectURL(t):void 0!=window.webkitURL&&(e=window.webkitURL.createObjectURL(t)),e},addList:function(){var t=this,e=new FileReader,i=c()(this.img2)[0];e.readAsDataURL(this.img2[i]),e.onload=function(){var i=e.result;t.listArr.push(i),t.listArr.length>0&&(t.listArr=o()(new n.a(t.listArr))),t.showToast=!1}},toBack:function(){this.$route.query.activeTag?this.$router.push("/material?activeTag="+this.$route.query.activeTag):this.$router.push("/material")},catchData:function(t){this.artList[this.index].content=t},yesArticle:function(){var t=this;this.$confirm("确定生成此模版文章?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.addNews()}).catch(function(e){t.$message({type:"info",message:"已取消保存"})})},getDetail:function(t){var e=this;console.log(t),this.checkToast=!1,this.loadingEdit=!0,this.$axios.post(this.URL.BASEURL+this.URL.getArticle,{url:t}).then(function(t){if(console.log(t),e.loadingEdit=!1,(t=t.data)&&0==t.errno){var i=t.rst.data;if(0==i.length)return e.$message({message:"该文章为空",type:"error"}),!1;var s=!1;for(var n in e.artList[0])e.artList[0][n]&&"need_open_comment"!=n&&"only_fans_can_comment"!=n&&"isWords"!=n&&(s=!0);i.content_source_url=i.content_url,i.thumb_url=i.cover,e.replaceFlag?(e.$set(e.artList,e.index,i),e.replaceFlag=!1):(e.index=0,s?e.artList.unshift(i):e.artList[0]=i),e.artList[e.index].content_source_url&&(e.sourceUrl=!0),e.artList.forEach(function(t,i){if(!t.need_open_comment&&(t.need_open_comment=0),!t.only_fans_can_comment&&(t.only_fans_can_comment=0),0==t.need_open_comment?t.isWords=1:1==t.only_fans_can_comment?t.isWords=3:t.isWords=2,i==e.artList.length-1&&t.content.length>0){t.content=t.content.replace(/data-src/g,"src");var s=/(<iframe.*?src=[\'|\"])(.*?(?:[\'|\"]))(.*?[\/]?>)/,n=t.content.match(s);(n=t.content.trim("").split("<iframe")).forEach(function(t,i){if(-1!=t.indexOf("src")&&" "==t[0]){var a=(t="<iframe".concat(t)).match(s)&&t.match(s)[2];e.$set(n,i,t.replace("src=",'src="'+a+" data-src="))}});var a=n.join("");e.$set(t,"content",a)}e.$set(e.artList,i,t)});var a=[];e.artList.forEach(function(t){t.hasOwnProperty("operate")&&"del"==t.operate||a.push(t)}),a.length>8&&(e.$message.error("最多添加八篇文章"),e.artList=e.artList.slice(0,8))}else e.$message({message:t.err,type:"warning"})}).catch(function(t){console.log(t),e.loadingEdit=!1})},addArt:function(t){var e=this;this.checkToast=!1;this.artList[this.artList.length-1];this.itemObj=t,this.itemObj.forEach(function(t,i){t.isAdd=!0,!t.need_open_comment&&(t.need_open_comment=0),!t.only_fans_can_comment&&(t.only_fans_can_comment=0),t.content=t.content.replace(/data-src/g,"src");var s=/(<iframe.*?src=[\'|\"])(.*?(?:[\'|\"]))(.*?[\/]?>)/,n=t.content.match(s);(n=t.content.trim("").split("<iframe")).forEach(function(t,i){if(-1!=t.indexOf("src")&&" "==t[0]){var a=(t="<iframe".concat(t)).match(s)&&t.match(s)[2];e.$set(n,i,t.replace("src=",'src="'+a+" data-src="))}});var a=n.join("");e.$set(t,"content",a),0==t.need_open_comment?t.isWords=1:1==t.only_fans_can_comment?t.isWords=3:t.isWords=2,e.$set(e.itemObj,i,t)}),this.artList=this.artList.concat(t);var i=[];this.artList.forEach(function(t,e){t.hasOwnProperty("operate")&&"del"==t.operate||i.push({content:t,key:e})}),i.length>8&&(this.$message.error("最多添加八篇文章"),this.artList=this.artList.splice(0,i[8].key)),this.artList[this.index].hasOwnProperty("content_source_url")&&this.artList[this.index].content_source_url&&(this.sourceUrl=!0),clearTimeout(this.timer),this.timer=setTimeout(function(){!t&&(e.isSave=!0)},1e3)},initWx:function(t){var e=this;this.checkToast=!1,this.loadingEdit=!0,this.$axios.post(this.URL.BASEURL+this.URL.detail,{media_id:t?t.media_id:this.media_id}).then(function(i){if(e.loadingEdit=!1,(i=i.data)&&0==i.errno){if(e.itemObj=i.rst.data,e.itemObj.news_item){var s=e.artList[e.artList.length-1],n=!1;for(var a in s)s[a]&&"need_open_comment"!=a&&"only_fans_can_comment"!=a&&"isWords"!=a&&(n=!0);e.itemObj.news_item&&e.itemObj.news_item.length>0&&e.itemObj.news_item.forEach(function(t,i){delete t.id,delete t.news_id,t.isAdd=!0,!t.need_open_comment&&(t.need_open_comment=0),!t.only_fans_can_comment&&(t.only_fans_can_comment=0),t.content=t.content.replace(/data-src/g,"src");var s=/(<iframe.*?src=[\'|\"])(.*?(?:[\'|\"]))(.*?[\/]?>)/,n=t.content.match(s);(n=t.content.trim("").split("<iframe")).forEach(function(t,i){if(-1!=t.indexOf("src")&&" "==t[0]){var a=(t="<iframe".concat(t)).match(s)&&t.match(s)[2];e.$set(n,i,t.replace("src=",'src="'+a+" data-src="))}});var a=n.join("");e.$set(t,"content",a),0==t.need_open_comment?t.isWords=1:1==t.only_fans_can_comment?t.isWords=3:t.isWords=2,e.$set(e.itemObj.news_item,i,t),0==t.need_open_comment?t.isWords=1:1==t.only_fans_can_comment?t.isWords=3:t.isWords=2,e.$set(e.itemObj.news_item,i,t)}),t&&t.media_id?e.artList=!0===n?e.artList.concat(e.itemObj.news_item):e.itemObj.news_item:e.artList=e.itemObj.news_item;var o=[];e.artList.forEach(function(t){t.hasOwnProperty("operate")&&"del"==t.operate||o.push(t)}),o.length>8&&(e.$message.error("最多添加八篇文章"),e.artList=e.artList.slice(0,8)),e.artList[e.index].content_source_url&&(e.sourceUrl=!0),clearTimeout(e.timer),e.timer=setTimeout(function(){!t&&(e.isSave=!0)},1e3)}}else e.$message({message:i.err,type:"warning"})}).catch(function(t){console.log(t),e.loadingEdit=!1})},updateArticleHtml:function(){this.articleTitle?this.articleHtml||this.$message({message:"请正确输入模版文章",type:"warning"}):this.$message({message:"请输入文章标题",type:"warning"})},edit:function(t){var e=this;this.artList[this.index].content=t,this.isSave=!1,clearTimeout(this.countTimer),this.countTimer=setTimeout(function(){var t=e.getStrCount(e.artList[e.index].content,"<img");e.allCount="正文共:"+e.fontCount+"字 "+t+"图"},100)},createArticleHtml:function(){this.articleTitle?this.articleHtml?this.loading=!0:this.$message({message:"请正确输入模版文章",type:"warning"}):this.$message({message:"请输入文章标题",type:"warning"})}},watch:{artList:function(){this.isSave=!1},sourceUrl:function(){!this.sourceUrl&&(this.artList[this.index].content_source_url="")},index:function(){var t=this;clearTimeout(this.countTimer),this.countTimer=setTimeout(function(){var e=t.getStrCount(t.artList[t.index].content,"<img");t.allCount="正文共:"+t.fontCount+"字 "+e+"图"},400)}},computed:{fontCount:function(){var t=this;clearTimeout(this.countTimer),this.countTimer=setTimeout(function(){if(document.getElementsByClassName("edui-editor-wordcount")[0]){var e=document.getElementsByClassName("edui-editor-wordcount")[0].innerHTML,i=t.getStrCount(t.artList[t.index].content,"<img");return t.allCount="正文共:"+e+"字 "+i+"图",t.sizeCount=e,document.getElementsByClassName("edui-editor-wordcount")[0].innerHTML}return 0},1500)}},beforeRouteLeave:function(t,e,i){"login"===t.name||this.isSave?(this.isSave=!0,i()):window.confirm("系统可能不会保存您所做的更改。")?(this.isSave=!0,i()):i(!1)}},B={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loadingEdit,expression:"loadingEdit"}],staticClass:"editor",attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[s("div",{staticClass:"mainCon"},[s("div",{staticClass:"editBox"},[s("div",{staticClass:"leftBox"},[s("div",{staticClass:"back",on:{click:t.toBack}},[s("div",{staticClass:"text",staticStyle:{color:"#2d8cf0"}},[t._v("返回素材库")])]),t._v(" "),t._m(0),t._v(" "),s("div",{staticClass:"rightCon"},[t._l(t.artList,function(e,n){return s("div",{directives:[{name:"show",rawName:"v-show",value:!e.hasOwnProperty("operate")||"del"!=e.operate,expression:"!item.hasOwnProperty('operate')||item.operate!='del'"}],class:[t.index==n?"activeBox":"",0!=n?"otherItem":"artcleItem"],on:{click:function(e){return t.reset(n)}}},[1==e.is_ad?s("span",{staticClass:"type"},[t._v("广告")]):t._e(),t._v(" "),s("h3",{staticClass:"h3"},[t._v(t._s(e.title&&e.title))]),t._v(" "),e.thumb_url?s("img",{staticClass:"icon",attrs:{src:e.thumb_url,alt:""}}):s("img",{staticClass:"icon",attrs:{src:i("bZys"),alt:""}}),t._v(" "),s("ul",{staticClass:"doList"},[s("li",{on:{click:function(e){return e.stopPropagation(),t.replaceFun(n,3)}}},[s("el-tooltip",{attrs:{effect:"dark",content:"文章替换",placement:"top"}},[s("img",{staticClass:"icon1",attrs:{src:i("jlsR"),alt:""}})])],1),t._v(" "),s("li",{on:{click:function(e){return e.stopPropagation(),t.replaceFun(n,2)}}},[s("el-tooltip",{attrs:{effect:"dark",content:"一键置顶",placement:"top"}},[s("img",{staticClass:"icon1",attrs:{src:i("47s0"),alt:""}})])],1),t._v(" "),s("li",{on:{click:function(e){return e.stopPropagation(),t.replaceFun(n,1)}}},[s("el-tooltip",{attrs:{effect:"dark",content:"向上挪一位",placement:"top"}},[s("img",{staticClass:"icon1",attrs:{src:i("rOIf"),alt:""}})])],1),t._v(" "),s("li",{on:{click:function(e){return e.stopPropagation(),t.replaceFun(n,-1)}}},[s("el-tooltip",{attrs:{effect:"dark",content:"向下挪一位",placement:"top"}},[s("img",{staticClass:"icon1",attrs:{src:i("XCu6"),alt:""}})])],1),t._v(" "),s("li",{on:{click:function(e){return e.stopPropagation(),t.deleteFun(n)}}},[s("img",{staticClass:"icon1",attrs:{src:i("vmxF"),alt:""}})])])])}),t._v(" "),s("div",{staticClass:"artcleItem newAdd",on:{click:t.addFun}},[t._v("\n +\n ")])],2)]),t._v(" "),s("div",{staticClass:"centerBox"},[s("div",{staticClass:"btnList"},[s("el-tooltip",{staticClass:"rightBtn",attrs:{effect:"dark",content:"导入图片",placement:"left"}},[s("el-button",{on:{click:function(e){return t.isCheck("image")}}},[t._v("图片")])],1),t._v(" "),s("el-tooltip",{staticClass:"rightBtn",attrs:{effect:"dark",content:"导入音频",placement:"left"}},[s("el-button",{on:{click:function(e){return t.isCheck("voice")}}},[t._v("音频")])],1),t._v(" "),s("el-tooltip",{staticClass:"rightBtn",attrs:{effect:"dark",content:"导入视频",placement:"left"}},[s("el-button",{on:{click:function(e){return t.isCheck("video")}}},[t._v("视频")])],1),t._v(" "),s("el-tooltip",{staticClass:"rightBtn",attrs:{effect:"dark",content:"导入文章",placement:"left"}},[s("el-button",{on:{click:function(e){return t.isCheck("art")}}},[t._v("文章")])],1),t._v(" "),s("el-tooltip",{staticClass:"rightBtn",attrs:{effect:"dark",content:"导入微信素材",placement:"left"}},[s("el-button",{on:{click:function(e){return t.isCheck("wxArt")}}},[t._v("图文")])],1),t._v(" "),s("el-popover",{attrs:{placement:"top-start",title:"",width:"300",trigger:"hover"}},[s("div",[s("el-popconfirm",{attrs:{title:"确定将文章生成背景图模式?"},on:{confirm:t.bgImgModeConfirm}},[s("el-button",{attrs:{slot:"reference",plain:"",size:"mini"},slot:"reference"},[t._v("生成背景图文章")])],1),t._v(" "),s("p",{staticStyle:{margin:"5px"}}),t._v(" "),s("el-tooltip",{attrs:{effect:"dark",content:"复制(背景图模式 - 插入段落开始标识)",placement:"left"}},[s("el-button",{attrs:{plain:"",size:"mini"},on:{click:function(e){return t.copyBs("ks")}}},[t._v("复制插入开始标识")])],1),t._v(" "),s("el-tooltip",{attrs:{effect:"dark",content:"复制(背景图模式 - 插入段落结束标识)",placement:"left"}},[s("el-button",{attrs:{plain:"",size:"mini"},on:{click:function(e){return t.copyBs("js")}}},[t._v("复制插入结束标识")])],1)],1),t._v(" "),s("el-button",{staticClass:"rightBtn bgImgBtn",attrs:{slot:"reference"},slot:"reference"},[t._v("背景图"),s("br"),t._v("模式")])],1),t._v(" "),s("el-popover",{staticClass:"poper",attrs:{placement:"top"}},[s("div",{staticStyle:{"text-align":"center",margin:"0"}},[s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.isCheck("code","small_img")}}},[t._v("小号")]),t._v(" "),s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.isCheck("code","middle_img")}}},[t._v("中号")]),t._v(" "),s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.isCheck("code","big_img")}}},[t._v("大号")])],1),t._v(" "),t.isCommon?s("el-button",{staticClass:"rightBtn",attrs:{slot:"reference"},slot:"reference"},[t._v("二维码")]):t._e()],1)],1),t._v(" "),s("div",{staticClass:"box"},[s("div",{staticClass:"inputItem searchCon"},[s("div",{staticClass:"inputBox"},[s("span",{staticClass:"number"},[t._v(t._s(t.artList[t.index].title?t.artList[t.index].title.length:0)+"/64")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.artList[t.index].title,expression:"artList[index].title"}],attrs:{type:"text",id:"titleName1",autocomplete:"off",placeholder:"请输入文章标题",maxlength:"64"},domProps:{value:t.artList[t.index].title},on:{change:function(e){t.isSave=!1},input:function(e){e.target.composing||t.$set(t.artList[t.index],"title",e.target.value)}}})])]),t._v(" "),s("div",{staticClass:"UEBox"},[s("UE",{ref:"ue",attrs:{id:t.ids,data:t.artList[t.index].content,mediaUrl:t.mediaUrl,config:t.config},on:{edit:t.edit}})],1)])]),t._v(" "),s("div",{staticClass:"rightBox"},[s("div",{staticClass:"back",staticStyle:{"font-size":"14px",color:"#515a6e"}},[t._v("发布设置")]),t._v(" "),s("div",{staticClass:"back"},[t._v("封面")]),t._v(" "),s("div",{staticClass:"postBox"},[t.artList[t.index].thumb_url?t._e():s("div",{staticClass:"nonePost"},[s("img",{staticClass:"albums",staticStyle:{"min-height":"auto"},attrs:{src:i("0eGq"),alt:""}}),t._v(" "),s("div",{staticClass:"hover hover1",on:{click:function(e){return t.isCheck("image","postUrl")}}},[t._v("\n +\n ")])]),t._v(" "),s("div",{staticClass:"post",staticStyle:{position:"relative"}},[t.artList[t.index].thumb_url?s("img",{staticClass:"albums",attrs:{src:t.artList[t.index].thumb_url,alt:""}}):t._e(),t._v(" "),s("div",{staticClass:"hover"},[s("img",{attrs:{src:i("KzIr"),alt:""},on:{click:function(e){t.url=t.artList[t.index].thumb_url.replace("http://weixiaomeng.oss-cn-beijing.aliyuncs.com/","http://liewu.kuxuan-inc.com/oss_image/"),t.checkFalg=!0}}}),t._v(" "),s("img",{attrs:{src:i("jgQM"),alt:""},on:{click:function(e){return t.isCheck("image","postUrl")}}})])])]),t._v(" "),s("div",{staticClass:"back"},[t._v("摘要")]),t._v(" "),s("div",{staticClass:"inputBox"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.artList[t.index].digest,expression:"artList[index].digest"}],attrs:{type:"text",id:"titleName2",autocomplete:"off",placeholder:"请输入摘要",rows:"4",maxlength:"120"},domProps:{value:t.artList[t.index].digest},on:{change:function(e){t.isSave=!1},input:function(e){e.target.composing||t.$set(t.artList[t.index],"digest",e.target.value)}}}),t._v(" "),s("span",{staticClass:"number",staticStyle:{"margin-top":"10px"}},[t._v(t._s(t.artList[t.index].digest?t.artList[t.index].digest.length:0)+"/120")])]),t._v(" "),s("div",{staticClass:"inputBox"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.artList[t.index].author,expression:"artList[index].author"}],staticStyle:{width:"100%",border:"1px solid #dcdee2"},attrs:{type:"text",id:"titleName3",autocomplete:"off",maxlength:"8",placeholder:"请输入文章作者"},domProps:{value:t.artList[t.index].author},on:{change:function(e){t.isSave=!1},input:function(e){e.target.composing||t.$set(t.artList[t.index],"author",e.target.value)}}}),t._v(" "),s("span",{staticClass:"number"},[t._v(t._s(t.artList[t.index].author?t.artList[t.index].author.length:0)+"/8")])]),t._v(" "),s("div",[s("el-checkbox",{staticClass:"checkBox",on:{change:function(e){t.isSave=!1}},model:{value:t.sourceUrl,callback:function(e){t.sourceUrl=e},expression:"sourceUrl"}},[t._v("原文地址")]),t._v(" "),t.sourceUrl?s("input",{directives:[{name:"model",rawName:"v-model",value:t.artList[t.index].content_source_url,expression:"artList[index].content_source_url"}],staticStyle:{display:"inline-block"},attrs:{type:"text",placeholder:"请输入原文链接"},domProps:{value:t.artList[t.index].content_source_url},on:{input:function(e){e.target.composing||t.$set(t.artList[t.index],"content_source_url",e.target.value)}}}):t._e()],1),t._v(" "),s("el-radio-group",{staticClass:"selectBox",model:{value:t.artList[t.index].isWords,callback:function(e){t.$set(t.artList[t.index],"isWords",e)},expression:"artList[index].isWords"}},[s("el-radio",{attrs:{label:1},on:{change:function(e){return t.change(1)}}},[t._v("关闭留言")]),t._v(" "),s("el-radio",{attrs:{label:2},on:{change:function(e){return t.change(2)}}},[t._v("所有人可留言")]),t._v(" "),s("el-radio",{attrs:{label:3},on:{change:function(e){return t.change(3)}}},[t._v("关注后可留言")])],1)],1)]),t._v(" "),s("div",{staticClass:"buttonDiv"},[t._v("\n "+t._s(t.fontCount)+"\n "),s("span",{staticClass:"count"},[t._v(t._s(t.allCount)),s("br"),t._v("预计阅读时间为"+t._s(t.sizeCount>0?Math.ceil(t.sizeCount/400):0)+"分钟")]),t._v(" "),s("el-button",{staticClass:"button",attrs:{type:"primary",size:"medium"},on:{click:t.yesArticle}},[t._v("保存")]),t._v(" "),t.isCommon?t._e():s("div",{staticStyle:{display:"inline-block"}},[s("el-button",{staticClass:"button",attrs:{size:"medium"},on:{click:function(e){t.showSave=!0,t.getWx()}}},[t._v("另存为")]),t._v(" "),s("el-button",{staticClass:"button",attrs:{size:"medium"},on:{click:function(e){t.preview=!0}}},[t._v("预览")]),t._v(" "),s("el-button",{staticClass:"button",attrs:{size:"medium"},on:{click:t.send}},[t._v("保存并群发")])],1)],1),t._v(" "),t.checkImg?s("check-image",{attrs:{type:t.showType,data:t.artList[t.index].content,checkToast:t.checkImg,activeTag:t.activeTag},on:{getDetail:t.getDetail,close:function(e){return t.close("image")},uploading:t.uploading,addImg:t.addImg}}):t._e(),t._v(" "),s("show-mater",{attrs:{type:t.showType,checkToast:t.checkToast,activeTag:t.activeTag},on:{getDetail:t.getDetail,close:t.close,uploading:t.uploading,addImg:t.addImg,addArt:t.addArt}}),t._v(" "),s("my-dialog",{attrs:{visible:t.showSave,width:"30%",minWidth:"500px"},on:{"update:visible":function(e){t.showSave=e}}},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loadingSave,expression:"loadingSave"}],staticClass:"toast"},[s("h3",[t._v("另存为-选择公众号")]),t._v(" "),s("div",{staticClass:"toastMain"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.keyword,expression:"keyword"}],staticStyle:{margin:"0",display:"inline-block",width:"calc(100% - 90px)","margin-left":"10px"},attrs:{type:"text",id:"article",placeholder:"请输入公众号名称"},domProps:{value:t.keyword},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getWx(1)},input:function(e){e.target.composing||(t.keyword=e.target.value)}}}),t._v(" "),s("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-search"},on:{click:function(e){return t.getWx(1)}}},[t._v("搜索")]),t._v(" "),s("ul",{staticClass:"ul",staticStyle:{"max-height":"200px","overflow-y":"scroll"}},t._l(t.wxList,function(e){return s("li",{staticClass:"li"},[s("el-radio",{attrs:{label:e.app_id},model:{value:t.app_id,callback:function(e){t.app_id=e},expression:"app_id"}}),t._v(" "),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.nickname,placement:"top-start"}},[s("span",[t._v(t._s(e.nickname))])])],1)}),0)],1),t._v(" "),s("div",{staticClass:"toastBtn"},[s("el-button",{attrs:{size:"mini"},on:{click:function(e){t.showSave=!1}}},[t._v("取消")]),t._v(" "),s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.saveAs}},[t._v("确定")])],1)])]),t._v(" "),s("priview",{attrs:{preview:t.preview},on:{previewing:t.preViewIng,close:function(e){t.preview=!1}}}),t._v(" "),s("cut-into",{attrs:{panel:t.checkFalg,target:t.url},on:{closeBox:t.closeBox}}),t._v(" "),t.splitImgShow?[t._l(t.section_bg_list,function(e,i){return["bg"==e.type&&e.show?s("splitImg",{key:"bg_create_img"+i,attrs:{content:e.body},on:{splitImgResult:function(e){return t.splitImgResult(e,i)}}}):t._e()]})]:t._e()],2)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"back"},[e("div",{staticClass:"text"},[this._v("图文列表")])])}]};var U=i("VU/8")(S,B,!1,function(t){i("nYA0"),i("pzqX")},"data-v-b2ebe096",null);e.default=U.exports},oNmr:function(t,e,i){i("9Bbf")("Set")},pPW7:function(t,e,i){i("M6a0"),i("zQR9"),i("+tPU"),i("ttyz"),i("BDhv"),i("oNmr"),i("ioQ5"),t.exports=i("FeBl").Set},pzqX:function(t,e){},ttyz:function(t,e,i){"use strict";var s=i("9C8M"),n=i("LIJb");t.exports=i("qo66")("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return s.def(n(this,"Set"),t=0===t?0:t,t)}},s)},upwx:function(t,e,i){"use strict";var s={props:["preview"],data:function(){return{account:"",hasAccount:"",accList:[],loadPre:!0}},created:function(){this.getAccount()},methods:{getAccount:function(){var t=this;this.loadPre=!0,this.$axios.post(this.URL.BASEURL+this.URL.previewAccount).then(function(e){(e=e.data)&&0==e.errno?(t.loadPre=!1,t.accList=e.rst.data):t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loadPre=!1,console.log(e)})}}},n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"priview"},[i("my-dialog",{attrs:{visible:t.preview,width:"30%",minWidth:"500px"},on:{"update:visible":function(e){t.preview=e},close:function(e){return t.$emit("close")}}},[i("div",{staticClass:"toast"},[i("h3",[t._v("发送预览")]),t._v(" "),i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loadPre,expression:"loadPre"}],staticClass:"toastMain"},[i("p",[t._v("关注公众号后,才能接受图文消息预览")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.account,expression:"account"}],staticStyle:{"margin-left":"10px"},attrs:{type:"text",id:"article",placeholder:"请输入微信号"},domProps:{value:t.account},on:{input:function(e){e.target.composing||(t.account=e.target.value)}}}),t._v(" "),i("p",[t._v("预览功能仅用于公众号查看文章效果,不适用于公众传播,预览链接会在短期内失效")]),t._v(" "),i("div",{staticStyle:{"margin-left":"10px"}},t._l(t.accList,function(e){return i("el-tag",{key:e,attrs:{type:"success"},on:{click:function(i){t.account=e}}},[t._v(t._s(e))])}),1)]),t._v(" "),i("div",{staticClass:"toastBtn"},[i("el-button",{attrs:{size:"mini"},on:{click:function(e){return t.$emit("close")}}},[t._v("取消")]),t._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.$emit("previewing",t.account)}}},[t._v("确定")])],1)])])],1)},staticRenderFns:[]};var a=i("VU/8")(s,n,!1,function(t){i("+zkC")},"data-v-14621343",null);e.a=a.exports},v77k:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAAaVBMVEUAAAD/lmn/lWr/yZL/lWr/lmr/l2v/lmn/lWr/lmr/lmr/lmv/mHH/lmn/lmn/lmn/lmr/lWr/lmn/l2r/qnH/lmn/lmn/lmn/lWr/lmr/lmr/l2r/lmn/lmn/lWr/mWz/lmn/n3D/lWlQGSVOAAAAInRSTlMAmfsC6oVYwqmgakEY5dbRknRTSwn17dy6sqN9cmE6KBEQF0YFDQAAAINJREFUGNOFzVkOwyAMRdFXMwbInM5z97/I0hQVrEbK/QDpyLIBDPJVRCYgFo2lEPvNpH9TYK0X8CKaP9xNuHJsrfLA5LqDzDggJY4ZaUxmy53kZ6z4ITdjy9EDArAcQ6hqJ84MSW3j27CduXUk04/dvkR50k98uveGvqhuArmH1ljsDTXzHHce+K9pAAAAAElFTkSuQmCC"},wdlU:function(t,e){}});
|