Commit 4a3a4ded authored by 王's avatar

ubild

parent bd9c14da
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https://at.alicdn.com/t/font_746649_7dsnjecwkpg.css><title>唱唱启蒙-后台</title><link href=/static/css/app.4dd42d8abcc8e22057bfa003060a9310.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.a64292ba7be3062f6bf2.js></script><script type=text/javascript src=/static/js/vendor.aa73382d4898c2048855.js></script><script type=text/javascript src=/static/js/app.7e5654f5c3f8942469be.js></script></body><script>let el = document.getElementsByTagName("script");
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https://at.alicdn.com/t/font_746649_7dsnjecwkpg.css><title>唱唱启蒙-后台</title><link href=/static/css/app.c196dba13d060fc6fbb4b837b334df65.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.573a4a36f811b6dd108b.js></script><script type=text/javascript src=/static/js/vendor.aa73382d4898c2048855.js></script><script type=text/javascript src=/static/js/app.c877ee735cee4a4b305c.js></script></body><script>let el = document.getElementsByTagName("script");
el.onerror = function(a,b,c){
console.log('error:',a,b,c);
};
......
webpackJsonp([28],{oerw:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=s("CCn6"),a=s("kmJW"),o=s("C+jy"),r=s("sf/l"),n={name:"index",components:{page:a.a,emotion:o.a},data:function(){return{nowPage:1,total:0,limit:10,show:!1,loading:!1,activeName:"text",list:[],content:"",uploadShow:!0,imageList:[],fileList:[],imageContent:"",videoContent:"",searchFrom:{},tableData:[],fileUid:null,userDialog:{total:0,limit:10,nowPage:1,show:!1},userList:[],searchUserFrom:{},multipleSelection:[],showEmotion:!1}},filters:{typeFilter:function(e){if(e)return"text"===e?"文本":"image"===e?"图片":"video"===e?"视频":void 0}},methods:{handleClick:function(e){this.activeName=e.name},handleRemove:function(){this.uploadShow=!0,this.imageList=[],this.imageContent=""},handleRemoveVideo:function(){this.videoContent="",this.fileList=[]},beforeAvatarUpload:function(){this.uploadShow=!1},handleAvatarSuccess:function(e){this.imageList=[{name:e.data.url,url:"https://cdn.singsingenglish.com/"+e.data.url}]},uploadFile:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),Object(i._53)({file:e.file,type:"wechat"}).then(function(e){t.imageContent={content:e.media_id,url:e.url},t.imageList=[{name:e.media_id,url:e.url}],t.$message({type:"success",message:"上传成功!"})}).catch(function(){t.$message({type:"error",message:"上传失败!"})})},uploadVideo:function(e){var t=this;Object(i._53)({file:e.file,type:"wechat"}).then(function(s){t.uploadVideoFile(e,s)}).catch(function(){t.$message({type:"error",message:"上传失败!"})})},uploadVideoFile:function(e,t){var s=this;this.fileUid=e.file.uid,this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),Object(i._53)({file:e.file,type:"local"}).then(function(i){s.videoContent={content:t.media_id,url:"https://cdn.singsingenglish.com/"+i.url},s.fileList=[{name:i.name,url:"https://cdn.singsingenglish.com/"+i.url}],s.loading=!1,s.$message({type:"success",message:"上传成功!"}),s.$store.dispatch("setProgress",{type:"delete",id:e.file.uid}),s.fileUid=null}).catch(function(){s.loading=!1,s.$message({type:"error",message:"上传失败!"})})},send:function(){var e=this,t={};if(this.searchFrom.is_test){if(!(this.searchFrom.time&&this.searchFrom.time.length>0))return void this.$message({type:"error",message:"请选择时间!"});t.start_at=r.a.dateFmt(this.searchFrom.time[0],"yyyy-MM-dd hh:mm:ss"),t.end_at=r.a.dateFmt(this.searchFrom.time[1],"yyyy-MM-dd hh:mm:ss")}this.searchFrom.user_ids?t.user_ids=this.searchFrom.user_ids:this.$message({type:"error",message:"请加入内部人员!"});var s={};if(s.type=this.activeName,"text"===this.activeName){if(!this.content)return void this.$message({type:"error",message:"请输入文本!"});s.content=this.content}else if("image"===this.activeName){if(!this.imageContent)return void this.$message({type:"error",message:"请上传图片!"});s.content=this.imageContent.content,s.url=this.imageContent.url}else if("video"===this.activeName){if(!this.videoContent)return void this.$message({type:"error",message:"请上传视频!"});s.content=this.videoContent.content,s.url=this.videoContent.url}t.content=JSON.stringify(s),t.is_test=this.searchFrom.is_test?2:1,Object(i._47)(t).then(function(t){e.$message({message:t,type:"success"}),e.show=!1,e.clearData(),e.getMsgList()})},clearData:function(){this.content="",this.videoContent=null,this.imageContent=null,this.activeName,this.searchFrom={},this.fileList=[],this.imageList=[]},getMsgList:function(){var e=this,t={limit:this.limit,page:this.nowPage};Object(i._20)(t).then(function(t){e.tableData=t.list,e.total=t.total})},onPageChange:function(e){this.nowPage=e,this.getMsgList()},getMsgResult:function(e){var t=this;if(e){var s={only_text:1,send_id:e};Object(i._20)(s).then(function(e){t.$message({message:e,type:"success"}),t.getMsgList()})}},getUser:function(){var e=this,t={page:this.userDialog.nowPage,limit:this.userDialog.limit};this.searchUserFrom.userId&&(t.user_id=this.searchUserFrom.userId),this.searchUserFrom.nickName&&(t.nickname=this.searchUserFrom.nickName),this.searchUserFrom.mobile&&(t.mobile=this.searchUserFrom.mobile),Object(i._35)(t).then(function(t){e.userList=t.list,e.userDialog.total=t.total})},onUserPageChange:function(e){this.userDialog.nowPage=e,this.getUser()},handleSelectionChange:function(e){this.multipleSelection=e},onSelectUser:function(){this.userDialog.show=!0,this.searchFrom.user_ids?this.multipleSelection=this.searchFrom.user_ids.split(","):this.multipleSelection=[],this.getUser()},onConfirm:function(){var e=this.multipleSelection;if(0===e.length)this.$message({type:"error",message:"请选择用户!"});else{var t=[];e.forEach(function(e){t.push(e.user_id)});var s=t;this.searchFrom.user_ids&&(s=t.concat(this.stringToInt(this.searchFrom.user_ids.split(","))));var i=this.dedupe(s);this.searchFrom.user_ids=i.join(","),this.userDialog.show=!1}},dedupe:function(e){return Array.from(new Set(e))},stringToInt:function(e){var t=e||[];return t=t.map(function(e){return parseInt(e,10)})},emotion:function(e){var t=e.replace(/\//gi,"");return'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'+["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"].indexOf(t)+'.gif" align="middle">'},handleEmotion:function(e){this.content+=e}},mounted:function(){this.getMsgList()},computed:{progress:function(){var e=this;return this.$store.state.progressList.find(function(t){return t.id===e.fileUid}).num<100?this.$store.state.progressList.find(function(t){return t.id===e.fileUid}).num:100}}},l={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"index"},[s("div",{staticClass:"b-title"},[e._v("群发列表 "),s("el-button",{staticStyle:{float:"right","margin-bottom":"10px"},attrs:{type:"primary",plain:""},on:{click:function(t){e.show=!0}}},[e._v("新建群发消息")])],1),e._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[s("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-table",{attrs:{border:!1,data:[JSON.parse(t.row.content)]}},[s("el-table-column",{attrs:{label:"类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("typeFilter")(t.row.type))+"\n ")]}}])}),e._v(" "),"text"!==JSON.parse(t.row.content).type?s("el-table-column",{attrs:{prop:"media_id",label:"media_id"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.content)+"\n ")]}}])}):e._e(),e._v(" "),s("el-table-column",{attrs:{prop:"url",label:"内容"},scopedSlots:e._u([{key:"default",fn:function(t){return["text"===t.row.type?s("div",[s("span",{domProps:{innerHTML:e._s(t.row.content.replace(/\/[\u4E00-\u9FA5]{1,3}/gi,e.emotion))}})]):"image"===t.row.type?s("div",[s("img",{staticStyle:{width:"80px"},attrs:{src:t.row.url}})]):"video"===t.row.type?s("div",[s("a",{attrs:{href:t.row.url,target:"_blank"}},[e._v("点击查看视频")])]):e._e()]}}])})],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"send_id",label:"消息ID"}}),e._v(" "),s("el-table-column",{attrs:{prop:"send_num",label:"预计发送"}}),e._v(" "),s("el-table-column",{attrs:{prop:"arrive_num",label:"已发送"}}),e._v(" "),s("el-table-column",{attrs:{prop:"failed_num",label:"发送失败"}}),e._v(" "),s("el-table-column",{attrs:{prop:"end_at",label:"截止时间"}}),e._v(" "),s("el-table-column",{attrs:{prop:"created_at",label:"发送时间"}}),e._v(" "),s("el-table-column",{attrs:{label:"操作","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-button",{attrs:{type:"text",plain:"",size:"mini"},on:{click:function(s){e.getMsgResult(t.row.send_id)}}},[e._v("\n 查询及时结果\n ")])]}}])})],1),e._v(" "),s("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange}}),e._v(" "),s("el-dialog",{attrs:{title:"新建群发消息",visible:e.show},on:{"update:visible":function(t){e.show=t}}},[s("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"150px"}},[s("el-form-item",{attrs:{label:"是否发送筛选用户"}},[s("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:e.searchFrom.is_test,callback:function(t){e.$set(e.searchFrom,"is_test",t)},expression:"searchFrom.is_test"}})],1),e._v(" "),e.searchFrom.is_test?s("el-form-item",{attrs:{label:"时间"}},[s("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},model:{value:e.searchFrom.time,callback:function(t){e.$set(e.searchFrom,"time",t)},expression:"searchFrom.time"}})],1):e._e(),e._v(" "),s("el-row",[s("el-col",{attrs:{span:16}},[s("el-form-item",{attrs:{label:"用户ID"}},[s("el-input",{model:{value:e.searchFrom.user_ids,callback:function(t){e.$set(e.searchFrom,"user_ids",t)},expression:"searchFrom.user_ids"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:8}},[s("el-button",{attrs:{type:"primary"},on:{click:e.onSelectUser}},[e._v("选择用户")])],1)],1),e._v(" "),s("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"文本",name:"text"}},[s("div",{staticClass:"inner-edit_area"},[s("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"请输入内容"},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1),e._v(" "),s("div",{staticStyle:{float:"right"}},[s("el-popover",{attrs:{placement:"bottom-end",width:"400",offset:10,trigger:"manual"},model:{value:e.showEmotion,callback:function(t){e.showEmotion=t},expression:"showEmotion"}},[s("div",[s("emotion",{attrs:{height:200},on:{emotion:e.handleEmotion}})],1),e._v(" "),s("el-button",{attrs:{slot:"reference",type:"text"},on:{click:function(t){e.showEmotion=!e.showEmotion}},slot:"reference"},[s("span",{staticClass:"icon_emotion emotion_switch"})])],1)],1)]),e._v(" "),s("el-tab-pane",{attrs:{label:"图片",name:"image"}},[s("div",{staticClass:"inner-edit_area"},[s("el-upload",{attrs:{action:"/api/public/upload/zone","http-request":e.uploadFile,"before-upload":e.beforeAvatarUpload,"list-type":"picture-card","file-list":e.imageList,"on-success":e.handleAvatarSuccess,"on-remove":e.handleRemove,limit:1}},[s("i",{staticClass:"el-icon-plus"})])],1)]),e._v(" "),s("el-tab-pane",{attrs:{label:"视频",name:"video"}},[s("el-upload",{staticClass:"upload-video",attrs:{action:"/api/public/upload/zone","http-request":e.uploadVideo,"file-list":e.fileList,"on-remove":e.handleRemoveVideo,limit:1}},[s("el-button",{attrs:{size:"small",type:"primary",disabled:e.fileUid&&e.progress<99}},[e._v("点击上传")]),e._v(" "),s("div",{staticStyle:{width:"300px"}},[e.fileUid?s("el-progress",{attrs:{percentage:e.progress}}):e._e()],1)],1)],1)],1)],1),e._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.send()}}},[e._v("确 定")])],1),e._v(" "),s("el-dialog",{attrs:{visible:e.userDialog.show,"append-to-body":""},on:{"update:visible":function(t){e.$set(e.userDialog,"show",t)}}},[s("el-form",{attrs:{"label-width":"90px"}},[s("el-row",[s("el-col",{attrs:{span:8}},[s("el-form-item",{attrs:{label:"ID"}},[s("el-input",{model:{value:e.searchUserFrom.userId,callback:function(t){e.$set(e.searchUserFrom,"userId",t)},expression:"searchUserFrom.userId"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:8}},[s("el-form-item",{attrs:{label:"昵称"}},[s("el-input",{model:{value:e.searchUserFrom.nickName,callback:function(t){e.$set(e.searchUserFrom,"nickName",t)},expression:"searchUserFrom.nickName"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:8}},[s("el-form-item",{attrs:{label:"电话"}},[s("el-input",{model:{value:e.searchUserFrom.mobile,callback:function(t){e.$set(e.searchUserFrom,"mobile",t)},expression:"searchUserFrom.mobile"}})],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:8,offset:16}},[s("el-form-item",[s("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:e.getUser}},[e._v("搜索")])],1)],1)],1)],1),e._v(" "),s("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.userList},on:{"selection-change":e.handleSelectionChange}},[s("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),s("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("img",{staticStyle:{"margin-right":"5px",width:"50px",height:"50px","border-radius":"50px"},attrs:{src:t.row.avatar}}),e._v(e._s(t.row.nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),e._v(" "),s("page",{attrs:{total:e.userDialog.total,limit:e.userDialog.limit},on:{pageChange:e.onUserPageChange}}),e._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.userDialog.show=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.onConfirm}},[e._v("确 定")])],1)],1)],1)],1)},staticRenderFns:[]};var c=s("VU/8")(n,l,!1,function(e){s("xYKr")},"data-v-8dc8fba0",null);t.default=c.exports},xYKr:function(e,t){}});
\ No newline at end of file
webpackJsonp([28],{"0Q7q":function(e,t){},iPJD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("CCn6"),l={name:"upload",data:function(){return{fileList:[]}},methods:{uploadFileVideo1Banner:function(e){var t=this;Object(i._53)({file:e.file,type:"local"}).then(function(e){e.url="https://cdn.singsingenglish.com/"+e.url,t.fileList.push(e)})}}},a={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-upload",{staticClass:"upload-demo",attrs:{action:"/api/public/upload","http-request":e.uploadFileVideo1Banner,"list-type":"picture-card",multiple:""}}),e._v(" "),n("pre",[e._v(" <p>\n ")]),e._v(" "),e._l(e.fileList,function(t){return n("pre",[e._v(' <img src="'+e._s(t.url)+'" style="display:block">\n ')])}),e._v(" "),n("pre",[e._v(" </p>\n ")])],2)},staticRenderFns:[]};var r=n("VU/8")(l,a,!1,function(e){n("0Q7q")},"data-v-639ba378",null);t.default=r.exports}});
\ No newline at end of file
webpackJsonp([29],{"0Q7q":function(e,t){},iPJD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("CCn6"),l={name:"upload",data:function(){return{fileList:[]}},methods:{uploadFileVideo1Banner:function(e){var t=this;Object(i._53)({file:e.file,type:"local"}).then(function(e){e.url="https://cdn.singsingenglish.com/"+e.url,t.fileList.push(e)})}}},a={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-upload",{staticClass:"upload-demo",attrs:{action:"/api/public/upload","http-request":e.uploadFileVideo1Banner,"list-type":"picture-card",multiple:""}}),e._v(" "),n("pre",[e._v(" <p>\n ")]),e._v(" "),e._l(e.fileList,function(t){return n("pre",[e._v(' <img src="'+e._s(t.url)+'" style="display:block">\n ')])}),e._v(" "),n("pre",[e._v(" </p>\n ")])],2)},staticRenderFns:[]};var r=n("VU/8")(l,a,!1,function(e){n("0Q7q")},"data-v-639ba378",null);t.default=r.exports}});
\ No newline at end of file
webpackJsonp([29],{h7MV:function(e,n){},usUK:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._v("\n 发货列表\n")])},staticRenderFns:[]};var i=t("VU/8")({name:"index"},r,!1,function(e){t("h7MV")},"data-v-3f478d15",null);n.default=i.exports}});
\ No newline at end of file
webpackJsonp([30],{h7MV:function(e,n){},usUK:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._v("\n 发货列表\n")])},staticRenderFns:[]};var i=t("VU/8")({name:"index"},r,!1,function(e){t("h7MV")},"data-v-3f478d15",null);n.default=i.exports}});
\ No newline at end of file
webpackJsonp([30],{Dq6T:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("CCn6"),l={name:"index",data:function(){return{searchFrom:{watchTime:[]},tableData:[],tableHead:[]}},methods:{defaultTime:function(){var t=new Date,e=t.getFullYear(),a=t.getMonth()+1;a<10&&(a="0"+a);var r=t.getDate();r<10&&(r="0"+r);var l=e+"-"+a+"-01",s=e+"-"+a+"-"+r;this.searchFrom.watchTime=[l,s]},getList:function(){var t=this,e={};this.searchFrom.watchTime&&this.searchFrom.watchTime.length>0&&(e.start_at=this.searchFrom.watchTime[0],e.end_at=this.searchFrom.watchTime[1]),Object(r._36)(e).then(function(e){t.tableHead=e[0],t.tableData=e.slice(1)})}},mounted:function(){this.defaultTime(),this.getList()}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"index"},[a("el-form",{ref:"searchFrom",attrs:{model:t.searchFrom,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"时间"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","value-format":"yyyy-MM-dd","end-placeholder":"结束日期"},model:{value:t.searchFrom.watchTime,callback:function(e){t.$set(t.searchFrom,"watchTime",e)},expression:"searchFrom.watchTime"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:6,offset:6}},[a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:t.getList}},[t._v("搜索")])],1)],1)],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},t._l(t.tableHead,function(e,r){return a("el-table-column",{key:e,attrs:{label:e},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row[r])+"\n ")]}}])})}))],1)},staticRenderFns:[]};var n=a("VU/8")(l,s,!1,function(t){a("x5ax")},"data-v-39f196ec",null);e.default=n.exports},x5ax:function(t,e){}});
\ No newline at end of file
webpackJsonp([31],{Dq6T:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("CCn6"),l={name:"index",data:function(){return{searchFrom:{watchTime:[]},tableData:[],tableHead:[]}},methods:{defaultTime:function(){var t=new Date,e=t.getFullYear(),a=t.getMonth()+1;a<10&&(a="0"+a);var r=t.getDate();r<10&&(r="0"+r);var l=e+"-"+a+"-01",s=e+"-"+a+"-"+r;this.searchFrom.watchTime=[l,s]},getList:function(){var t=this,e={};this.searchFrom.watchTime&&this.searchFrom.watchTime.length>0&&(e.start_at=this.searchFrom.watchTime[0],e.end_at=this.searchFrom.watchTime[1]),Object(r._36)(e).then(function(e){t.tableHead=e[0],t.tableData=e.slice(1)})}},mounted:function(){this.defaultTime(),this.getList()}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"index"},[a("el-form",{ref:"searchFrom",attrs:{model:t.searchFrom,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"时间"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","value-format":"yyyy-MM-dd","end-placeholder":"结束日期"},model:{value:t.searchFrom.watchTime,callback:function(e){t.$set(t.searchFrom,"watchTime",e)},expression:"searchFrom.watchTime"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:6,offset:6}},[a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:t.getList}},[t._v("搜索")])],1)],1)],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},t._l(t.tableHead,function(e,r){return a("el-table-column",{key:e,attrs:{label:e},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row[r])+"\n ")]}}])})}))],1)},staticRenderFns:[]};var n=a("VU/8")(l,s,!1,function(t){a("x5ax")},"data-v-39f196ec",null);e.default=n.exports},x5ax:function(t,e){}});
\ No newline at end of file
webpackJsonp([31],{"4rVd":function(e,t){},WZgi:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("CCn6"),r={name:"sysConfig",components:{page:a("kmJW").a},data:function(){return{list:[],total:0,nowPage:1,limit:10,searchFrom:{admin_id:"",url:"",desc:""}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.searchFrom.page=this.nowPage;var t={page:this.nowPage,limit:this.limit};this.searchFrom.admin_id&&(t.admin_id=this.searchFrom.admin_id),this.searchFrom.url&&(t.url=this.searchFrom.url),this.searchFrom.desc&&(t.desc=this.searchFrom.desc),Object(l.Y)(t).then(function(t){e.list=t.list,e.total=t.total})},onPageChange:function(e){this.nowPage=e,this.getList()}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"log"},[a("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"用户ID"}},[a("el-input",{model:{value:e.searchFrom.admin_id,callback:function(t){e.$set(e.searchFrom,"admin_id",t)},expression:"searchFrom.admin_id"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"地址"}},[a("el-input",{model:{value:e.searchFrom.url,callback:function(t){e.$set(e.searchFrom,"url",t)},expression:"searchFrom.url"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"功能名"}},[a("el-input",{model:{value:e.searchFrom.desc,callback:function(t){e.$set(e.searchFrom,"desc",t)},expression:"searchFrom.desc"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")])],1)],1)],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left"}},[a("el-form-item",{attrs:{label:"请求方法"}},[a("span",[e._v(e._s(t.row.method))])]),e._v(" "),a("el-form-item",{attrs:{label:"请求链接"}},[a("span",[e._v(e._s(t.row.url))])]),e._v(" "),a("el-form-item",{attrs:{label:"参数"}},[a("span",[e._v(e._s(t.row.params))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"登陆名",prop:"user_name"}}),e._v(" "),a("el-table-column",{attrs:{label:"用户ID",prop:"admin_id"}}),e._v(" "),a("el-table-column",{attrs:{label:"用户名",prop:"user_desc"}}),e._v(" "),a("el-table-column",{attrs:{label:"功能名",prop:"desc"}}),e._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}})],1),e._v(" "),a("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange}})],1)},staticRenderFns:[]};var o=a("VU/8")(r,s,!1,function(e){a("4rVd")},"data-v-2b549c3e",null);t.default=o.exports}});
\ No newline at end of file
webpackJsonp([32],{"4rVd":function(e,t){},WZgi:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("CCn6"),r={name:"sysConfig",components:{page:a("kmJW").a},data:function(){return{list:[],total:0,nowPage:1,limit:10,searchFrom:{admin_id:"",url:"",desc:""}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.searchFrom.page=this.nowPage;var t={page:this.nowPage,limit:this.limit};this.searchFrom.admin_id&&(t.admin_id=this.searchFrom.admin_id),this.searchFrom.url&&(t.url=this.searchFrom.url),this.searchFrom.desc&&(t.desc=this.searchFrom.desc),Object(l.Y)(t).then(function(t){e.list=t.list,e.total=t.total})},onPageChange:function(e){this.nowPage=e,this.getList()}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"log"},[a("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"用户ID"}},[a("el-input",{model:{value:e.searchFrom.admin_id,callback:function(t){e.$set(e.searchFrom,"admin_id",t)},expression:"searchFrom.admin_id"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"地址"}},[a("el-input",{model:{value:e.searchFrom.url,callback:function(t){e.$set(e.searchFrom,"url",t)},expression:"searchFrom.url"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"功能名"}},[a("el-input",{model:{value:e.searchFrom.desc,callback:function(t){e.$set(e.searchFrom,"desc",t)},expression:"searchFrom.desc"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")])],1)],1)],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left"}},[a("el-form-item",{attrs:{label:"请求方法"}},[a("span",[e._v(e._s(t.row.method))])]),e._v(" "),a("el-form-item",{attrs:{label:"请求链接"}},[a("span",[e._v(e._s(t.row.url))])]),e._v(" "),a("el-form-item",{attrs:{label:"参数"}},[a("span",[e._v(e._s(t.row.params))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"登陆名",prop:"user_name"}}),e._v(" "),a("el-table-column",{attrs:{label:"用户ID",prop:"admin_id"}}),e._v(" "),a("el-table-column",{attrs:{label:"用户名",prop:"user_desc"}}),e._v(" "),a("el-table-column",{attrs:{label:"功能名",prop:"desc"}}),e._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}})],1),e._v(" "),a("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange}})],1)},staticRenderFns:[]};var o=a("VU/8")(r,s,!1,function(e){a("4rVd")},"data-v-2b549c3e",null);t.default=o.exports}});
\ No newline at end of file
webpackJsonp([32],{hDM4:function(e,t){},oerw:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=s("CCn6"),a=s("kmJW"),o=s("C+jy"),r=s("sf/l"),n={name:"index",components:{page:a.a,emotion:o.a},data:function(){return{nowPage:1,total:0,limit:10,show:!1,loading:!1,activeName:"text",list:[],content:"",uploadShow:!0,imageList:[],fileList:[],imageContent:"",videoContent:"",searchFrom:{},tableData:[],fileUid:null,userDialog:{total:0,limit:10,nowPage:1,show:!1},userList:[],searchUserFrom:{},multipleSelection:[],showEmotion:!1}},filters:{typeFilter:function(e){if(e)return"text"===e?"文本":"image"===e?"图片":"video"===e?"视频":void 0}},methods:{handleClick:function(e){this.activeName=e.name},handleRemove:function(){this.uploadShow=!0,this.imageList=[],this.imageContent=""},handleRemoveVideo:function(){this.videoContent="",this.fileList=[]},beforeAvatarUpload:function(){this.uploadShow=!1},handleAvatarSuccess:function(e){this.imageList=[{name:e.data.url,url:"https://cdn.singsingenglish.com/"+e.data.url}]},uploadFile:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),Object(i._53)({file:e.file,type:"wechat"}).then(function(e){t.imageContent={content:e.media_id,url:e.url},t.imageList=[{name:e.media_id,url:e.url}],t.$message({type:"success",message:"上传成功!"})}).catch(function(){t.$message({type:"error",message:"上传失败!"})})},uploadVideo:function(e){var t=this;Object(i._53)({file:e.file,type:"wechat"}).then(function(s){t.uploadVideoFile(e,s)}).catch(function(){t.$message({type:"error",message:"上传失败!"})})},uploadVideoFile:function(e,t){var s=this;this.fileUid=e.file.uid,this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),Object(i._53)({file:e.file,type:"local"}).then(function(i){s.videoContent={content:t.media_id,url:"https://cdn.singsingenglish.com/"+i.url},s.fileList=[{name:i.name,url:"https://cdn.singsingenglish.com/"+i.url}],s.loading=!1,s.$message({type:"success",message:"上传成功!"}),s.$store.dispatch("setProgress",{type:"delete",id:e.file.uid}),s.fileUid=null}).catch(function(){s.loading=!1,s.$message({type:"error",message:"上传失败!"})})},send:function(){var e=this,t={};if(this.searchFrom.is_test){if(!(this.searchFrom.time&&this.searchFrom.time.length>0))return void this.$message({type:"error",message:"请选择时间!"});t.start_at=r.a.dateFmt(this.searchFrom.time[0],"yyyy-MM-dd hh:mm:ss"),t.end_at=r.a.dateFmt(this.searchFrom.time[1],"yyyy-MM-dd hh:mm:ss")}this.searchFrom.user_ids?t.user_ids=this.searchFrom.user_ids:this.$message({type:"error",message:"请加入内部人员!"});var s={};if(s.type=this.activeName,"text"===this.activeName){if(!this.content)return void this.$message({type:"error",message:"请输入文本!"});s.content=this.content}else if("image"===this.activeName){if(!this.imageContent)return void this.$message({type:"error",message:"请上传图片!"});s.content=this.imageContent.content,s.url=this.imageContent.url}else if("video"===this.activeName){if(!this.videoContent)return void this.$message({type:"error",message:"请上传视频!"});s.content=this.videoContent.content,s.url=this.videoContent.url}t.content=JSON.stringify(s),t.is_test=this.searchFrom.is_test?2:1,Object(i._47)(t).then(function(t){e.$message({message:t,type:"success"}),e.show=!1,e.clearData(),e.getMsgList()})},clearData:function(){this.content="",this.videoContent=null,this.imageContent=null,this.activeName,this.searchFrom={},this.fileList=[],this.imageList=[]},getMsgList:function(){var e=this,t={limit:this.limit,page:this.nowPage};Object(i._20)(t).then(function(t){e.tableData=t.list,e.total=t.total})},onPageChange:function(e){this.nowPage=e,this.getMsgList()},getMsgResult:function(e){var t=this;if(e){var s={only_text:1,send_id:e};Object(i._20)(s).then(function(e){t.$message({message:e,type:"success"}),t.getMsgList()})}},getUser:function(){var e=this,t={page:this.userDialog.nowPage,limit:this.userDialog.limit};this.searchUserFrom.userId&&(t.user_id=this.searchUserFrom.userId),this.searchUserFrom.nickName&&(t.nickname=this.searchUserFrom.nickName),this.searchUserFrom.mobile&&(t.mobile=this.searchUserFrom.mobile),Object(i._35)(t).then(function(t){e.userList=t.list,e.userDialog.total=t.total})},onUserPageChange:function(e){this.userDialog.nowPage=e,this.getUser()},handleSelectionChange:function(e){this.multipleSelection=e},onSelectUser:function(){this.userDialog.show=!0,this.searchFrom.user_ids?this.multipleSelection=this.searchFrom.user_ids.split(","):this.multipleSelection=[],this.getUser()},onConfirm:function(){var e=this.multipleSelection;if(0===e.length)this.$message({type:"error",message:"请选择用户!"});else{var t=[];e.forEach(function(e){t.push(e.user_id)});var s=t;this.searchFrom.user_ids&&(s=t.concat(this.searchFrom.user_ids.split(",")));var i=this.dedupe(s);this.searchFrom.user_ids=i.join(","),this.userDialog.show=!1,this.multipleSelection=[]}},dedupe:function(e){return Array.from(new Set(e))},emotion:function(e){var t=e.replace(/\//gi,"");return'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'+["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"].indexOf(t)+'.gif" align="middle">'},handleEmotion:function(e){this.content+=e}},mounted:function(){this.getMsgList()},computed:{progress:function(){var e=this;return this.$store.state.progressList.find(function(t){return t.id===e.fileUid}).num<100?this.$store.state.progressList.find(function(t){return t.id===e.fileUid}).num:100}}},l={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"index"},[s("div",{staticClass:"b-title"},[e._v("群发列表 "),s("el-button",{staticStyle:{float:"right","margin-bottom":"10px"},attrs:{type:"primary",plain:""},on:{click:function(t){e.show=!0}}},[e._v("新建群发消息")])],1),e._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[s("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-table",{attrs:{border:!1,data:[JSON.parse(t.row.content)]}},[s("el-table-column",{attrs:{label:"类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("typeFilter")(t.row.type))+"\n ")]}}])}),e._v(" "),"text"!==JSON.parse(t.row.content).type?s("el-table-column",{attrs:{prop:"media_id",label:"media_id"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.content)+"\n ")]}}])}):e._e(),e._v(" "),s("el-table-column",{attrs:{prop:"url",label:"内容"},scopedSlots:e._u([{key:"default",fn:function(t){return["text"===t.row.type?s("div",[s("span",{domProps:{innerHTML:e._s(t.row.content.replace(/\/[\u4E00-\u9FA5]{1,3}/gi,e.emotion))}})]):"image"===t.row.type?s("div",[s("img",{staticStyle:{width:"80px"},attrs:{src:t.row.url}})]):"video"===t.row.type?s("div",[s("a",{attrs:{href:t.row.url,target:"_blank"}},[e._v("点击查看视频")])]):e._e()]}}])})],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"send_id",label:"消息ID"}}),e._v(" "),s("el-table-column",{attrs:{prop:"send_num",label:"预计发送"}}),e._v(" "),s("el-table-column",{attrs:{prop:"arrive_num",label:"已发送"}}),e._v(" "),s("el-table-column",{attrs:{prop:"failed_num",label:"发送失败"}}),e._v(" "),s("el-table-column",{attrs:{prop:"end_at",label:"截止时间"}}),e._v(" "),s("el-table-column",{attrs:{prop:"created_at",label:"发送时间"}}),e._v(" "),s("el-table-column",{attrs:{label:"操作","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-button",{attrs:{type:"text",plain:"",size:"mini"},on:{click:function(s){e.getMsgResult(t.row.send_id)}}},[e._v("\n 查询及时结果\n ")])]}}])})],1),e._v(" "),s("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange}}),e._v(" "),s("el-dialog",{attrs:{title:"新建群发消息",visible:e.show},on:{"update:visible":function(t){e.show=t}}},[s("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"150px"}},[s("el-form-item",{attrs:{label:"是否发送筛选用户"}},[s("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:e.searchFrom.is_test,callback:function(t){e.$set(e.searchFrom,"is_test",t)},expression:"searchFrom.is_test"}})],1),e._v(" "),e.searchFrom.is_test?s("el-form-item",{attrs:{label:"时间"}},[s("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},model:{value:e.searchFrom.time,callback:function(t){e.$set(e.searchFrom,"time",t)},expression:"searchFrom.time"}})],1):e._e(),e._v(" "),s("el-row",[s("el-col",{attrs:{span:16}},[s("el-form-item",{attrs:{label:"用户ID"}},[s("el-input",{model:{value:e.searchFrom.user_ids,callback:function(t){e.$set(e.searchFrom,"user_ids",t)},expression:"searchFrom.user_ids"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:8}},[s("el-button",{attrs:{type:"primary"},on:{click:e.onSelectUser}},[e._v("选择用户")])],1)],1),e._v(" "),s("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"文本",name:"text"}},[s("div",{staticClass:"inner-edit_area"},[s("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"请输入内容"},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1),e._v(" "),s("div",{staticStyle:{float:"right"}},[s("el-popover",{attrs:{placement:"bottom-end",width:"400",offset:10,trigger:"hover"},model:{value:e.showEmotion,callback:function(t){e.showEmotion=t},expression:"showEmotion"}},[s("div",[s("emotion",{attrs:{height:200},on:{emotion:e.handleEmotion}})],1),e._v(" "),s("el-button",{attrs:{slot:"reference",type:"text"},on:{click:function(t){e.showEmotion=!e.showEmotion}},slot:"reference"},[s("span",{staticClass:"icon_emotion emotion_switch"})])],1)],1)]),e._v(" "),s("el-tab-pane",{attrs:{label:"图片",name:"image"}},[s("div",{staticClass:"inner-edit_area"},[s("el-upload",{attrs:{action:"/api/public/upload/zone","http-request":e.uploadFile,"before-upload":e.beforeAvatarUpload,"list-type":"picture-card","file-list":e.imageList,"on-success":e.handleAvatarSuccess,"on-remove":e.handleRemove,limit:1}},[s("i",{staticClass:"el-icon-plus"})])],1)]),e._v(" "),s("el-tab-pane",{attrs:{label:"视频",name:"video"}},[s("el-upload",{staticClass:"upload-video",attrs:{action:"/api/public/upload/zone","http-request":e.uploadVideo,"file-list":e.fileList,"on-remove":e.handleRemoveVideo,limit:1}},[s("el-button",{attrs:{size:"small",type:"primary",disabled:e.fileUid&&e.progress<99}},[e._v("点击上传")]),e._v(" "),s("div",{staticStyle:{width:"300px"}},[e.fileUid?s("el-progress",{attrs:{percentage:e.progress}}):e._e()],1)],1)],1)],1)],1),e._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.send()}}},[e._v("确 定")])],1),e._v(" "),s("el-dialog",{attrs:{visible:e.userDialog.show,"append-to-body":""},on:{"update:visible":function(t){e.$set(e.userDialog,"show",t)}}},[s("el-form",{attrs:{"label-width":"90px"}},[s("el-row",[s("el-col",{attrs:{span:8}},[s("el-form-item",{attrs:{label:"ID"}},[s("el-input",{model:{value:e.searchUserFrom.userId,callback:function(t){e.$set(e.searchUserFrom,"userId",t)},expression:"searchUserFrom.userId"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:8}},[s("el-form-item",{attrs:{label:"昵称"}},[s("el-input",{model:{value:e.searchUserFrom.nickName,callback:function(t){e.$set(e.searchUserFrom,"nickName",t)},expression:"searchUserFrom.nickName"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:8}},[s("el-form-item",{attrs:{label:"电话"}},[s("el-input",{model:{value:e.searchUserFrom.mobile,callback:function(t){e.$set(e.searchUserFrom,"mobile",t)},expression:"searchUserFrom.mobile"}})],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:8,offset:16}},[s("el-form-item",[s("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:e.getUser}},[e._v("搜索")])],1)],1)],1)],1),e._v(" "),s("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.userList},on:{"selection-change":e.handleSelectionChange}},[s("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),s("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("img",{staticStyle:{"margin-right":"5px",width:"50px",height:"50px","border-radius":"50px"},attrs:{src:t.row.avatar}}),e._v(e._s(t.row.nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),e._v(" "),s("page",{attrs:{total:e.userDialog.total,limit:e.userDialog.limit},on:{pageChange:e.onUserPageChange}}),e._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.userDialog.show=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.onConfirm}},[e._v("确 定")])],1)],1)],1)],1)},staticRenderFns:[]};var c=s("VU/8")(n,l,!1,function(e){s("hDM4")},"data-v-26a1c580",null);t.default=c.exports}});
\ No newline at end of file
webpackJsonp([36],{IcnI:function(e,n,t){"use strict";var o=t("7+uW"),a=t("NYxO"),r=t("zSLJ"),i={setToken:function(e,n){e.token=n,r.a.set("cc_token",n)},setUserName:function(e,n){e.userName=n,r.a.set("cc_user_name",n)},setPermission:function(e,n){e.progressList=n,localStorage.setItem("permission",JSON.stringify(n))},setMenu:function(e,n){e.menuList=n},readonly:function(e,n){e.readonly=n},deletePermission:function(e,n){e.deletePermission=n},mainCanShow:function(e){e.mainLoad=!1},mainUnShow:function(e){e.mainLoad=!0},changeParentRouter:function(e,n){e.menuList.find(function(e){return e.name===n.name}).routerName=n.to.name},progress:function(e,n){switch(n.type){case"new":e.progressList.push({num:0,id:n.id});break;case"change":e.progressList.find(function(e){return e.id===n.id}).num=n.num;break;case"delete":e.progressList.find(function(e){return e.id===n.id})}}},u={setToken:function(e,n){(0,e.commit)("setToken",n)},setUserName:function(e,n){(0,e.commit)("setUserName",n)},setProgress:function(e,n){(0,e.commit)("progress",n)},setPermission:function(e,n){(0,e.commit)("setPermission",n)},setMenu:function(e,n){(0,e.commit)("setMenu",n)},readonly:function(e,n){(0,e.commit)("readonly",n)},deletePermission:function(e,n){var t=e.commit;console.log(n),t("deletePermission",n)}};o.default.use(a.a);n.a=new a.a.Store({state:{show:!1,userName:"",token:"",orderRefund:!1,permission:!1,readonly:!0,deletePermission:!1,mainLoad:!0,menuList:[],menuType:!1,nowTab:"first",progressList:[],openedTab:[{value:"首页",routerName:"first",name:"first",delNo:!0,path:"/index"}]},mutations:i,actions:u})},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t("7+uW"),a=[{name:"",value:"教研管理",icon:"icon-material",list:[{value:"教材列表",routerName:"resources",path:"/resources",cover:"1-1",router:{path:"/resources",name:"resources",component:function(e){return Promise.all([t.e(0),t.e(1)]).then(function(){var n=[t("z5EG")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"商品课程",icon:"icon-shangpin1",list:[{value:"课程列表",routerName:"lesson",path:"/lesson",cover:"2-1",router:{path:"/lesson",name:"lesson",component:function(e){return Promise.all([t.e(0),t.e(5)]).then(function(){var n=[t("AbSL")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"商品列表",routerName:"shop",path:"/shop",cover:"4-1",router:{path:"/shop",name:"shop",component:function(e){return Promise.all([t.e(0),t.e(24)]).then(function(){var n=[t("1djJ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"期数管理",icon:"icon-kecheng",list:[{value:"期数列表",routerName:"periods",path:"/periods",cover:"2-2",router:{path:"/periods",name:"periods",component:function(e){return Promise.all([t.e(0),t.e(14)]).then(function(){var n=[t("ayGs")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"班级列表",routerName:"class",path:"/class",cover:"2-3",router:{path:"/class",name:"class",component:function(e){return Promise.all([t.e(0),t.e(9)]).then(function(){var n=[t("OX9A")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"不上课日期",routerName:"noLesson",path:"/noLesson",cover:"2-4",router:{path:"/noLesson",name:"noLesson",component:function(e){return Promise.all([t.e(0),t.e(18)]).then(function(){var n=[t("sg/1")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"人员管理",icon:"icon-laoshi",list:[{value:"教师列表",routerName:"teacher",path:"/teacher",cover:"3-1",router:{path:"/teacher",name:"teacher",component:function(e){return Promise.all([t.e(0),t.e(15)]).then(function(){var n=[t("Y0Vi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"用户列表",routerName:"user",path:"/user",cover:"3-2",router:{path:"/user",name:"user",component:function(e){return Promise.all([t.e(0),t.e(7)]).then(function(){var n=[t("jFLA")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"订单管理",icon:"icon-dingdan",list:[{value:"订单列表",routerName:"order",path:"/order",cover:"5-1",router:{path:"/order",name:"order",component:function(e){return Promise.all([t.e(0),t.e(2)]).then(function(){var n=[t("2qmY")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"退款列表",routerName:"refund",path:"/refund",cover:"5-2",router:{path:"/refund",name:"refund",component:function(e){return Promise.all([t.e(0),t.e(17)]).then(function(){var n=[t("89rD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"提现列表",routerName:"putForward",path:"/putForward",cover:"5-3",router:{path:"/putForward",name:"putForward",component:function(e){return Promise.all([t.e(0),t.e(33)]).then(function(){var n=[t("F5pf")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"发货管理",routerName:"consignment",path:"/consignment",cover:"5-4",router:{path:"/consignment",name:"consignment",component:function(e){return t.e(29).then(function(){var n=[t("usUK")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"订单统计",routerName:"orderCount",path:"/orderCount",cover:"5-5",router:{path:"/orderCount",name:"orderCount",component:function(e){return Promise.all([t.e(0),t.e(27)]).then(function(){var n=[t("s7i+")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"实物管理",icon:"icon-shu",list:[{value:"单品列表",routerName:"single",path:"/single",cover:"6-1",router:{path:"/single",name:"single",component:function(e){return Promise.all([t.e(0),t.e(11)]).then(function(){var n=[t("B31M")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"盒子列表",routerName:"box",path:"/box",cover:"6-2",router:{path:"/box",name:"box",component:function(e){return Promise.all([t.e(0),t.e(6)]).then(function(){var n=[t("+vCD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"公众号",icon:"icon-ai-weixin",list:[{value:"自动回复",routerName:"focusReply",path:"/focusReply",cover:"7-1",router:{path:"/focusReply",name:"focusReply",component:function(e){return Promise.all([t.e(0),t.e(8)]).then(function(){var n=[t("CK6D")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"关键词回复",routerName:"autoReply",path:"/autoReply",cover:"7-2",router:{path:"/autoReply",name:"autoReply",component:function(e){return Promise.all([t.e(0),t.e(10)]).then(function(){var n=[t("65NY")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"公众号菜单",routerName:"weChat",path:"/weChat",cover:"7-3",router:{path:"/weChat",name:"weChat",component:function(e){return Promise.all([t.e(0),t.e(12)]).then(function(){var n=[t("q5av")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"素材管理",routerName:"weChatResource",path:"/weChatResource",cover:"7-4",router:{path:"/weChatResource",name:"weChatResource",component:function(e){return Promise.all([t.e(0),t.e(23)]).then(function(){var n=[t("Xhqp")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"Banner管理",routerName:"banner",path:"/banner",cover:"7-5",router:{path:"/banner",name:"banner",component:function(e){return Promise.all([t.e(0),t.e(16)]).then(function(){var n=[t("CGL6")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"二维码管理",routerName:"qrcode",path:"/qrcode",cover:"7-6",router:{path:"/qrcode",name:"qrcode",component:function(e){return Promise.all([t.e(0),t.e(19)]).then(function(){var n=[t("lNiQ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"群发助手",routerName:"groupSend",path:"/groupSend",cover:"7-7",router:{path:"/groupSend",name:"groupSend",component:function(e){return Promise.all([t.e(0),t.e(32)]).then(function(){var n=[t("oerw")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"关注取关统计",routerName:"watchCount",path:"/watchCount",cover:"7-8",router:{path:"/watchCount",name:"watchCount",component:function(e){return Promise.all([t.e(0),t.e(30)]).then(function(){var n=[t("Dq6T")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"系统管理",icon:"icon-shezhi",list:[{value:"账号管理",routerName:"admin",path:"/admin",cover:"8-1",router:{path:"/admin",name:"admin",component:function(e){return Promise.all([t.e(0),t.e(25)]).then(function(){var n=[t("+jTk")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"角色管理",routerName:"role",path:"/role",cover:"8-2",router:{path:"/role",name:"role",component:function(e){return Promise.all([t.e(0),t.e(34)]).then(function(){var n=[t("Vt1u")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"菜单管理",routerName:"menu",path:"/menu",cover:"8-3",router:{path:"/menu",name:"menu",component:function(e){return Promise.all([t.e(0),t.e(26)]).then(function(){var n=[t("aTXs")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"系统配置",routerName:"sysConfig",path:"/sysConfig",cover:"8-4",router:{path:"/sysConfig",name:"sysConfig",component:function(e){return Promise.all([t.e(0),t.e(21)]).then(function(){var n=[t("gaNG")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"操作日志",routerName:"adminLog",path:"/adminLog",cover:"8-5",router:{path:"/adminLog",name:"adminLog",component:function(e){return Promise.all([t.e(0),t.e(31)]).then(function(){var n=[t("WZgi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]}],r={name:"App",data:function(){return{}},mounted:function(){var e=this;if(window.location.href.indexOf("login")<0){var n=this.$store.state.progressList,t=[];this.$router.options.routes[0].children=[];var o=n.find(function(e){return"5-1"===e.cover});o&&o.refund&&(this.$store.state.orderRefund=!0),a.forEach(function(o){var a=!1,r=[];o.list.forEach(function(t){var o=n.find(function(e){return e.cover===t.cover});o&&(t.router.meta={},t.router.meta.readonly=o.readonly,t.router.meta.delete=!!o.delete,r.push(t),e.$router.options.routes[0].children.push(t.router),a=!0)}),a&&(o.list=r,t.push(o))}),this.$router.addRoutes([this.$router.options.routes[0]]),this.$store.dispatch("setMenu",t)}}},i={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},staticRenderFns:[]};var u=t("VU/8")(r,i,!1,function(e){t("uznI")},null,null).exports,c=t("YaEn"),s=t("zL8q"),l=t.n(s),p=(t("tvR6"),t("IcnI"));o.default.use(l.a),o.default.config.productionTip=!1,new o.default({el:"#app",store:p.a,router:c.a,components:{App:u},template:"<App/>"})},YaEn:function(e,n,t){"use strict";var o=t("7+uW"),a=t("IcnI"),r=t("/ocq"),i=t("zSLJ");o.default.use(r.a);var u=new r.a({routes:[{path:"/",name:"index",component:function(e){return Promise.all([t.e(0),t.e(4)]).then(function(){var n=[t("jHcp")];e.apply(null,n)}.bind(this)).catch(t.oe)},redirect:{name:"first"},children:[{path:"",name:"first",component:function(e){return t.e(3).then(function(){var n=[t("sJm1")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/userDetail/:id",name:"userDetail",component:function(e){return Promise.all([t.e(0),t.e(13)]).then(function(){var n=[t("9PRC")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/teacher/:id",name:"teacherDetail",component:function(e){return Promise.all([t.e(0),t.e(22)]).then(function(){var n=[t("hFUZ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}]},{path:"/login",name:"login",component:function(e){return Promise.all([t.e(0),t.e(20)]).then(function(){var n=[t("0HId")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}},{path:"/upload",name:"upload",component:function(e){return Promise.all([t.e(0),t.e(28)]).then(function(){var n=[t("iPJD")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}}]});u.beforeEach(function(e,n,t){if(a.a.commit("mainCanShow"),i.a.get("cc_token")&&(a.a.dispatch("setToken",i.a.get("cc_token")),a.a.dispatch("setPermission",JSON.parse(localStorage.getItem("permission"))),null!==i.a.get("cc_user_name")&&a.a.dispatch("setUserName",i.a.get("cc_user_name"))),a.a.state.nowTab=e.name,e.matched.length>1&&"first"!==e.name){for(var o=void 0,r=0;r<a.a.state.menuList.length;r++)for(var u=a.a.state.menuList[r],c=0;c<u.list.length;c++){var s=u.list[c];s.path===e.path&&(o=s)}a.a.state.openedTab.indexOf(o)<0&&a.a.state.openedTab.push(o)}if(e.meta.readonly?a.a.dispatch("readonly",!0):a.a.dispatch("readonly",!1),"userDetail"===e.name){var l=JSON.parse(localStorage.getItem("permission")).find(function(e){return"3-2"===e.cover}).readonly;a.a.dispatch("readonly",l)}e.meta.delete?a.a.dispatch("deletePermission",!0):a.a.dispatch("deletePermission",!1),e.matched.some(function(e){return!0!==e.meta.skip_auth})&&!a.a.state.token?t({path:"/login"}):t()}),u.onError(function(e){var n=e.message.match(/Loading chunk (\d)+ failed/g),t=u.history.pending.fullPath;n&&u.replace(t)}),n.a=u},tvR6:function(e,n){},uznI:function(e,n){},zSLJ:function(e,n,t){"use strict";n.a={set:function(e,n,t){var o=new Date;o.setTime(o.getTime()+864e5*t),window.document.cookie=e+"="+n+";path=/;expires="+o.toGMTString()},get:function(e){var n=window.document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return n?n[2]:null},delete:function(e){this.set(e,"",-1)}}}},["NHnr"]);
\ No newline at end of file
webpackJsonp([36],{IcnI:function(e,n,t){"use strict";var o=t("7+uW"),a=t("NYxO"),r=t("zSLJ"),i={setToken:function(e,n){e.token=n,r.a.set("cc_token",n)},setUserName:function(e,n){e.userName=n,r.a.set("cc_user_name",n)},setPermission:function(e,n){e.progressList=n,localStorage.setItem("permission",JSON.stringify(n))},setMenu:function(e,n){e.menuList=n},readonly:function(e,n){e.readonly=n},deletePermission:function(e,n){e.deletePermission=n},mainCanShow:function(e){e.mainLoad=!1},mainUnShow:function(e){e.mainLoad=!0},changeParentRouter:function(e,n){e.menuList.find(function(e){return e.name===n.name}).routerName=n.to.name},progress:function(e,n){switch(n.type){case"new":e.progressList.push({num:0,id:n.id});break;case"change":e.progressList.find(function(e){return e.id===n.id}).num=n.num;break;case"delete":e.progressList.find(function(e){return e.id===n.id})}}},u={setToken:function(e,n){(0,e.commit)("setToken",n)},setUserName:function(e,n){(0,e.commit)("setUserName",n)},setProgress:function(e,n){(0,e.commit)("progress",n)},setPermission:function(e,n){(0,e.commit)("setPermission",n)},setMenu:function(e,n){(0,e.commit)("setMenu",n)},readonly:function(e,n){(0,e.commit)("readonly",n)},deletePermission:function(e,n){var t=e.commit;console.log(n),t("deletePermission",n)}};o.default.use(a.a);n.a=new a.a.Store({state:{show:!1,userName:"",token:"",orderRefund:!1,permission:!1,readonly:!0,deletePermission:!1,mainLoad:!0,menuList:[],menuType:!1,nowTab:"first",progressList:[],openedTab:[{value:"首页",routerName:"first",name:"first",delNo:!0,path:"/index"}]},mutations:i,actions:u})},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t("7+uW"),a=[{name:"",value:"教研管理",icon:"icon-material",list:[{value:"教材列表",routerName:"resources",path:"/resources",cover:"1-1",router:{path:"/resources",name:"resources",component:function(e){return Promise.all([t.e(0),t.e(1)]).then(function(){var n=[t("z5EG")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"商品课程",icon:"icon-shangpin1",list:[{value:"课程列表",routerName:"lesson",path:"/lesson",cover:"2-1",router:{path:"/lesson",name:"lesson",component:function(e){return Promise.all([t.e(0),t.e(5)]).then(function(){var n=[t("AbSL")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"商品列表",routerName:"shop",path:"/shop",cover:"4-1",router:{path:"/shop",name:"shop",component:function(e){return Promise.all([t.e(0),t.e(24)]).then(function(){var n=[t("1djJ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"期数管理",icon:"icon-kecheng",list:[{value:"期数列表",routerName:"periods",path:"/periods",cover:"2-2",router:{path:"/periods",name:"periods",component:function(e){return Promise.all([t.e(0),t.e(14)]).then(function(){var n=[t("ayGs")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"班级列表",routerName:"class",path:"/class",cover:"2-3",router:{path:"/class",name:"class",component:function(e){return Promise.all([t.e(0),t.e(9)]).then(function(){var n=[t("OX9A")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"不上课日期",routerName:"noLesson",path:"/noLesson",cover:"2-4",router:{path:"/noLesson",name:"noLesson",component:function(e){return Promise.all([t.e(0),t.e(18)]).then(function(){var n=[t("sg/1")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"人员管理",icon:"icon-laoshi",list:[{value:"教师列表",routerName:"teacher",path:"/teacher",cover:"3-1",router:{path:"/teacher",name:"teacher",component:function(e){return Promise.all([t.e(0),t.e(15)]).then(function(){var n=[t("Y0Vi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"用户列表",routerName:"user",path:"/user",cover:"3-2",router:{path:"/user",name:"user",component:function(e){return Promise.all([t.e(0),t.e(7)]).then(function(){var n=[t("jFLA")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"订单管理",icon:"icon-dingdan",list:[{value:"订单列表",routerName:"order",path:"/order",cover:"5-1",router:{path:"/order",name:"order",component:function(e){return Promise.all([t.e(0),t.e(2)]).then(function(){var n=[t("2qmY")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"退款列表",routerName:"refund",path:"/refund",cover:"5-2",router:{path:"/refund",name:"refund",component:function(e){return Promise.all([t.e(0),t.e(17)]).then(function(){var n=[t("89rD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"提现列表",routerName:"putForward",path:"/putForward",cover:"5-3",router:{path:"/putForward",name:"putForward",component:function(e){return Promise.all([t.e(0),t.e(33)]).then(function(){var n=[t("F5pf")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"发货管理",routerName:"consignment",path:"/consignment",cover:"5-4",router:{path:"/consignment",name:"consignment",component:function(e){return t.e(30).then(function(){var n=[t("usUK")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"订单统计",routerName:"orderCount",path:"/orderCount",cover:"5-5",router:{path:"/orderCount",name:"orderCount",component:function(e){return Promise.all([t.e(0),t.e(27)]).then(function(){var n=[t("s7i+")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"实物管理",icon:"icon-shu",list:[{value:"单品列表",routerName:"single",path:"/single",cover:"6-1",router:{path:"/single",name:"single",component:function(e){return Promise.all([t.e(0),t.e(11)]).then(function(){var n=[t("B31M")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"盒子列表",routerName:"box",path:"/box",cover:"6-2",router:{path:"/box",name:"box",component:function(e){return Promise.all([t.e(0),t.e(6)]).then(function(){var n=[t("+vCD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"公众号",icon:"icon-ai-weixin",list:[{value:"自动回复",routerName:"focusReply",path:"/focusReply",cover:"7-1",router:{path:"/focusReply",name:"focusReply",component:function(e){return Promise.all([t.e(0),t.e(8)]).then(function(){var n=[t("CK6D")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"关键词回复",routerName:"autoReply",path:"/autoReply",cover:"7-2",router:{path:"/autoReply",name:"autoReply",component:function(e){return Promise.all([t.e(0),t.e(10)]).then(function(){var n=[t("65NY")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"公众号菜单",routerName:"weChat",path:"/weChat",cover:"7-3",router:{path:"/weChat",name:"weChat",component:function(e){return Promise.all([t.e(0),t.e(12)]).then(function(){var n=[t("q5av")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"素材管理",routerName:"weChatResource",path:"/weChatResource",cover:"7-4",router:{path:"/weChatResource",name:"weChatResource",component:function(e){return Promise.all([t.e(0),t.e(23)]).then(function(){var n=[t("Xhqp")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"Banner管理",routerName:"banner",path:"/banner",cover:"7-5",router:{path:"/banner",name:"banner",component:function(e){return Promise.all([t.e(0),t.e(16)]).then(function(){var n=[t("CGL6")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"二维码管理",routerName:"qrcode",path:"/qrcode",cover:"7-6",router:{path:"/qrcode",name:"qrcode",component:function(e){return Promise.all([t.e(0),t.e(19)]).then(function(){var n=[t("lNiQ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"群发助手",routerName:"groupSend",path:"/groupSend",cover:"7-7",router:{path:"/groupSend",name:"groupSend",component:function(e){return Promise.all([t.e(0),t.e(28)]).then(function(){var n=[t("oerw")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"关注取关统计",routerName:"watchCount",path:"/watchCount",cover:"7-8",router:{path:"/watchCount",name:"watchCount",component:function(e){return Promise.all([t.e(0),t.e(31)]).then(function(){var n=[t("Dq6T")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"系统管理",icon:"icon-shezhi",list:[{value:"账号管理",routerName:"admin",path:"/admin",cover:"8-1",router:{path:"/admin",name:"admin",component:function(e){return Promise.all([t.e(0),t.e(25)]).then(function(){var n=[t("+jTk")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"角色管理",routerName:"role",path:"/role",cover:"8-2",router:{path:"/role",name:"role",component:function(e){return Promise.all([t.e(0),t.e(34)]).then(function(){var n=[t("Vt1u")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"菜单管理",routerName:"menu",path:"/menu",cover:"8-3",router:{path:"/menu",name:"menu",component:function(e){return Promise.all([t.e(0),t.e(26)]).then(function(){var n=[t("aTXs")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"系统配置",routerName:"sysConfig",path:"/sysConfig",cover:"8-4",router:{path:"/sysConfig",name:"sysConfig",component:function(e){return Promise.all([t.e(0),t.e(21)]).then(function(){var n=[t("gaNG")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"操作日志",routerName:"adminLog",path:"/adminLog",cover:"8-5",router:{path:"/adminLog",name:"adminLog",component:function(e){return Promise.all([t.e(0),t.e(32)]).then(function(){var n=[t("WZgi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]}],r={name:"App",data:function(){return{}},mounted:function(){var e=this;if(window.location.href.indexOf("login")<0){var n=this.$store.state.progressList,t=[];this.$router.options.routes[0].children=[];var o=n.find(function(e){return"5-1"===e.cover});o&&o.refund&&(this.$store.state.orderRefund=!0),a.forEach(function(o){var a=!1,r=[];o.list.forEach(function(t){var o=n.find(function(e){return e.cover===t.cover});o&&(t.router.meta={},t.router.meta.readonly=o.readonly,t.router.meta.delete=!!o.delete,r.push(t),e.$router.options.routes[0].children.push(t.router),a=!0)}),a&&(o.list=r,t.push(o))}),this.$router.addRoutes([this.$router.options.routes[0]]),this.$store.dispatch("setMenu",t)}}},i={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},staticRenderFns:[]};var u=t("VU/8")(r,i,!1,function(e){t("uznI")},null,null).exports,c=t("YaEn"),s=t("zL8q"),l=t.n(s),p=(t("tvR6"),t("IcnI"));o.default.use(l.a),o.default.config.productionTip=!1,new o.default({el:"#app",store:p.a,router:c.a,components:{App:u},template:"<App/>"})},YaEn:function(e,n,t){"use strict";var o=t("7+uW"),a=t("IcnI"),r=t("/ocq"),i=t("zSLJ");o.default.use(r.a);var u=new r.a({routes:[{path:"/",name:"index",component:function(e){return Promise.all([t.e(0),t.e(4)]).then(function(){var n=[t("jHcp")];e.apply(null,n)}.bind(this)).catch(t.oe)},redirect:{name:"first"},children:[{path:"",name:"first",component:function(e){return t.e(3).then(function(){var n=[t("sJm1")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/userDetail/:id",name:"userDetail",component:function(e){return Promise.all([t.e(0),t.e(13)]).then(function(){var n=[t("9PRC")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/teacher/:id",name:"teacherDetail",component:function(e){return Promise.all([t.e(0),t.e(22)]).then(function(){var n=[t("hFUZ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}]},{path:"/login",name:"login",component:function(e){return Promise.all([t.e(0),t.e(20)]).then(function(){var n=[t("0HId")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}},{path:"/upload",name:"upload",component:function(e){return Promise.all([t.e(0),t.e(29)]).then(function(){var n=[t("iPJD")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}}]});u.beforeEach(function(e,n,t){if(a.a.commit("mainCanShow"),i.a.get("cc_token")&&(a.a.dispatch("setToken",i.a.get("cc_token")),a.a.dispatch("setPermission",JSON.parse(localStorage.getItem("permission"))),null!==i.a.get("cc_user_name")&&a.a.dispatch("setUserName",i.a.get("cc_user_name"))),a.a.state.nowTab=e.name,e.matched.length>1&&"first"!==e.name){for(var o=void 0,r=0;r<a.a.state.menuList.length;r++)for(var u=a.a.state.menuList[r],c=0;c<u.list.length;c++){var s=u.list[c];s.path===e.path&&(o=s)}a.a.state.openedTab.indexOf(o)<0&&a.a.state.openedTab.push(o)}if(e.meta.readonly?a.a.dispatch("readonly",!0):a.a.dispatch("readonly",!1),"userDetail"===e.name){var l=JSON.parse(localStorage.getItem("permission")).find(function(e){return"3-2"===e.cover}).readonly;a.a.dispatch("readonly",l)}e.meta.delete?a.a.dispatch("deletePermission",!0):a.a.dispatch("deletePermission",!1),e.matched.some(function(e){return!0!==e.meta.skip_auth})&&!a.a.state.token?t({path:"/login"}):t()}),u.onError(function(e){var n=e.message.match(/Loading chunk (\d)+ failed/g),t=u.history.pending.fullPath;n&&u.replace(t)}),n.a=u},tvR6:function(e,n){},uznI:function(e,n){},zSLJ:function(e,n,t){"use strict";n.a={set:function(e,n,t){var o=new Date;o.setTime(o.getTime()+864e5*t),window.document.cookie=e+"="+n+";path=/;expires="+o.toGMTString()},get:function(e){var n=window.document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return n?n[2]:null},delete:function(e){this.set(e,"",-1)}}}},["NHnr"]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,t,f){for(var o,b,d,i=0,u=[];i<a.length;i++)b=a[i],n[b]&&u.push(n[b][0]),n[b]=0;for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);for(c&&c(a,t,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)d=r(r.s=f[i]);return d};var a={},n={37:0};function r(c){if(a[c])return a[c].exports;var n=a[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var c=n[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,r){c=n[e]=[a,r]});c[2]=a;var t=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,r.nc&&f.setAttribute("nonce",r.nc),f.src=r.p+"static/js/"+e+"."+{0:"a9dcda9e658930b22124",1:"306489e58aa1dd427075",2:"7be5f21caf963e312945",3:"d0a09be5802508c20889",4:"041eaca3042f1c07f3a3",5:"adfc251de9ba6b046773",6:"8d2eb1be5e3e7aedbce5",7:"05644890f0c827489843",8:"0a64dc0cec9f59a60bfd",9:"fdb2456a1a1e15014fec",10:"45a67dd1b842f0165d78",11:"376e91753ca3b33bc028",12:"58ce7ac161dab6328eb8",13:"10de92a398754aba08cc",14:"c1fd19268f912047ae47",15:"1b2ab16c47379ce720ea",16:"971ab6e2b83e9be22f62",17:"941ea260ee0291baa16e",18:"5b332e479334bbc440e5",19:"4e09f6718b124f28022f",20:"60f44e7dbe20f939f3a4",21:"2ee500575dc7e9845cf2",22:"38829206b1b327c9fecf",23:"17fe14f4b6cb270d026b",24:"c3b88aeb47b1a61442e3",25:"23ed0aafebb740e6c110",26:"8c1a547e4b01e6c5ac08",27:"6bb2a8bf9329002e8632",28:"1f02a790b2cfab0054cc",29:"93b2594f11f5bbcd4dde",30:"b4c3340ec41af90ef515",31:"3c7fe3b0236f85235e4e",32:"ad2f6580a79d62a26b80",33:"3c485c9c3201cf9d5f1b",34:"86cd690191b9743a186c"}[e]+".js";var o=setTimeout(b,12e4);function b(){f.onerror=f.onload=null,clearTimeout(o);var c=n[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return f.onerror=f.onload=b,t.appendChild(f),a},r.m=e,r.c=a,r.d=function(e,c,a){r.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},r.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(c,"a",c),c},r.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},r.p="/",r.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,t,f){for(var o,b,d,i=0,u=[];i<c.length;i++)b=c[i],n[b]&&u.push(n[b][0]),n[b]=0;for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);for(a&&a(c,t,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)d=r(r.s=f[i]);return d};var c={},n={37:0};function r(a){if(c[a])return c[a].exports;var n=c[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var a=n[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,r){a=n[e]=[c,r]});a[2]=c;var t=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,r.nc&&f.setAttribute("nonce",r.nc),f.src=r.p+"static/js/"+e+"."+{0:"a9dcda9e658930b22124",1:"306489e58aa1dd427075",2:"7be5f21caf963e312945",3:"d0a09be5802508c20889",4:"041eaca3042f1c07f3a3",5:"adfc251de9ba6b046773",6:"8d2eb1be5e3e7aedbce5",7:"05644890f0c827489843",8:"0a64dc0cec9f59a60bfd",9:"fdb2456a1a1e15014fec",10:"45a67dd1b842f0165d78",11:"376e91753ca3b33bc028",12:"58ce7ac161dab6328eb8",13:"10de92a398754aba08cc",14:"c1fd19268f912047ae47",15:"1b2ab16c47379ce720ea",16:"971ab6e2b83e9be22f62",17:"941ea260ee0291baa16e",18:"5b332e479334bbc440e5",19:"4e09f6718b124f28022f",20:"60f44e7dbe20f939f3a4",21:"2ee500575dc7e9845cf2",22:"38829206b1b327c9fecf",23:"17fe14f4b6cb270d026b",24:"c3b88aeb47b1a61442e3",25:"23ed0aafebb740e6c110",26:"8c1a547e4b01e6c5ac08",27:"6bb2a8bf9329002e8632",28:"a28103be212b30f44d99",29:"07ef8e38c7c42c8f1a35",30:"4b589312b142949a01a1",31:"8fd31074f5a59177f502",32:"8bebf5fc452eee8131ac",33:"3c485c9c3201cf9d5f1b",34:"86cd690191b9743a186c"}[e]+".js";var o=setTimeout(b,12e4);function b(){f.onerror=f.onload=null,clearTimeout(o);var a=n[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return f.onerror=f.onload=b,t.appendChild(f),c},r.m=e,r.c=c,r.d=function(e,a,c){r.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},r.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(a,"a",a),a},r.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},r.p="/",r.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment