微信公众号管理后台

4.c1fa43b4955d0ef393f4.js 26KB

1
  1. webpackJsonp([4],{"+iaO":function(e,t){},"3C/1":function(e,t,a){a("M6a0"),a("zQR9"),a("+tPU"),a("qCoq"),a("UvrK"),a("Xjd4"),a("bqnK"),e.exports=a("FeBl").Map},GLqu:function(e,t){},S1NY:function(e,t){},UvrK:function(e,t,a){var i=a("kM2E");i(i.P+i.R,"Map",{toJSON:a("m9gC")("Map")})},Xjd4:function(e,t,a){a("9Bbf")("Map")},bqnK:function(e,t,a){a("HpRW")("Map")},eohx:function(e,t,a){"use strict";var i=a("ifoU"),s=a.n(i),n={props:{isTemplate:{type:String,default:""},toPush:{type:Boolean,default:!1}},data:function(){return{allTag:[],keyword:"",wxList:this.$store.state.wxList,checkList:[],loadList:!1}},created:function(){},methods:{select:function(e,t){this.$set(this.allTag,t,e)},getTag:function(){var e=this;this.loadList=!0;var t={app_id:this.checkList[this.checkList.length-1]};this.isTemplate&&this.wxList.forEach(function(a){a.template_id==e.checkList[e.checkList.length-1]&&(t.app_id=a.app_id)}),this.$axios.get(this.URL.BASEURL+this.URL.tagList,{params:t}).then(function(a){if(e.loadList=!1,(a=a.data)&&0==a.errno){var i="";e.wxList.forEach(function(t){e.isTemplate?t.template_id==e.checkList[e.checkList.length-1]&&(i=t.nickname):t.app_id==e.checkList[e.checkList.length-1]&&(i=t.nickname)}),e.isTemplate?e.allTag.unshift({name:i,app_id:t.app_id,template_id:e.checkList[e.checkList.length-1],tag:a.rst.data.tags,checkTag:""}):e.allTag.unshift({name:i,app_id:e.checkList[e.checkList.length-1],tag:a.rst.data.tags,checkTag:""}),e.allTag.length>1&&(e.allTag=e.unAttr(e.allTag))}else e.$message({message:a.err,type:"warning"})}).catch(function(t){console.log(t),e.loadList=!1})},unAttr:function(e){var t=new s.a;return e.filter(function(e){return!t.has(e.app_id)&&t.set(e.app_id,1)})},unique:function(e){return e.filter(function(e,t,a){return a.indexOf(e,0)===t})},tInit:function(){var e=this;this.loadList=!0,this.$axios.post(this.URL.BASEURL+this.URL.similar,{page:1,page_size:999,keyword:this.keyword,template_id:this.isTemplate,team_id:JSON.parse(this.$cookieStore.getCookie("teamObj")).id}).then(function(t){e.loadList=!1,(t=t.data)&&0==t.errno?(e.wxList=t.rst?t.rst:[],e.wxList.unshift({template_id:e.isTemplate,nickname:JSON.parse(e.$cookieStore.getCookie("wxName")).nickname,app_id:JSON.parse(e.$cookieStore.getCookie("wxName")).app_id})):e.$message({message:t.err,type:"warning"})}).catch(function(t){console.log(t),e.loadList=!1})},init:function(){var e=this;if(this.isTemplate)return this.tInit(),!1;this.loadList=!0,this.$axios.post(this.URL.BASEURL+this.URL.accountList,{page:1,page_size:999,keyword:this.keyword,team_id:JSON.parse(this.$cookieStore.getCookie("teamObj")).id}).then(function(t){e.loadList=!1,(t=t.data)&&0==t.errno?e.wxList=t.rst.data:e.$message({message:t.err,type:"warning"})}).catch(function(t){console.log(t),e.loadList=!1})}},watch:{toPush:function(){this.toPush&&this.isTemplate&&this.tInit()},checkList:function(e,t){var a=this;e.length>t.length?this.unique(this.checkList,this.getTag()):this.checkList.length>0?this.checkList.forEach(function(e){a.allTag.forEach(function(t,i){e!==t.app_id&&a.allTag.splice(i,1)})}):this.allTag=[]},allTag:function(){}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"batchPush"},[a("my-dialog",{attrs:{visible:e.toPush,width:"30%",minWidth:"500px"},on:{"update:visible":function(t){e.toPush=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.loadList,expression:"loadList"}],staticClass:"toastMain"},[e.isTemplate?e._e():a("div",{staticClass:"info"},[a("i",{staticClass:"el-icon-warning"}),e._v("选择批量发送时,需要单独设置过滤标签\n ")]),e._v(" "),a("div",{staticClass:"searchCon"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],attrs:{type:"text",placeholder:"请输入公众号名称"},domProps:{value:e.keyword},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.init(1)},input:function(t){t.target.composing||(e.keyword=t.target.value)}}}),e._v(" "),a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"small"},on:{click:function(t){return e.init(1)}}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"checkList"},[e.isTemplate?a("el-checkbox-group",{model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},e._l(e.wxList,function(t){return a("el-checkbox",{key:t.template_id,staticClass:"check",attrs:{label:t.template_id}},[e._v(e._s(t.nickname))])}),1):a("el-checkbox-group",{model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},e._l(e.wxList,function(t){return a("el-checkbox",{key:t.app_id,staticClass:"check",attrs:{label:t.app_id}},[e._v(e._s(t.nickname))])}),1),e._v(" "),0==e.wxList.length?a("div",{staticClass:"nullBox",staticStyle:{"padding-top":"0"}},[a("div",{staticClass:"null"},[e._v("暂无数据")])]):e._e()],1),e._v(" "),e.checkList.length>0?a("ul",{staticClass:"checkBox"},[a("div",{staticClass:"info"},[e._v("请选择公众号里过滤的标签")]),e._v(" "),e._l(e.allTag,function(t,i){return a("li",{key:"tag"+t.app_id},[a("label",[e._v(e._s(t.name)+":")]),e._v(" "),a("el-select",{attrs:{size:"mini",placeholder:"请选择标签"},on:{change:function(a){return e.select(t,i)}},model:{value:t.checkTag,callback:function(a){e.$set(t,"checkTag",a)},expression:"item.checkTag"}},e._l(t.tag,function(e){return a("el-option",{key:e.id,attrs:{label:e.name+"("+e.count+")",value:e.id}})}),1)],1)})],2):e._e()]),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("getdata",e.allTag)}}},[e._v("发送")])],1)])])],1)},staticRenderFns:[]};var c=a("VU/8")(n,l,!1,function(e){a("S1NY")},"data-v-4cda32ed",null);t.a=c.exports},ifoU:function(e,t,a){e.exports={default:a("3C/1"),__esModule:!0}},lhy8: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),c=a("//Fk"),r=a.n(c),o=a("mvHQ"),u=a.n(o),m=a("eohx"),p=a("dw1s"),_=(a("HwoI"),{components:{makeContent:p.a,batchPush:m.a},data:function(){return{pickerOptions:{disabledDate:function(e){return e.getTime()<=Date.now()-864e5}},plan_time:"",type:"0",account_info:[],toPush:!1,media_url:"",isAll:!0,editItem:{},msg_data:{},send_identity:1,send_identityList:[{value:1,label:"公众号"}],isNow:"true",send_time:"",app_id:"",city:"",province:"",areaName:[""],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:"女"}],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:[]}},created:function(){this.app_id=this.$cookieStore.getCookie("wxName")&&"undefined"!=this.$cookieStore.getCookie("wxName")&&JSON.parse(this.$cookieStore.getCookie("wxName")).app_id?JSON.parse(this.$cookieStore.getCookie("wxName")).app_id:"",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(),!this.rule_id&&this.getTime(),this.rule_id&&this.init()},methods:{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="")},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){if(e.loadingMar=!1,(t=t.data)&&0==t.errno){var a=t.rst.data?e.getDay(1,!1)+" "+t.rst.data.value+":00":"";e.send_time=a,e.plan_time=new Date(a),!e.rule_id&&(e.type="2")}else e.$message({message:t.err,type:"warning"})}).catch(function(t){console.log(t),e.loadingMar=!1})},getdata:function(e){this.toPush=!1,this.$refs.change.addReply(e)},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=""},init:function(){var e=this;this.loadingNews=!0,this.$axios.post(this.URL.BASEURL+this.URL.ruleDetailC,{rule_id:this.rule_id}).then(function(t){if(e.loadingNews=!1,(t=t.data)&&0==t.errno){var a=t.rst.data;if(e.filter=a.tag_id&&0!=a.tag_id?1:0,e.tag=a.tag_id,e.sex=a.sex,e.city=a.city,e.province=a.province,e.country=a.country,e.name=a.name,e.response_type=a.response_type,e.url=a.url,e.app_id=a.app_id,e.send_time=a.send_time,e.type=a.type.toString(),new Date(e.send_time).getTime()<(new Date).getTime()&&(e.type="0"),e.editItem={response_type:e.response_type,message:a.message},e.areaName=[],a.country?(e.areaName.push(a.country?a.country:""),e.areaName.push(a.province?a.province:"全部"),e.areaName.push(a.city?a.city:"全部")):e.areaName=[""],"image"==e.response_type||"voice"==e.response_type||"video"==e.response_type){var i=JSON.parse(a.message);i.oss_url=a.media_url,e.editItem.message=u()(i)}e.getTime()}else e.$message({message:t.err,type:"warning"})}).catch(function(t){console.log(t),e.loadingNews=!1})},cancel:function(){this.$router.push("/customM")},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("/customM")},getMain:function(){this.$refs.change.addReply()},addReply:function(e,t){var a={touser:"OPENID",msgtype:""};if(a.msgtype=e.response_type,"text"==e.response_type)this.msg_data={content:JSON.parse(e.message).content};else if("image"==e.response_type||"voice"==e.response_type||"video"==e.response_type)if(this.media_url=JSON.parse(e.message).url,this.msg_data={url:JSON.parse(e.message).url,title:JSON.parse(e.message).title},"voice"==e.response_type){if(-1!=JSON.parse(e.message).duration.indexOf("分"))return this.$message({message:"发送的客服音频时长不能超过60秒",type:"error"}),void(this.item={})}else this.msg_data.description=JSON.parse(e.message).description,this.msg_data.thumb_url=JSON.parse(e.message).thumb_url;else if("mpnews"==e.response_type)this.msg_data={url:JSON.parse(e.message)[0].media_id};else{var i=JSON.parse(e.message);i.forEach(function(e){delete e.media_id}),this.msg_data={articles:i}}this.edit(a,t)},valueExchange:function(e){var t=this;return new r.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,t){var a=this;return l()(s.a.mark(function i(){var n,l,c;return s.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(a.name){i.next=3;break}return a.$message({message:"规则名称不能为空",type:"error"}),i.abrupt("return",!1);case 3:return a.loadingNews=!0,i.next=6,a.valueExchange("rechargeCount");case 6:return i.next=8,a.valueExchange("charge_money");case 8:return i.next=10,a.valueExchange("final_interact");case 10:return i.next=12,a.valueExchange("last_paid_at");case 12:a.rule_id?(n={name:a.name,msg_data:u()(a.msg_data),send_time:a.send_time,send_identity:a.send_identity,response_type:e.msgtype,rule_id:Number(a.rule_id),type:"true"==a.isNow?1:2,tag_id:a.tag,sex:a.sex,media_id:a.media_url,province:"全部"==a.province?null:a.province,country:a.country,city:"全部"==a.city?null:a.city,url:a.url,charge_times:a.rechargeCount,charge_money:a.charge_money,subscribe_time:a.subscribe_time,final_interact:a.final_interact,last_paid_at:a.last_paid_at},"0"==a.type&&(n.send_time=a.getDay(0,!0).now)):(n={name:a.name,msg_data:u()(a.msg_data),send_identity:a.send_identity,response_type:e.msgtype,type:2==Number(a.type)?2:1,charge_times:"不限"==a.rechargeCount.value?"":a.rechargeCount,charge_money:"不限"==a.charge_money.value?"":a.charge_money,subscribe_time:"不限"==a.subscribe_time.value?"":a.subscribe_time,final_interact:"不限"==a.final_interact.value?"":a.final_interact,last_paid_at:"不限"==a.last_paid_at.value?"":a.last_paid_at},"1"==a.type?n.send_time=a.send_time:"0"==a.type?n.send_time=a.getDay(0,!0).now:n.plan_time=a.formatTime("hh:mm:ss",a.plan_time).replace(/:/g,""),a.rule_id&&(n.rule_id=Number(a.rule_id)),l=[],t&&t.length>0?t.forEach(function(e){l.push({app_id:e.app_id,tag_id:e.checkTag,sex:a.sex,city:a.city,province:"全部"==a.province?null:a.province,country:a.country})}):l.push({app_id:a.app_id,tag_id:a.tag,sex:a.sex,city:a.city,province:"全部"==a.province?null:a.province,country:a.country}),n.account_info=u()(l)),c=a.rule_id?a.URL.setRuleC:a.URL.setRuleCB,a.$axios.post(a.URL.BASEURL+c,n).then(function(e){a.loadingNews=!1,(e=e.data)&&0==e.errno?(a.$message({message:"创建成功",type:"success"}),a.$router.push("/customM")):a.$message({message:e.err,type:"warning"})}).catch(function(e){a.loadingNews=!1});case 15:case"end":return i.stop()}},i,a)}))()}}}),d={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"addNews addTemplate addCustom"},[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("48小时内与公众号有互动行为(关"),i("br"),e._v("注、菜单点击、发送消息、扫码)"),i("br"),e._v("的用户可接受客服消息,单次互"),i("br"),e._v("动最多可收到12条消息")]),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(" "),i("div",{staticClass:"inputItem"},[i("label",{attrs:{for:"select"}},[e._v("群发对象:")]),e._v(" "),i("el-select",{staticClass:"select",attrs:{id:"select",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",staticStyle:{"margin-left":"10px"},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._v(" "),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._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("makeContent",{ref:"change",attrs:{item:e.editItem,isAll:e.isAll},on:{addReply:e.addReply}}),e._v(" "),i("div",{staticClass:"inputItem"},[i("label",{attrs:{for:"url"}},[e._v("发送时间:")]),e._v(" "),i("el-radio",{attrs:{label:"0"},model:{value:e.type,callback:function(t){e.type=t},expression:"type"}},[e._v("立即推送")]),e._v(" "),i("el-radio",{attrs:{label:"1"},model:{value:e.type,callback:function(t){e.type=t},expression:"type"}},[e._v("定时推送")]),e._v(" "),i("el-radio",{attrs:{label:"2"},model:{value:e.type,callback:function(t){e.type=t},expression:"type"}},[e._v("循环推送")]),e._v(" "),"1"==e.type?i("el-date-picker",{attrs:{size:"mini","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"选择日期时间"},model:{value:e.send_time,callback:function(t){e.send_time=t},expression:"send_time"}}):e._e(),e._v(" "),"2"==e.type?i("el-time-picker",{attrs:{size:"mini","picker-options":{selectableRange:"00:00:00 - 23:59:59"},placeholder:"选择时间"},model:{value:e.plan_time,callback:function(t){e.plan_time=t},expression:"plan_time"}}):e._e()],1),e._v(" "),i("div",{staticClass:"inputItem"},[i("label",{attrs:{for:""}},[e._v("发送身份:")]),e._v(" "),i("el-select",{attrs:{size:"small",placeholder:"请选择"},model:{value:e.send_identity,callback:function(t){e.send_identity=t},expression:"send_identity"}},e._l(e.send_identityList,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),i("div",{staticClass:"btnList"},[e.rule_id?e._e():i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){e.toPush=!0}}},[e._v("批量推送")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.getMain}},[e._v("推送")]),e._v(" "),i("el-button",{attrs:{size:"small"},on:{click:e.cancel}},[e._v("取消")])],1)],2),e._v(" "),i("batchPush",{attrs:{toPush:e.toPush},on:{close:function(t){e.toPush=!1},getdata:e.getdata}})],1)])},staticRenderFns:[]};var h=a("VU/8")(_,d,!1,function(e){a("GLqu"),a("+iaO")},"data-v-2d5ad23e",null);t.default=h.exports},qCoq:function(e,t,a){"use strict";var i=a("9C8M"),s=a("LIJb");e.exports=a("qo66")("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=i.getEntry(s(this,"Map"),e);return t&&t.v},set:function(e,t){return i.def(s(this,"Map"),0===e?0:e,t)}},i,!0)}});