微信公众号管理后台

11.f866ccac0ca8cf7d5456.js 52KB

1
  1. webpackJsonp([11,23],{"4twg":function(t,e){},NR2r:function(t,e){},Tcll:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={components:{editDetail:i("qDNy").default},data:function(){return{infoList:[],loading:!1,page:1,page_size:20,total:0,teamId:"",detailFlag:!1,loadingReply:!1,detail_id:"",isAdd:!1}},created:function(){this.teamId=JSON.parse(this.$cookieStore.getCookie("teamObj")).id,this.init(1)},methods:{delEvent:function(t){var e=this;this.$confirm("此操作将永久删除该配置, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$axios.get(e.URL.BASEURL+e.URL.menu_del,{params:{team_id:e.teamId,id:t}}).then(function(t){(t=t.data)&&0==t.errno?(e.$message({message:"删除成功",type:"warning"}),e.init(1)):e.$message({message:t.err,type:"warning"})}).catch(function(t){})}).catch(function(){})},listUpdate:function(t){t?(this.detailFlag=!1,this.init(this.page)):this.detailFlag=!1},addPz:function(){this.isAdd=!0,this.detailFlag=!0,this.detail_id=""},editEvent:function(t){this.isAdd=!1,this.detail_id=t,this.detailFlag=!0},init:function(t){var e=this;this.page=t||this.page,this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.menu_getConfig,{params:{page:this.page,page_size:this.page_size,team_id:this.teamId}}).then(function(t){e.loading=!1,(t=t.data)&&0==t.errno?(e.infoList=t.rst.data,e.total=t.rst.pageInfo.total,e.page_size=Number(t.rst.pageInfo.size)):e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},handleCurrentChange:function(t){this.init(t)}}},n={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"mainBorder"},[s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.addPz}},[t._v("添加配置")]),t._v(" "),s("el-table",{staticStyle:{width:"100%","margin-top":"15px"},attrs:{border:"",data:t.infoList}},[s("template",{slot:"empty"},[s("img",{staticClass:"pic",attrs:{src:i("z3Om"),alt:""}}),t._v(" "),s("span",[t._v("暂无数据")])]),t._v(" "),s("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"配置名称",prop:"title"}}),t._v(" "),s("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"更新时间",prop:"updated_at"}}),t._v(" "),s("el-table-column",{attrs:{align:"center",label:"操作",prop:"desc"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("span",{staticClass:"done",on:{click:function(i){return t.editEvent(e.row.id)}}},[t._v("编辑")]),t._v(" "),s("span",{staticClass:"done",on:{click:function(i){return t.delEvent(e.row.id)}}},[t._v("删除")])]}}])})],2),t._v(" "),t.infoList.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(" "),s("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.loadingReply,expression:"loadingReply"}],attrs:{title:"编辑",visible:t.detailFlag,width:"1100px",top:"60px"},on:{"update:visible":function(e){t.detailFlag=e}}},[t.detailFlag?s("edit-detail",{attrs:{detail_id:t.detail_id,isAddPz:t.isAdd,source_page:"team_configure"},on:{listUpdate:t.listUpdate}}):t._e()],1)],1)},staticRenderFns:[]};var a=i("VU/8")(s,n,!1,function(t){i("WbeV")},"data-v-35b23d81",null);e.default=a.exports},WbeV:function(t,e){},qDNy:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("mvHQ"),n=i.n(s),a=i("fZjL"),u=i.n(a),d=i("JQvz"),o=(i("ijT7"),{inject:["reload"],props:["detail_id","source_page","isAddPz"],data:function(){return{loadingImage:!1,type:2,artList:[],aindex:0,loading1:!1,subIndex:0,editSub:!1,subHeight:"",activeTag:"",showAddMater:!1,href:"",hrefName:"",page:1,page_size:20,uploadList:[],showList:[],keyword:"",showUpload:!1,listArr:[],total:1,checkList:[],fileType:"",addHref:!1,textConent:"",faceList:[],faceShow:!1,getBrowString:"",content:[],isNone:!1,menuList:[],index:"",activeTab:1,teamId:"",pzTitle:"",pzListFlag:!1,pzList:[],pzListLoading:!1,xz_pz_flag:!1}},components:{uploadFile:d.a},created:function(){this.teamId=JSON.parse(this.$cookieStore.getCookie("teamObj")).id,this.isAddPz&&"team_configure"==this.source_page||(this.get_pzList(),this.init())},methods:{xz_pz:function(t){this.xz_pz_flag=!0,this.init(t)},get_pzList:function(){var t=this;this.pzListLoading=!0,this.$axios.get(this.URL.BASEURL+this.URL.menu_getConfig,{params:{page:1,page_size:999,team_id:this.teamId}}).then(function(e){t.pzListLoading=!1,(e=e.data)&&0==e.errno&&(t.pzList=e.rst.data)}).catch(function(e){t.pzListLoading=!1})},changeMedia:function(t){this.listArr.map(function(t,e){t.isCheck=!1}),this.$set(this.checkList,0,t.id)},change:function(t){this.listArr.map(function(t,e){t.isCheck=!1}),this.$set(this.checkList,0,t.media_id)},changeMenu:function(t){"click"==t||"media_id"==t||"view_limited"==t||"news"==t?5==this.activeTab?this.menuList[this.index].type="view_limited":2==this.activeTab?this.menuList[this.index].type="click":this.menuList[this.index].type="media_id":this.menuList[this.index].type=t},changeType:function(t){var e="";e="click"==t||"media_id"==t||"view_limited"==t||"news"==t?5==this.activeTab?"view_limited":2==this.activeTab?"click":"media_id":t;var i=this.menuList[this.index];i.sub_button[this.subIndex].type=e,this.$set(this.menuList,this.index,i)},syncInfo:function(){var t;this.editSub?((t=this.menuList[this.index].sub_button[this.subIndex]).type="news",delete t.media_id,this.$set(this.menuList[this.index].sub_button,this.subIndex,t)):((t=this.menuList[this.index]).type="news",delete t.media_id,this.$set(this.menuList,this.index,t))},addArt:function(){if(this.editSub){if("view_limited"!=this.menuList[this.index].sub_button[this.subIndex].type){t=this.menuList[this.index].sub_button[this.subIndex];this.artList=[{title:"",url:"",picurl:"",description:""}],t.artList={title:"",url:"",picurl:"",description:""},this.subIndex=this.artList.length-1}this.showUpload=!1,0==this.artList.length&&this.artList.push({title:"",url:"",picurl:"",description:""})}else{if("view_limited"!=this.menuList[this.index].type){var t=this.menuList[this.index];this.artList=[{title:"",url:"",picurl:"",description:""}],t.artList={title:"",url:"",picurl:"",description:""},this.aIndex=this.artList.length-1}this.showUpload=!1,0==this.artList.length&&this.artList.push({title:"",url:"",picurl:"",description:""})}},initWx:function(t){var e=this;t&&(this.loadingEdit=!0,this.$axios.post(this.URL.BASEURL+this.URL.detail,{media_id:t}).then(function(t){if(e.loadingEdit=!1,(t=t.data)&&0==t.errno){var i,s=t.rst.data.news_item[0];if(e.editSub)(i=e.menuList[e.index].sub_button[e.subIndex]).picurl=s.thumb_url,i.title=s.title,i.url=s.content_source_url,i.description=s.digest,e.$set(e.menuList[e.index].sub_button,e.subIndex,i);else(i=e.menuList[e.index]).picurl=s.thumb_url,i.title=s.title,i.description=s.digest,"view_limited"==i.type?i.linkUrl=s.content_source_url:i.url=s.content_source_url,e.$set(e.menuList,e.index,i)}else e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loadingEdit=!1}))},initNews:function(t){var e=this;this.showUpload=!0,this.listArr=[],this.page=t,this.loadingImage=!0,this.$axios.get(this.URL.BASEURL+this.URL.newsList,{params:{keyword:this.name,page:t,page_size:20}}).then(function(t){if(e.loadingImage=!1,(t=t.data)&&0==t.errno){e.listArr=t.rst.data,e.total=t.rst.pageInfo.total;var i=[];e.listArr.forEach(function(t){t.media_id&&i.push(t)}),e.listArr=i}else e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loadingImage=!1})},changeMain:function(t){this.isNone=!0,this.index=t,this.editSub=!1,"click"==this.menuList[this.index].type?this.activeTab=2:"media_id"==this.menuList[this.index].type?(this.activeTab=1,this.getLink(this.menuList[this.index],this.index,1)):(this.activeTab=5,"view_limited"==this.menuList[this.index].type?this.initWx(this.menuList[this.index].media_id):this.getLink(this.menuList[this.index],this.index,1))},changeSec:function(t){this.addSunBtn(t),"click"==this.menuList[this.index].sub_button[this.subIndex].type?this.activeTab=2:"media_id"==this.menuList[this.index].sub_button[this.subIndex].type?(this.activeTab=1,this.getLink(this.menuList[this.index].sub_button[this.subIndex],this.index,2)):(this.activeTab=5,"view_limited"==this.menuList[this.index].sub_button[this.subIndex].type?this.initWx(this.menuList[this.index].sub_button[this.subIndex].media_id,2):this.getLink(this.menuList[this.index].sub_button[this.subIndex],this.index,2))},changeInput:function(t){this.menuList[this.index]=t},addSunBtn:function(t){this.subIndex=t,this.editSub=!0},addSub:function(){var t=this.menuList[this.index];-1==u()(this.menuList[this.index]).indexOf("sub_button")&&(t.sub_button=[]),t.sub_button.push({name:"子菜单",type:"media_id"}),this.subHeight=-48*(this.menuList[this.index].sub_button.length+1)+"px",this.$set(this.menuList,this.index,t)},deleteSub:function(){var t=this.menuList[this.index].sub_button;t=t.splice(this.subIndex,1),this.$set(this.menuList[this.index].sub_button,t),0==this.menuList[this.index].sub_button.length&&delete this.menuList[this.index].sub_button,this.editSub=!1,this.index=0,this.edit()},deleteBtn:function(t){2==t&&this.menuList[this.index].sub_button.length>1?(this.menuList[this.index].sub_button.splice(this.subIndex,1),this.isNone=!1,this.editSub=!1,this.index=0,"team_configure"==this.source_page||this.edit()):(this.menuList.splice(this.index,1),this.isNone=!1,this.editSub=!1,this.index=0,"team_configure"==this.source_page||this.edit())},uploadSave:function(t){this.showList.push(t),this.showAddMater=!1;var e,i=1==this.activeTab?"oss_url":3==this.activeTab?"audio_url":"video_url";this.editSub?((e=this.menuList[this.index].sub_button[this.subIndex])[i]=t.oss_url,1!=this.activeTab&&delete e.oss_url,this.toUpdata(t.id),this.$set(this.menuList[this.index].sub_button,this.subIndex,e)):((e=this.menuList[this.index])[i]=t.oss_url,1!=this.activeTab&&delete e.oss_url,this.toUpdata(t.id),this.$set(this.menuList,this.index,e))},toUpdata:function(t){var e=this;this.loading1=!0,this.$axios.post(this.URL.BASEURL+this.URL.mediaSync_add,{id:t}).then(function(t){t=t.data;e.loading1=!1,t&&0==t.errno?(e.$message({message:"同步成功",type:"success"}),e.editSub?e.menuList[e.index].sub_button[e.subIndex].media_id=t.rst.data.media_id:e.menuList[e.index].media_id=t.rst.data.media_id):e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading1=!1})},createHref:function(){if(!this.hrefName)return this.$message({message:"请填写文字内容",type:"error"}),!1;if(!this.href)return this.$message({message:"请填写链接内容",type:"error"}),!1;var t='<a href="'+this.href+'">'+this.hrefName+"</a>";this.editSub?this.menuList[this.index].sub_button[this.subIndex].key+=t:this.menuList[this.index].key+=t,this.addHref=!1},init:function(t){var e=this;this.loading1=!0;var i=this.URL.menuInfo,s={};("team_configure"==this.source_page||t)&&(i=this.URL.menu_detail,s={team_id:this.teamId,id:t||this.detail_id}),this.$axios.get(this.URL.BASEURL+i,{params:s}).then(function(t){if(e.loading1=!1,(t=t.data)&&0==t.errno){"team_configure"==e.source_page||e.xz_pz_flag?(e.pzTitle=t.rst.title,e.menuList=t.rst.menu_info.button):e.menuList=t.rst.data.selfmenu_info.button,e.pzListFlag=!1;var i=[];e.menuList.forEach(function(t,s){i.push(t);var n=t;"view_limited"==t.type?(t.linkUrl=n.url,delete n.url,e.$set(e.menuList,s,n)):"click"==t.type&&(t.type="keyword"),t.sub_button&&t.sub_button.list&&(t.sub_button.list.forEach(function(t){"click"==t.type&&(t.type="keyword"),"miniprogram"==t.type&&delete t.url}),i[i.length-1].sub_button=t.sub_button.list)})}else e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},addInfo:function(){this.menuList.push({name:"菜单",type:"media_id"}),this.index=this.menuList.length-1,this.menuList[this.index].sub_button?this.isNone=!0:this.editSub=!1},edit:function(t){var e=this,i=[];JSON.parse(n()(this.menuList)).forEach(function(t,s){if(e.menuList[e.index]){e.index==s&&(1==e.activeTab||3==e.activeTab||4==e.activeTab)&&e.showList.length>0&&e.showList[0].oss_url&&(t.type="media_id",delete t.url,delete t.value,delete t.key);var n={};if("click"==t.type)delete t.oss_url,delete t.title,delete t.description;else if("view_limited"==t.type)(n=t).url=t.linkUrl,delete n.linkUrl,t=n;else if("news"==t.type){n.name=t.name,n.type="news",n.news_info={},n.news_info.list=[];var a={};a.title=t.title,a.show_cover=1,a.cover_url=t.picurl,a.source_url=t.linkUrl,a.digest=t.description,n.news_info.list.push(a),t=n}t.sub_button?(delete t.key,delete t.type):t.sub_button||t.type||t.key||t.url,"keyword"==t.type&&(t.type="click"),t.sub_button&&t.sub_button.length>0&&t.sub_button.forEach(function(i,s){var n={};if("click"==i.type)n.name=i.name,n.type=i.type,n.key=i.key,delete i.title,delete i.description,delete i.picurl,i=n;else if("media_id"==i.type)i.key&&delete i.key;else if("news"==i.type){n.name=i.name,n.type="news",n.news_info={},n.news_info.list=[];var a={};a.title=i.title,a.show_cover=1,a.cover_url=i.picurl,a.source_url=i.linkUrl,a.digest=i.description,n.news_info.list.push(a),i=n,e.$set(t.sub_button,s,i)}else"keyword"==i.type&&(i.type="click",i.url&&delete i.url)})}i.push(t)});var s=this.URL.menuEdit,a={menu_info:n()({button:i})};if("team_configure"==this.source_page){if(""==this.pzTitle||!this.pzTitle)return void this.$message({message:"请输入配置名称",type:"warning"});if(!i||i&&0==i.length)return void this.$message({message:"您未做任何配置,请进行配置",type:"warning"});s=this.URL.menu_setConfig,a={team_id:this.teamId,id:this.detail_id,menu_info:n()({button:i}),title:this.pzTitle}}this.loading1=!0,this.$axios.post(this.URL.BASEURL+s,a).then(function(t){e.loading1=!1,0==(t=t.data).errno?(e.xz_pz_flag=!1,e.$message({message:"发布成功",type:"success"}),"team_configure"==e.source_page?e.$emit("listUpdate",!0):e.reload()):(e.$message({message:t.err,type:"warning"}),"team_configure"!=e.source_page&&e.reload())}).catch(function(t){e.loading1=!1,e.loadingCanvas=!1})},getMater:function(t){var e=this;this.showUpload=!0,this.listArr=[],this.page=t,this.loadingImage=!0,this.$axios.get(this.URL.BASEURL+this.URL.materialList,{params:{appId:this.appId,type:1==this.activeTab||5==this.activeTab?"image":3==this.activeTab?"voice":"video",page:this.page,page_size:this.page_size}}).then(function(t){if(e.loadingImage=!1,(t=t.data)&&0==t.errno){e.listArr=t.rst.data;var i=[];3!=e.activeTab&&4!=e.activeTab||1==e.type?i=e.listArr:e.listArr.forEach(function(t){t.media_id&&i.push(t)}),e.listArr=i,e.total=t.rst.pageInfo.count,e.page_size=Number(t.rst.pageInfo.page_size)}else e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loadingImage=!1})},getLink:function(t,e,i){var s=this;t.media_id&&this.$axios.post(this.URL.BASEURL+this.URL.link,{media_id:t.media_id}).then(function(t){if((t=t.data)&&0==t.errno){if(t.rst.data)if(1==i){if(-1!=t.rst.data.indexOf("mp3")||-1!=t.rst.data.indexOf("amr"))s.activeTab=3,(e=s.menuList[s.index]).audio_url=t.rst.data,s.$set(s.menuList,s.index,e);else if(-1!=t.rst.data.indexOf("png")||-1!=t.rst.data.indexOf("jpeg")||-1!=t.rst.data.indexOf("jpg")||-1!=t.rst.data.indexOf("gif")){s.activeTab=1,(e=s.menuList[s.index]).oss_url=t.rst.data,s.$set(s.menuList,s.index,e)}else{s.activeTab=4,(e=s.menuList[s.index]).video_url=t.rst.data,s.$set(s.menuList,s.index,e)}}else{if(-1!=t.rst.data.indexOf("mp3")||-1!=t.rst.data.indexOf("amr"))s.activeTab=3,(e=s.menuList[s.index].sub_button[s.subIndex]).audio_url=t.rst.data;else if(-1!=t.rst.data.indexOf("png")||-1!=t.rst.data.indexOf("jpeg")||-1!=t.rst.data.indexOf("jpg")||-1!=t.rst.data.indexOf("gif")){s.activeTab=1,(e=s.menuList[s.index].sub_button[s.subIndex]).oss_url=t.rst.data}else{var e;s.activeTab=4,(e=s.menuList[s.index].sub_button[s.subIndex]).video_url=t.rst.data}s.$set(s.menuList[s.index].sub_button,s.subIndex,e)}}else s.$message({message:t.err,type:"warning"})}).catch(function(t){})},addIng:function(){var t=this;this.editSub?this.listArr.forEach(function(e,i){(-1!=t.checkList.indexOf(e.id)||5==t.activeTab&&-1!=t.checkList.indexOf(e.media_id))&&(1!=t.type?(t.showList.push(e),t.menuList[t.index].sub_button[t.subIndex].media_id=e.media_id,1==t.activeTab?(delete t.menuList[t.index].sub_button[t.subIndex].audio_url,delete t.menuList[t.index].sub_button[t.subIndex].video_url,t.menuList[t.index].sub_button[t.subIndex].oss_url=e.oss_url,e.media_id||t.toUpdata(e.id)):3==t.activeTab?(delete t.menuList[t.index].sub_button[t.subIndex].oss_url,delete t.menuList[t.index].sub_button[t.subIndex].video_url,t.menuList[t.index].sub_button[t.subIndex].audio_url=e.oss_url,t.menuList[t.index].sub_button[t.subIndex].title=e.title):4==t.activeTab?(delete t.menuList[t.index].sub_button[t.subIndex].audio_url,delete t.menuList[t.index].sub_button[t.subIndex].oss_url,delete t.menuList[t.index].sub_button[t.subIndex].picurl,t.menuList[t.index].sub_button[t.subIndex].video_url=e.oss_url,t.menuList[t.index].sub_button[t.subIndex].title=e.title):(t.menuList[t.index].sub_button[t.subIndex].picurl=e.article[0].thumb_url,t.menuList[t.index].sub_button[t.subIndex].title=e.article[0].title,t.menuList[t.index].sub_button[t.subIndex].description=e.article[0].digest,t.menuList[t.index].sub_button[t.subIndex].linkUrl=e.article[0].content_source_url)):(t.menuList[t.index].sub_button[t.subIndex].type="news",t.menuList[t.index].sub_button[t.subIndex].picurl=e.oss_url))}):this.listArr.forEach(function(e,i){(-1!=t.checkList.indexOf(e.id)||-1!=t.checkList.indexOf(e.media_id)&&5==t.activeTab)&&(t.showList.push(e),t.menuList[t.index].media_id=e.media_id,1!=t.type?1==t.activeTab?(t.menuList[t.index].oss_url=e.oss_url,e.media_id||t.toUpdata(e.id)):3==t.activeTab?(t.menuList[t.index].audio_url=e.oss_url,t.menuList[t.index].title=e.title):4==t.activeTab?(t.menuList[t.index].video_url=e.oss_url,t.menuList[t.index].title=e.title):(t.menuList[t.index].picurl=e.article[0].thumb_url,t.menuList[t.index].title=e.article[0].title,t.menuList[t.index].linkUrl=e.article[0].content_source_url,t.menuList[t.index].description=e.article[0].digest):(t.menuList[t.index].type="news",t.menuList[t.index].picurl=e.oss_url))}),this.showUpload=!1},faceContent:function(){if(this.faceShow=!this.faceShow,1==this.faceShow)for(var t in window.emjor)this.faceList.push(window.emjor[t]);else this.faceList=[]},getBrow:function(t,e){for(var i in this.faceList)t==i&&(this.getBrowString=this.faceList[t],this.textConent+=this.getBrowString,e||0===e?this.menuList[this.index].sub_button[e].key+=this.getBrowString:this.menuList[this.index].key+=this.getBrowString);this.faceShow=!1},referContent:function(){if(""==this.textConent)return alert("请输入内容");this.content.push(this.textConent),this.textConent="",this.faceShow=!1},handleCurrentChange:function(t){5!=this.activeTab?this.getMater(t):this.initNews(t)}},watch:{checkList:function(){if(this.checkList.length>1){var t=this.checkList[this.checkList.length-1];this.checkList=[],this.checkList.push(t)}},activeTab:function(t){this.listArr=[],this.showAddMater=!1,1!=t&&3!=t&&4!=t||(this.showList=[],this.total=1)}}}),l={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading1,expression:"loading1"}],staticClass:"menuEdit",attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[s("div",{staticStyle:{"overflow-y":"scroll",height:"100%"}},["team_configure"!=t.source_page?s("el-button",{staticStyle:{margin:"40px 0 20px"},attrs:{type:"primary"},on:{click:function(e){t.pzListFlag=!0}}},[t._v("从配置列表中选择")]):t._e(),t._v(" "),"team_configure"==t.source_page?s("div",{staticClass:"inputItem",staticStyle:{display:"flex","margin-bottom":"20px"}},[s("label",[t._v("配置名称:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.pzTitle,expression:"pzTitle"}],attrs:{type:"text",autocomplete:"off",placeholder:"请输入配置名称"},domProps:{value:t.pzTitle},on:{input:function(e){e.target.composing||(t.pzTitle=e.target.value)}}})]):t._e(),t._v(" "),s("div",[s("div",{staticClass:"editBox"},[s("div",{staticClass:"topMenu"}),t._v(" "),s("div",{staticClass:"bottomMenu"},[s("ul",{staticClass:"menu_list"},[t._l(t.menuList,function(e,i){return s("li",{on:{click:function(e){return t.changeMain(i)}}},[s("span",{staticClass:"name"},[t._v(t._s(e.name))]),t._v(" "),""!==t.index&&t.index==i?s("div",{staticClass:"subItem",on:{click:function(e){return e.stopPropagation(),t.addSub.apply(null,arguments)}}},[t._v("\n +\n ")]):t._e(),t._v(" "),t.menuList[t.index]&&t.menuList[t.index].sub_button&&t.index==i?s("div",{staticClass:"addList"},t._l(t.menuList[t.index].sub_button,function(e,i){return s("div",{staticClass:"subItem addItem",style:{top:48*-(i+2)+"px"},on:{click:function(e){return e.stopPropagation(),t.changeSec(i)}}},[s("span",{staticClass:"name"},[t._v(t._s(e.name))])])}),0):t._e()])}),t._v(" "),t.menuList.length<3?s("li",{on:{click:function(e){return t.addInfo()}}},[t._v("+")]):t._e()],2)]),t._v(" "),s("div",{staticClass:"button"},[s("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.edit}},[t._v(t._s("team_configure"==t.source_page?"保存":"保存并发布"))]),t._v(" "),"team_configure"==t.source_page?s("el-button",{attrs:{size:"small"},on:{click:function(e){return t.$emit("listUpdate",!1)}}},[t._v("取消")]):t._e()],1)]),t._v(" "),t.isNone?t._e():s("div",{staticClass:"notice"},[t._v("\n 点击左侧菜单进行编辑操作\n ")]),t._v(" "),t.isNone&&!t.editSub?s("div",{staticClass:"notice",staticStyle:{"padding-top":"10px"}},[s("div",{staticClass:"editTop"},[s("div",{staticClass:"wxName"},[t._v(t._s(t.menuList[t.index].name))]),t._v(" "),s("button",{on:{click:t.deleteBtn}},[t._v("删除菜单")])]),t._v(" "),s("div",{staticClass:"detailMain"},[t.menuList[t.index].sub_button&&t.menuList[t.index].sub_button.length>0?s("p",{staticStyle:{padding:"20px","text-align":"left"}},[t._v("已添加子菜单,仅可以设置菜单名称")]):t._e(),t._v(" "),s("div",{staticClass:"mainInfo"},[s("label",[t._v("菜单名称:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].name,expression:"menuList[index]['name']"}],attrs:{type:"text"},domProps:{value:t.menuList[t.index].name},on:{input:function(e){e.target.composing||t.$set(t.menuList[t.index],"name",e.target.value)}}})]),t._v(" "),t.menuList[t.index].sub_button&&0!=t.menuList[t.index].sub_button.length?t._e():s("div",[s("div",{staticClass:"radioBox"},[s("label",[t._v("菜单内容:")]),t._v(" "),"click"==t.menuList[t.index].type?s("el-radio",{attrs:{label:"click"},on:{change:function(e){return t.changeMenu("click")}},model:{value:t.menuList[t.index].type,callback:function(e){t.$set(t.menuList[t.index],"type",e)},expression:"menuList[index]['type']"}},[t._v("发送消息")]):t._e(),t._v(" "),"media_id"==t.menuList[t.index].type||"view_limited"!=t.menuList[t.index].type&&"news"!=t.menuList[t.index].type&&"click"!=t.menuList[t.index].type?s("el-radio",{attrs:{label:"media_id"},on:{change:function(e){return t.changeMenu("media_id")}},model:{value:t.menuList[t.index].type,callback:function(e){t.$set(t.menuList[t.index],"type",e)},expression:"menuList[index]['type']"}},[t._v("发送消息")]):t._e(),t._v(" "),"news"==t.menuList[t.index].type?s("el-radio",{attrs:{label:"news"},on:{change:function(e){return t.changeMenu("news")}},model:{value:t.menuList[t.index].type,callback:function(e){t.$set(t.menuList[t.index],"type",e)},expression:"menuList[index]['type']"}},[t._v("发送消息")]):t._e(),t._v(" "),"view_limited"==t.menuList[t.index].type?s("el-radio",{attrs:{label:"view_limited"},on:{change:function(e){return t.changeMenu("view_limited")}},model:{value:t.menuList[t.index].type,callback:function(e){t.$set(t.menuList[t.index],"type",e)},expression:"menuList[index]['type']"}},[t._v("发送消息")]):t._e(),t._v(" "),s("el-radio",{attrs:{label:"view"},on:{change:function(e){return t.changeMenu("view")}},model:{value:t.menuList[t.index].type,callback:function(e){t.$set(t.menuList[t.index],"type",e)},expression:"menuList[index]['type']"}},[t._v("跳转网页")]),t._v(" "),s("el-radio",{attrs:{label:"miniprogram"},on:{change:function(e){return t.changeMenu("miniprogram")}},model:{value:t.menuList[t.index].type,callback:function(e){t.$set(t.menuList[t.index],"type",e)},expression:"menuList[index]['type']"}},[t._v("跳转小程序")]),t._v(" "),s("el-radio",{attrs:{label:"keyword"},on:{change:function(e){return t.changeMenu("keyword")}},model:{value:t.menuList[t.index].type,callback:function(e){t.$set(t.menuList[t.index],"type",e)},expression:"menuList[index]['type']"}},[t._v("触发关键词")])],1),t._v(" "),"click"==t.menuList[t.index].type||"media_id"==t.menuList[t.index].type||"view_limited"==t.menuList[t.index].type||"news"==t.menuList[t.index].type?s("div",{staticClass:"sendBox"},[s("ul",{staticClass:"tabList"},[s("li",{class:1==t.activeTab?"activeTab":"",on:{click:function(e){t.activeTab=1,t.menuList[t.index].type="media_id"}}},[t._v("图片")]),t._v(" "),s("li",{class:3==t.activeTab?"activeTab":"",on:{click:function(e){t.activeTab=3,t.menuList[t.index].type="media_id"}}},[t._v("语音")]),t._v(" "),s("li",{class:4==t.activeTab?"activeTab":"",on:{click:function(e){t.activeTab=4,t.menuList[t.index].type="media_id"}}},[t._v("视频")]),t._v(" "),s("li",{class:5==t.activeTab?"activeTab":"",on:{click:function(e){t.activeTab=5,t.menuList[t.index].type="view_limited",t.addArt()}}},[t._v("图文链接\n "),s("el-tooltip",{attrs:{effect:"dark",content:"图文链接暂时不支持手动编辑,请从历史图文里导入"}},[s("el-button",{staticClass:"notice1",attrs:{icon:"el-icon-warning"}})],1)],1)]),t._v(" "),1==t.activeTab&&!t.menuList[t.index].oss_url||3==t.activeTab&&!t.menuList[t.index].audio_url||4==t.activeTab&&!t.menuList[t.index].video_url?s("div",{staticClass:"box"},[s("div",{staticClass:"uploadBox",on:{click:function(e){return t.getMater(1)}}},[s("div",{staticClass:"add"},[t._v("+")]),t._v(" "),s("p",[t._v("从素材库选择")])]),t._v(" "),s("div",{staticClass:"uploadBox",on:{click:function(e){t.showAddMater=!0,1==t.activeTab?t.activeTag="image":3==t.activeTab?t.activeTag="voice":t.activeTag="video"}}},[s("div",{staticClass:"add"},[t._v("+")]),t._v(" "),s("p",[t._v("新建素材")])])]):t._e(),t._v(" "),1==t.activeTab&&t.menuList[t.index].oss_url||3==t.activeTab&&t.menuList[t.index].audio_url||4==t.activeTab&&t.menuList[t.index].video_url?s("div",{staticClass:"box"},[s("div",{staticClass:"uploadBox hasUpload"},[s("div",{staticClass:"wxList",staticStyle:{display:"block"}},[1==t.activeTab?s("img",{staticClass:"icon",attrs:{src:t.menuList[t.index].oss_url,alt:""}}):t._e(),t._v(" "),3==t.activeTab?s("img",{staticClass:"icon",attrs:{src:i("u6Hf"),alt:""}}):t._e(),t._v(" "),4==t.activeTab?s("img",{staticClass:"icon",attrs:{src:i("+vEQ"),alt:""}}):t._e(),t._v(" "),s("div",{staticClass:"btmInfo"},[t._v(t._s(t.menuList[t.index].title))])])])]):t._e(),t._v(" "),2==t.activeTab?s("div",{staticClass:"box"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].key,expression:"menuList[index]['key']"}],attrs:{placeholder:"请输入文字..."},domProps:{value:t.menuList[t.index].key},on:{input:function(e){e.target.composing||t.$set(t.menuList[t.index],"key",e.target.value)}}}),t._v(" "),s("button",{staticClass:"faceBut",on:{click:t.faceContent}},[t._v("表情")]),t._v(" "),s("button",{staticClass:"faceBut",staticStyle:{left:"60px"},on:{click:function(e){t.addHref=!0}}},[s("img",{staticClass:"lian",attrs:{src:i("fYig"),alt:""}}),t._v("\n 添加文字链接\n ")]),t._v(" "),t.faceShow?s("div",{staticClass:"browBox"},[s("ul",t._l(t.faceList,function(e,i){return s("li",{key:i,on:{click:function(e){return t.getBrow(i)}}},[t._v(t._s(e))])}),0)]):t._e()]):t._e(),t._v(" "),5==t.activeTab?s("div",{staticClass:"sendText"},[s("div",{staticClass:"box news"},[s("label",[t._v("导入:")]),t._v(" "),s("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.initNews(1)}}},[t._v("历史图文消息")]),t._v(" "),s("div",{staticStyle:{"margin-top":"10px"}},[s("div",{staticClass:"showLeft"},[s("div",{staticClass:"leftBox"},[s("h3",[t._v(t._s(t.menuList.length>0?t.menuList[t.index].title:""))]),t._v(" "),s("div",{staticClass:"twoTitle"},[t._v(t._s(t.menuList.length>0?t.menuList[t.index].description:""))]),t._v(" "),t.menuList.length>0&&t.menuList[t.index].picurl?s("img",{staticClass:"small",attrs:{src:t.menuList[t.index].picurl,alt:""}}):t._e(),t._v(" "),t._m(0)])]),t._v(" "),s("div",{staticClass:"showRight"},[s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName"}},[t._v("标题:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].title,expression:"menuList[index].title"}],staticStyle:{cursor:"not-allowed"},attrs:{type:"text",id:"titleName",readonly:"",autocomplete:"off",placeholder:"请输入标题"},domProps:{value:t.menuList[t.index].title},on:{input:[function(e){e.target.composing||t.$set(t.menuList[t.index],"title",e.target.value)},t.syncInfo]}})]),t._v(" "),s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName1"}},[t._v("链接:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].linkUrl,expression:"menuList[index].linkUrl"}],staticStyle:{cursor:"not-allowed"},attrs:{type:"text",id:"titleName1",readonly:"",autocomplete:"off",placeholder:"请输入链接"},domProps:{value:t.menuList[t.index].linkUrl},on:{input:[function(e){e.target.composing||t.$set(t.menuList[t.index],"linkUrl",e.target.value)},t.syncInfo]}})]),t._v(" "),s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName2"}},[t._v("描述:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].description,expression:"menuList[index].description"}],staticStyle:{cursor:"not-allowed"},attrs:{type:"text",id:"titleName2",readonly:"",autocomplete:"off",placeholder:"请输入描述"},domProps:{value:t.menuList[t.index].description},on:{input:[function(e){e.target.composing||t.$set(t.menuList[t.index],"description",e.target.value)},t.syncInfo]}})]),t._v(" "),s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName"}},[t._v("封面:")]),t._v(" "),t.menuList[t.index].picurl?t._e():s("span",{staticStyle:{cursor:"not-allowed","line-height":"33px"}},[t._v("选择封面")]),t._v(" "),t.menuList[t.index].picurl?s("img",{staticClass:"icon",attrs:{src:t.menuList[t.index].picurl,alt:""}}):t._e()])])])],1)]):t._e()]):t._e(),t._v(" "),"view"==t.menuList[t.index].type?s("div",{staticClass:"sendBox"},[s("div",{staticClass:"toastMain"},[s("label",{attrs:{for:"titleName3"}},[t._v("页面地址:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].url,expression:"menuList[index]['url']"}],attrs:{type:"text",id:"titleName3",autocomplete:"off",placeholder:"请输入跳转链接..."},domProps:{value:t.menuList[t.index].url},on:{input:function(e){e.target.composing||t.$set(t.menuList[t.index],"url",e.target.value)}}})])]):t._e(),t._v(" "),"miniprogram"==t.menuList[t.index].type?s("div",{staticClass:"sendBox"},[s("div",{staticClass:"toastMain"},[s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName4"}},[t._v("APPID:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].appid,expression:"menuList[index]['appid']"}],attrs:{autocomplete:"off",type:"text",id:"titleName4",placeholder:"小程序的appid,要求小程序的appid需要与公众号有关联关系"},domProps:{value:t.menuList[t.index].appid},on:{input:function(e){e.target.composing||t.$set(t.menuList[t.index],"appid",e.target.value)}}})]),t._v(" "),s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName5"}},[t._v("页面路径:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].pagepath,expression:"menuList[index]['pagepath']"}],attrs:{autocomplete:"off",type:"text",id:"titleName5",placeholder:"小程序的页面路径,比如pages/index/index?foo=bar"},domProps:{value:t.menuList[t.index].pagepath},on:{input:function(e){e.target.composing||t.$set(t.menuList[t.index],"pagepath",e.target.value)}}})]),t._v(" "),s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName6"}},[t._v("备用网页:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].url,expression:"menuList[index]['url']"}],attrs:{autocomplete:"off",type:"text",id:"titleName6",placeholder:"请输入备用网页链接"},domProps:{value:t.menuList[t.index].url},on:{input:function(e){e.target.composing||t.$set(t.menuList[t.index],"url",e.target.value)}}})])])]):t._e(),t._v(" "),"keyword"==t.menuList[t.index].type?s("div",{staticClass:"sendBox"},[s("p",{staticStyle:{padding:"20px","text-align":"left"}},[t._v("订阅者点击该菜单,会触发以下关键词回复")]),t._v(" "),s("div",{staticClass:"mainInfo",staticStyle:{padding:"0 30px"}},[s("label",[t._v("触发关键词:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].key,expression:"menuList[index]['key']"}],attrs:{type:"text",placeholder:"请输入关键词"},domProps:{value:t.menuList[t.index].key},on:{input:function(e){e.target.composing||t.$set(t.menuList[t.index],"key",e.target.value)}}})])]):t._e()])])]):t._e(),t._v(" "),t.editSub?s("div",{staticClass:"notice",staticStyle:{"padding-top":"10px"}},[s("div",{staticClass:"editTop"},[s("div",{staticClass:"wxName"},[t._v(t._s(t.menuList[t.index].sub_button[t.subIndex].name))]),t._v(" "),s("button",{on:{click:function(e){return t.deleteBtn(2)}}},[t._v("删除菜单")])]),t._v(" "),s("div",{staticClass:"detailMain"},[s("div",{staticClass:"mainInfo"},[s("label",[t._v("菜单名称:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].sub_button[t.subIndex].name,expression:"menuList[index]['sub_button'][subIndex]['name']"}],attrs:{type:"text"},domProps:{value:t.menuList[t.index].sub_button[t.subIndex].name},on:{input:function(e){e.target.composing||t.$set(t.menuList[t.index].sub_button[t.subIndex],"name",e.target.value)}}})]),t._v(" "),s("div",{staticClass:"radioBox"},[s("label",[t._v("菜单内容:")]),t._v(" "),"click"==t.menuList[t.index].sub_button[t.subIndex].type?s("el-radio",{attrs:{label:"click"},on:{change:function(e){return t.changeType("click")}},model:{value:t.menuList[t.index].sub_button[t.subIndex].type,callback:function(e){t.$set(t.menuList[t.index].sub_button[t.subIndex],"type",e)},expression:"menuList[index]['sub_button'][subIndex]['type']"}},[t._v("发送消息")]):t._e(),t._v(" "),"view_limited"==t.menuList[t.index].sub_button[t.subIndex].type?s("el-radio",{attrs:{label:"view_limited"},on:{change:function(e){return t.changeType("view_limited")}},model:{value:t.menuList[t.index].sub_button[t.subIndex].type,callback:function(e){t.$set(t.menuList[t.index].sub_button[t.subIndex],"type",e)},expression:"menuList[index]['sub_button'][subIndex]['type']"}},[t._v("发送消息")]):t._e(),t._v(" "),"news"==t.menuList[t.index].sub_button[t.subIndex].type?s("el-radio",{attrs:{label:"news"},on:{change:function(e){return t.changeType("news")}},model:{value:t.menuList[t.index].sub_button[t.subIndex].type,callback:function(e){t.$set(t.menuList[t.index].sub_button[t.subIndex],"type",e)},expression:"menuList[index]['sub_button'][subIndex]['type']"}},[t._v("发送消息")]):t._e(),t._v(" "),"media_id"==t.menuList[t.index].sub_button[t.subIndex].type||"click"!=t.menuList[t.index].sub_button[t.subIndex].type&&"view_limited"!=t.menuList[t.index].sub_button[t.subIndex].type&&"news"!=t.menuList[t.index].sub_button[t.subIndex].type?s("el-radio",{attrs:{label:"media_id"},on:{change:function(e){return t.changeType("media_id")}},model:{value:t.menuList[t.index].sub_button[t.subIndex].type,callback:function(e){t.$set(t.menuList[t.index].sub_button[t.subIndex],"type",e)},expression:"menuList[index]['sub_button'][subIndex]['type']"}},[t._v("发送消息")]):t._e(),t._v(" "),s("el-radio",{attrs:{label:"view"},on:{change:function(e){return t.changeType("view")}},model:{value:t.menuList[t.index].sub_button[t.subIndex].type,callback:function(e){t.$set(t.menuList[t.index].sub_button[t.subIndex],"type",e)},expression:"menuList[index]['sub_button'][subIndex]['type']"}},[t._v("跳转网页")]),t._v(" "),s("el-radio",{attrs:{label:"miniprogram"},on:{change:function(e){return t.changeType("miniprogram")}},model:{value:t.menuList[t.index].sub_button[t.subIndex].type,callback:function(e){t.$set(t.menuList[t.index].sub_button[t.subIndex],"type",e)},expression:"menuList[index]['sub_button'][subIndex]['type']"}},[t._v("跳转小程序")]),t._v(" "),s("el-radio",{attrs:{label:"keyword"},on:{change:function(e){return t.changeType("keyword")}},model:{value:t.menuList[t.index].sub_button[t.subIndex].type,callback:function(e){t.$set(t.menuList[t.index].sub_button[t.subIndex],"type",e)},expression:"menuList[index]['sub_button'][subIndex]['type']"}},[t._v("触发关键词")])],1),t._v(" "),"click"==t.menuList[t.index].sub_button[t.subIndex].type||"media_id"==t.menuList[t.index].sub_button[t.subIndex].type||"view_limited"==t.menuList[t.index].sub_button[t.subIndex].type||"news"==t.menuList[t.index].sub_button[t.subIndex].type?s("div",{staticClass:"sendBox"},[s("ul",{staticClass:"tabList"},[s("li",{class:1==t.activeTab?"activeTab":"",on:{click:function(e){t.activeTab=1,t.menuList[t.index].sub_button[t.subIndex].type="media_id"}}},[t._v("图片")]),t._v(" "),s("li",{class:3==t.activeTab?"activeTab":"",on:{click:function(e){t.activeTab=3,t.menuList[t.index].sub_button[t.subIndex].type="media_id"}}},[t._v("语音")]),t._v(" "),s("li",{class:4==t.activeTab?"activeTab":"",on:{click:function(e){t.activeTab=4,t.menuList[t.index].sub_button[t.subIndex].type="media_id"}}},[t._v("视频")]),t._v(" "),s("li",{class:5==t.activeTab?"activeTab":"",on:{click:function(e){t.activeTab=5,t.menuList[t.index].sub_button[t.subIndex].type="view_limited",t.addArt()}}},[t._v("图文链接\n "),s("el-tooltip",{attrs:{effect:"dark",content:"图文链接暂时不支持手动编辑,请从历史图文里导入"}},[s("el-button",{staticClass:"notice1",attrs:{icon:"el-icon-warning"}})],1)],1)]),t._v(" "),1==t.activeTab&&!t.menuList[t.index].sub_button[t.subIndex].oss_url||3==t.activeTab&&!t.menuList[t.index].sub_button[t.subIndex].audio_url||4==t.activeTab&&!t.menuList[t.index].sub_button[t.subIndex].video_url?s("div",{staticClass:"box"},[s("div",{staticClass:"uploadBox",on:{click:function(e){return t.getMater(1)}}},[s("div",{staticClass:"add"},[t._v("+")]),t._v(" "),s("p",[t._v("从素材库选择")])]),t._v(" "),s("div",{staticClass:"uploadBox",on:{click:function(e){t.showAddMater=!0,1==t.activeTab?t.activeTag="image":3==t.activeTab?t.activeTag="voice":t.activeTag="video"}}},[s("div",{staticClass:"add"},[t._v("+")]),t._v(" "),s("p",[t._v("新建素材")])])]):t._e(),t._v(" "),1==t.activeTab&&t.menuList[t.index].sub_button[t.subIndex].oss_url||3==t.activeTab&&t.menuList[t.index].sub_button[t.subIndex].audio_url||4==t.activeTab&&t.menuList[t.index].sub_button[t.subIndex].video_url?s("div",{staticClass:"box"},[s("div",{staticClass:"uploadBox hasUpload"},[s("div",{staticClass:"wxList"},[1==t.activeTab?s("img",{staticClass:"icon",attrs:{src:t.menuList[t.index].sub_button[t.subIndex].oss_url,alt:""}}):t._e(),t._v(" "),3==t.activeTab?s("img",{staticClass:"icon",attrs:{src:i("u6Hf"),alt:""}}):t._e(),t._v(" "),4==t.activeTab?s("img",{staticClass:"icon",attrs:{src:i("+vEQ"),alt:""}}):t._e(),t._v(" "),s("div",{staticClass:"btmInfo"},[t._v(t._s(t.menuList[t.index].sub_button[t.subIndex].title))])])])]):t._e(),t._v(" "),2==t.activeTab?s("div",{staticClass:"box"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].sub_button[t.subIndex].key,expression:"menuList[index]['sub_button'][subIndex]['key']"}],attrs:{placeholder:"请输入文字..."},domProps:{value:t.menuList[t.index].sub_button[t.subIndex].key},on:{input:function(e){e.target.composing||t.$set(t.menuList[t.index].sub_button[t.subIndex],"key",e.target.value)}}}),t._v(" "),s("button",{staticClass:"faceBut",on:{click:function(e){return t.faceContent(t.subIndex)}}},[t._v("表情")]),t._v(" "),s("button",{staticClass:"faceBut",staticStyle:{left:"60px"},on:{click:function(e){t.addHref=!0}}},[s("img",{staticClass:"lian",attrs:{src:i("fYig"),alt:""}}),t._v("\n 添加文字链接\n ")]),t._v(" "),t.faceShow?s("div",{staticClass:"browBox"},[s("ul",t._l(t.faceList,function(e,i){return s("li",{key:i,on:{click:function(e){return t.getBrow(i,t.subIndex)}}},[t._v(t._s(e))])}),0)]):t._e()]):t._e(),t._v(" "),"news"==t.menuList[t.index].sub_button[t.subIndex].type||"view_limited"==t.menuList[t.index].sub_button[t.subIndex].type||5==t.activeTab?s("div",{staticClass:"sendText"},[s("div",{staticClass:"box news"},[s("label",[t._v("导入:")]),t._v(" "),s("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.initNews(1)}}},[t._v("历史图文消息")]),t._v(" "),s("div",{staticStyle:{"margin-top":"10px"}},[s("div",{staticClass:"showLeft"},[s("div",{staticClass:"leftBox"},[s("h3",[t._v(t._s(t.menuList[t.index].sub_button[t.subIndex].title))]),t._v(" "),s("div",{staticClass:"twoTitle"},[t._v(t._s(t.menuList[t.index].sub_button[t.subIndex].description))]),t._v(" "),t.menuList[t.index].sub_button[t.subIndex].picurl?s("img",{staticClass:"small",attrs:{src:t.menuList[t.index].sub_button[t.subIndex].picurl,alt:""}}):t._e(),t._v(" "),t._m(1)])]),t._v(" "),s("div",{staticClass:"showRight"},[s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName1"}},[t._v("标题:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].sub_button[t.subIndex].title,expression:"menuList[index]['sub_button'][subIndex].title"}],staticStyle:{cursor:"not-allowed"},attrs:{type:"text",id:"titleName1",readonly:"",autocomplete:"off",placeholder:"请输入标题"},domProps:{value:t.menuList[t.index].sub_button[t.subIndex].title},on:{input:[function(e){e.target.composing||t.$set(t.menuList[t.index].sub_button[t.subIndex],"title",e.target.value)},t.syncInfo]}})]),t._v(" "),s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName2"}},[t._v("链接:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].sub_button[t.subIndex].url,expression:"menuList[index]['sub_button'][subIndex].url"}],staticStyle:{cursor:"not-allowed"},attrs:{type:"text",id:"titleName2",readonly:"",autocomplete:"off",placeholder:"请输入链接"},domProps:{value:t.menuList[t.index].sub_button[t.subIndex].url},on:{input:[function(e){e.target.composing||t.$set(t.menuList[t.index].sub_button[t.subIndex],"url",e.target.value)},t.syncInfo]}})]),t._v(" "),s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName3"}},[t._v("描述:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].sub_button[t.subIndex].description,expression:"menuList[index]['sub_button'][subIndex].description"}],staticStyle:{cursor:"not-allowed"},attrs:{type:"text",id:"titleName3",readonly:"",autocomplete:"off",placeholder:"请输入描述"},domProps:{value:t.menuList[t.index].sub_button[t.subIndex].description},on:{input:[function(e){e.target.composing||t.$set(t.menuList[t.index].sub_button[t.subIndex],"description",e.target.value)},t.syncInfo]}})]),t._v(" "),s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName"}},[t._v("封面:")]),t._v(" "),s("span",{staticStyle:{cursor:"not-allowed","line-height":"33px"}},[t._v("选择封面")]),t._v(" "),t.menuList[t.index].sub_button[t.subIndex].picurl?s("img",{staticClass:"icon",attrs:{src:t.menuList[t.index].sub_button[t.subIndex].picurl,alt:""}}):t._e()])])])],1)]):t._e()]):t._e(),t._v(" "),"view"==t.menuList[t.index].sub_button[t.subIndex].type?s("div",{staticClass:"sendBox"},[s("div",{staticClass:"toastMain"},[s("label",{attrs:{for:"titleName1"}},[t._v("页面地址:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].sub_button[t.subIndex].url,expression:"menuList[index]['sub_button'][subIndex]['url']"}],attrs:{type:"text",id:"titleName1",autocomplete:"off",placeholder:"请输入跳转链接..."},domProps:{value:t.menuList[t.index].sub_button[t.subIndex].url},on:{input:function(e){e.target.composing||t.$set(t.menuList[t.index].sub_button[t.subIndex],"url",e.target.value)}}})])]):t._e(),t._v(" "),"miniprogram"==t.menuList[t.index].sub_button[t.subIndex].type?s("div",{staticClass:"sendBox"},[s("div",{staticClass:"toastMain"},[s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName1"}},[t._v("APPID:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].sub_button[t.subIndex].appid,expression:"menuList[index]['sub_button'][subIndex]['appid']"}],attrs:{autocomplete:"off",type:"text",id:"titleName1",placeholder:"小程序的appid,要求小程序的appid需要与公众号有关联关系"},domProps:{value:t.menuList[t.index].sub_button[t.subIndex].appid},on:{input:function(e){e.target.composing||t.$set(t.menuList[t.index].sub_button[t.subIndex],"appid",e.target.value)}}})]),t._v(" "),s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName2"}},[t._v("页面路径:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].sub_button[t.subIndex].pagepath,expression:"menuList[index]['sub_button'][subIndex]['pagepath']"}],attrs:{autocomplete:"off",type:"text",id:"titleName2",placeholder:"小程序的页面路径,比如pages/index/index?foo=bar"},domProps:{value:t.menuList[t.index].sub_button[t.subIndex].pagepath},on:{input:function(e){e.target.composing||t.$set(t.menuList[t.index].sub_button[t.subIndex],"pagepath",e.target.value)}}})]),t._v(" "),s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName3"}},[t._v("备用网页:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].sub_button[t.subIndex].url,expression:"menuList[index]['sub_button'][subIndex]['url']"}],attrs:{autocomplete:"off",type:"text",id:"titleName3",placeholder:"请输入备用网页链接"},domProps:{value:t.menuList[t.index].sub_button[t.subIndex].url},on:{input:function(e){e.target.composing||t.$set(t.menuList[t.index].sub_button[t.subIndex],"url",e.target.value)}}})])])]):t._e(),t._v(" "),"keyword"==t.menuList[t.index].sub_button[t.subIndex].type?s("div",{staticClass:"sendBox"},[s("p",{staticStyle:{padding:"20px","text-align":"left"}},[t._v("订阅者点击该菜单,会触发以下关键词回复")]),t._v(" "),s("div",{staticClass:"mainInfo",staticStyle:{padding:"0 30px"}},[s("label",[t._v("触发关键词:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.menuList[t.index].sub_button[t.subIndex].key,expression:"menuList[index]['sub_button'][subIndex]['key']"}],attrs:{type:"text",autocomplete:"off",placeholder:"请输入关键词"},domProps:{value:t.menuList[t.index].sub_button[t.subIndex].key},on:{input:function(e){e.target.composing||t.$set(t.menuList[t.index].sub_button[t.subIndex],"key",e.target.value)}}})])]):t._e()])]):t._e(),t._v(" "),s("my-dialog",{attrs:{visible:t.addHref,width:"20%",minWidth:"500px"},on:{"update:visible":function(e){t.addHref=e}}},[s("div",{staticClass:"toast"},[s("h3",[t._v("文字链接")]),t._v(" "),s("div",{staticClass:"toastMain"},[s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName1"}},[t._v("文字内容:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.hrefName,expression:"hrefName"}],attrs:{autocomplete:"off",type:"text",id:"titleName1",placeholder:"请输入"},domProps:{value:t.hrefName},on:{input:function(e){e.target.composing||(t.hrefName=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"inputItem"},[s("label",{attrs:{for:"titleName2"}},[t._v("链接内容:")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.href,expression:"href"}],attrs:{autocomplete:"off",type:"text",id:"titleName2",placeholder:"请输入"},domProps:{value:t.href},on:{input:function(e){e.target.composing||(t.href=e.target.value)}}})])]),t._v(" "),s("div",{staticClass:"toastBtn"},[s("el-button",{attrs:{size:"mini"},on:{click:function(e){t.addHref=!1}}},[t._v("取消")]),t._v(" "),s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.createHref}},[t._v("确定")])],1)])]),t._v(" "),s("my-dialog",{attrs:{visible:t.showAddMater,width:"28%",minWidth:"500px"},on:{"update:visible":function(e){t.showAddMater=e}}},[s("uploadFile",{attrs:{activeTag:t.activeTag},on:{uploadSave:t.uploadSave,cancel:function(e){t.showAddMater=!1}}})],1),t._v(" "),s("my-dialog",{attrs:{visible:t.showUpload,width:"1060px"},on:{"update:visible":function(e){t.showUpload=e}}},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loadingImage,expression:"loadingImage"}],staticClass:"toast"},[s("h3",[t._v("选择素材-"+t._s(1==t.activeTab||1==t.type?"图片":3==t.activeTab?"语音":4==t.activeTab?"视频":"图文素材"))]),t._v(" "),s("div",{staticClass:"toastMain"},[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(" "),5!=t.activeTab||1==t.type?s("div",{staticClass:"wxList"},t._l(t.listArr,function(e,n){return s("div",{class:["wxItem",t.checkList[0]==e.id&&"active"],staticStyle:{"padding-bottom":"0"},on:{click:function(i){return t.changeMedia(e,t.index)}}},[s("div",{staticStyle:{width:"100%",height:"173px",position:"relative",overflow:"hidden"}},[1==t.activeTab||1==t.type?s("img",{staticClass:"icon icon2",attrs:{src:e.oss_url,alt:""}}):t._e(),t._v(" "),3==t.activeTab?s("img",{staticClass:"icon icon2",attrs:{src:i("u6Hf"),alt:""}}):t._e(),t._v(" "),4==t.activeTab?s("img",{staticClass:"icon icon2",attrs:{src:i("+vEQ"),alt:""}}):t._e()]),t._v(" "),s("div",{staticClass:"btmInfo"},[s("span",{staticClass:"time"},[t._v(t._s(e.title))])])])}),0):t._e(),t._v(" "),5==t.activeTab&&1!=t.type?s("div",{staticClass:"wxList"},t._l(t.listArr,function(e){return t.listArr.length>0?s("div",{class:["wxItem",e.media_id==t.checkList[0]?"active":""],on:{click:function(i){return t.change(e)}}},[1==e.article[0].is_ad?s("div",{staticClass:"type"},[t._v("广告")]):t._e(),t._v(" "),s("div",{staticStyle:{width:"100%",height:"137px",position:"relative",overflow:"hidden"}},[e.article[0].thumb_url?s("el-image",{staticClass:"icon icon2",staticStyle:{"object-fit":"cover"},attrs:{src:e.article&&e.article.length>0?e.article[0].thumb_url:"",alt:""}}):s("img",{staticClass:"icon icon2",attrs:{src:i("NMrH"),alt:""}}),t._v(" "),s("div",{staticClass:"btmTitle"},[t._v(t._s(e.article[0].title))])],1)]):t._e()}),0):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(" "),s("div",{staticClass:"toastBtn"},[s("el-button",{attrs:{size:"mini"},on:{click:function(e){t.showUpload=!1}}},[t._v("取消")]),t._v(" "),s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.addIng}},[t._v("确定")])],1)])])],1)],1),t._v(" "),s("my-dialog",{attrs:{visible:t.pzListFlag,width:"500px"},on:{"update:visible":function(e){t.pzListFlag=e}}},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pzListLoading,expression:"pzListLoading"}],staticStyle:{padding:"60px 30px 20px"}},[s("el-table",{attrs:{border:"",data:t.pzList}},[s("template",{slot:"empty"},[s("img",{staticClass:"pic",attrs:{src:i("z3Om"),alt:""}}),t._v(" "),s("span",[t._v("暂无数据")])]),t._v(" "),s("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"配置名称",prop:"title"}}),t._v(" "),s("el-table-column",{attrs:{align:"center","show-overflow-tooltip":"",label:"更新时间",prop:"updated_at"}}),t._v(" "),s("el-table-column",{attrs:{align:"center",label:"操作",prop:"desc"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("span",{staticClass:"done",on:{click:function(i){return t.xz_pz(e.row.id)}}},[t._v("选择")])]}}])})],2),t._v(" "),s("el-button",{staticStyle:{"margin-top":"20px"},attrs:{size:"mini"},on:{click:function(e){t.pzListFlag=!1}}},[t._v("取消")])],1)])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"doList"},[e("li",[e("img",{staticClass:"icon1",attrs:{src:i("rOIf"),alt:""}})]),this._v(" "),e("li",[e("img",{staticClass:"icon1",attrs:{src:i("XCu6"),alt:""}})]),this._v(" "),e("li",[e("img",{staticClass:"icon1",attrs:{src:i("vmxF"),alt:""}})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"doList"},[e("li",[e("img",{staticClass:"icon1",attrs:{src:i("rOIf"),alt:""}})]),this._v(" "),e("li",[e("img",{staticClass:"icon1",attrs:{src:i("XCu6"),alt:""}})]),this._v(" "),e("li",[e("img",{staticClass:"icon1",attrs:{src:i("vmxF"),alt:""}})])])}]};var r=i("VU/8")(o,l,!1,function(t){i("NR2r"),i("4twg")},"data-v-64a42ed6",null);e.default=r.exports}});