微信公众号管理后台

14.e6fd49729e977892595d.js 33KB

1
  1. webpackJsonp([14],{"+zkC":function(e,t){},"P+OP":function(e,t){},YqHx:function(e,t){},jKCi:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Xxa5"),s=a.n(i),n=a("exGp"),l=a.n(n),r=a("//Fk"),c=a.n(r),o=a("mvHQ"),u=a.n(o),m=(a("ijT7"),a("HwoI"),{data:function(){return{materialListItemHeight:[],send_ignore_reprint:"1",should_del:"0",itemList:[],loadList:!1,checkList:[],showType:"news",showUpload:!1,account:"",preview:!1,href:"",addHref:!1,hrefName:"",faceList:[],listArr:[],page:1,page_size:20,total:1,faceShow:!1,input:"",response_type:"mpnews",isNow:"true",send_time:"",app_id:"",areaName:[""],city:"",province:"",cityList:arrAll,tag:"",tagList:"",rule_id:"",name:"",loadingNews:!1,filter:0,filterList:[{value:1,label:"按标签过滤"},{value:0,label:"全部"}],sex:0,sexList:[{value:0,label:"全部"},{value:1,label:"男"},{value:2,label:"女"}],type:JSON.parse(this.$cookieStore.getCookie("wxName")).service_type,pickerOptions:{disabledDate:function(e){return e.getTime()<=Date.now()-864e5}},rechargeCountList:[{value:"不限",label:"不限"},{value:1,label:"已充值"},{value:0,label:"未充值"},{value:"自定义",label:"自定义"}],rechargeCount:{type:2,value:"不限",min:"",max:""},charge_money_list:[{value:"不限",label:"不限",min:"",max:""},{value:1,label:"50-100",min:"50",max:"100"},{value:2,label:"100-150",min:"100",max:"150"},{value:3,label:"150-300",min:"150",max:"300"},{value:"自定义",label:"自定义"}],charge_money:{type:1,value:"不限",min:"",max:""},subscribe_time_list:[{value:"不限",label:"不限",min:"",max:""},{value:1,label:"12-24h",min:"12",max:"24"},{value:2,label:"24-48h",min:"24",max:"48"},{value:3,label:"48以上",min:"48",max:""},{value:"自定义",label:"自定义"}],subscribe_time:{type:1,value:"不限",min:"",max:""},final_interact_list:[{value:"不限",label:"不限",min:"",max:""},{value:1,label:"12-24h",min:"12",max:"24"},{value:2,label:"24-48h",min:"24",max:"48"},{value:"自定义",label:"自定义"}],final_interact:{type:1,value:"不限",min:"",max:""},last_paid_at_list:[{value:"不限",label:"不限",min:"",max:""},{value:"自定义",label:"自定义"}],last_paid_at:{type:1,value:"不限",min:"",max:""},subscribe_date:[],del_time:{date:"",time:""},checkedTW:[],isIndeterminate:!1,checkAll:!0}},components:{priview:a("upwx").a},created:function(){arrAll.forEach(function(e){e.children&&"全部"!=e.children[0].label&&e.children&&e.children.unshift({label:"全部",value:"全部"})}),this.rule_id=this.$route.query.rule_id,this.getTag();var e=this.$route.query.news_id;e&&this.initWxDetail(e),this.getTime()},methods:{handleCheckAllChange:function(e){this.checkedTW=e?this.itemList.map(function(e,t){return t}):[],this.isIndeterminate=!1},handlecheckedTWChange:function(e){var t=e.length;this.checkAll=t===this.itemList.length,this.isIndeterminate=t>0&&t<this.itemList.length},subscribe_date_change:function(e){e?(this.subscribe_time.min=e[0],this.subscribe_time.max=e[1]):(this.subscribe_time.min="",this.subscribe_time.max="")},changeSelect:function(e){var t=this;if("rechargeCount"!=e){var a=this[e+"_list"].filter(function(a){return a.value==t[e].value})[0];this[e].min=a.min,this[e].max=a.max}else"自定义"==this[e].value?this[e].type=1:(this[e].type=2,this[e].min="",this[e].max="")},changeArt:function(e){this.listArr.map(function(e,t){e.isCheck=!1}),this.$set(this.checkList,0,"wxNews"==this.showType?e.media_id:e.id)},addIng:function(){var e=this;this.listArr.forEach(function(t,a){("news"==e.showType&&-1!=e.checkList.indexOf(t.id)||"wxNews"==e.showType&&-1!=e.checkList.indexOf(t.media_id))&&(e.itemList=t.article,"mpnews"==e.response_type&&e.itemList&&(e.checkedTW=e.itemList.map(function(e,t){return t})))}),this.showUpload=!1},getTime:function(){var e=this;this.loadingMar=!0,this.$axios.get(this.URL.BASEURL+this.URL.configInfo,{params:{key:"MASS_MSG_SEND_TIME"}}).then(function(t){e.loadingMar=!1,(t=t.data)&&0==t.errno?(e.send_time=e.getDay(1,!1)+" "+t.rst.data.value+":00",e.isNow=e.send_time?"false":"true"):e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loadingMar=!1})},initNews:function(e){var t=this;this.page=e,this.loadingMar=!0,this.$axios.post(this.URL.BASEURL+this.URL.localNews,{page:e,page_size:this.page_size}).then(function(e){if(t.loadingMar=!1,(e=e.data)&&0==e.errno){var a=[];e.rst.data.forEach(function(e){e.article&&e.article.length>0&&a.push(e)}),t.materialListItemHeight=[],a.forEach(function(e){e.article.length>0?t.materialListItemHeight.push(170+63*(e.article.length-1)):t.materialListItemHeight.push(170)}),t.showUpload=!0,t.listArr=a,t.page_size=e.rst.pageInfo.size,t.total=e.rst.pageInfo.total}else t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loadingMar=!1})},handleCurrentChange:function(e){"news"==this.showType?this.initNews(e):this.initWxNews(e)},initWxNews:function(e){var t=this;this.page=e,this.loadList=!0,this.showUpload=!0,this.$axios.get(this.URL.BASEURL+this.URL.newsList,{params:{type:"news",page:e,page_size:this.page_size}}).then(function(e){t.loadList=!1,(e=e.data)&&0==e.errno?(t.materialListItemHeight=[],e.rst.data.forEach(function(e){e.article.length>0?t.materialListItemHeight.push(170+63*(e.article.length-1)):t.materialListItemHeight.push(170)}),t.listArr=e.rst.data,t.total=e.rst.pageInfo.total):t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loadList=!1})},preViewIng:function(e){var t=this;this.priview=!1;var a=[];JSON.parse(u()(this.itemList)).forEach(function(e,i){e.appId=JSON.parse(t.$cookieStore.getCookie("wxName")).app_id,e.show_cover_pic=1,e.thumb_media_id=e.thumb_media_id?e.thumb_media_id:"",delete e.isWords,a.push(e)}),this.loadingNews=!0,this.preview=!1,this.$axios.post(this.URL.BASEURL+this.URL.none_preview,{articles:u()(a),account:e}).then(function(e){t.loadingNews=!1,(e=e.data)&&0==e.errno?t.$message({message:"成功发送预览",type:"success"}):t.$message({message:e.err,type:"warning"})}).catch(function(e){console.log(e),t.loadingNews=!1})},changeCity:function(){this.$refs.myCascader.getCheckedNodes()[0]?(this.country=this.$refs.myCascader.getCheckedNodes()[0].pathLabels.length>0?this.$refs.myCascader.getCheckedNodes()[0].pathLabels[0]:"",this.province=this.$refs.myCascader.getCheckedNodes()[0].pathLabels.length>1?this.$refs.myCascader.getCheckedNodes()[0].pathLabels[1]:"",this.city=this.$refs.myCascader.getCheckedNodes()[0].pathLabels.length>2?this.$refs.myCascader.getCheckedNodes()[0].pathLabels[2]:""):this.country=this.province=this.city=""},createHref:function(){if(!this.hrefName)return this.$message({message:"请填写文字内容",type:"error"}),!1;if(!this.href)return this.$message({message:"请填写链接内容",type:"error"}),!1;var e='<a href="'+this.href+'">'+this.hrefName+"</a>";this.input+=e,this.addHref=!1},initWxDetail:function(e){var t=this;this.loadingShow=!0,this.$axios.get(this.URL.BASEURL+this.URL.newsDetail,{params:{news_id:e}}).then(function(e){e=e.data;t.loadingShow=!1,e&&0==e.errno?(t.itemList=e.rst.data.article?e.rst.data.article:[],"mpnews"==t.response_type&&t.itemList&&(t.checkedTW=t.itemList.map(function(e,t){return t}))):t.$message({message:e.err,type:"warning"})}).catch(function(e){console.log(e),t.loadingShow=!1})},faceContent:function(){if(this.faceShow=!this.faceShow,1==this.faceShow)for(var e in window.emjor)this.faceList.push(window.emjor[e]);else this.faceList=[]},getBrow:function(e,t){for(var a in this.faceList)e==a&&(this.getBrowString=this.faceList[e],this.textConent+=this.getBrowString,this.input+=this.getBrowString);this.faceShow=!1},referContent:function(){if(""==this.textConent)return alert("请输入内容");this.content.push(this.textConent),this.textConent="",this.faceShow=!1},cancel:function(){this.$router.push("/teamM")},getTag:function(){var e=this;this.loadingNews=!0,this.$axios.get(this.URL.BASEURL+this.URL.tagList).then(function(t){e.loadingNews=!1,(t=t.data)&&0==t.errno?e.tagList=t.rst.data.tags:e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loadingNews=!1})},toBack:function(){this.$router.push("/teamM")},valueExchange:function(e){var t=this;return new c.a(function(a,i){var s=t[e].min,n=t[e].max;t[e].min>t[e].max&&""!=t[e].max&&(s=t[e].max,n=t[e].min),t[e].max=n,t[e].min=s,a()})},edit:function(e){var t=this;return l()(s.a.mark(function e(){var a,i,n;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.name){e.next=3;break}return t.$message({message:"规则名称不能为空",type:"error"}),e.abrupt("return",!1);case 3:if("mpnews"!=t.response_type){e.next=9;break}if(0!=t.checkList.length||0!=t.itemList.length){e.next=7;break}return t.$message({message:"请编辑发送内容",type:"error"}),e.abrupt("return",!1);case 7:e.next=12;break;case 9:if(t.input){e.next=12;break}return t.$message({message:"请编辑发送内容",type:"error"}),e.abrupt("return",!1);case 12:if(a="",i="",1!=t.should_del){e.next=31;break}if(t.checkedTW&&!(t.checkedTW.length<=0)){e.next=20;break}return t.$message({message:"请选择要删除的图文!",type:"warning"}),e.abrupt("return");case 20:t.checkAll?i="0":(n=t.checkedTW.map(function(e){return e+1}),i=n.join(","));case 21:if(t.del_time.date&&""!=t.del_time.date){e.next=24;break}return t.$message({message:"请选择定时删除的日期!",type:"warning"}),e.abrupt("return");case 24:if(t.del_time.time&&""!=t.del_time.time){e.next=27;break}return t.$message({message:"请选择定时删除的时间!",type:"warning"}),e.abrupt("return");case 27:if(a=t.del_time.date+" "+t.del_time.time,!((new Date).valueOf()>=new Date(a).valueOf())){e.next=31;break}return t.$message({message:"删除时间应大于当前时间",type:"warning"}),e.abrupt("return");case 31:return t.send_time="false"==t.isNow?t.send_time:t.getDay(0,!0).now,t.loadingNews=!0,e.next=35,t.valueExchange("rechargeCount");case 35:return e.next=37,t.valueExchange("charge_money");case 37:return e.next=39,t.valueExchange("final_interact");case 39:return e.next=41,t.valueExchange("last_paid_at");case 41:t.$axios.post(t.URL.BASEURL+t.URL.setRuleT,{del_time:a,tag_id:t.tag,sex:t.sex,province:"全部"==t.province?null:t.province,country:"全部"==t.country?null:t.country,city:"全部"==t.city?null:t.city,rule_id:t.rule_id,news_id:t.checkList.length>0?t.checkList[0]:t.$route.query.news_id?t.$route.query.news_id:"",name:t.name,message:t.input,response_type:t.response_type,send_ignore_reprint:Number(t.send_ignore_reprint),send_time:t.send_time,should_del:Number(t.should_del),charge_times:"不限"==t.rechargeCount.value?"":t.rechargeCount,charge_money:"不限"==t.charge_money.value?"":t.charge_money,subscribe_time:"不限"==t.subscribe_time.value?"":t.subscribe_time,final_interact:"不限"==t.final_interact.value?"":t.final_interact,last_paid_at:"不限"==t.last_paid_at.value?"":t.last_paid_at,del_idxs:i}).then(function(e){t.loadingNews=!1,(e=e.data)&&0==e.errno?(t.$message({message:"群发消息创建成功",type:"success"}),setTimeout(function(){t.$router.push("/teamM")},500)):t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loadingNews=!1});case 42:case"end":return e.stop()}},e,t)}))()}},watch:{checkList:function(){if(this.checkList.length>1){var e=this.checkList[this.checkList.length-1];this.checkList=[],this.checkList.push(e)}}}}),d={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"addNews addTemplate"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingNews,expression:"loadingNews"}],staticClass:"mainCon",attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[i("div",{staticClass:"topMain"},[i("div",{staticClass:"back",on:{click:e.toBack}},[i("img",{attrs:{src:a("i2Ii"),alt:""}}),e._v("\n 返回上一级\n ")]),e._v(" "),i("wxItem")],1),e._v(" "),i("div",{staticClass:"editBox mainBorder toast"},[i("h4",[e._v("新建群发消息\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("用户每月可收到4条群发信息"),i("br"),e._v("全部对象群发每月最多设置4"),i("br"),e._v("次,按标签筛选群发不限次数")]),e._v(" "),i("el-button",{staticClass:"notice",attrs:{icon:"el-icon-warning"}})],1)],1),e._v(" "),i("div",{staticClass:"inputItem"},[i("label",{attrs:{for:""}},[e._v("规则名称:")]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.name,expression:"name"}],staticClass:"input",attrs:{maxlength:"20",type:"text",autocomplete:"off",placeholder:"任意填写,用于自己识别,不要超过20字"},domProps:{value:e.name},on:{input:function(t){t.target.composing||(e.name=t.target.value)}}})]),e._v(" "),"订阅号"!=e.type?i("div",{staticClass:"inputItem"},[i("label",{attrs:{for:""}},[e._v("群发对象:")]),e._v(" "),i("el-select",{staticClass:"select",attrs:{size:"small",placeholder:"请选择"},model:{value:e.filter,callback:function(t){e.filter=t},expression:"filter"}},e._l(e.filterList,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),1==e.filter?i("el-select",{staticClass:"select",attrs:{size:"small",placeholder:"请选择"},model:{value:e.tag,callback:function(t){e.tag=t},expression:"tag"}},e._l(e.tagList,function(e){return i("el-option",{key:e.id,attrs:{label:e.name+"("+e.count+")",value:e.id}})}),1):e._e(),e._v(" "),i("label",{staticClass:"label",attrs:{for:"sex"}},[e._v("性别")]),e._v(" "),i("el-select",{staticClass:"select",attrs:{id:"sex",size:"small",placeholder:"请选择"},model:{value:e.sex,callback:function(t){e.sex=t},expression:"sex"}},e._l(e.sexList,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1):e._e(),e._v(" "),"订阅号"!=e.type?i("div",{staticClass:"inputItem"},[i("label",{attrs:{for:"city"}},[e._v("群发地区:")]),e._v(" "),i("el-cascader",{ref:"myCascader",attrs:{id:"city",size:"mini",clearable:"",options:e.cityList},on:{change:e.changeCity},model:{value:e.areaName,callback:function(t){e.areaName=t},expression:"areaName"}})],1):e._e(),e._v(" "),e.$cookieStore.getCookie("wxName")&&1==JSON.parse(e.$cookieStore.getCookie("wxName")).is_novel_account?[i("div",{staticClass:"inputItem"},[i("label",{attrs:{for:"rechargeCount"}},[e._v("充值次数:")]),e._v(" "),i("el-select",{staticClass:"select",attrs:{size:"small",placeholder:"请选择"},on:{change:function(t){return e.changeSelect("rechargeCount")}},model:{value:e.rechargeCount.value,callback:function(t){e.$set(e.rechargeCount,"value",t)},expression:"rechargeCount.value"}},e._l(e.rechargeCountList,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),1==e.rechargeCount.type?[i("el-input",{staticClass:"common_el_select_small_input",staticStyle:{"margin-left":"10px"},attrs:{placeholder:"最小值",type:"text",size:"small"},on:{input:function(t){e.rechargeCount.min=e.rechargeCount.min.replace(/[^\d]/g,"")}},model:{value:e.rechargeCount.min,callback:function(t){e.$set(e.rechargeCount,"min",t)},expression:"rechargeCount.min"}}),e._v(" - \n "),i("el-input",{staticClass:"common_el_select_small_input",attrs:{placeholder:"最大值",type:"text",size:"small"},on:{input:function(t){e.rechargeCount.max=e.rechargeCount.max.replace(/[^\d]/g,"")}},model:{value:e.rechargeCount.max,callback:function(t){e.$set(e.rechargeCount,"max",t)},expression:"rechargeCount.max"}}),i("span",{staticStyle:{"font-size":"12px","line-height":"28px"}},[e._v("次数")])]:e._e()],2),e._v(" "),i("div",{staticClass:"inputItem"},[i("label",[e._v("充值金额:")]),e._v(" "),i("el-select",{staticClass:"select",attrs:{size:"small",placeholder:"请选择"},on:{change:function(t){return e.changeSelect("charge_money")}},model:{value:e.charge_money.value,callback:function(t){e.$set(e.charge_money,"value",t)},expression:"charge_money.value"}},e._l(e.charge_money_list,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),"自定义"==e.charge_money.value?[i("el-input",{staticClass:"common_el_select_small_input",staticStyle:{"margin-left":"10px"},attrs:{placeholder:"最小值",type:"text",size:"small"},on:{input:function(t){e.charge_money.min=e.charge_money.min.replace(/[^\d]/g,"")}},model:{value:e.charge_money.min,callback:function(t){e.$set(e.charge_money,"min",t)},expression:"charge_money.min"}}),e._v(" - \n "),i("el-input",{staticClass:"common_el_select_small_input",attrs:{placeholder:"最大值",type:"text",size:"small"},on:{input:function(t){e.charge_money.max=e.charge_money.max.replace(/[^\d]/g,"")}},model:{value:e.charge_money.max,callback:function(t){e.$set(e.charge_money,"max",t)},expression:"charge_money.max"}}),i("span",{staticStyle:{"font-size":"12px","line-height":"28px"}},[e._v("元")])]:e._e()],2),e._v(" "),i("div",{staticClass:"inputItem"},[i("label",[e._v("关注时间:")]),e._v(" "),i("el-select",{staticClass:"select",attrs:{size:"small",placeholder:"请选择"},on:{change:function(t){return e.changeSelect("subscribe_time")}},model:{value:e.subscribe_time.value,callback:function(t){e.$set(e.subscribe_time,"value",t)},expression:"subscribe_time.value"}},e._l(e.subscribe_time_list,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),"自定义"==e.subscribe_time.value?[i("el-date-picker",{staticStyle:{"margin-left":"10px",width:"250px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd",size:"small","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.subscribe_date_change},model:{value:e.subscribe_date,callback:function(t){e.subscribe_date=t},expression:"subscribe_date"}})]:e._e()],2),e._v(" "),i("div",{staticClass:"inputItem"},[i("label",[e._v("活跃时间:")]),e._v(" "),i("el-select",{staticClass:"select",attrs:{size:"small",placeholder:"请选择"},on:{change:function(t){return e.changeSelect("final_interact")}},model:{value:e.final_interact.value,callback:function(t){e.$set(e.final_interact,"value",t)},expression:"final_interact.value"}},e._l(e.final_interact_list,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),"自定义"==e.final_interact.value?[i("el-input",{staticClass:"common_el_select_small_input",staticStyle:{"margin-left":"10px"},attrs:{placeholder:"最小值",type:"text",size:"small"},on:{input:function(t){e.final_interact.min=e.final_interact.min.replace(/[^\d]/g,"")}},model:{value:e.final_interact.min,callback:function(t){e.$set(e.final_interact,"min",t)},expression:"final_interact.min"}}),e._v(" - \n "),i("el-input",{staticClass:"common_el_select_small_input",attrs:{placeholder:"最大值",type:"text",size:"small"},on:{input:function(t){e.final_interact.max=e.final_interact.max.replace(/[^\d]/g,"")}},model:{value:e.final_interact.max,callback:function(t){e.$set(e.final_interact,"max",t)},expression:"final_interact.max"}}),i("span",{staticStyle:{"font-size":"12px","line-height":"28px"}},[e._v("小时")])]:e._e()],2),e._v(" "),i("div",{staticClass:"inputItem"},[i("label",[e._v("上次充值时间:")]),e._v(" "),i("el-select",{staticClass:"select",attrs:{size:"small",placeholder:"请选择"},on:{change:function(t){return e.changeSelect("last_paid_at")}},model:{value:e.last_paid_at.value,callback:function(t){e.$set(e.last_paid_at,"value",t)},expression:"last_paid_at.value"}},e._l(e.last_paid_at_list,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),"自定义"==e.last_paid_at.value?[i("el-input",{staticClass:"common_el_select_small_input",staticStyle:{"margin-left":"10px"},attrs:{placeholder:"最小值",type:"text",size:"small"},on:{input:function(t){e.last_paid_at.min=e.last_paid_at.min.replace(/[^\d]/g,"")}},model:{value:e.last_paid_at.min,callback:function(t){e.$set(e.last_paid_at,"min",t)},expression:"last_paid_at.min"}}),e._v(" - \n "),i("el-input",{staticClass:"common_el_select_small_input",attrs:{placeholder:"最大值",type:"text",size:"small"},on:{input:function(t){e.last_paid_at.max=e.last_paid_at.max.replace(/[^\d]/g,"")}},model:{value:e.last_paid_at.max,callback:function(t){e.$set(e.last_paid_at,"max",t)},expression:"last_paid_at.max"}}),i("span",{staticStyle:{"font-size":"12px","line-height":"28px"}},[e._v("小时")])]:e._e()],2)]:e._e(),e._v(" "),i("div",{staticClass:"sendBox"},[i("ul",{staticClass:"tabList"},[i("li",{class:"mpnews"==e.response_type?"activeTab":"",on:{click:function(t){e.response_type="mpnews"}}},[e._v("图文消息")]),e._v(" "),i("li",{class:"text"==e.response_type?"activeTab":"",on:{click:function(t){e.response_type="text"}}},[e._v("文字")])]),e._v(" "),"mpnews"==e.response_type?i("div",{staticClass:"box"},[0==e.itemList.length?i("div",[i("div",{staticClass:"uploadBox",on:{click:function(t){e.showType="news",e.initNews(1)}}},[i("div",{staticClass:"add"},[e._v("+")]),e._v(" "),i("p",[e._v("从素材库选择")])]),e._v(" "),i("div",{staticClass:"uploadBox",on:{click:function(t){e.showType="wxNews",e.initWxNews(1)}}},[i("div",{staticClass:"add"},[e._v("+")]),e._v(" "),i("p",[e._v("从微信素材库选择")])])]):i("div",{staticClass:"uploadBox hasUpload"},[i("div",[i("div",{staticClass:"wxList"},[i("div",{staticClass:"wxItem",staticStyle:{position:"relative",background:"#f7f9fa",padding:"0 10px 15px"}},[1==e.itemList[0].is_ad?i("span",{staticClass:"type",staticStyle:{top:"5px",left:"10px"}},[e._v("广告")]):e._e(),e._v(" "),i("div",{staticClass:"topTitle",style:{"padding-left":1==e.itemList[0].is_ad?"45px":""}},[e._v(e._s(e.itemList[0].title)+"\n ")]),e._v(" "),i("div",{staticStyle:{position:"relative",height:"137px",overflow:"hidden"}},[i("img",{staticClass:"icon",attrs:{src:e.itemList[0].thumb_url,alt:""}})]),e._v(" "),e._l(e.itemList,function(t,a){return e.itemList.length>1&&a>0?i("div",{staticClass:"other"},[1==t.is_ad?i("div",{staticClass:"type",staticStyle:{top:"4px",left:"10px"}},[e._v("广告")]):e._e(),e._v(" "),i("div",{staticClass:"infoImg"},[i("div",{staticClass:"topTitle",staticStyle:{width:"calc(100% - 50px)"}},[e._v("\n "+e._s(t.title)+"\n ")]),e._v(" "),i("div",{staticStyle:{"text-align":"right"}},[i("img",{staticClass:"icon1",attrs:{src:t.thumb_url,alt:""}})])])]):e._e()})],2)])])])]):e._e(),e._v(" "),"text"==e.response_type?i("div",{staticClass:"box"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.input,expression:"input"}],attrs:{placeholder:"请输入文字..."},domProps:{value:e.input},on:{input:function(t){t.target.composing||(e.input=t.target.value)}}}),e._v(" "),i("button",{staticClass:"faceBut",on:{click:e.faceContent}},[e._v("表情")]),e._v(" "),i("button",{staticClass:"faceBut",staticStyle:{left:"60px"},on:{click:function(t){e.addHref=!0}}},[i("img",{staticClass:"lian",attrs:{src:a("fYig"),alt:""}}),e._v("\n 添加文字链接\n ")]),e._v(" "),e.faceShow?i("div",{staticClass:"browBox"},[i("ul",e._l(e.faceList,function(t,a){return i("li",{key:a,on:{click:function(t){return e.getBrow(a)}}},[e._v(e._s(t))])}),0)]):e._e()]):e._e(),e._v(" "),i("my-dialog",{attrs:{visible:e.addHref,width:"20%",minWidth:"500px"},on:{"update:visible":function(t){e.addHref=t}}},[i("div",{staticClass:"toast"},[i("h3",[e._v("文字链接")]),e._v(" "),i("div",{staticClass:"toastMain"},[i("div",{staticClass:"inputItem"},[i("label",{attrs:{for:"titleName"}},[e._v("文字内容:")]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.hrefName,expression:"hrefName"}],attrs:{autocomplete:"off",type:"text",id:"titleName",placeholder:"请输入"},domProps:{value:e.hrefName},on:{input:function(t){t.target.composing||(e.hrefName=t.target.value)}}})]),e._v(" "),i("div",{staticClass:"inputItem"},[i("label",{attrs:{for:"titleName"}},[e._v("链接内容:")]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.href,expression:"href"}],attrs:{autocomplete:"off",type:"text",id:"titleName",placeholder:"请输入"},domProps:{value:e.href},on:{input:function(t){t.target.composing||(e.href=t.target.value)}}})])]),e._v(" "),i("div",{staticClass:"toastBtn"},[i("el-button",{attrs:{size:"mini"},on:{click:function(t){e.addHref=!1}}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.createHref}},[e._v("确定")])],1)])]),e._v(" "),i("my-dialog",{attrs:{visible:e.showUpload,width:"1048px"},on:{"update:visible":function(t){e.showUpload=t}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadList,expression:"loadList"}],staticClass:"toast"},[i("h3",[e._v("选择素材-"+e._s("wxNews"==e.showType?"微信":"")+"图文消息")]),e._v(" "),i("div",{staticClass:"toastMain"},[0==e.listArr.length?i("div",{staticClass:"nullBox"},[i("img",{attrs:{src:a("3qAc"),alt:""}}),e._v(" "),i("div",{staticClass:"null"},[e._v("没有搜索到结果")])]):e._e(),e._v(" "),i("el-checkbox-group",{model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},[i("waterfall",{staticClass:"wxList",attrs:{watch:e.listArr,"line-gap":244}},e._l(e.listArr,function(t,a){return i("waterfall-slot",{key:a,staticClass:"wxItem",attrs:{order:a,width:244,height:e.materialListItemHeight[a]}},[i("div",{class:["itemBox","wxNews"==e.showType?t.media_id==e.checkList[0]&&"active":t.id==e.checkList[0]&&"active"],on:{click:function(i){return e.changeArt(t,a)}}},[e._v(">\n "),1==t.article[0].is_ad?i("span",{staticClass:"type"},[e._v("广告")]):e._e(),e._v(" "),i("div",{staticStyle:{position:"relative",height:"137px",overflow:"hidden"}},[i("img",{staticClass:"icon",attrs:{src:t.article[0]&&t.article[0].thumb_url?t.article[0].thumb_url:"",alt:""}}),e._v(" "),i("div",{staticClass:"btmTitle"},[e._v(e._s(t.article[0].title))])]),e._v(" "),e._l(t.article,function(a,s){return t.article.length>1&&s>0?i("div",{staticClass:"other"},[i("div",{staticClass:"infoImg"},[i("div",{staticClass:"topTitle",staticStyle:{width:"calc(100% - 60px)"}},[e._v("\n "+e._s(a.title)+"\n ")]),e._v(" "),i("div",{staticStyle:{"text-align":"right"}},[i("img",{staticClass:"icon1",attrs:{src:a.thumb_url,alt:""}})])])]):e._e()})],2)])}),1)],1),e._v(" "),e.listArr.length>0&&e.total>1?i("div",{staticClass:"bottom"},[i("el-pagination",{attrs:{background:"","current-page":e.page,"page-size":e.page_size,layout:"prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),i("div",{staticClass:"toastBtn"},[i("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showUpload=!1,e.type=""}}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.addIng()}}},[e._v("确定")])],1)])])],1),e._v(" "),i("div",{staticClass:"inputItem"},[i("label",{attrs:{for:"url"}},[e._v("发送时间:")]),e._v(" "),i("el-radio",{attrs:{label:"true"},model:{value:e.isNow,callback:function(t){e.isNow=t},expression:"isNow"}},[e._v("立即发送")]),e._v(" "),i("el-radio",{attrs:{label:"false"},model:{value:e.isNow,callback:function(t){e.isNow=t},expression:"isNow"}},[e._v("定时发送\n ")]),e._v(" "),"false"==e.isNow?i("el-date-picker",{attrs:{size:"mini",type:"datetime","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择日期时间"},model:{value:e.send_time,callback:function(t){e.send_time=t},expression:"send_time"}}):e._e()],1),e._v(" "),i("div",{staticClass:"inputItem"},[i("label",{attrs:{for:"url"}},[e._v("转发逻辑:")]),e._v(" "),i("el-radio",{staticStyle:{width:"auto"},attrs:{label:"1"},model:{value:e.send_ignore_reprint,callback:function(t){e.send_ignore_reprint=t},expression:"send_ignore_reprint"}},[e._v("继续群发(若您已完成开启,请选择此项)")]),e._v(" "),i("el-radio",{staticStyle:{width:"auto"},attrs:{label:"0"},model:{value:e.send_ignore_reprint,callback:function(t){e.send_ignore_reprint=t},expression:"send_ignore_reprint"}},[e._v("停止群发")])],1),e._v(" "),i("div",{staticClass:"inputItem"},[i("label",[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("选择后可在您期望的时间里由系统"),i("br"),e._v("自动删除群发")]),e._v(" "),i("el-button",{staticClass:"notice",attrs:{icon:"el-icon-warning"}})],1),e._v("\n 定时删除:\n ")],1),e._v(" "),i("el-radio",{staticStyle:{width:"auto"},attrs:{label:"0"},model:{value:e.should_del,callback:function(t){e.should_del=t},expression:"should_del"}},[e._v("否")]),e._v(" "),i("el-radio",{staticStyle:{width:"auto","margin-right":"0"},attrs:{label:"1"},model:{value:e.should_del,callback:function(t){e.should_del=t},expression:"should_del"}},[e._v("是")])],1),e._v(" "),"1"==e.should_del?i("div",{staticStyle:{margin:"-10px 0 15px 135px","font-size":"14px",color:"#515a6e"}},["mpnews"==e.response_type&&e.itemList&&e.itemList.length>0?i("div",{staticClass:"sendBox del_sendBox",staticStyle:{margin:"0",padding:"10px 20px",width:"400px","margin-bottom":"10px"}},[i("el-checkbox-group",{on:{change:e.handlecheckedTWChange},model:{value:e.checkedTW,callback:function(t){e.checkedTW=t},expression:"checkedTW"}},e._l(e.itemList,function(t,a){return i("el-checkbox",{key:a,attrs:{label:a}},[i("div",{staticClass:"other",style:-1!=e.checkedTW.indexOf(a)?"border-color:#448aff":""},[1==t.is_ad?i("div",{staticClass:"type",staticStyle:{top:"4px",left:"10px"}},[e._v("广告")]):e._e(),e._v(" "),i("div",{staticClass:"infoImg"},[i("div",{staticClass:"topTitle",staticStyle:{width:"calc(100% - 75px)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap","font-weight":"initial"}},[e._v("\n "+e._s(t.title)+"\n ")]),e._v(" "),i("div",{staticStyle:{"text-align":"right"}},[i("img",{staticClass:"icon1",attrs:{src:t.thumb_url,alt:""}})])])])])}),1),e._v(" "),i("el-checkbox",{staticClass:"allCheck",attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1):e._e(),e._v(" "),i("div",[i("el-date-picker",{staticStyle:{width:"140px"},attrs:{"picker-options":e.pickerOptions,size:"small","value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期"},model:{value:e.del_time.date,callback:function(t){e.$set(e.del_time,"date",t)},expression:"del_time.date"}}),e._v(" "),i("el-time-picker",{staticStyle:{width:"100px"},attrs:{size:"small",format:"HH:mm","value-format":"HH:mm:ss",placeholder:"时间"},model:{value:e.del_time.time,callback:function(t){e.$set(e.del_time,"time",t)},expression:"del_time.time"}}),e._v("\n 后删除该群发\n ")],1)]):e._e(),e._v(" "),i("div",{staticClass:"btnList"},[i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.edit}},[e._v("推送")]),e._v(" "),i("el-button",{attrs:{size:"small"},on:{click:e.cancel}},[e._v("取消")])],1)],2),e._v(" "),i("priview",{attrs:{preview:e.preview},on:{previewing:e.preViewIng,close:function(t){e.preview=!1}}})],1)])},staticRenderFns:[]};var p=a("VU/8")(m,d,!1,function(e){a("P+OP"),a("YqHx")},"data-v-5ca027b0",null);t.default=p.exports},upwx:function(e,t,a){"use strict";var i={props:["preview"],data:function(){return{account:"",hasAccount:"",accList:[],loadPre:!0}},created:function(){this.getAccount()},methods:{getAccount:function(){var e=this;this.loadPre=!0,this.$axios.post(this.URL.BASEURL+this.URL.previewAccount).then(function(t){(t=t.data)&&0==t.errno?(e.loadPre=!1,e.accList=t.rst.data):e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loadPre=!1,console.log(t)})}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"priview"},[a("my-dialog",{attrs:{visible:e.preview,width:"30%",minWidth:"500px"},on:{"update:visible":function(t){e.preview=t},close:function(t){return e.$emit("close")}}},[a("div",{staticClass:"toast"},[a("h3",[e._v("发送预览")]),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadPre,expression:"loadPre"}],staticClass:"toastMain"},[a("p",[e._v("关注公众号后,才能接受图文消息预览")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.account,expression:"account"}],staticStyle:{"margin-left":"10px"},attrs:{type:"text",id:"article",placeholder:"请输入微信号"},domProps:{value:e.account},on:{input:function(t){t.target.composing||(e.account=t.target.value)}}}),e._v(" "),a("p",[e._v("预览功能仅用于公众号查看文章效果,不适用于公众传播,预览链接会在短期内失效")]),e._v(" "),a("div",{staticStyle:{"margin-left":"10px"}},e._l(e.accList,function(t){return a("el-tag",{key:t,attrs:{type:"success"},on:{click:function(a){e.account=t}}},[e._v(e._s(t))])}),1)]),e._v(" "),a("div",{staticClass:"toastBtn"},[a("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.$emit("close")}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.$emit("previewing",e.account)}}},[e._v("确定")])],1)])])],1)},staticRenderFns:[]};var n=a("VU/8")(i,s,!1,function(e){a("+zkC")},"data-v-14621343",null);t.a=n.exports}});