Commit 963e28eb authored by wangwei's avatar wangwei

打包

parent 952ef504
<!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.cf5187f15d8c46f7557397e22b494f48.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.13c76aa722a3d323fe2c.js></script><script type=text/javascript src=/static/js/vendor.9122c146b78876133e6f.js></script><script type=text/javascript src=/static/js/app.3dcfd72481cacccfcc93.js></script></body></html>
\ No newline at end of file
<!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.93ca6815c8eb1f516662e92970ad1dcf.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.43c1b75f7be095b7d414.js></script><script type=text/javascript src=/static/js/vendor.9122c146b78876133e6f.js></script><script type=text/javascript src=/static/js/app.8962f4e20a04fcdfc199.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([10],{"/xvz":function(t,e){},XjFf:function(t,e){},ayGs:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o("CCn6"),a=o("+TkF"),r=o("kmJW"),i={props:["dialogObj"],data:function(){return{nowPage:1,total:0,goodList:[],currentRow:null}},components:{page:r.a},filters:{isOrNot:function(t){return a.h[t]},goodsType:function(t){return a.e[t]},lessonType:function(t){return a.i[t]},goodsStatus:function(t){return a.d[t]}},methods:{initPage:function(){var t=this;Object(n._11)().then(function(e){t.goodList=e.list,t.total=e.total})},handleCurrentChange:function(t){this.currentRow=t},onConfirm:function(){this.$emit("reflash",this.currentRow)}},mounted:function(){this.initPage()}},s={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("el-dialog",{attrs:{title:t.dialogObj.title,visible:t.dialogObj.show},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:t.goodList,"row-key":"id","highlight-current-row":""},on:{"current-change":t.handleCurrentChange}},[o("el-table-column",{attrs:{prop:"id",label:"商品ID"}}),t._v(" "),o("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),o("el-table-column",{attrs:{label:"商品类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("goodsType")(e.row.goods_type))+"\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"现价"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.current_price/100)+"元\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"课程类别"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("lessonType")(e.row.course_type))+"\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"是否有实物"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("isOrNot")(e.row.is_real))+"\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("goodsStatus")(e.row.status))+"\n ")]}}])})],1),t._v(" "),o("page",{attrs:{nowPage:t.nowPage,total:t.total}}),t._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(e){t.dialogObj.show=!1}}},[t._v("取 消")]),t._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:t.onConfirm}},[t._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var l=o("VU/8")(i,s,!1,function(t){o("XjFf")},"data-v-bf015d34",null).exports,c={props:["dialogObj"],data:function(){return{loading:!1,form:{},teacherList:[],viewTeacher:"",pickerOptions1:{disabledDate:function(t){return!(t.getTime()>Date.now())}},options:[{value:0,label:"周日"},{value:1,label:"周一"},{value:2,label:"周二"},{value:3,label:"周三"},{value:4,label:"周四"},{value:5,label:"周五"},{value:6,label:"周六"}],teacherOptions:[],teacher1Options:[],teacher2Options:[],goodList:[],itemOptions:[],rules:{title:[{required:!0,message:"请输入名称",trigger:"change"}],startNum:[{required:!0,message:"请输入开始主题",trigger:"change"}],start_at:[{required:!0,message:"请选择开始上课时间",trigger:"change"}],rest_week_day:[{required:!0,message:"请选择周几不上课",trigger:"change"}],teacher_ids:[{required:!0,message:"请选择老师ID",trigger:"change"}],goods_id:[{required:!0,message:"商品ID不能为空",trigger:"change"}],teacherList:[{required:!0,message:"带班老师不能为空",trigger:"change"}],viewTeacher:[{required:!0,message:"观摩老师不能为空",trigger:"change"}]}}},components:{goodDialog:l},filters:{isOrNot:function(t){return a.h[t]},goodsType:function(t){return a.e[t]},lessonType:function(t){return a.i[t]},goodsStatus:function(t){return a.d[t]},filterGoods:function(t){return t.name+"["+t.current_price/100+"元]"}},methods:{sub:function(){var t=this;this.$refs.form.validate(function(e){if(e){var o=t.form.goods_id,a={title:t.form.title,start_num:t.form.startNum,start_at:t.form.start_at,rest_week_day:t.form.rest_week_day?t.form.rest_week_day.join(","):""};t.form.id?Object(n._8)(t.form.id,a).then(function(e){t.$message({type:"success",message:"编辑成功!"}),t.$emit("reflash")}):(a.teacher_ids=t.form.teacherList.join(","),a.view_teacher_id=parseInt(t.form.viewTeacher),Object(n.T)(o,a).then(function(e){t.$message({type:"success",message:"添加成功!"}),t.$emit("reflash")}))}})},getTeachers:function(){var t=this;Object(n._26)().then(function(e){t.teacherOptions=e.list,t.teacher1Options=e.list,t.teacher2Options=e.list})},findDifferentArray:function(t,e){var o=[];return t.forEach(function(t){-1===e.findIndex(function(e){return t.id==e})&&o.push(t)}),o},onTeacher1Change:function(t){this.teacher2Options=t?this.findDifferentArray(this.teacherOptions,t):this.teacherOptions},onTeacher2Change:function(t){this.teacher1Options=t?this.findDifferentArray(this.teacherOptions,[t]):this.teacherOptions},onOptionChange:function(t){var e=this.goodList.findIndex(function(e){return e.id=t});e>-1&&this.getLessonDetail(this.goodList[e].course_id)},getLessonDetail:function(t){var e=this;this.form.start_num="",Object(n._13)(t,{}).then(function(t){e.itemOptions=t.detail[t.type]})},getGoodsOption:function(){var t=this;Object(n._11)({page:1,limit:100}).then(function(e){t.goodList=e.list})}},mounted:function(){this.form=this.dialogObj.form,this.getTeachers(),this.getGoodsOption(),this.dialogObj.form.course_id&&this.getLessonDetail(this.dialogObj.form.course_id),this.teacherList=this.dialogObj.form.teacher_ids}},u={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("el-dialog",{attrs:{title:t.dialogObj.title,center:"","append-to-body":"",visible:t.dialogObj.show,width:"800px"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[o("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[o("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px",rules:t.rules}},[o("el-row",[o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{label:"商品名称",prop:"goods_id"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:"",disabled:!!t.form.id},on:{change:t.onOptionChange},model:{value:t.form.goods_id,callback:function(e){t.$set(t.form,"goods_id",e)},expression:"form.goods_id"}},t._l(t.goodList,function(e,n){return o("el-option",{key:n,attrs:{label:t._f("filterGoods")(e),value:e.id}})}))],1)],1)],1),t._v(" "),o("el-form-item",{attrs:{label:"期数名称",prop:"title"}},[o("el-input",{model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}})],1),t._v(" "),o("el-form-item",{attrs:{label:"开始主题",prop:"startNum"}},[o("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:t.form.startNum,callback:function(e){t.$set(t.form,"startNum",e)},expression:"form.startNum"}},t._l(t.itemOptions,function(t){return o("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}))],1),t._v(" "),o("el-form-item",{attrs:{label:"开始上课时间",prop:"start_at"}},[o("el-date-picker",{attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"date","picker-options":t.pickerOptions1,placeholder:"选择日期"},model:{value:t.form.start_at,callback:function(e){t.$set(t.form,"start_at",e)},expression:"form.start_at"}})],1),t._v(" "),t.form.id?t._e():o("el-form-item",{attrs:{label:"带班老师",prop:"teacherList"}},[o("el-select",{attrs:{multiple:"",placeholder:"请选择"},on:{change:t.onTeacher1Change},model:{value:t.form.teacherList,callback:function(e){t.$set(t.form,"teacherList",e)},expression:"form.teacherList"}},t._l(t.teacher1Options,function(t){return o("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}))],1),t._v(" "),t.form.id?t._e():o("el-form-item",{attrs:{label:"观摩老师",prop:"viewTeacher"}},[o("el-select",{attrs:{placeholder:"请选择"},on:{change:t.onTeacher2Change},model:{value:t.form.viewTeacher,callback:function(e){t.$set(t.form,"viewTeacher",e)},expression:"form.viewTeacher"}},t._l(t.teacher2Options,function(t){return o("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}))],1),t._v(" "),o("el-form-item",{attrs:{label:"不上课日期"}},[o("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:t.form.rest_week_day,callback:function(e){t.$set(t.form,"rest_week_day",e)},expression:"form.rest_week_day"}},t._l(t.options,function(t){return o("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1)],1),t._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(e){t.dialogObj.show=!1}}},[t._v("取 消")]),t._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:t.sub}},[t._v("确 定")])],1)],1)])],1)},staticRenderFns:[]};var d=o("VU/8")(c,u,!1,function(t){o("caBy")},"data-v-0f19c860",null).exports,f=o("sf/l"),m={name:"index",data:function(){return{nowPage:1,total:0,limit:10,title:"",goodsId:null,lessonId:null,startAt:"",periodList:[],startTime:[],newDialog:{form:{},show:!1,title:""},goodList:[],lessonList:[]}},filters:{dayFilter:function(t){var e=t?t.split(","):[];return(e=e.map(function(t){return a.m[t]})).join(",")},filterGoods:function(t){return t.name+"["+t.current_price/100+"元]"}},components:{goodDialog:l,newDialog:d,page:r.a},methods:{onPageChange:function(t){this.nowPage=t,this.onSearch()},onSearch:function(){var t=this,e={limit:this.limit,page:this.nowPage};this.title&&(e.title=this.title),this.goodsId&&(e.goods_id=this.goodsId),this.lessonId&&(e.course_id=this.lessonId),this.startTime&&this.startTime.length>0&&(e.start_start_at=f.a.dateFmt(this.startTime[0],"yyyy-MM-dd"),e.start_end_at=f.a.dateFmt(this.startTime[1],"yyyy-MM-dd")),this.startAt&&(e.start_at=this.startAt),Object(n._17)(e).then(function(e){t.periodList=e.list,t.total=e.total})},onAdd:function(){this.newDialog.form.id="",this.newDialog.form.startNum="",this.newDialog.form.goods_id="",this.newDialog.form.title="",this.newDialog.form.start_at="",this.newDialog.form.rest_week_day=[],this.newDialog.form.teacher_ids=[],this.newDialog.title="添加期数",this.newDialog.show=!0},onEdit:function(t){console.log("onEdit",t);var e=[];t.rest_week_day&&t.rest_week_day.split(",").forEach(function(t){e.push(parseInt(t))});var o=[];t.teacher_ids&&t.teacher_ids.split(",").forEach(function(t){o.push(parseInt(t))}),this.newDialog.form={id:t.id,startNum:t.start_num,start_at:t.start_at,title:t.title,goods_id:t.goods_id,rest_week_day:e,teacher_ids:o,course_id:t.course_id},this.newDialog.title="编辑期数",this.newDialog.show=!0},onSave:function(t){this.newDialog.show=!1,this.onSearch()},del:function(t){var e=this;this.$confirm("此操作将删除该期数?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n.z)(t.id).then(function(t){e.$message({type:"success",message:"删除成功!"}),e.onSearch()})})},getGoodsOption:function(){var t=this;Object(n._11)({page:1,limit:100}).then(function(e){t.goodList=e.list})},getLessonOption:function(){var t=this;Object(n._12)({page:1,limit:100}).then(function(e){t.lessonList=e.list})}},mounted:function(){var t=this.$route.query;t&&t.goods_id&&(this.goodsId=parseInt(t.goods_id)),this.onSearch(),this.getGoodsOption(),this.getLessonOption()}},h={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"periods"},[o("div",{staticClass:"form-block"},[o("el-form",{attrs:{"label-width":"90px",inline:""}},[o("el-form-item",{attrs:{label:"期数标题"}},[o("el-input",{attrs:{placeholder:"请输入内容",clearable:""},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}})],1),t._v(" "),o("el-form-item",{attrs:{label:"商品名称"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:t.goodsId,callback:function(e){t.goodsId=e},expression:"goodsId"}},t._l(t.goodList,function(e,n){return o("el-option",{key:n,attrs:{label:t._f("filterGoods")(e),value:e.id}})}))],1),t._v(" "),o("el-form-item",{attrs:{label:"课程名称"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:t.lessonId,callback:function(e){t.lessonId=e},expression:"lessonId"}},t._l(t.lessonList,function(t,e){return o("el-option",{key:e,attrs:{label:t.title,value:t.id}})}))],1),t._v(" "),o("el-form-item",{attrs:{label:"开始时间"}},[o("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},model:{value:t.startTime,callback:function(e){t.startTime=e},expression:"startTime"}})],1),t._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")])],1),t._v(" "),t.$store.state.readonly?t._e():o("el-form-item",{staticStyle:{float:"right"}},[o("el-button",{attrs:{type:"primary"},on:{click:t.onAdd}},[t._v("添加期数")])],1)],1)],1),t._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:t.periodList}},[o("el-table-column",{attrs:{label:"期数标题"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("router-link",{attrs:{to:{name:"class",query:{goods_id:e.row.goods_id,periods_id:e.row.id}}}},[t._v("\n "+t._s(e.row.title)+"\n ")])]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),t._v(" "),o("el-table-column",{attrs:{label:"商品价格"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.goods_price/100)+"元\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"course_title",label:"课程名称"}}),t._v(" "),o("el-table-column",{attrs:{prop:"start_name",label:"开始主题/歌"}}),t._v(" "),o("el-table-column",{attrs:{prop:"current_category_name",label:"当前歌曲"}}),t._v(" "),o("el-table-column",{attrs:{label:"看课情况","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 可看课包数: "+t._s(e.row.watch_num)),o("br"),t._v(" 已看课包数:"+t._s(e.row.has_watch_num)+" "),o("br"),t._v("\n 续看课包数: "+t._s(e.row.duration_num)),o("br"),t._v(" 已续看课包数:"+t._s(e.row.has_duration_num)+"\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"不上课日期","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("dayFilter")(e.row.rest_week_day))+"\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"总学员数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.total_user_num?e.row.total_user_num:"")+"\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"start_at",label:"开始时间"}}),t._v(" "),o("el-table-column",{attrs:{label:"结束时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.over_at?e.row.over_at:"")+"\n ")]}}])}),t._v(" "),t.$store.state.readonly?t._e():o("el-table-column",{attrs:{label:"操作",width:"148"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){t.onEdit(e.row)}}},[t._v("\n 编辑\n ")]),t._v(" "),t.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){t.del(e.row)}}},[t._v("\n 删除\n ")]):t._e()]}}])})],1),t._v(" "),o("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange}}),t._v(" "),t.newDialog.show?o("new-dialog",{attrs:{dialogObj:t.newDialog},on:{reflash:t.onSave}}):t._e()],1)},staticRenderFns:[]};var _=o("VU/8")(m,h,!1,function(t){o("/xvz")},"data-v-0e0ac885",null);e.default=_.exports},caBy:function(t,e){},"sf/l":function(t,e,o){"use strict";e.a={dateFmt:function(t,e){var o={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),o)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?o[n]:("00"+o[n]).substr((""+o[n]).length)));return e},emotion:function(t){var e=t.replace(/\#|\;/gi,"");return'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'+["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"].indexOf(e)+'.gif" align="middle">'}}}});
\ No newline at end of file
webpackJsonp([10],{XjFf:function(t,e){},ayGs:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o("CCn6"),a=o("+TkF"),i=o("kmJW"),r={props:["dialogObj"],data:function(){return{nowPage:1,total:0,goodList:[],currentRow:null}},components:{page:i.a},filters:{isOrNot:function(t){return a.h[t]},goodsType:function(t){return a.e[t]},lessonType:function(t){return a.i[t]},goodsStatus:function(t){return a.d[t]}},methods:{initPage:function(){var t=this;Object(n._11)().then(function(e){t.goodList=e.list,t.total=e.total})},handleCurrentChange:function(t){this.currentRow=t},onConfirm:function(){this.$emit("reflash",this.currentRow)}},mounted:function(){this.initPage()}},s={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("el-dialog",{attrs:{title:t.dialogObj.title,visible:t.dialogObj.show},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:t.goodList,"row-key":"id","highlight-current-row":""},on:{"current-change":t.handleCurrentChange}},[o("el-table-column",{attrs:{prop:"id",label:"商品ID"}}),t._v(" "),o("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),o("el-table-column",{attrs:{label:"商品类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("goodsType")(e.row.goods_type))+"\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"现价"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.current_price/100)+"元\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"课程类别"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("lessonType")(e.row.course_type))+"\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"是否有实物"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("isOrNot")(e.row.is_real))+"\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("goodsStatus")(e.row.status))+"\n ")]}}])})],1),t._v(" "),o("page",{attrs:{nowPage:t.nowPage,total:t.total}}),t._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(e){t.dialogObj.show=!1}}},[t._v("取 消")]),t._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:t.onConfirm}},[t._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var l=o("VU/8")(r,s,!1,function(t){o("XjFf")},"data-v-bf015d34",null).exports,c={props:["dialogObj"],data:function(){return{loading:!1,form:{},teacherList:[],viewTeacher:"",pickerOptions1:{disabledDate:function(t){return!(t.getTime()>Date.now())}},options:[{value:0,label:"周日"},{value:1,label:"周一"},{value:2,label:"周二"},{value:3,label:"周三"},{value:4,label:"周四"},{value:5,label:"周五"},{value:6,label:"周六"}],teacherOptions:[],teacher1Options:[],teacher2Options:[],goodList:[],itemOptions:[],rules:{title:[{required:!0,message:"请输入名称",trigger:"change"}],startNum:[{required:!0,message:"请输入开始主题",trigger:"change"}],start_at:[{required:!0,message:"请选择开始上课时间",trigger:"change"}],rest_week_day:[{required:!0,message:"请选择周几不上课",trigger:"change"}],teacher_ids:[{required:!0,message:"请选择老师ID",trigger:"change"}],goods_id:[{required:!0,message:"商品ID不能为空",trigger:"change"}],teacherList:[{required:!0,message:"带班老师不能为空",trigger:"change"}],viewTeacher:[{required:!0,message:"观摩老师不能为空",trigger:"change"}]}}},components:{goodDialog:l},filters:{isOrNot:function(t){return a.h[t]},goodsType:function(t){return a.e[t]},lessonType:function(t){return a.i[t]},goodsStatus:function(t){return a.d[t]},filterGoods:function(t){return t.name+"["+t.current_price/100+"元]"}},methods:{sub:function(){var t=this;this.$refs.form.validate(function(e){if(e){var o=t.form.goods_id,a={title:t.form.title,start_num:t.form.startNum,start_at:t.form.start_at,rest_week_day:t.form.rest_week_day?t.form.rest_week_day.join(","):""};t.form.id?Object(n._8)(t.form.id,a).then(function(e){t.$message({type:"success",message:"编辑成功!"}),t.$emit("reflash")}):(a.teacher_ids=t.form.teacherList.join(","),a.view_teacher_id=parseInt(t.form.viewTeacher),Object(n.T)(o,a).then(function(e){t.$message({type:"success",message:"添加成功!"}),t.$emit("reflash")}))}})},getTeachers:function(){var t=this;Object(n._26)().then(function(e){t.teacherOptions=e.list,t.teacher1Options=e.list,t.teacher2Options=e.list})},findDifferentArray:function(t,e){var o=[];return t.forEach(function(t){-1===e.findIndex(function(e){return t.id==e})&&o.push(t)}),o},onTeacher1Change:function(t){this.teacher2Options=t?this.findDifferentArray(this.teacherOptions,t):this.teacherOptions},onTeacher2Change:function(t){this.teacher1Options=t?this.findDifferentArray(this.teacherOptions,[t]):this.teacherOptions},onOptionChange:function(t){var e=this.goodList.findIndex(function(e){return e.id=t});e>-1&&this.getLessonDetail(this.goodList[e].course_id)},getLessonDetail:function(t){var e=this;this.form.start_num="",Object(n._13)(t,{}).then(function(o){e.itemOptions=o.detail[o.type],console.log("getLessonDetail id",t),console.log("getLessonDetailthis.itemOptions",e.itemOptions)})},getGoodsOption:function(){var t=this;Object(n._11)({page:1,limit:100}).then(function(e){t.goodList=e.list})}},mounted:function(){this.form=this.dialogObj.form,this.getTeachers(),this.getGoodsOption(),console.log("this.dialogObj.form",this.dialogObj.form),this.dialogObj.form.goods_id&&this.getLessonDetail(this.dialogObj.form.goods_id),this.teacherList=this.dialogObj.form.teacher_ids}},d={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("el-dialog",{attrs:{title:t.dialogObj.title,center:"","append-to-body":"",visible:t.dialogObj.show,width:"800px"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[o("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[o("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px",rules:t.rules}},[o("el-row",[o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{label:"商品名称",prop:"goods_id"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:"",disabled:!!t.form.id},on:{change:t.onOptionChange},model:{value:t.form.goods_id,callback:function(e){t.$set(t.form,"goods_id",e)},expression:"form.goods_id"}},t._l(t.goodList,function(e,n){return o("el-option",{key:n,attrs:{label:t._f("filterGoods")(e),value:e.id}})}))],1)],1)],1),t._v(" "),o("el-form-item",{attrs:{label:"期数名称",prop:"title"}},[o("el-input",{model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}})],1),t._v(" "),o("el-form-item",{attrs:{label:"开始主题",prop:"startNum"}},[o("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:t.form.startNum,callback:function(e){t.$set(t.form,"startNum",e)},expression:"form.startNum"}},t._l(t.itemOptions,function(t){return o("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}))],1),t._v(" "),o("el-form-item",{attrs:{label:"开始上课时间",prop:"start_at"}},[o("el-date-picker",{attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"date","picker-options":t.pickerOptions1,placeholder:"选择日期"},model:{value:t.form.start_at,callback:function(e){t.$set(t.form,"start_at",e)},expression:"form.start_at"}})],1),t._v(" "),t.form.id?t._e():o("el-form-item",{attrs:{label:"带班老师",prop:"teacherList"}},[o("el-select",{attrs:{multiple:"",placeholder:"请选择"},on:{change:t.onTeacher1Change},model:{value:t.form.teacherList,callback:function(e){t.$set(t.form,"teacherList",e)},expression:"form.teacherList"}},t._l(t.teacher1Options,function(t){return o("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}))],1),t._v(" "),t.form.id?t._e():o("el-form-item",{attrs:{label:"观摩老师",prop:"viewTeacher"}},[o("el-select",{attrs:{placeholder:"请选择"},on:{change:t.onTeacher2Change},model:{value:t.form.viewTeacher,callback:function(e){t.$set(t.form,"viewTeacher",e)},expression:"form.viewTeacher"}},t._l(t.teacher2Options,function(t){return o("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}))],1),t._v(" "),o("el-form-item",{attrs:{label:"不上课日期"}},[o("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:t.form.rest_week_day,callback:function(e){t.$set(t.form,"rest_week_day",e)},expression:"form.rest_week_day"}},t._l(t.options,function(t){return o("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1)],1),t._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(e){t.dialogObj.show=!1}}},[t._v("取 消")]),t._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:t.sub}},[t._v("确 定")])],1)],1)])],1)},staticRenderFns:[]};var u=o("VU/8")(c,d,!1,function(t){o("d9xp")},"data-v-49d96da2",null).exports,f=o("sf/l"),m={name:"index",data:function(){return{nowPage:1,total:0,limit:10,title:"",goodsId:null,lessonId:null,startAt:"",periodList:[],startTime:[],newDialog:{form:{},show:!1,title:""},goodList:[],lessonList:[]}},filters:{dayFilter:function(t){var e=t?t.split(","):[];return(e=e.map(function(t){return a.m[t]})).join(",")},filterGoods:function(t){return t.name+"["+t.current_price/100+"元]"}},components:{goodDialog:l,newDialog:u,page:i.a},methods:{onPageChange:function(t){this.nowPage=t,this.onSearch()},onSearch:function(){var t=this,e={limit:this.limit,page:this.nowPage};this.title&&(e.title=this.title),this.goodsId&&(e.goods_id=this.goodsId),this.lessonId&&(e.course_id=this.lessonId),this.startTime&&this.startTime.length>0&&(e.start_start_at=f.a.dateFmt(this.startTime[0],"yyyy-MM-dd"),e.start_end_at=f.a.dateFmt(this.startTime[1],"yyyy-MM-dd")),this.startAt&&(e.start_at=this.startAt),Object(n._17)(e).then(function(e){t.periodList=e.list,t.total=e.total})},onAdd:function(){this.newDialog.form.id="",this.newDialog.form.startNum="",this.newDialog.form.goods_id="",this.newDialog.form.title="",this.newDialog.form.start_at="",this.newDialog.form.rest_week_day=[],this.newDialog.form.teacher_ids=[],this.newDialog.title="添加期数",this.newDialog.show=!0},onEdit:function(t){var e=[];t.rest_week_day&&t.rest_week_day.split(",").forEach(function(t){e.push(parseInt(t))});var o=[];t.teacher_ids&&t.teacher_ids.split(",").forEach(function(t){o.push(parseInt(t))}),this.newDialog.form={id:t.id,startNum:t.start_num,start_at:t.start_at,title:t.title,goods_id:t.goods_id,rest_week_day:e,teacher_ids:o},this.newDialog.title="编辑期数",this.newDialog.show=!0},onSave:function(t){this.newDialog.show=!1,this.onSearch()},del:function(t){var e=this;this.$confirm("此操作将删除该期数?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n.z)(t.id).then(function(t){e.$message({type:"success",message:"删除成功!"}),e.onSearch()})})},getGoodsOption:function(){var t=this;Object(n._11)({page:1,limit:100}).then(function(e){t.goodList=e.list})},getLessonOption:function(){var t=this;Object(n._12)({page:1,limit:100}).then(function(e){t.lessonList=e.list})}},mounted:function(){var t=this.$route.query;t&&t.goods_id&&(this.goodsId=parseInt(t.goods_id)),this.onSearch(),this.getGoodsOption(),this.getLessonOption()}},h={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"periods"},[o("div",{staticClass:"form-block"},[o("el-form",{attrs:{"label-width":"90px",inline:""}},[o("el-form-item",{attrs:{label:"期数标题"}},[o("el-input",{attrs:{placeholder:"请输入内容",clearable:""},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}})],1),t._v(" "),o("el-form-item",{attrs:{label:"商品名称"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:t.goodsId,callback:function(e){t.goodsId=e},expression:"goodsId"}},t._l(t.goodList,function(e,n){return o("el-option",{key:n,attrs:{label:t._f("filterGoods")(e),value:e.id}})}))],1),t._v(" "),o("el-form-item",{attrs:{label:"课程名称"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:t.lessonId,callback:function(e){t.lessonId=e},expression:"lessonId"}},t._l(t.lessonList,function(t,e){return o("el-option",{key:e,attrs:{label:t.title,value:t.id}})}))],1),t._v(" "),o("el-form-item",{attrs:{label:"开始时间"}},[o("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},model:{value:t.startTime,callback:function(e){t.startTime=e},expression:"startTime"}})],1),t._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")])],1),t._v(" "),t.$store.state.readonly?t._e():o("el-form-item",{staticStyle:{float:"right"}},[o("el-button",{attrs:{type:"primary"},on:{click:t.onAdd}},[t._v("添加期数")])],1)],1)],1),t._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:t.periodList}},[o("el-table-column",{attrs:{label:"期数标题"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("router-link",{attrs:{to:{name:"class",query:{goods_id:e.row.goods_id,periods_id:e.row.id}}}},[t._v("\n "+t._s(e.row.title)+"\n ")])]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),t._v(" "),o("el-table-column",{attrs:{label:"商品价格"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.goods_price/100)+"元\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"course_title",label:"课程名称"}}),t._v(" "),o("el-table-column",{attrs:{prop:"start_name",label:"开始主题/歌"}}),t._v(" "),o("el-table-column",{attrs:{prop:"current_category_name",label:"当前歌曲"}}),t._v(" "),o("el-table-column",{attrs:{label:"看课情况","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 可看课包数: "+t._s(e.row.watch_num)),o("br"),t._v(" 已看课包数:"+t._s(e.row.has_watch_num)+" "),o("br"),t._v("\n 续看课包数: "+t._s(e.row.duration_num)),o("br"),t._v(" 已续看课包数:"+t._s(e.row.has_duration_num)+"\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"不上课日期","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("dayFilter")(e.row.rest_week_day))+"\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"总学员数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.total_user_num?e.row.total_user_num:"")+"\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"start_at",label:"开始时间"}}),t._v(" "),o("el-table-column",{attrs:{label:"结束时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.over_at?e.row.over_at:"")+"\n ")]}}])}),t._v(" "),t.$store.state.readonly?t._e():o("el-table-column",{attrs:{label:"操作",width:"148"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){t.onEdit(e.row)}}},[t._v("\n 编辑\n ")]),t._v(" "),t.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){t.del(e.row)}}},[t._v("\n 删除\n ")]):t._e()]}}])})],1),t._v(" "),o("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange}}),t._v(" "),t.newDialog.show?o("new-dialog",{attrs:{dialogObj:t.newDialog},on:{reflash:t.onSave}}):t._e()],1)},staticRenderFns:[]};var _=o("VU/8")(m,h,!1,function(t){o("q6rs")},"data-v-15f29e56",null);e.default=_.exports},d9xp:function(t,e){},q6rs:function(t,e){},"sf/l":function(t,e,o){"use strict";e.a={dateFmt:function(t,e){var o={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),o)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?o[n]:("00"+o[n]).substr((""+o[n]).length)));return e},emotion:function(t){var e=t.replace(/\#|\;/gi,"");return'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'+["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"].indexOf(e)+'.gif" align="middle">'}}}});
\ No newline at end of file
webpackJsonp([18],{Xhqp:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("CCn6"),a={name:"resource",data:function(){return{mediaList:[],nowPage:1,total:0,limit:5,loading:!1,type:"news",imageList:[],uploadParam:{type:"wechat",chunk:0,count:1},fileUid:null,showProgress:!1,typeText:{image:"图片",video:"视频",voice:"语音"}}},components:{page:i("kmJW").a},mounted:function(){this.getMediaList(this.type)},computed:{progress:function(){var t=this;return this.$store.state.progressList.find(function(e){return e.id===t.fileUid}).num<100?this.$store.state.progressList.find(function(e){return e.id===t.fileUid}).num:100}},methods:{getMediaType:function(t){this.type=t,this.nowPage=1,this.getMediaList(t)},onPageChange:function(t){this.nowPage=t,this.getMediaList(this.type)},getMediaList:function(t){var e=this,i={type:t,page:this.nowPage,limit:this.limit};this.loading=!0,Object(s._14)(i).then(function(i){e.loading=!1,e.type=t,e.mediaList=i.item,e.total=i.total_count,0===i.item.length&&e.$message({showClose:!0,message:"暂无数据"})}).catch(function(){e.loading=!1})},handleUploadSuccess:function(t){console.log("handleUploadSuccess",t),200===t.code&&(this.imageList=[{name:t.data.url,url:"http://cdn.singsingenglish.com/"+t.data.url}])},uploadFile:function(t){var e=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:t.file.uid}),this.fileUid=t.file.uid,this.showProgress=!0,Object(s._43)({file:t.file,type:"wechat"}).then(function(t){e.imageList=[{name:t.url,url:"http://cdn.singsingenglish.com/"+t.url}],e.getMediaList(e.type),e.loading=!1,e.showProgress=!1,e.$message({type:"success",message:"上传成功!"})}).catch(function(){e.loading=!1,e.showProgress=!1})}}},n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"media"},[i("h2",{staticClass:"media-title"},[t._v("素材管理")]),t._v(" "),i("div",[i("ul",{staticClass:"media-navs"},[i("li",{staticClass:"media-nav js_top",class:"news"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("news")}}},[t._m(0)]),t._v(" "),i("li",{staticClass:"media-nav js_top",class:"image"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("image")}}},[t._m(1)]),t._v(" "),i("li",{staticClass:"media-nav js_top",class:"voice"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("voice")}}},[t._m(2)]),t._v(" "),i("li",{staticClass:"media-nav js_top",class:"video"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("video")}}},[t._m(3)])]),t._v(" "),i("div",{staticClass:"media-panel"},[i("div",{staticClass:"media-panel-top flex-bt"},[i("div",{staticClass:"media-panel-top-left"},[t._v("\n "+t._s(t.typeText[t.type])+"(共"+t._s(t.total)+"条)\n ")]),t._v(" "),t.showProgress?i("div",{staticClass:"progress"},[i("el-progress",{attrs:{percentage:t.progress,status:"success"}})],1):t._e(),t._v(" "),i("div",{staticClass:"media-panel-top-right"},[i("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:"/api/public/upload/zone","http-request":t.uploadFile,"show-file-list":!1,data:t.uploadParam}},[t.$store.state.readonly?t._e():i("el-button",{staticStyle:{order:"2"},attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")])],1)],1)]),t._v(" "),t.mediaList.length>0&&"news"===t.type?i("div",{staticClass:"d-start"},t._l(t.mediaList,function(e,s){return i("div",{key:s,staticClass:"news-media"},[i("el-card",{attrs:{"body-style":{padding:"0px"}}},t._l(e.content.news_item,function(s,a){return i("div",{staticStyle:{position:"relative"}},[1===e.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"digest"},[t._v(t._s(s.digest))]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):e.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===a?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"bottom-title"},[t._v(t._s(s.title))])]):i("div",{staticClass:"next-cover"},[i("span",{staticClass:"next-title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticClass:"next-img",attrs:{src:s.thumb_url}})]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t._e()])}))],1)})):t._e(),t._v(" "),t.mediaList.length>0&&"news"!==t.type?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(e){return["image"===t.type?i("a",{attrs:{href:e.row.url,target:"_blank"}},[i("img",{staticStyle:{width:"60px"},attrs:{src:e.row.url}})]):t._e(),t._v(" "),"video"===t.type&&e.row.info&&e.row.info.down_url?i("a",{attrs:{href:e.row.info.down_url,target:"_blank"}},[t._v("\n "+t._s(e.row.info.title)+"\n ")]):t._e(),t._v(" "),"voice"===t.type?i("audio",{attrs:{id:"myAudio",controls:""}},[i("source",{attrs:{src:e.row.url}}),t._v("\n Your browser does not support the audio element.\n ")]):t._e()]}}])})],1),t._v(" "),i("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange}})],1):t._e()])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("图文消息"),e("br")])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("图片"),e("br")])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("语音"),e("br")])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("视频"),e("br")])}]};var r=i("VU/8")(a,n,!1,function(t){i("oQPv"),i("vV8A")},"data-v-677cdd20",null);e.default=r.exports},oQPv:function(t,e){},vV8A:function(t,e){}});
\ No newline at end of file
webpackJsonp([18],{Xhqp:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("CCn6"),a={name:"resource",data:function(){return{mediaList:[],nowPage:1,total:0,limit:5,loading:!1,type:"news",imageList:[],uploadParam:{type:"wechat",chunk:0,count:1},fileUid:null,showProgress:!1,typeText:{image:"图片",video:"视频",voice:"语音"}}},components:{page:i("kmJW").a},mounted:function(){this.getMediaList(this.type)},computed:{progress:function(){var t=this;return this.$store.state.progressList.find(function(e){return e.id===t.fileUid}).num<100?this.$store.state.progressList.find(function(e){return e.id===t.fileUid}).num:100}},methods:{getMediaType:function(t){this.type=t,this.nowPage=1,this.getMediaList(t)},onPageChange:function(t){this.nowPage=t,this.getMediaList(this.type)},getMediaList:function(t){var e=this,i={type:t,page:this.nowPage,limit:this.limit};this.loading=!0,Object(s._14)(i).then(function(i){e.loading=!1,e.type=t,e.mediaList=i.item,e.total=i.total_count,0===i.item.length&&e.$message({showClose:!0,message:"暂无数据"})}).catch(function(){e.loading=!1})},handleUploadSuccess:function(t){console.log("handleUploadSuccess",t),200===t.code&&(this.imageList=[{name:t.data.url,url:"http://cdn.singsingenglish.com/"+t.data.url}])},uploadFile:function(t){var e=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:t.file.uid}),this.fileUid=t.file.uid,this.showProgress=!0,Object(s._43)({file:t.file,type:"wechat"}).then(function(t){e.imageList=[{name:t.url,url:"http://cdn.singsingenglish.com/"+t.url}],e.getMediaList(e.type),e.loading=!1,e.showProgress=!1,e.$message({type:"success",message:"上传成功!"})}).catch(function(){e.loading=!1,e.showProgress=!1})}}},n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"media"},[i("h2",{staticClass:"media-title"},[t._v("素材管理")]),t._v(" "),i("div",[i("ul",{staticClass:"media-navs"},[i("li",{staticClass:"media-nav js_top",class:"news"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("news")}}},[t._m(0)]),t._v(" "),i("li",{staticClass:"media-nav js_top",class:"image"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("image")}}},[t._m(1)]),t._v(" "),i("li",{staticClass:"media-nav js_top",class:"voice"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("voice")}}},[t._m(2)]),t._v(" "),i("li",{staticClass:"media-nav js_top",class:"video"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("video")}}},[t._m(3)])]),t._v(" "),i("div",{staticClass:"media-panel"},[i("div",{staticClass:"media-panel-top flex-bt"},[i("div",{staticClass:"media-panel-top-left"},[t._v("\n "+t._s(t.typeText[t.type])+"(共"+t._s(t.total)+"条)\n ")]),t._v(" "),t.showProgress?i("div",{staticClass:"progress"},[i("el-progress",{attrs:{percentage:t.progress,status:"success"}})],1):t._e(),t._v(" "),"news"!==t.type?i("div",{staticClass:"media-panel-top-right"},[i("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:"/api/public/upload/zone","http-request":t.uploadFile,"show-file-list":!1,data:t.uploadParam}},[t.$store.state.readonly?t._e():i("el-button",{staticStyle:{order:"2"},attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")])],1)],1):t._e()]),t._v(" "),t.mediaList.length>0&&"news"===t.type?i("div",{staticClass:"d-start",staticStyle:{"margin-bottom":"20px"}},t._l(t.mediaList,function(e,s){return i("div",{key:s,staticClass:"news-media"},[i("el-card",{attrs:{"body-style":{padding:"0px"}}},t._l(e.content.news_item,function(s,a){return i("div",{staticStyle:{position:"relative"}},[1===e.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"digest"},[t._v(t._s(s.digest))]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):e.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===a?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"bottom-title"},[t._v(t._s(s.title))])]):i("div",{staticClass:"next-cover"},[i("span",{staticClass:"next-title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticClass:"next-img",attrs:{src:s.thumb_url}})]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t._e()])}))],1)})):t._e(),t._v(" "),t.mediaList.length>0&&"news"===t.type?i("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange}}):t._e(),t._v(" "),t.mediaList.length>0&&"news"!==t.type?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(e){return["image"===t.type?i("a",{attrs:{href:e.row.url,target:"_blank"}},[i("img",{staticStyle:{width:"60px"},attrs:{src:e.row.url}})]):t._e(),t._v(" "),"video"===t.type&&e.row.info&&e.row.info.down_url?i("a",{attrs:{href:e.row.info.down_url,target:"_blank"}},[t._v("\n "+t._s(e.row.info.title)+"\n ")]):t._e(),t._v(" "),"voice"===t.type?i("audio",{attrs:{id:"myAudio",controls:""}},[i("source",{attrs:{src:e.row.url}}),t._v("\n Your browser does not support the audio element.\n ")]):t._e()]}}])})],1),t._v(" "),i("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange}})],1):t._e()],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("图文消息"),e("br")])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("图片"),e("br")])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("语音"),e("br")])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("视频"),e("br")])}]};var l=i("VU/8")(a,n,!1,function(t){i("tsSC"),i("vXT7")},"data-v-637154bc",null);e.default=l.exports},tsSC:function(t,e){},vXT7:function(t,e){}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([29],{"89rD":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("CCn6"),r={name:"index",components:{page:n("kmJW").a},data:function(){return{nowPage:1,total:0,limit:10,searchFrom:{nickname:"",user_id:""},list:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="退款中":1===e?t="退款成功":2===e&&(t="退款失败"),t}},mounted:function(){this.getRefundList()},methods:{editComment:function(e,t){var n=this;this.$prompt("编辑备注","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputValue:t}).then(function(t){var r=t.value;Object(a.P)(e,"refund",{desc:r}).then(function(e){n.$message({type:"success",message:"编辑备注成功"}),n.getRefundList()})})},onPageChange:function(e){this.nowPage=e,this.getRefundList()},getRefundList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),Object(a._20)(t).then(function(t){e.total=t.total,e.list=t.list})}}},l={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"refund"},[n("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px"}},[n("el-row",[n("el-col",{attrs:{span:6}},[n("el-form-item",{attrs:{label:"用户昵称"}},[n("el-input",{model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1)],1),e._v(" "),n("el-col",{attrs:{span:6}},[n("el-form-item",{attrs:{label:"用户ID"}},[n("el-input",{model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1)],1),e._v(" "),n("el-col",{attrs:{span:6,offset:6}},[n("el-form-item",{staticStyle:{float:"right"}},[n("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getRefundList}},[e._v("搜索")])],1)],1)],1)],1),e._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[n("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),n("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),e._v(" "),n("el-table-column",{attrs:{label:"用户信息"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n id:"+e._s(t.row.user_id)+"\n "),n("br"),e._v("\n 名称:"+e._s(t.row.user_nickname)+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"order_money",label:"订单金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.order_money/100))+"元\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"refund_money",label:"退款金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.refund_money/100))+"元\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"desc",label:"退款原因"}}),e._v(" "),n("el-table-column",{attrs:{prop:"callback",label:"微信回调"}}),e._v(" "),n("el-table-column",{attrs:{label:"退款状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}}),e._v(" "),e.$store.state.readonly?e._e():n("el-table-column",{attrs:{label:"操作","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(n){e.editComment(t.row.id,t.row.desc)}}},[e._v("\n 备注\n ")])]}}])})],1),e._v(" "),n("page",{attrs:{nowPage:e.nowPage,total:e.total},on:{pageChange:e.onPageChange}})],1)},staticRenderFns:[]};var o=n("VU/8")(r,l,!1,function(e){n("MlZH")},"data-v-0fee80fa",null);t.default=o.exports},MlZH:function(e,t){}});
\ No newline at end of file
webpackJsonp([20],{"89rD":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("CCn6"),r={name:"index",components:{page:n("kmJW").a},data:function(){return{nowPage:1,total:0,limit:10,searchFrom:{nickname:"",user_id:""},list:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="退款中":1===e?t="退款成功":2===e&&(t="退款失败"),t}},mounted:function(){this.getRefundList()},methods:{editComment:function(e,t){var n=this;this.$prompt("编辑备注","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputValue:t}).then(function(t){var r=t.value;Object(a.P)(e,"refund",{desc:r}).then(function(e){n.$message({type:"success",message:"编辑备注成功"}),n.getRefundList()})})},onPageChange:function(e){this.nowPage=e,this.getRefundList()},getRefundList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),Object(a._20)(t).then(function(t){e.total=t.total,e.list=t.list})}}},s={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"refund"},[n("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px"}},[n("el-row",[n("el-col",{attrs:{span:6}},[n("el-form-item",{attrs:{label:"用户昵称"}},[n("el-input",{model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1)],1),e._v(" "),n("el-col",{attrs:{span:6}},[n("el-form-item",{attrs:{label:"用户ID"}},[n("el-input",{model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1)],1),e._v(" "),n("el-col",{attrs:{span:6,offset:6}},[n("el-form-item",{staticStyle:{float:"right"}},[n("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getRefundList}},[e._v("搜索")])],1)],1)],1)],1),e._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[n("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),n("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),e._v(" "),n("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v("\n "+e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"order_money",label:"订单金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.order_money/100))+"元\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"refund_money",label:"退款金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.refund_money/100))+"元\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"desc",label:"退款原因"}}),e._v(" "),n("el-table-column",{attrs:{prop:"callback",label:"微信回调"}}),e._v(" "),n("el-table-column",{attrs:{label:"退款状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}}),e._v(" "),e.$store.state.readonly?e._e():n("el-table-column",{attrs:{label:"操作","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(n){e.editComment(t.row.id,t.row.desc)}}},[e._v("\n 备注\n ")])]}}])})],1),e._v(" "),n("page",{attrs:{nowPage:e.nowPage,total:e.total},on:{pageChange:e.onPageChange}})],1)},staticRenderFns:[]};var l=n("VU/8")(r,s,!1,function(e){n("bZcy"),n("f5Ah")},"data-v-26381fd8",null);t.default=l.exports},bZcy:function(e,t){},f5Ah:function(e,t){}});
\ No newline at end of file
webpackJsonp([20],{F8nD:function(e,t){},IBsa:function(e,t){},gaNG:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("CCn6"),o=(a("+TkF"),a("kmJW")),s={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,form:{key:"",value:"",desc:""},mediaList:[],rules:{value:[{required:!0,message:"请输入关键词",trigger:"change"}],desc:[{required:!0,message:"请输入描述",trigger:"change"}],key:[{required:!0,message:"请输入Key",trigger:"change"}]}}},components:{page:o.a},methods:{save:function(){var e=this;this.dialogObj.id?this.$refs.form.validate(function(t){t&&Object(i._40)(e.id,e.form).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.show=!1})}):this.$refs.form.validate(function(t){t&&Object(i._34)(e.form).then(function(t){e.$message({type:"success",message:"新增成功!"}),e.$emit("reflash"),e.show=!1})})},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.key=this.dialogObj.key,this.form.value=this.dialogObj.value,this.form.desc=this.dialogObj.desc,this.loading=!1}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"自动回复",center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("Key")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"key"}},[a("el-input",{model:{value:e.form.key,callback:function(t){e.$set(e.form,"key",t)},expression:"form.key"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("关键词")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"value"}},[a("el-input",{model:{value:e.form.value,callback:function(t){e.$set(e.form,"value",t)},expression:"form.value"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("描述")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",[a("el-input",{attrs:{type:"textarea"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1)],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)],1)])},staticRenderFns:[]};var n={name:"sysConfig",data:function(){return{total:0,nowPage:1,limit:10,dialogObj:{value:"",desc:"",show:!1,id:""},list:[]}},components:{dialogCom:a("VU/8")(s,l,!1,function(e){a("F8nD")},"data-v-47365745",null).exports,page:o.a},mounted:function(){this.getList()},methods:{changeShow:function(e){this.dialogObj.show=e},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};Object(i._7)(t).then(function(t){e.list=t.list,e.total=t.total})},onPageChange:function(e){this.nowPage=e,this.getList()},add:function(){this.dialogObj.id="",this.dialogObj.key="",this.dialogObj.value="",this.dialogObj.desc="",this.dialogObj.show=!0},edit:function(e){var t=this;Object(i._6)(e.id).then(function(e){t.dialogObj.id=e.id,t.dialogObj.key=e.key,t.dialogObj.value=e.value,t.dialogObj.desc=e.desc,t.dialogObj.show=!0})},del:function(e){var t=this;this.$confirm("此操作将删除该记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.D)(e.id).then(function(e){t.getList(),t.$message({type:"success",message:"删除成功!"})})})}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sys"},[a("div",{staticClass:"clear-both top"},[e.$store.state.readonly?e._e():a("el-button",{staticStyle:{float:"right"},attrs:{type:"success",plain:""},on:{click:e.add}},[e._v("添加配置")])],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:"Key"}},[a("span",[e._v(e._s(t.row.key))])]),e._v(" "),a("el-form-item",{attrs:{label:"关键词"}},[a("span",[e._v(e._s(t.row.value))])]),e._v(" "),a("el-form-item",{attrs:{label:"描述"}},[a("span",[e._v(e._s(t.row.desc))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"ID",prop:"id"}}),e._v(" "),a("el-table-column",{attrs:{label:"Key",prop:"key"}}),e._v(" "),a("el-table-column",{attrs:{label:"关键词",prop:"value"}}),e._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),e._v(" "),e.$store.state.readonly?e._e():a("el-table-column",{attrs:{width:"250",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(a){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission?a("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(a){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),a("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.getList}}),e._v(" "),a("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange}})],1)},staticRenderFns:[]};var c=a("VU/8")(n,r,!1,function(e){a("IBsa")},"data-v-158539be",null);t.default=c.exports}});
\ No newline at end of file
webpackJsonp([21],{F8nD:function(e,t){},IBsa:function(e,t){},gaNG:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("CCn6"),o=(a("+TkF"),a("kmJW")),s={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,form:{key:"",value:"",desc:""},mediaList:[],rules:{value:[{required:!0,message:"请输入关键词",trigger:"change"}],desc:[{required:!0,message:"请输入描述",trigger:"change"}],key:[{required:!0,message:"请输入Key",trigger:"change"}]}}},components:{page:o.a},methods:{save:function(){var e=this;this.dialogObj.id?this.$refs.form.validate(function(t){t&&Object(i._40)(e.id,e.form).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.show=!1})}):this.$refs.form.validate(function(t){t&&Object(i._34)(e.form).then(function(t){e.$message({type:"success",message:"新增成功!"}),e.$emit("reflash"),e.show=!1})})},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.key=this.dialogObj.key,this.form.value=this.dialogObj.value,this.form.desc=this.dialogObj.desc,this.loading=!1}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"自动回复",center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("Key")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"key"}},[a("el-input",{model:{value:e.form.key,callback:function(t){e.$set(e.form,"key",t)},expression:"form.key"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("关键词")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"value"}},[a("el-input",{model:{value:e.form.value,callback:function(t){e.$set(e.form,"value",t)},expression:"form.value"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("描述")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",[a("el-input",{attrs:{type:"textarea"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1)],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)],1)])},staticRenderFns:[]};var n={name:"sysConfig",data:function(){return{total:0,nowPage:1,limit:10,dialogObj:{value:"",desc:"",show:!1,id:""},list:[]}},components:{dialogCom:a("VU/8")(s,l,!1,function(e){a("F8nD")},"data-v-47365745",null).exports,page:o.a},mounted:function(){this.getList()},methods:{changeShow:function(e){this.dialogObj.show=e},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};Object(i._7)(t).then(function(t){e.list=t.list,e.total=t.total})},onPageChange:function(e){this.nowPage=e,this.getList()},add:function(){this.dialogObj.id="",this.dialogObj.key="",this.dialogObj.value="",this.dialogObj.desc="",this.dialogObj.show=!0},edit:function(e){var t=this;Object(i._6)(e.id).then(function(e){t.dialogObj.id=e.id,t.dialogObj.key=e.key,t.dialogObj.value=e.value,t.dialogObj.desc=e.desc,t.dialogObj.show=!0})},del:function(e){var t=this;this.$confirm("此操作将删除该记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.D)(e.id).then(function(e){t.getList(),t.$message({type:"success",message:"删除成功!"})})})}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sys"},[a("div",{staticClass:"clear-both top"},[e.$store.state.readonly?e._e():a("el-button",{staticStyle:{float:"right"},attrs:{type:"success",plain:""},on:{click:e.add}},[e._v("添加配置")])],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:"Key"}},[a("span",[e._v(e._s(t.row.key))])]),e._v(" "),a("el-form-item",{attrs:{label:"关键词"}},[a("span",[e._v(e._s(t.row.value))])]),e._v(" "),a("el-form-item",{attrs:{label:"描述"}},[a("span",[e._v(e._s(t.row.desc))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"ID",prop:"id"}}),e._v(" "),a("el-table-column",{attrs:{label:"Key",prop:"key"}}),e._v(" "),a("el-table-column",{attrs:{label:"关键词",prop:"value"}}),e._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),e._v(" "),e.$store.state.readonly?e._e():a("el-table-column",{attrs:{width:"250",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(a){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission?a("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(a){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),a("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.getList}}),e._v(" "),a("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange}})],1)},staticRenderFns:[]};var c=a("VU/8")(n,r,!1,function(e){a("IBsa")},"data-v-158539be",null);t.default=c.exports}});
\ No newline at end of file
webpackJsonp([21],{"1djJ":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=o("CCn6"),i=o("+TkF"),l=o("kmJW"),a={name:"dialogObj",props:["dialogObj"],data:function(){return{loading:!0,form:{name:"",goods_type:1,goods_desc:{desc:"",img:[]},course_id:"",course_type:0,watch_num:"",duration_num:0,original_price:"",current_price:"",is_real:0,is_auth_user:0,share_desc:{title:"",content:"",img:[]},desc:{detail:"",qa:"",customer_service:[]}},lessonList:[]}},methods:{sub:function(){var e=this,t=JSON.parse(JSON.stringify(this.form));switch(t.original_price=100*t.original_price,t.current_price=100*t.current_price,t.goods_desc=JSON.stringify(t.goods_desc),t.desc=JSON.stringify(t.desc),t.share_desc=JSON.stringify(t.share_desc),this.dialogObj.type){case 1:Object(s.N)(this.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.dialogObj.show=!1});break;case 0:Object(s.i)(t).then(function(t){e.$message({type:"success",message:"新增成功!"}),e.$emit("reflash"),e.dialogObj.show=!1})}},uploadFileMain:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(s._43)({file:e.file,type:"local"}).then(function(e){t.form.goods_desc.img?t.form.goods_desc.img[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.goods_desc.img=[],t.form.goods_desc.img[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},uploadFileMainService:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(s._43)({file:e.file,type:"local"}).then(function(e){t.form.desc.customer_service?t.form.desc.customer_service[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.desc.customer_service=[],t.form.desc.customer_service[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},uploadFileShare:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(s._43)({file:e.file,type:"local"}).then(function(e){t.form.share_desc.img?t.form.share_desc.img[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.share_desc.img=[],t.form.share_desc.img[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},initDialog:function(){var e=this;switch(this.dialogObj.type){case 0:this.loading=!1,this.form={name:"",goods_type:1,goods_desc:{desc:"",img:[]},course_id:"",course_type:0,watch_num:"",duration_num:0,original_price:"",current_price:"",is_real:0,is_auth_user:0,share_desc:{title:"",content:"",img:[]},desc:{detail:"",qa:"",customer_service:[]}},this.getLessonList();break;case 1:case 2:Object(s._10)(this.dialogObj.id).then(function(t){e.loading=!1,e.form={name:t.name,goods_type:t.goods_type,goods_desc:JSON.parse(t.goods_desc),course_id:t.course_id,course_type:t.course_type,watch_num:t.watch_num,duration_num:t.duration_num,original_price:t.original_price/100,current_price:t.current_price/100,is_real:t.is_real,is_auth_user:t.is_auth_user,share_desc:JSON.parse(t.share_desc),desc:JSON.parse(t.desc),invite_earnings:t.invite_earnings,is_auth_teacher:t.is_auth_teacher},e.getLessonList()});break;case 3:this.title="编辑",this.show=this.dialogObj.show,this.id=this.dialogObj.id,this.type=2}},changeLessonType:function(){this.getLessonList()},getLessonList:function(){var e=this;Object(s._12)({type:this.form.course_type}).then(function(t){e.lessonList=t.list})}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},n={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:e.dialogObj.title,center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[o("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px",disabled:2===e.dialogObj.type}},[o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"商品名称"}},[o("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"商品描述"}},[o("el-input",{model:{value:e.form.goods_desc.desc,callback:function(t){e.$set(e.form.goods_desc,"desc",t)},expression:"form.goods_desc.desc"}})],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"课程类型"}},[o("el-select",{attrs:{placeholder:"请选择"},on:{change:function(t){e.changeLessonType()}},model:{value:e.form.course_type,callback:function(t){e.$set(e.form,"course_type",t)},expression:"form.course_type"}},[o("el-option",{attrs:{label:"日课",value:1}}),e._v(" "),o("el-option",{attrs:{label:"月课",value:0}})],1)],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"课程"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.course_id,callback:function(t){e.$set(e.form,"course_id",t)},expression:"form.course_id"}},e._l(e.lessonList,function(e){return o("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})}))],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"观看时长(节)"}},[o("el-input-number",{attrs:{label:"课时数"},model:{value:e.form.watch_num,callback:function(t){e.$set(e.form,"watch_num",t)},expression:"form.watch_num"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"续看时长(天)"}},[o("el-input-number",{attrs:{label:"看课天数"},model:{value:e.form.duration_num,callback:function(t){e.$set(e.form,"duration_num",t)},expression:"form.duration_num"}})],1)],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"主图(750*600)"}},[o("el-upload",{staticClass:"upload-demo",attrs:{"list-type":"picture-card",action:"/api/public/upload","http-request":e.uploadFileMain,"file-list":e.form.goods_desc.img}},[o("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),o("el-form-item",{attrs:{label:"客服(200*200)"}},[o("el-upload",{staticClass:"upload-demo",class:e.form.desc.customer_service&&e.form.desc.customer_service.length>0?"uploadService":"",attrs:{"list-type":"picture-card",action:"/api/public/upload",limit:1,"http-request":e.uploadFileMainService,"file-list":e.form.desc.customer_service}},[o("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"商品类型"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.goods_type,callback:function(t){e.$set(e.form,"goods_type",t)},expression:"form.goods_type"}},[o("el-option",{attrs:{label:"普通商品",value:1}}),e._v(" "),o("el-option",{attrs:{label:"团购商品",value:2}})],1)],1)],1)],1),e._v(" "),1===e.form.goods_type?o("el-form-item",{attrs:{label:"推荐奖金(元)"}},[o("el-input-number",{attrs:{label:"推荐奖金"},model:{value:e.form.invite_earnings,callback:function(t){e.$set(e.form,"invite_earnings",t)},expression:"form.invite_earnings"}})],1):e._e(),e._v(" "),o("el-form-item",{attrs:{label:"是否配置实物"}},[o("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_real,callback:function(t){e.$set(e.form,"is_real",t)},expression:"form.is_real"}}),e._v(" "),o("span",{staticStyle:{"font-size":"12px"}},[e._v("打开后提示用户填写具体住址")])],1),e._v(" "),1===e.form.goods_type?o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"是否允许用户推广","label-width":"200"}},[o("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_auth_user,callback:function(t){e.$set(e.form,"is_auth_user",t)},expression:"form.is_auth_user"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"是否允许老师推广","label-width":"200"}},[o("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_auth_teacher,callback:function(t){e.$set(e.form,"is_auth_teacher",t)},expression:"form.is_auth_teacher"}})],1)],1)],1):e._e(),e._v(" "),o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:1===e.form.goods_type?"原价(元)":"单买价格(元)"}},[o("el-input-number",{attrs:{label:"原价"},model:{value:e.form.original_price,callback:function(t){e.$set(e.form,"original_price",t)},expression:"form.original_price"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:1===e.form.goods_type?"现价(元)":"拼团价格(元)"}},[o("el-input-number",{attrs:{label:"现价"},model:{value:e.form.current_price,callback:function(t){e.$set(e.form,"current_price",t)},expression:"form.current_price"}})],1)],1)],1),e._v(" "),2===e.form.goods_type?o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"成团人数(人)"}},[o("el-input-number",{attrs:{label:"成团人数"},model:{value:e.form.desc.group_number,callback:function(t){e.$set(e.form.desc,"group_number",t)},expression:"form.desc.group_number"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"团购失效时间(小时)","label-width":"136"}},[o("el-input-number",{attrs:{label:"团购失效时间"},model:{value:e.form.desc.group_continue,callback:function(t){e.$set(e.form.desc,"group_continue",t)},expression:"form.desc.group_continue"}})],1)],1)],1):e._e(),e._v(" "),o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"分享标题"}},[o("el-input",{model:{value:e.form.share_desc.title,callback:function(t){e.$set(e.form.share_desc,"title",t)},expression:"form.share_desc.title"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"分享内容"}},[o("el-input",{model:{value:e.form.share_desc.content,callback:function(t){e.$set(e.form.share_desc,"content",t)},expression:"form.share_desc.content"}})],1)],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"分享主图(300*300)"}},[o("el-upload",{attrs:{"list-type":"picture-card",action:"/api/public/upload",limit:1,"file-list":e.form.share_desc.img,"http-request":e.uploadFileMain}},[o("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:24}},[o("el-form-item",{attrs:{label:"商品详情"}},[o("el-input",{attrs:{type:"textarea",rows:25},model:{value:e.form.desc.detail,callback:function(t){e.$set(e.form.desc,"detail",t)},expression:"form.desc.detail"}})],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:24}},[o("el-form-item",{attrs:{label:"购买须知"}},[o("el-input",{attrs:{type:"textarea",rows:25},model:{value:e.form.desc.qa,callback:function(t){e.$set(e.form.desc,"qa",t)},expression:"form.desc.qa"}})],1)],1)],1)],1),e._v(" "),2!==e.dialogObj.type?o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1):e._e()],1)])},staticRenderFns:[]};var r=o("VU/8")(a,n,!1,function(e){o("jb20")},"data-v-4fed980b",null).exports,c={name:"index",data:function(){return{searchFrom:{name:""},userList:[],total:0,nowPage:1,limit:10,chooseDialog:{show:!1,title:"",id:"",form:{value:"",list:[]},type:0},dialogObj:{type:0,show:!1,title:"",id:""}}},components:{page:l.a,dialogCom:r},filters:{isOrNot:function(e){return i.h[e]},goodsType:function(e){return i.e[e]},lessonType:function(e){return i.i[e]},goodsStatus:function(e){return i.d[e]}},mounted:function(){this.getUser()},methods:{onPageChange:function(e){this.nowPage=e,this.getUser()},copyUrl:function(e){var t="http://wechat.test.singsingenglish.com/#/buyDetail?shopId="+e,o=document.createElement("input");o.value=t,document.body.appendChild(o),o.select(),document.execCommand("Copy"),this.$message({message:"已成功复制到剪切板",type:"success"})},dialogSub:function(){var e=this;switch(this.chooseDialog.type){case 0:Object(s.o)(this.chooseDialog.id,this.chooseDialog.form.value).then(function(t){e.$message({message:"绑定成功",type:"success"}),e.chooseDialog.show=!1}),this.getUser();break;case 1:var t={conflict_goods_ids:this.chooseDialog.form.list.toString()};Object(s.q)(this.chooseDialog.id,t).then(function(t){e.$message({message:"设置成功",type:"success"}),e.chooseDialog.show=!1,e.getUser()})}},getUser:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.name&&(t.name=this.searchFrom.name),Object(s._11)(t).then(function(t){t.list.forEach(function(e){""===e.conflict_goods_ids?e.conflict_goods_ids=[]:e.conflict_goods_ids=e.conflict_goods_ids.split(",")}),console.log(t.list),e.userList=t.list,e.total=t.total})},edit:function(e){this.dialogObj={type:1,title:"编辑商品",show:!0,id:e.id}},add:function(){this.dialogObj={type:0,title:"添加商品",show:!0}},detail:function(e){this.dialogObj.id=e.id,this.dialogObj.type=2,this.dialogObj.title="查看商品",this.dialogObj.show=!0},onDel:function(e){var t=this;this.$confirm("此操作将删除该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.E)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"})}),t.getUser()})},onUp:function(e){var t=this;this.$confirm("此操作将上架该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s._39)(e.id).then(function(e){t.$message({type:"success",message:"操作成功!"}),t.getUser()})})},onDown:function(e){var t=this;this.$confirm("此操作将下架该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.G)(e.id).then(function(e){t.$message({type:"success",message:"操作成功!"}),t.getUser()})})},changeShow:function(e){this.dialogObj.show=e},bindOther:function(e){this.chooseDialog={show:!0,title:"绑定商品",id:e.id,form:{value:"",list:[]},type:0}},conflict:function(e){this.chooseDialog={show:!0,title:"冲突商品",id:e.id,form:{value:"",list:e.conflict_goods_ids},type:1}}}},u={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"user"},[o("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px"}},[o("el-row",[o("el-col",{attrs:{span:4}},[o("el-form-item",{attrs:{label:"商品名称"}},[o("el-input",{model:{value:e.searchFrom.name,callback:function(t){e.$set(e.searchFrom,"name",t)},expression:"searchFrom.name"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:4}},[o("el-form-item",[o("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getUser}},[e._v("搜索")])],1)],1),e._v(" "),o("el-col",{attrs:{span:4,offset:12}},[o("el-form-item",[e.$store.state.readonly?e._e():o("el-button",{attrs:{type:"success",plain:""},on:{click:e.add}},[e._v("添加商品")])],1)],1)],1)],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.userList}},[o("el-table-column",{attrs:{prop:"name",label:"名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("router-link",{attrs:{to:{name:"periods",query:{goods_id:t.row.id}}}},[e._v("\n "+e._s(t.row.name)+"\n ")])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"商品类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("goodsType")(t.row.goods_type))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"商品原价/直购价"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.original_price/100)+"元\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"商品现价/团购价"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.current_price/100)+"元\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"course_title",label:"课程名称"}}),e._v(" "),o("el-table-column",{attrs:{label:"课程类别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("lessonType")(t.row.course_type))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"是否有实物"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("isOrNot")(t.row.is_real))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("goodsStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{width:"60",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-popover",{attrs:{placement:"top",width:"550"}},[o("div",{staticStyle:{"text-align":"center"}},[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.detail(t.row)}}},[e._v("\n 查看详情\n ")]),e._v(" "),e.$store.state.readonly?e._e():[2===t.row.status||0===t.row.status?o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.onUp(t.row)}}},[e._v("\n 上架\n ")]):e._e(),e._v(" "),1===t.row.status?o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.onDown(t.row)}}},[e._v("\n 下架\n ")]):e._e(),e._v(" "),0===t.row.status?o("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(o){e.edit(t.row)}}},[e._v("\n 编辑\n ")]):e._e(),e._v(" "),o("el-button",{attrs:{size:"mini",plain:""},on:{click:function(o){e.copyUrl(t.row.id)}}},[e._v("\n 复制链接\n ")]),e._v(" "),2===t.row.status?o("el-button",{attrs:{size:"mini",plain:""},on:{click:function(o){e.bindOther(t.row)}}},[e._v("\n 绑定商品\n ")]):e._e(),e._v(" "),o("el-button",{attrs:{size:"mini",plain:""},on:{click:function(o){e.conflict(t.row)}}},[e._v("\n 冲突商品\n ")]),e._v(" "),e.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(o){e.onDel(t.row)}}},[e._v("\n 删除\n ")]):e._e()]],2),e._v(" "),o("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),o("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange}}),e._v(" "),o("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.getUser}}),e._v(" "),o("el-dialog",{attrs:{title:e.chooseDialog.title,visible:e.chooseDialog.show,width:"30%"},on:{"update:visible":function(t){e.$set(e.chooseDialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{"label-width":"80px"}},[0===e.chooseDialog.type?o("el-form-item",{attrs:{label:"绑定商品"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.chooseDialog.form.value,callback:function(t){e.$set(e.chooseDialog.form,"value",t)},expression:"chooseDialog.form.value"}},e._l(e.userList,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e(),e._v(" "),1===e.chooseDialog.type?o("el-form-item",{attrs:{label:"冲突商品"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",multiple:""},model:{value:e.chooseDialog.form.list,callback:function(t){e.$set(e.chooseDialog.form,"list",t)},expression:"chooseDialog.form.list"}},e._l(e.userList,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id.toString()}})}))],1):e._e()],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.chooseDialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogSub()}}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var d=o("VU/8")(c,u,!1,function(e){o("Fxrg")},"data-v-048d400a",null);t.default=d.exports},Fxrg:function(e,t){},jb20:function(e,t){}});
\ No newline at end of file
webpackJsonp([22],{"1djJ":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=o("CCn6"),i=o("+TkF"),l=o("kmJW"),a={name:"dialogObj",props:["dialogObj"],data:function(){return{loading:!0,form:{name:"",goods_type:1,goods_desc:{desc:"",img:[]},course_id:"",course_type:0,watch_num:"",duration_num:0,original_price:"",current_price:"",is_real:0,is_auth_user:0,share_desc:{title:"",content:"",img:[]},desc:{detail:"",qa:"",customer_service:[]}},lessonList:[]}},methods:{sub:function(){var e=this,t=JSON.parse(JSON.stringify(this.form));switch(t.original_price=100*t.original_price,t.current_price=100*t.current_price,t.goods_desc=JSON.stringify(t.goods_desc),t.desc=JSON.stringify(t.desc),t.share_desc=JSON.stringify(t.share_desc),this.dialogObj.type){case 1:Object(s.N)(this.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.dialogObj.show=!1});break;case 0:Object(s.i)(t).then(function(t){e.$message({type:"success",message:"新增成功!"}),e.$emit("reflash"),e.dialogObj.show=!1})}},uploadFileMain:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(s._43)({file:e.file,type:"local"}).then(function(e){t.form.goods_desc.img?t.form.goods_desc.img[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.goods_desc.img=[],t.form.goods_desc.img[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},uploadFileMainService:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(s._43)({file:e.file,type:"local"}).then(function(e){t.form.desc.customer_service?t.form.desc.customer_service[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.desc.customer_service=[],t.form.desc.customer_service[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},uploadFileShare:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(s._43)({file:e.file,type:"local"}).then(function(e){t.form.share_desc.img?t.form.share_desc.img[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.share_desc.img=[],t.form.share_desc.img[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},initDialog:function(){var e=this;switch(this.dialogObj.type){case 0:this.loading=!1,this.form={name:"",goods_type:1,goods_desc:{desc:"",img:[]},course_id:"",course_type:0,watch_num:"",duration_num:0,original_price:"",current_price:"",is_real:0,is_auth_user:0,share_desc:{title:"",content:"",img:[]},desc:{detail:"",qa:"",customer_service:[]}},this.getLessonList();break;case 1:case 2:Object(s._10)(this.dialogObj.id).then(function(t){e.loading=!1,e.form={name:t.name,goods_type:t.goods_type,goods_desc:JSON.parse(t.goods_desc),course_id:t.course_id,course_type:t.course_type,watch_num:t.watch_num,duration_num:t.duration_num,original_price:t.original_price/100,current_price:t.current_price/100,is_real:t.is_real,is_auth_user:t.is_auth_user,share_desc:JSON.parse(t.share_desc),desc:JSON.parse(t.desc),invite_earnings:t.invite_earnings,is_auth_teacher:t.is_auth_teacher},e.getLessonList()});break;case 3:this.title="编辑",this.show=this.dialogObj.show,this.id=this.dialogObj.id,this.type=2}},changeLessonType:function(){this.getLessonList()},getLessonList:function(){var e=this;Object(s._12)({type:this.form.course_type}).then(function(t){e.lessonList=t.list})}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},n={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:e.dialogObj.title,center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[o("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px",disabled:2===e.dialogObj.type}},[o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"商品名称"}},[o("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"商品描述"}},[o("el-input",{model:{value:e.form.goods_desc.desc,callback:function(t){e.$set(e.form.goods_desc,"desc",t)},expression:"form.goods_desc.desc"}})],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"课程类型"}},[o("el-select",{attrs:{placeholder:"请选择"},on:{change:function(t){e.changeLessonType()}},model:{value:e.form.course_type,callback:function(t){e.$set(e.form,"course_type",t)},expression:"form.course_type"}},[o("el-option",{attrs:{label:"日课",value:1}}),e._v(" "),o("el-option",{attrs:{label:"月课",value:0}})],1)],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"课程"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.course_id,callback:function(t){e.$set(e.form,"course_id",t)},expression:"form.course_id"}},e._l(e.lessonList,function(e){return o("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})}))],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"观看时长(节)"}},[o("el-input-number",{attrs:{label:"课时数"},model:{value:e.form.watch_num,callback:function(t){e.$set(e.form,"watch_num",t)},expression:"form.watch_num"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"续看时长(天)"}},[o("el-input-number",{attrs:{label:"看课天数"},model:{value:e.form.duration_num,callback:function(t){e.$set(e.form,"duration_num",t)},expression:"form.duration_num"}})],1)],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"主图(750*600)"}},[o("el-upload",{staticClass:"upload-demo",attrs:{"list-type":"picture-card",action:"/api/public/upload","http-request":e.uploadFileMain,"file-list":e.form.goods_desc.img}},[o("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),o("el-form-item",{attrs:{label:"客服(200*200)"}},[o("el-upload",{staticClass:"upload-demo",class:e.form.desc.customer_service&&e.form.desc.customer_service.length>0?"uploadService":"",attrs:{"list-type":"picture-card",action:"/api/public/upload",limit:1,"http-request":e.uploadFileMainService,"file-list":e.form.desc.customer_service}},[o("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"商品类型"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.goods_type,callback:function(t){e.$set(e.form,"goods_type",t)},expression:"form.goods_type"}},[o("el-option",{attrs:{label:"普通商品",value:1}}),e._v(" "),o("el-option",{attrs:{label:"团购商品",value:2}})],1)],1)],1)],1),e._v(" "),1===e.form.goods_type?o("el-form-item",{attrs:{label:"推荐奖金(元)"}},[o("el-input-number",{attrs:{label:"推荐奖金"},model:{value:e.form.invite_earnings,callback:function(t){e.$set(e.form,"invite_earnings",t)},expression:"form.invite_earnings"}})],1):e._e(),e._v(" "),o("el-form-item",{attrs:{label:"是否配置实物"}},[o("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_real,callback:function(t){e.$set(e.form,"is_real",t)},expression:"form.is_real"}}),e._v(" "),o("span",{staticStyle:{"font-size":"12px"}},[e._v("打开后提示用户填写具体住址")])],1),e._v(" "),1===e.form.goods_type?o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"是否允许用户推广","label-width":"200"}},[o("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_auth_user,callback:function(t){e.$set(e.form,"is_auth_user",t)},expression:"form.is_auth_user"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"是否允许老师推广","label-width":"200"}},[o("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_auth_teacher,callback:function(t){e.$set(e.form,"is_auth_teacher",t)},expression:"form.is_auth_teacher"}})],1)],1)],1):e._e(),e._v(" "),o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:1===e.form.goods_type?"原价(元)":"单买价格(元)"}},[o("el-input-number",{attrs:{label:"原价"},model:{value:e.form.original_price,callback:function(t){e.$set(e.form,"original_price",t)},expression:"form.original_price"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:1===e.form.goods_type?"现价(元)":"拼团价格(元)"}},[o("el-input-number",{attrs:{label:"现价"},model:{value:e.form.current_price,callback:function(t){e.$set(e.form,"current_price",t)},expression:"form.current_price"}})],1)],1)],1),e._v(" "),2===e.form.goods_type?o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"成团人数(人)"}},[o("el-input-number",{attrs:{label:"成团人数"},model:{value:e.form.desc.group_number,callback:function(t){e.$set(e.form.desc,"group_number",t)},expression:"form.desc.group_number"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"团购失效时间(小时)","label-width":"136"}},[o("el-input-number",{attrs:{label:"团购失效时间"},model:{value:e.form.desc.group_continue,callback:function(t){e.$set(e.form.desc,"group_continue",t)},expression:"form.desc.group_continue"}})],1)],1)],1):e._e(),e._v(" "),o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"分享标题"}},[o("el-input",{model:{value:e.form.share_desc.title,callback:function(t){e.$set(e.form.share_desc,"title",t)},expression:"form.share_desc.title"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"分享内容"}},[o("el-input",{model:{value:e.form.share_desc.content,callback:function(t){e.$set(e.form.share_desc,"content",t)},expression:"form.share_desc.content"}})],1)],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"分享主图(300*300)"}},[o("el-upload",{attrs:{"list-type":"picture-card",action:"/api/public/upload",limit:1,"file-list":e.form.share_desc.img,"http-request":e.uploadFileMain}},[o("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:24}},[o("el-form-item",{attrs:{label:"商品详情"}},[o("el-input",{attrs:{type:"textarea",rows:25},model:{value:e.form.desc.detail,callback:function(t){e.$set(e.form.desc,"detail",t)},expression:"form.desc.detail"}})],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:24}},[o("el-form-item",{attrs:{label:"购买须知"}},[o("el-input",{attrs:{type:"textarea",rows:25},model:{value:e.form.desc.qa,callback:function(t){e.$set(e.form.desc,"qa",t)},expression:"form.desc.qa"}})],1)],1)],1)],1),e._v(" "),2!==e.dialogObj.type?o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1):e._e()],1)])},staticRenderFns:[]};var r=o("VU/8")(a,n,!1,function(e){o("jb20")},"data-v-4fed980b",null).exports,c={name:"index",data:function(){return{searchFrom:{name:""},userList:[],total:0,nowPage:1,limit:10,chooseDialog:{show:!1,title:"",id:"",form:{value:"",list:[]},type:0},dialogObj:{type:0,show:!1,title:"",id:""}}},components:{page:l.a,dialogCom:r},filters:{isOrNot:function(e){return i.h[e]},goodsType:function(e){return i.e[e]},lessonType:function(e){return i.i[e]},goodsStatus:function(e){return i.d[e]}},mounted:function(){this.getUser()},methods:{onPageChange:function(e){this.nowPage=e,this.getUser()},copyUrl:function(e){var t="http://wechat.test.singsingenglish.com/#/buyDetail?shopId="+e,o=document.createElement("input");o.value=t,document.body.appendChild(o),o.select(),document.execCommand("Copy"),this.$message({message:"已成功复制到剪切板",type:"success"})},dialogSub:function(){var e=this;switch(this.chooseDialog.type){case 0:Object(s.o)(this.chooseDialog.id,this.chooseDialog.form.value).then(function(t){e.$message({message:"绑定成功",type:"success"}),e.chooseDialog.show=!1}),this.getUser();break;case 1:var t={conflict_goods_ids:this.chooseDialog.form.list.toString()};Object(s.q)(this.chooseDialog.id,t).then(function(t){e.$message({message:"设置成功",type:"success"}),e.chooseDialog.show=!1,e.getUser()})}},getUser:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.name&&(t.name=this.searchFrom.name),Object(s._11)(t).then(function(t){t.list.forEach(function(e){""===e.conflict_goods_ids?e.conflict_goods_ids=[]:e.conflict_goods_ids=e.conflict_goods_ids.split(",")}),console.log(t.list),e.userList=t.list,e.total=t.total})},edit:function(e){this.dialogObj={type:1,title:"编辑商品",show:!0,id:e.id}},add:function(){this.dialogObj={type:0,title:"添加商品",show:!0}},detail:function(e){this.dialogObj.id=e.id,this.dialogObj.type=2,this.dialogObj.title="查看商品",this.dialogObj.show=!0},onDel:function(e){var t=this;this.$confirm("此操作将删除该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.E)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"})}),t.getUser()})},onUp:function(e){var t=this;this.$confirm("此操作将上架该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s._39)(e.id).then(function(e){t.$message({type:"success",message:"操作成功!"}),t.getUser()})})},onDown:function(e){var t=this;this.$confirm("此操作将下架该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.G)(e.id).then(function(e){t.$message({type:"success",message:"操作成功!"}),t.getUser()})})},changeShow:function(e){this.dialogObj.show=e},bindOther:function(e){this.chooseDialog={show:!0,title:"绑定商品",id:e.id,form:{value:"",list:[]},type:0}},conflict:function(e){this.chooseDialog={show:!0,title:"冲突商品",id:e.id,form:{value:"",list:e.conflict_goods_ids},type:1}}}},u={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"user"},[o("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px"}},[o("el-row",[o("el-col",{attrs:{span:4}},[o("el-form-item",{attrs:{label:"商品名称"}},[o("el-input",{model:{value:e.searchFrom.name,callback:function(t){e.$set(e.searchFrom,"name",t)},expression:"searchFrom.name"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:4}},[o("el-form-item",[o("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getUser}},[e._v("搜索")])],1)],1),e._v(" "),o("el-col",{attrs:{span:4,offset:12}},[o("el-form-item",[e.$store.state.readonly?e._e():o("el-button",{attrs:{type:"success",plain:""},on:{click:e.add}},[e._v("添加商品")])],1)],1)],1)],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.userList}},[o("el-table-column",{attrs:{prop:"name",label:"名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("router-link",{attrs:{to:{name:"periods",query:{goods_id:t.row.id}}}},[e._v("\n "+e._s(t.row.name)+"\n ")])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"商品类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("goodsType")(t.row.goods_type))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"商品原价/直购价"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.original_price/100)+"元\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"商品现价/团购价"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.current_price/100)+"元\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"course_title",label:"课程名称"}}),e._v(" "),o("el-table-column",{attrs:{label:"课程类别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("lessonType")(t.row.course_type))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"是否有实物"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("isOrNot")(t.row.is_real))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("goodsStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{width:"60",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-popover",{attrs:{placement:"top",width:"550"}},[o("div",{staticStyle:{"text-align":"center"}},[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.detail(t.row)}}},[e._v("\n 查看详情\n ")]),e._v(" "),e.$store.state.readonly?e._e():[2===t.row.status||0===t.row.status?o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.onUp(t.row)}}},[e._v("\n 上架\n ")]):e._e(),e._v(" "),1===t.row.status?o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.onDown(t.row)}}},[e._v("\n 下架\n ")]):e._e(),e._v(" "),0===t.row.status?o("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(o){e.edit(t.row)}}},[e._v("\n 编辑\n ")]):e._e(),e._v(" "),o("el-button",{attrs:{size:"mini",plain:""},on:{click:function(o){e.copyUrl(t.row.id)}}},[e._v("\n 复制链接\n ")]),e._v(" "),2===t.row.status?o("el-button",{attrs:{size:"mini",plain:""},on:{click:function(o){e.bindOther(t.row)}}},[e._v("\n 绑定商品\n ")]):e._e(),e._v(" "),o("el-button",{attrs:{size:"mini",plain:""},on:{click:function(o){e.conflict(t.row)}}},[e._v("\n 冲突商品\n ")]),e._v(" "),e.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(o){e.onDel(t.row)}}},[e._v("\n 删除\n ")]):e._e()]],2),e._v(" "),o("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),o("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange}}),e._v(" "),o("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.getUser}}),e._v(" "),o("el-dialog",{attrs:{title:e.chooseDialog.title,visible:e.chooseDialog.show,width:"30%"},on:{"update:visible":function(t){e.$set(e.chooseDialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{"label-width":"80px"}},[0===e.chooseDialog.type?o("el-form-item",{attrs:{label:"绑定商品"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.chooseDialog.form.value,callback:function(t){e.$set(e.chooseDialog.form,"value",t)},expression:"chooseDialog.form.value"}},e._l(e.userList,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e(),e._v(" "),1===e.chooseDialog.type?o("el-form-item",{attrs:{label:"冲突商品"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",multiple:""},model:{value:e.chooseDialog.form.list,callback:function(t){e.$set(e.chooseDialog.form,"list",t)},expression:"chooseDialog.form.list"}},e._l(e.userList,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id.toString()}})}))],1):e._e()],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.chooseDialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogSub()}}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var d=o("VU/8")(c,u,!1,function(e){o("Fxrg")},"data-v-048d400a",null);t.default=d.exports},Fxrg:function(e,t){},jb20:function(e,t){}});
\ No newline at end of file
webpackJsonp([22],{"S+Yb":function(e,t){},Vt1u:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("CCn6"),n={components:{page:o("kmJW").a},data:function(){return{nowPage:1,total:0,limit:10,roleList:[],dialog:{title:"新增角色",show:!1,select:[],chooseed:[],rules:{name:[{required:!0,message:"请填写角色名称",trigger:"change"}]},form:{name:"",menu_ids:[],id:""}}}},created:function(){this.getList(),this.getMenuList()},methods:{getMenuList:function(){var e=this;Object(a._15)().then(function(t){t&&(t.forEach(function(e){e.children&&e.children.forEach(function(e){e.readonly=!1,e.delete=!1})}),e.dialog.select=t)})},onPageChange:function(e){this.nowPage=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};Object(a._22)(t).then(function(t){t&&(e.roleList=t.list,e.total=t.total)})},edit:function(e){var t=this;this.dialog.form.id=e.id,this.dialog.title="编辑角色",Object(a._15)().then(function(o){o&&(o.forEach(function(e){e.children&&e.children.forEach(function(e){e.readonly=!1,e.delete=!1})}),t.dialog.select=o,Object(a._21)(e.id).then(function(e){t.dialog.form.name=e.name,t.dialog.form.menu_ids=JSON.parse(e.menu_ids),t.dialog.chooseed=[],t.dialog.form.menu_ids.forEach(function(e){t.dialog.chooseed.push(e.id),t.dialog.select.forEach(function(t){t.children&&t.children.forEach(function(t){t.id===e.id&&(t.readonly=!!e.readonly,t.delete=!!e.delete)})})}),t.dialog.show=!0,t.$nextTick(function(){this.$refs.tree.setCheckedKeys(this.dialog.chooseed)})}))})},add:function(){this.dialog.show=!0,this.dialog.form.id="",this.dialog.title="新增菜单",this.dialog.form.name="",this.dialog.form.menu_ids=[],this.getMenuList()},del:function(e){var t=this;this.$confirm("此操作将删除该角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.A)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.getList()})})},sub:function(){var e=this;this.$refs.form.validate(function(t){if(t){var o=[];e.$refs.tree.getCheckedNodes().forEach(function(e){var t=void 0;!1!==e.readonly&&!0!==e.readonly||(t={id:e.id,cover:e.cover,readonly:e.readonly}),!1!==e.delete&&!0!==e.delete||(t.delete=e.delete),t&&o.push(t)});var n=e.dialog;if(n.form.id){var i={name:n.form.name,menu_ids:JSON.stringify(o)};Object(a._42)(n.form.id,i).then(function(){e.$message({type:"success",message:"修改成功!"}),n.show=!1,e.getList()})}else{var l={name:n.form.name,menu_ids:JSON.stringify(o)};Object(a._37)(l).then(function(){e.$message({type:"success",message:"添加成功!"}),n.show=!1,e.getList()})}}})}}},i={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"role"},[o("div",{staticClass:"head clear-both"},[e.$store.state.readonly?e._e():o("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增角色")])],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.roleList}},[o("el-table-column",{attrs:{prop:"id",label:"角色ID"}}),e._v(" "),o("el-table-column",{attrs:{prop:"name",label:"角色名称"}}),e._v(" "),o("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$store.state.readonly?e._e():o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission&&!e.$store.state.readonly?o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),o("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange}}),e._v(" "),o("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"40%"},on:{"update:visible":function(t){e.$set(e.dialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{rules:e.dialog.rules,model:e.dialog.form,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"角色名称",prop:"name"}},[o("el-input",{model:{value:e.dialog.form.name,callback:function(t){e.$set(e.dialog.form,"name",t)},expression:"dialog.form.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"菜单选项"}},[o("div",{staticClass:"custom-tree-container"},[o("el-tree",{ref:"tree",attrs:{data:e.dialog.select,"show-checkbox":"","node-key":"id","default-checked-keys":e.dialog.chooseed,"default-expand-all":"","expand-on-click-node":!1,props:{children:"children",label:"name",value:!1}},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node,n=t.data;return o("span",{staticClass:"custom-tree-node"},[o("span",[e._v(e._s(a.label))]),e._v(" "),0!==n.pid?o("span",[o("el-checkbox",{model:{value:n.readonly,callback:function(t){e.$set(n,"readonly",t)},expression:"data.readonly"}},[e._v("只读")]),e._v(" "),o("el-checkbox",{model:{value:n.delete,callback:function(t){e.$set(n,"delete",t)},expression:"data.delete"}},[e._v("删除")])],1):e._e()])}}])})],1)])],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var l=o("VU/8")(n,i,!1,function(e){o("S+Yb")},"data-v-e481b7a2",null);t.default=l.exports}});
\ No newline at end of file
webpackJsonp([23],{"S+Yb":function(e,t){},Vt1u:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("CCn6"),n={components:{page:o("kmJW").a},data:function(){return{nowPage:1,total:0,limit:10,roleList:[],dialog:{title:"新增角色",show:!1,select:[],chooseed:[],rules:{name:[{required:!0,message:"请填写角色名称",trigger:"change"}]},form:{name:"",menu_ids:[],id:""}}}},created:function(){this.getList(),this.getMenuList()},methods:{getMenuList:function(){var e=this;Object(a._15)().then(function(t){t&&(t.forEach(function(e){e.children&&e.children.forEach(function(e){e.readonly=!1,e.delete=!1})}),e.dialog.select=t)})},onPageChange:function(e){this.nowPage=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};Object(a._22)(t).then(function(t){t&&(e.roleList=t.list,e.total=t.total)})},edit:function(e){var t=this;this.dialog.form.id=e.id,this.dialog.title="编辑角色",Object(a._15)().then(function(o){o&&(o.forEach(function(e){e.children&&e.children.forEach(function(e){e.readonly=!1,e.delete=!1})}),t.dialog.select=o,Object(a._21)(e.id).then(function(e){t.dialog.form.name=e.name,t.dialog.form.menu_ids=JSON.parse(e.menu_ids),t.dialog.chooseed=[],t.dialog.form.menu_ids.forEach(function(e){t.dialog.chooseed.push(e.id),t.dialog.select.forEach(function(t){t.children&&t.children.forEach(function(t){t.id===e.id&&(t.readonly=!!e.readonly,t.delete=!!e.delete)})})}),t.dialog.show=!0,t.$nextTick(function(){this.$refs.tree.setCheckedKeys(this.dialog.chooseed)})}))})},add:function(){this.dialog.show=!0,this.dialog.form.id="",this.dialog.title="新增菜单",this.dialog.form.name="",this.dialog.form.menu_ids=[],this.getMenuList()},del:function(e){var t=this;this.$confirm("此操作将删除该角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.A)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.getList()})})},sub:function(){var e=this;this.$refs.form.validate(function(t){if(t){var o=[];e.$refs.tree.getCheckedNodes().forEach(function(e){var t=void 0;!1!==e.readonly&&!0!==e.readonly||(t={id:e.id,cover:e.cover,readonly:e.readonly}),!1!==e.delete&&!0!==e.delete||(t.delete=e.delete),t&&o.push(t)});var n=e.dialog;if(n.form.id){var i={name:n.form.name,menu_ids:JSON.stringify(o)};Object(a._42)(n.form.id,i).then(function(){e.$message({type:"success",message:"修改成功!"}),n.show=!1,e.getList()})}else{var l={name:n.form.name,menu_ids:JSON.stringify(o)};Object(a._37)(l).then(function(){e.$message({type:"success",message:"添加成功!"}),n.show=!1,e.getList()})}}})}}},i={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"role"},[o("div",{staticClass:"head clear-both"},[e.$store.state.readonly?e._e():o("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增角色")])],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.roleList}},[o("el-table-column",{attrs:{prop:"id",label:"角色ID"}}),e._v(" "),o("el-table-column",{attrs:{prop:"name",label:"角色名称"}}),e._v(" "),o("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$store.state.readonly?e._e():o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission&&!e.$store.state.readonly?o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),o("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange}}),e._v(" "),o("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"40%"},on:{"update:visible":function(t){e.$set(e.dialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{rules:e.dialog.rules,model:e.dialog.form,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"角色名称",prop:"name"}},[o("el-input",{model:{value:e.dialog.form.name,callback:function(t){e.$set(e.dialog.form,"name",t)},expression:"dialog.form.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"菜单选项"}},[o("div",{staticClass:"custom-tree-container"},[o("el-tree",{ref:"tree",attrs:{data:e.dialog.select,"show-checkbox":"","node-key":"id","default-checked-keys":e.dialog.chooseed,"default-expand-all":"","expand-on-click-node":!1,props:{children:"children",label:"name",value:!1}},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node,n=t.data;return o("span",{staticClass:"custom-tree-node"},[o("span",[e._v(e._s(a.label))]),e._v(" "),0!==n.pid?o("span",[o("el-checkbox",{model:{value:n.readonly,callback:function(t){e.$set(n,"readonly",t)},expression:"data.readonly"}},[e._v("只读")]),e._v(" "),o("el-checkbox",{model:{value:n.delete,callback:function(t){e.$set(n,"delete",t)},expression:"data.delete"}},[e._v("删除")])],1):e._e()])}}])})],1)])],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var l=o("VU/8")(n,i,!1,function(e){o("S+Yb")},"data-v-e481b7a2",null);t.default=l.exports}});
\ No newline at end of file
webpackJsonp([23],{F5pf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s,o=a("CCn6");function n(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var l={name:"putForward",data:function(){return{nowPage:1,total:0,limit:10,search:{key:"",status:0},liStatus:[{label:"全部",status:""},{label:"申请中",status:0},{label:"提现成功",status:1},{label:"提现失败",status:2}],tableData:[],showDialog:!1,showDesc:!1,dialogTitle:"审核",nowObj:{id:"",status:1,reason:"",desc:""},page:{current:1,pageSize:100,total:0}}},components:{page:a("kmJW").a},filters:{moneyYuan:function(t){return(t/100).toFixed(2)+"元"},filterStatus:function(t){var e="";return 0===t?e="审核中":1===t?e="提现成功":2===t&&(e="提现失败"),e}},mounted:function(){this.getList()},methods:(s={onPageChange:function(t){this.nowPage=t},getList:function(){var t=this,e={limit:this.limit,page:this.nowPage};Object(o._29)(e).then(function(e){t.tableData=e.list,t.total=e.total})},onSearch:function(){this.page.current=1,this.getList()},checkMoney:function(t){this.nowObj.id=t,this.showDesc=!1,this.showDialog=!0},addDesc:function(t,e){this.nowObj.id=t,this.nowObj.desc=e,this.showDesc=!0,this.showDialog=!0}},n(s,"onPageChange",function(t){this.page.current=t,this.getList()}),n(s,"doCallback",function(){this.nowObj.id="",this.nowObj.status=1,this.nowObj.reason="",this.nowObj.desc="",this.page.current=1,this.showDialog=!1,this.getList(),this.$message({message:"提交成功",type:"success"})}),n(s,"onSave",function(t){var e=this;if(t){var a={desc:this.nowObj.desc};if(""===a.desc||null==a.desc)return this.$message.error("请填写备注"),!1;Object(o.P)(this.nowObj.id,"withdraw",a).then(function(t){e.doCallback()})}else{var s={reason:this.nowObj.reason,status:this.nowObj.status};if((""===s.reason||null==s.reason)&&2===s.status)return this.$message.error("请填写失败理由"),!1;s.reason="",Object(o._44)(this.nowObj.id,s).then(function(t){e.doCallback()})}}),s)},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"putForward"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.search,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"关键字"}},[a("el-input",{attrs:{placeholder:"用户名/手机号"},model:{value:t.search.key,callback:function(e){t.$set(t.search,"key",e)},expression:"search.key"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"订单状态"}},[a("el-select",{attrs:{placeholder:"用户名/手机/课程名称"},model:{value:t.search.status,callback:function(e){t.$set(t.search,"status",e)},expression:"search.status"}},t._l(t.liStatus,function(t){return a("el-option",{key:t.status,attrs:{label:t.label,value:t.status}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")])],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},[a("el-table-column",{attrs:{prop:"username",label:"用户名"}}),t._v(" "),a("el-table-column",{attrs:{prop:"mobile",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{label:"已获得总额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.getSumMoney))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"已提金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.alreadyMoney))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"可提余额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.resMoney))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.money))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:{status:!0,red:2===e.row.status,green:1===e.row.status}},[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"同意提现时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pay_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),t.$store.state.readonly?t._e():a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.checkMoney(e.row.id,e.row.desc)}}},[t._v("\n 审核\n ")]):t._e(),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.addDesc(e.row.id,e.row.desc)}}},[t._v("\n 添加备注\n ")])]}}])})],1),t._v(" "),a("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange}}),t._v(" "),t.showDialog?a("el-dialog",{attrs:{title:t.dialogTitle,visible:t.showDialog},on:{"update:visible":function(e){t.showDialog=e}}},[a("el-form",{ref:"saveuser",attrs:{model:t.nowObj,"label-width":"70px"}},[t.showDesc?t._e():a("el-form-item",{attrs:{label:"订单状态"}},[[a("el-radio-group",{model:{value:t.nowObj.status,callback:function(e){t.$set(t.nowObj,"status",e)},expression:"nowObj.status"}},[a("el-radio",{attrs:{label:1}},[t._v("提现成功")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("提现失败")])],1)]],2),t._v(" "),2!==t.nowObj.status||t.showDesc?t._e():a("el-form-item",{attrs:{label:"失败理由"}},[a("el-input",{attrs:{type:"textarea",rows:"3","auto-complete":"off"},model:{value:t.nowObj.reason,callback:function(e){t.$set(t.nowObj,"reason",e)},expression:"nowObj.reason"}})],1),t._v(" "),t.showDesc?a("el-form-item",{attrs:{label:"备注信息"}},[a("el-input",{attrs:{type:"textarea",rows:"3","auto-complete":"off"},model:{value:t.nowObj.desc,callback:function(e){t.$set(t.nowObj,"desc",e)},expression:"nowObj.desc"}})],1):t._e()],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.onSave(t.showDesc)}}},[t._v("保 存")]),t._v(" "),a("el-button",{on:{click:function(e){t.showDialog=!1}}},[t._v("取 消")])],1)],1):t._e()],1)},staticRenderFns:[]};var i=a("VU/8")(l,r,!1,function(t){a("P33w")},"data-v-caa2f64c",null);e.default=i.exports},P33w:function(t,e){}});
\ No newline at end of file
webpackJsonp([24],{F5pf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s,o=a("CCn6");function n(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var l={name:"putForward",data:function(){return{nowPage:1,total:0,limit:10,search:{key:"",status:0},liStatus:[{label:"全部",status:""},{label:"申请中",status:0},{label:"提现成功",status:1},{label:"提现失败",status:2}],tableData:[],showDialog:!1,showDesc:!1,dialogTitle:"审核",nowObj:{id:"",status:1,reason:"",desc:""},page:{current:1,pageSize:100,total:0}}},components:{page:a("kmJW").a},filters:{moneyYuan:function(t){return(t/100).toFixed(2)+"元"},filterStatus:function(t){var e="";return 0===t?e="审核中":1===t?e="提现成功":2===t&&(e="提现失败"),e}},mounted:function(){this.getList()},methods:(s={onPageChange:function(t){this.nowPage=t},getList:function(){var t=this,e={limit:this.limit,page:this.nowPage};Object(o._29)(e).then(function(e){t.tableData=e.list,t.total=e.total})},onSearch:function(){this.page.current=1,this.getList()},checkMoney:function(t){this.nowObj.id=t,this.showDesc=!1,this.showDialog=!0},addDesc:function(t,e){this.nowObj.id=t,this.nowObj.desc=e,this.showDesc=!0,this.showDialog=!0}},n(s,"onPageChange",function(t){this.page.current=t,this.getList()}),n(s,"doCallback",function(){this.nowObj.id="",this.nowObj.status=1,this.nowObj.reason="",this.nowObj.desc="",this.page.current=1,this.showDialog=!1,this.getList(),this.$message({message:"提交成功",type:"success"})}),n(s,"onSave",function(t){var e=this;if(t){var a={desc:this.nowObj.desc};if(""===a.desc||null==a.desc)return this.$message.error("请填写备注"),!1;Object(o.P)(this.nowObj.id,"withdraw",a).then(function(t){e.doCallback()})}else{var s={reason:this.nowObj.reason,status:this.nowObj.status};if((""===s.reason||null==s.reason)&&2===s.status)return this.$message.error("请填写失败理由"),!1;s.reason="",Object(o._44)(this.nowObj.id,s).then(function(t){e.doCallback()})}}),s)},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"putForward"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.search,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"关键字"}},[a("el-input",{attrs:{placeholder:"用户名/手机号"},model:{value:t.search.key,callback:function(e){t.$set(t.search,"key",e)},expression:"search.key"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"订单状态"}},[a("el-select",{attrs:{placeholder:"用户名/手机/课程名称"},model:{value:t.search.status,callback:function(e){t.$set(t.search,"status",e)},expression:"search.status"}},t._l(t.liStatus,function(t){return a("el-option",{key:t.status,attrs:{label:t.label,value:t.status}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")])],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},[a("el-table-column",{attrs:{prop:"username",label:"用户名"}}),t._v(" "),a("el-table-column",{attrs:{prop:"mobile",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{label:"已获得总额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.getSumMoney))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"已提金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.alreadyMoney))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"可提余额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.resMoney))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.money))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:{status:!0,red:2===e.row.status,green:1===e.row.status}},[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"同意提现时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pay_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),t.$store.state.readonly?t._e():a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.checkMoney(e.row.id,e.row.desc)}}},[t._v("\n 审核\n ")]):t._e(),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.addDesc(e.row.id,e.row.desc)}}},[t._v("\n 添加备注\n ")])]}}])})],1),t._v(" "),a("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange}}),t._v(" "),t.showDialog?a("el-dialog",{attrs:{title:t.dialogTitle,visible:t.showDialog},on:{"update:visible":function(e){t.showDialog=e}}},[a("el-form",{ref:"saveuser",attrs:{model:t.nowObj,"label-width":"70px"}},[t.showDesc?t._e():a("el-form-item",{attrs:{label:"订单状态"}},[[a("el-radio-group",{model:{value:t.nowObj.status,callback:function(e){t.$set(t.nowObj,"status",e)},expression:"nowObj.status"}},[a("el-radio",{attrs:{label:1}},[t._v("提现成功")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("提现失败")])],1)]],2),t._v(" "),2!==t.nowObj.status||t.showDesc?t._e():a("el-form-item",{attrs:{label:"失败理由"}},[a("el-input",{attrs:{type:"textarea",rows:"3","auto-complete":"off"},model:{value:t.nowObj.reason,callback:function(e){t.$set(t.nowObj,"reason",e)},expression:"nowObj.reason"}})],1),t._v(" "),t.showDesc?a("el-form-item",{attrs:{label:"备注信息"}},[a("el-input",{attrs:{type:"textarea",rows:"3","auto-complete":"off"},model:{value:t.nowObj.desc,callback:function(e){t.$set(t.nowObj,"desc",e)},expression:"nowObj.desc"}})],1):t._e()],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.onSave(t.showDesc)}}},[t._v("保 存")]),t._v(" "),a("el-button",{on:{click:function(e){t.showDialog=!1}}},[t._v("取 消")])],1)],1):t._e()],1)},staticRenderFns:[]};var i=a("VU/8")(l,r,!1,function(t){a("P33w")},"data-v-caa2f64c",null);e.default=i.exports},P33w:function(t,e){}});
\ No newline at end of file
webpackJsonp([24],{hFUZ:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var l=e("CCn6"),s=e("+TkF"),i={name:"index",components:{page:e("kmJW").a},data:function(){return{list:[],id:"",detail:{},total:0,limit:10,nowPage:1}},methods:{onPageChange:function(t){this.nowPage=t,this.getTeacherDetail()},getTeacherDetail:function(){var t=this,a=this.id,e={limit:this.limit,page:this.nowPage};Object(l._25)(a,e).then(function(a){a.class_list&&(t.list=a.class_list.list||[],t.total=a.class_list.total),t.detail=a})}},filters:{teacherType:function(t){return s.l[t]}},mounted:function(){this.id=this.$route.params.id,this.getTeacherDetail()}},n={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"teacher"},[e("div",{staticClass:"header"},[e("el-row",[e("el-col",{attrs:{span:6}},[e("label",[t._v("老师:")]),t._v(t._s(t._f("teacherType")(t.detail.type))+" "+t._s(t.detail.name)+"\n ")]),t._v(" "),e("el-col",{attrs:{span:6}},[e("label",[t._v("微信号:")]),t._v(" "+t._s(t.detail.alias)+"\n ")]),t._v(" "),e("el-col",{attrs:{span:6}},[e("label",[t._v("二维码:")]),t._v(" "),e("a",{attrs:{href:t.detail.qr}},[e("img",{staticClass:"avatar",attrs:{src:t.detail.qr}})])]),t._v(" "),e("el-col",{attrs:{span:6}},[e("label",[t._v("老师状态:")]),t._v(t._s(0===t.detail.status?"正常":"禁用")+"\n ")])],1),t._v(" "),t.detail.user_info?e("el-row",[e("el-col",{attrs:{span:6}},[e("label",[t._v("绑定用户:")]),t._v(" "),e("a",{attrs:{href:t.detail.user_info.avatar,target:"_blank"}},[e("img",{staticClass:"avatar",attrs:{src:t.detail.user_info.avatar}})]),t._v("\n "+t._s(t.detail.user_info.nickname)+"(ID:"+t._s(t.detail.user_info.user_id)+")\n ")])],1):t._e()],1),t._v(" "),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list}},[e("el-table-column",{attrs:{prop:"id",label:"班级ID"}}),t._v(" "),e("el-table-column",{attrs:{prop:"periods_title",label:"期数名称"}}),t._v(" "),e("el-table-column",{attrs:{prop:"join_num",label:"参加人数"}}),t._v(" "),e("el-table-column",{attrs:{prop:"max_join_num",label:"最大班级人数"}}),t._v(" "),e("el-table-column",{attrs:{prop:"start_at",label:"开始时间"}}),t._v(" "),e("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}})],1),t._v(" "),e("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange}})],1)},staticRenderFns:[]};var r=e("VU/8")(i,n,!1,function(t){e("qo1z")},"data-v-bbfdc2f8",null);a.default=r.exports},qo1z:function(t,a){}});
\ No newline at end of file
webpackJsonp([25],{hFUZ:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var l=e("CCn6"),s=e("+TkF"),i={name:"index",components:{page:e("kmJW").a},data:function(){return{list:[],id:"",detail:{},total:0,limit:10,nowPage:1}},methods:{onPageChange:function(t){this.nowPage=t,this.getTeacherDetail()},getTeacherDetail:function(){var t=this,a=this.id,e={limit:this.limit,page:this.nowPage};Object(l._25)(a,e).then(function(a){a.class_list&&(t.list=a.class_list.list||[],t.total=a.class_list.total),t.detail=a})}},filters:{teacherType:function(t){return s.l[t]}},mounted:function(){this.id=this.$route.params.id,this.getTeacherDetail()}},n={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"teacher"},[e("div",{staticClass:"header"},[e("el-row",[e("el-col",{attrs:{span:6}},[e("label",[t._v("老师:")]),t._v(t._s(t._f("teacherType")(t.detail.type))+" "+t._s(t.detail.name)+"\n ")]),t._v(" "),e("el-col",{attrs:{span:6}},[e("label",[t._v("微信号:")]),t._v(" "+t._s(t.detail.alias)+"\n ")]),t._v(" "),e("el-col",{attrs:{span:6}},[e("label",[t._v("二维码:")]),t._v(" "),e("a",{attrs:{href:t.detail.qr}},[e("img",{staticClass:"avatar",attrs:{src:t.detail.qr}})])]),t._v(" "),e("el-col",{attrs:{span:6}},[e("label",[t._v("老师状态:")]),t._v(t._s(0===t.detail.status?"正常":"禁用")+"\n ")])],1),t._v(" "),t.detail.user_info?e("el-row",[e("el-col",{attrs:{span:6}},[e("label",[t._v("绑定用户:")]),t._v(" "),e("a",{attrs:{href:t.detail.user_info.avatar,target:"_blank"}},[e("img",{staticClass:"avatar",attrs:{src:t.detail.user_info.avatar}})]),t._v("\n "+t._s(t.detail.user_info.nickname)+"(ID:"+t._s(t.detail.user_info.user_id)+")\n ")])],1):t._e()],1),t._v(" "),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list}},[e("el-table-column",{attrs:{prop:"id",label:"班级ID"}}),t._v(" "),e("el-table-column",{attrs:{prop:"periods_title",label:"期数名称"}}),t._v(" "),e("el-table-column",{attrs:{prop:"join_num",label:"参加人数"}}),t._v(" "),e("el-table-column",{attrs:{prop:"max_join_num",label:"最大班级人数"}}),t._v(" "),e("el-table-column",{attrs:{prop:"start_at",label:"开始时间"}}),t._v(" "),e("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}})],1),t._v(" "),e("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange}})],1)},staticRenderFns:[]};var r=e("VU/8")(i,n,!1,function(t){e("qo1z")},"data-v-bbfdc2f8",null);a.default=r.exports},qo1z:function(t,a){}});
\ No newline at end of file
webpackJsonp([25],{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.V)(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("nrSE")},"data-v-4d31dc4f",null);t.default=o.exports},nrSE:function(e,t){}});
\ No newline at end of file
webpackJsonp([26],{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.V)(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("nrSE")},"data-v-4d31dc4f",null);t.default=o.exports},nrSE:function(e,t){}});
\ No newline at end of file
webpackJsonp([26],{EFea:function(e,t){},aTXs:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o("CCn6"),a={data:function(){return{nowPage:1,total:0,menuList:[],plist:[],dialog:{title:"新增菜单",show:!1,rules:{name:[{required:!0,message:"请填写菜单名称",trigger:"change"}],cover:[{required:!0,message:"请填写菜单code",trigger:"change"}]},form:{id:"",name:"",cover:"",pid:0,type:2}}}},created:function(){this.getList()},methods:{getList:function(){var e=this;Object(i._15)().then(function(t){t&&(e.menuList=[],e.plist=[],t.forEach(function(t){e.menuList.push(t),e.plist.push(t),t.children&&t.children.forEach(function(t){e.menuList.push(t)})}))})},edit:function(e){this.dialog.show=!0,this.dialog.form.id=e.id,this.dialog.title="编辑菜单",this.dialog.form.name=e.name,this.dialog.form.cover=e.cover,this.dialog.form.pid=e.pid},add:function(){this.dialog.show=!0,this.dialog.form.id="",this.dialog.title="新增菜单",this.dialog.form.name="",this.dialog.form.pid=0,this.dialog.form.cover=""},del:function(e){var t=this;this.$confirm("此操作将删除该菜单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.y)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.getList()})})},sub:function(){var e=this;this.$refs.form.validate(function(t){if(t){var o=e.dialog;if(o.form.id){var a={name:o.form.name,cover:o.form.cover,pid:o.form.pid};Object(i._41)(o.form.id,a).then(function(){e.$message({type:"success",message:"修改成功!"}),o.show=!1,e.getList()})}else{var l={name:o.form.name,cover:o.form.cover,pid:o.form.pid};Object(i._35)(l).then(function(){e.$message({type:"success",message:"添加成功!"}),o.show=!1,e.getList()})}}})}}},l={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"menu"},[o("div",{staticClass:"head clear-both"},[e.$store.state.readonly?e._e():o("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增菜单")])],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.menuList}},[o("el-table-column",{attrs:{prop:"name",label:"菜单名称"}}),e._v(" "),o("el-table-column",{attrs:{prop:"cover",label:"菜单Code"}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),o("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"30%"},on:{"update:visible":function(t){e.$set(e.dialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{rules:e.dialog.rules,model:e.dialog.form,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"菜单名称",prop:"name"}},[o("el-input",{model:{value:e.dialog.form.name,callback:function(t){e.$set(e.dialog.form,"name",t)},expression:"dialog.form.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"菜单Code",prop:"cover"}},[o("el-input",{model:{value:e.dialog.form.cover,callback:function(t){e.$set(e.dialog.form,"cover",t)},expression:"dialog.form.cover"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"上级菜单",prop:"cover"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.dialog.form.pid,callback:function(t){e.$set(e.dialog.form,"pid",t)},expression:"dialog.form.pid"}},[o("el-option",{attrs:{label:"无",value:0}}),e._v(" "),e._l(e.plist,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})],2)],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var s=o("VU/8")(a,l,!1,function(e){o("EFea")},"data-v-40740e0e",null);t.default=s.exports}});
\ No newline at end of file
webpackJsonp([27],{EFea:function(e,t){},aTXs:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o("CCn6"),a={data:function(){return{nowPage:1,total:0,menuList:[],plist:[],dialog:{title:"新增菜单",show:!1,rules:{name:[{required:!0,message:"请填写菜单名称",trigger:"change"}],cover:[{required:!0,message:"请填写菜单code",trigger:"change"}]},form:{id:"",name:"",cover:"",pid:0,type:2}}}},created:function(){this.getList()},methods:{getList:function(){var e=this;Object(i._15)().then(function(t){t&&(e.menuList=[],e.plist=[],t.forEach(function(t){e.menuList.push(t),e.plist.push(t),t.children&&t.children.forEach(function(t){e.menuList.push(t)})}))})},edit:function(e){this.dialog.show=!0,this.dialog.form.id=e.id,this.dialog.title="编辑菜单",this.dialog.form.name=e.name,this.dialog.form.cover=e.cover,this.dialog.form.pid=e.pid},add:function(){this.dialog.show=!0,this.dialog.form.id="",this.dialog.title="新增菜单",this.dialog.form.name="",this.dialog.form.pid=0,this.dialog.form.cover=""},del:function(e){var t=this;this.$confirm("此操作将删除该菜单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.y)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.getList()})})},sub:function(){var e=this;this.$refs.form.validate(function(t){if(t){var o=e.dialog;if(o.form.id){var a={name:o.form.name,cover:o.form.cover,pid:o.form.pid};Object(i._41)(o.form.id,a).then(function(){e.$message({type:"success",message:"修改成功!"}),o.show=!1,e.getList()})}else{var l={name:o.form.name,cover:o.form.cover,pid:o.form.pid};Object(i._35)(l).then(function(){e.$message({type:"success",message:"添加成功!"}),o.show=!1,e.getList()})}}})}}},l={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"menu"},[o("div",{staticClass:"head clear-both"},[e.$store.state.readonly?e._e():o("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增菜单")])],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.menuList}},[o("el-table-column",{attrs:{prop:"name",label:"菜单名称"}}),e._v(" "),o("el-table-column",{attrs:{prop:"cover",label:"菜单Code"}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),o("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"30%"},on:{"update:visible":function(t){e.$set(e.dialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{rules:e.dialog.rules,model:e.dialog.form,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"菜单名称",prop:"name"}},[o("el-input",{model:{value:e.dialog.form.name,callback:function(t){e.$set(e.dialog.form,"name",t)},expression:"dialog.form.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"菜单Code",prop:"cover"}},[o("el-input",{model:{value:e.dialog.form.cover,callback:function(t){e.$set(e.dialog.form,"cover",t)},expression:"dialog.form.cover"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"上级菜单",prop:"cover"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.dialog.form.pid,callback:function(t){e.$set(e.dialog.form,"pid",t)},expression:"dialog.form.pid"}},[o("el-option",{attrs:{label:"无",value:0}}),e._v(" "),e._l(e.plist,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})],2)],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var s=o("VU/8")(a,l,!1,function(e){o("EFea")},"data-v-40740e0e",null);t.default=s.exports}});
\ No newline at end of file
webpackJsonp([27],{iXaR:function(e,n){},usUK:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i={render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._v("\n 发货列表\n")])},staticRenderFns:[]};var a=t("VU/8")({name:"index"},i,!1,function(e){t("iXaR")},"data-v-25f084f7",null);n.default=a.exports}});
\ No newline at end of file
webpackJsonp([28],{iXaR:function(e,n){},usUK:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i={render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._v("\n 发货列表\n")])},staticRenderFns:[]};var a=t("VU/8")({name:"index"},i,!1,function(e){t("iXaR")},"data-v-25f084f7",null);n.default=a.exports}});
\ No newline at end of file
webpackJsonp([28],{"+jTk":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("CCn6"),s=o("+TkF"),l=o("kmJW"),i=o("NC6I"),r=o.n(i),n={name:"admin",components:{page:l.a},data:function(){var e=this;return{nowPage:1,total:0,limit:10,adminList:[],searchFrom:{user_name:"",status:""},dialog:{dialogType:0,title:"新增账号",show:!1,select:[{code:0,value:s.a[0]},{code:1,value:s.a[1]}],rules:{username:[{validator:function(t,o,a){""===o&&0===e.dialog.dialogType?a(new Error("请输入账号")):a()},trigger:"blur"}],password:[{validator:function(t,o,a){""!==o||0!==e.dialog.dialogType&&2!==e.dialog.dialogType?(""===e.dialog.form.surePassword||0!==e.dialog.dialogType&&2!==e.dialog.dialogType||e.$refs.form.validateField("surePassword"),a()):a(new Error("请输入密码"))},trigger:"blur"}],surePassword:[{validator:function(t,o,a){0===e.dialog.dialogType||2===e.dialog.dialogType?""===o?a(new Error("请再次输入密码")):o!==e.dialog.form.password?a(new Error("两次输入密码不一致!")):a():a()},trigger:"blur"}],role_id:[{validator:function(t,o,a){0===e.dialog.dialogType||1===e.dialog.dialogType?""===o&&a(new Error("请输入角色")):a()},trigger:"blur"}],desc:[{validator:function(t,o,a){0===e.dialog.dialogType||1===e.dialog.dialogType?""===o&&a(new Error("请输入简述")):a()},trigger:"blur"}]},form:{id:"",username:"",password:"",surePassword:"",role_id:"",status:0,desc:""}},roleList:[]}},filters:{adminStatus:function(e){return s.a[e]}},created:function(){this.getList(),this.getRoleList()},methods:{getRoleList:function(){var e=this;Object(a._22)({page:1,limit:100}).then(function(t){t&&(e.roleList=t.list)})},onPageChange:function(e){this.nowPage=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.user_name&&(t.user_name=this.searchFrom.user_name),""!==this.searchFrom.status&&(t.status=this.searchFrom.status),Object(a.U)(t).then(function(t){e.adminList=t.list,e.total=Number(t.total),e.$store.commit("mainCanShow")})},editPW:function(e){this.dialog.form.id=e.id,this.dialog.dialogType=2,this.dialog.title="修改密码",this.dialog.form.password="",this.dialog.form.surePassword="",this.dialog.show=!0},edit:function(e){this.dialog.show=!0,this.dialog.dialogType=1,this.dialog.form.id=e.id,this.dialog.title="编辑",this.dialog.form.username=e.user_name,this.dialog.form.password="",this.dialog.form.status=e.status,this.dialog.form.role_id=e.role_id,this.dialog.form.desc=e.desc},add:function(){this.dialog.show=!0,this.dialog.dialogType=0,this.dialog.form.id="",this.dialog.title="新增",this.dialog.form.username="",this.dialog.form.status=0,this.dialog.form.password="",this.dialog.form.role_id="",this.dialog.form.desc=""},del:function(e){var t=this;this.$confirm("此操作将删除该账号?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.r)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"})}),t.getList()})},onSub:function(){var e=this,t=this.dialog;if(1===t.dialogType){var o={role_id:t.form.role_id,desc:t.form.desc,status:t.form.status};Object(a.I)(t.form.id,o).then(function(){e.$message({type:"success",message:"修改成功!"}),t.show=!1,e.getList()})}else if(0===t.dialogType){var s={role_id:t.form.role_id,desc:t.form.desc,passwd:r()(t.form.password),username:t.form.username};Object(a.a)(s).then(function(){e.$message({type:"success",message:"添加成功!"}),t.show=!1,e.getList()})}else if(2===t.dialogType){console.log(1);var l={passwd_new:r()(t.form.password)};Object(a.Q)(t.form.id,l).then(function(){e.$message({type:"success",message:"修改成功!"}),t.show=!1,e.getList()})}}}},d={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"admin"},[o("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px"}},[o("el-row",[o("el-col",{attrs:{span:4}},[o("el-form-item",{attrs:{label:"用户名"}},[o("el-input",{model:{value:e.searchFrom.user_name,callback:function(t){e.$set(e.searchFrom,"user_name",t)},expression:"searchFrom.user_name"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:4}},[o("el-form-item",{attrs:{label:"状态"}},[o("el-select",{attrs:{placeholder:"请选择用户等级"},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},[o("el-option",{attrs:{label:"全部",value:""}}),e._v(" "),o("el-option",{attrs:{label:"启用",value:0}}),e._v(" "),o("el-option",{attrs:{label:"冻结",value:1}})],1)],1)],1),e._v(" "),o("el-col",{attrs:{span:4}},[o("el-form-item",[o("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")])],1)],1),e._v(" "),o("el-col",{attrs:{span:4,offset:8}},[e.$store.state.readonly?e._e():o("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增角色")])],1)],1)],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.adminList}},[o("el-table-column",{attrs:{prop:"id",label:"账号ID"}}),e._v(" "),o("el-table-column",{attrs:{prop:"user_name",label:"用户名"}}),e._v(" "),o("el-table-column",{attrs:{prop:"role_name",label:"角色"}}),e._v(" "),o("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("adminStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),o("el-table-column",{attrs:{prop:"last_login_at",label:"最后登陆时间"}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-popover",{attrs:{placement:"top",width:"280"}},[o("div",{staticStyle:{"text-align":"center"}},[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),o("el-button",{attrs:{size:"mini",type:"warning",plain:""},on:{click:function(o){e.editPW(t.row)}}},[e._v("\n 修改密码\n ")]),e._v(" "),e.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()],1),e._v(" "),o("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),o("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange}}),e._v(" "),o("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"30%"},on:{"update:visible":function(t){e.$set(e.dialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{rules:e.dialog.rules,model:e.dialog.form,"label-width":"80px"}},[0===e.dialog.dialogType?o("el-form-item",{attrs:{label:"账号",prop:"username"}},[o("el-input",{model:{value:e.dialog.form.username,callback:function(t){e.$set(e.dialog.form,"username",t)},expression:"dialog.form.username"}})],1):e._e(),e._v(" "),2===e.dialog.dialogType||0===e.dialog.dialogType?o("el-form-item",{attrs:{label:"密码",prop:"password"}},[o("el-input",{attrs:{type:"password"},model:{value:e.dialog.form.password,callback:function(t){e.$set(e.dialog.form,"password",t)},expression:"dialog.form.password"}})],1):e._e(),e._v(" "),2===e.dialog.dialogType||0===e.dialog.dialogType?o("el-form-item",{attrs:{label:"确认密码",prop:"surePassword"}},[o("el-input",{attrs:{type:"password"},model:{value:e.dialog.form.surePassword,callback:function(t){e.$set(e.dialog.form,"surePassword",t)},expression:"dialog.form.surePassword"}})],1):e._e(),e._v(" "),2!==e.dialog.dialogType?o("el-form-item",{attrs:{label:"角色",prop:"role_id"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.dialog.form.role_id,callback:function(t){e.$set(e.dialog.form,"role_id",t)},expression:"dialog.form.role_id"}},e._l(e.roleList,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e(),e._v(" "),2!==e.dialog.dialogType?o("el-form-item",{attrs:{label:"简述",prop:"desc"}},[o("el-input",{model:{value:e.dialog.form.desc,callback:function(t){e.$set(e.dialog.form,"desc",t)},expression:"dialog.form.desc"}})],1):e._e(),e._v(" "),1===e.dialog.dialogType?o("el-form-item",{attrs:{label:"状态",prop:"status"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.dialog.form.status,callback:function(t){e.$set(e.dialog.form,"status",t)},expression:"dialog.form.status"}},e._l(e.dialog.select,function(e){return o("el-option",{key:e.code,attrs:{label:e.value,value:e.code}})}))],1):e._e()],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.onSub}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var c=o("VU/8")(n,d,!1,function(e){o("k0uT")},"data-v-18901387",null);t.default=c.exports},k0uT:function(e,t){}});
\ No newline at end of file
webpackJsonp([29],{"+jTk":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("CCn6"),s=o("+TkF"),l=o("kmJW"),i=o("NC6I"),r=o.n(i),n={name:"admin",components:{page:l.a},data:function(){var e=this;return{nowPage:1,total:0,limit:10,adminList:[],searchFrom:{user_name:"",status:""},dialog:{dialogType:0,title:"新增账号",show:!1,select:[{code:0,value:s.a[0]},{code:1,value:s.a[1]}],rules:{username:[{validator:function(t,o,a){""===o&&0===e.dialog.dialogType?a(new Error("请输入账号")):a()},trigger:"blur"}],password:[{validator:function(t,o,a){""!==o||0!==e.dialog.dialogType&&2!==e.dialog.dialogType?(""===e.dialog.form.surePassword||0!==e.dialog.dialogType&&2!==e.dialog.dialogType||e.$refs.form.validateField("surePassword"),a()):a(new Error("请输入密码"))},trigger:"blur"}],surePassword:[{validator:function(t,o,a){0===e.dialog.dialogType||2===e.dialog.dialogType?""===o?a(new Error("请再次输入密码")):o!==e.dialog.form.password?a(new Error("两次输入密码不一致!")):a():a()},trigger:"blur"}],role_id:[{validator:function(t,o,a){0===e.dialog.dialogType||1===e.dialog.dialogType?""===o&&a(new Error("请输入角色")):a()},trigger:"blur"}],desc:[{validator:function(t,o,a){0===e.dialog.dialogType||1===e.dialog.dialogType?""===o&&a(new Error("请输入简述")):a()},trigger:"blur"}]},form:{id:"",username:"",password:"",surePassword:"",role_id:"",status:0,desc:""}},roleList:[]}},filters:{adminStatus:function(e){return s.a[e]}},created:function(){this.getList(),this.getRoleList()},methods:{getRoleList:function(){var e=this;Object(a._22)({page:1,limit:100}).then(function(t){t&&(e.roleList=t.list)})},onPageChange:function(e){this.nowPage=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.user_name&&(t.user_name=this.searchFrom.user_name),""!==this.searchFrom.status&&(t.status=this.searchFrom.status),Object(a.U)(t).then(function(t){e.adminList=t.list,e.total=Number(t.total),e.$store.commit("mainCanShow")})},editPW:function(e){this.dialog.form.id=e.id,this.dialog.dialogType=2,this.dialog.title="修改密码",this.dialog.form.password="",this.dialog.form.surePassword="",this.dialog.show=!0},edit:function(e){this.dialog.show=!0,this.dialog.dialogType=1,this.dialog.form.id=e.id,this.dialog.title="编辑",this.dialog.form.username=e.user_name,this.dialog.form.password="",this.dialog.form.status=e.status,this.dialog.form.role_id=e.role_id,this.dialog.form.desc=e.desc},add:function(){this.dialog.show=!0,this.dialog.dialogType=0,this.dialog.form.id="",this.dialog.title="新增",this.dialog.form.username="",this.dialog.form.status=0,this.dialog.form.password="",this.dialog.form.role_id="",this.dialog.form.desc=""},del:function(e){var t=this;this.$confirm("此操作将删除该账号?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.r)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"})}),t.getList()})},onSub:function(){var e=this,t=this.dialog;if(1===t.dialogType){var o={role_id:t.form.role_id,desc:t.form.desc,status:t.form.status};Object(a.I)(t.form.id,o).then(function(){e.$message({type:"success",message:"修改成功!"}),t.show=!1,e.getList()})}else if(0===t.dialogType){var s={role_id:t.form.role_id,desc:t.form.desc,passwd:r()(t.form.password),username:t.form.username};Object(a.a)(s).then(function(){e.$message({type:"success",message:"添加成功!"}),t.show=!1,e.getList()})}else if(2===t.dialogType){console.log(1);var l={passwd_new:r()(t.form.password)};Object(a.Q)(t.form.id,l).then(function(){e.$message({type:"success",message:"修改成功!"}),t.show=!1,e.getList()})}}}},d={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"admin"},[o("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px"}},[o("el-row",[o("el-col",{attrs:{span:4}},[o("el-form-item",{attrs:{label:"用户名"}},[o("el-input",{model:{value:e.searchFrom.user_name,callback:function(t){e.$set(e.searchFrom,"user_name",t)},expression:"searchFrom.user_name"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:4}},[o("el-form-item",{attrs:{label:"状态"}},[o("el-select",{attrs:{placeholder:"请选择用户等级"},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},[o("el-option",{attrs:{label:"全部",value:""}}),e._v(" "),o("el-option",{attrs:{label:"启用",value:0}}),e._v(" "),o("el-option",{attrs:{label:"冻结",value:1}})],1)],1)],1),e._v(" "),o("el-col",{attrs:{span:4}},[o("el-form-item",[o("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")])],1)],1),e._v(" "),o("el-col",{attrs:{span:4,offset:8}},[e.$store.state.readonly?e._e():o("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增角色")])],1)],1)],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.adminList}},[o("el-table-column",{attrs:{prop:"id",label:"账号ID"}}),e._v(" "),o("el-table-column",{attrs:{prop:"user_name",label:"用户名"}}),e._v(" "),o("el-table-column",{attrs:{prop:"role_name",label:"角色"}}),e._v(" "),o("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("adminStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),o("el-table-column",{attrs:{prop:"last_login_at",label:"最后登陆时间"}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-popover",{attrs:{placement:"top",width:"280"}},[o("div",{staticStyle:{"text-align":"center"}},[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),o("el-button",{attrs:{size:"mini",type:"warning",plain:""},on:{click:function(o){e.editPW(t.row)}}},[e._v("\n 修改密码\n ")]),e._v(" "),e.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()],1),e._v(" "),o("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),o("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange}}),e._v(" "),o("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"30%"},on:{"update:visible":function(t){e.$set(e.dialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{rules:e.dialog.rules,model:e.dialog.form,"label-width":"80px"}},[0===e.dialog.dialogType?o("el-form-item",{attrs:{label:"账号",prop:"username"}},[o("el-input",{model:{value:e.dialog.form.username,callback:function(t){e.$set(e.dialog.form,"username",t)},expression:"dialog.form.username"}})],1):e._e(),e._v(" "),2===e.dialog.dialogType||0===e.dialog.dialogType?o("el-form-item",{attrs:{label:"密码",prop:"password"}},[o("el-input",{attrs:{type:"password"},model:{value:e.dialog.form.password,callback:function(t){e.$set(e.dialog.form,"password",t)},expression:"dialog.form.password"}})],1):e._e(),e._v(" "),2===e.dialog.dialogType||0===e.dialog.dialogType?o("el-form-item",{attrs:{label:"确认密码",prop:"surePassword"}},[o("el-input",{attrs:{type:"password"},model:{value:e.dialog.form.surePassword,callback:function(t){e.$set(e.dialog.form,"surePassword",t)},expression:"dialog.form.surePassword"}})],1):e._e(),e._v(" "),2!==e.dialog.dialogType?o("el-form-item",{attrs:{label:"角色",prop:"role_id"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.dialog.form.role_id,callback:function(t){e.$set(e.dialog.form,"role_id",t)},expression:"dialog.form.role_id"}},e._l(e.roleList,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e(),e._v(" "),2!==e.dialog.dialogType?o("el-form-item",{attrs:{label:"简述",prop:"desc"}},[o("el-input",{model:{value:e.dialog.form.desc,callback:function(t){e.$set(e.dialog.form,"desc",t)},expression:"dialog.form.desc"}})],1):e._e(),e._v(" "),1===e.dialog.dialogType?o("el-form-item",{attrs:{label:"状态",prop:"status"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.dialog.form.status,callback:function(t){e.$set(e.dialog.form,"status",t)},expression:"dialog.form.status"}},e._l(e.dialog.select,function(e){return o("el-option",{key:e.code,attrs:{label:e.value,value:e.code}})}))],1):e._e()],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.onSub}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var c=o("VU/8")(n,d,!1,function(e){o("k0uT")},"data-v-18901387",null);t.default=c.exports},k0uT:function(e,t){}});
\ No newline at end of file
webpackJsonp([3],{"/K0h":function(t,e){},"9SSf":function(t,e){},AgH1:function(t,e){},"C+jy":function(t,e,i){"use strict";var s={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"ly-emotion"},[this._t("default")],2)},staticRenderFns:[]};var a=i("VU/8")({name:"ly-emotion",mounted:function(){var t=this,e=this.$el.innerHTML,i='<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'+["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"].indexOf(e)+'.gif">';this.$nextTick(function(){t.$el.innerHTML=i})}},s,!1,function(t){i("AgH1")},"data-v-4281e520",null).exports,n={props:{height:{type:Number,default:200}},data:function(){return{list:[["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴"],["睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过"]["傲慢"],["饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂"],["疑问","嘘","晕","折磨","衰","骷髅","敲打","再见"],["擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠"],["鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀"],["西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰"],["凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀"],["足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强"],["弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你"],["NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈"],["磕头","回头","跳绳","挥手","激动","街舞","左太极","右太极"]]}},methods:{clickHandler:function(t){var e="#"+t+";";this.$emit("emotion",e)}},components:{Emotion:a}},o={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"emotion-box",style:{height:t.height+"px"}},t._l(t.list,function(e,s){return i("div",{key:s,staticClass:"emotion-box-line"},t._l(e,function(e,s){return i("emotion",{key:s,staticClass:"emotion-item",nativeOn:{click:function(i){t.clickHandler(e)}}},[t._v(t._s(e))])}))}))])},staticRenderFns:[]};var l=i("VU/8")(n,o,!1,function(t){i("9SSf")},"data-v-2885a82e",null);e.a=l.exports},CK6D:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("CCn6"),a=i("kmJW"),n=i("C+jy"),o={name:"focusReplyDialog",props:["dialogObj"],data:function(){return{show:!1,loading:!1,showEmotion:!1,total:0,nowPage:1,limit:3,id:null,list:[],index:-1,form:{key:"",value:"",desc:""},content:"",imageContent:"",newsContent:"",type:"text",mediaList:[],mediaListMock:[],showMedia:!1,pickerOptions1:{disabledDate:function(t){return!(t.getTime()>Date.now())}},rules:{value:[{required:!0,message:"请输入规则名称",trigger:"change"}],desc:[{required:!0,message:"请输入回复内容",trigger:"change"}],qr:[{required:!0,message:"请输入二维码",trigger:"change"}]}}},components:{page:a.a,emotion:n.a},mounted:function(){this.initDialog()},filters:{},methods:{addTeacherName:function(){this.content+="{my_teacher_name}"},addTeacherAlias:function(){this.content+="{my_teacher_alias}"},handleEmotion:function(t){this.content+=t},initDialog:function(){if(this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.key=this.dialogObj.key,this.form.value=this.dialogObj.value,this.index=this.dialogObj.index,this.list=this.dialogObj.list||[],-1===this.index)this.type="text",this.content="";else if(this.type=this.list[this.index].type,"text"===this.type)this.content=this.list[this.index].content;else if("image"===this.type){var t={type:"image"};this.list[this.index].content&&(t.content=this.list[this.index].content),this.list[this.index].media_id&&(t.media_id=this.list[this.index].media_id),this.list[this.index].variable&&(t.variable=this.list[this.index].variable),this.imageContent=t}},close:function(){this.$emit("changeShow",!1)},save:function(){var t=this,e=this.form,i=this.list||[];if("text"===this.type){if(!this.content)return void this.$message({showClose:!0,message:"请输入文本内容"});var a={type:this.type,content:this.content};this.index>-1?i[this.index]=a:i.push(a)}else if("image"===this.type){if(!this.imageContent)return void this.$message({showClose:!0,message:"请选择图片"});this.index>-1?i[this.index]=this.imageContent:i.push(this.imageContent)}else if("news"===this.type){if(!this.newsContent)return void this.$message({showClose:!0,message:"请选择图文"});this.index>-1?i[this.index]=this.newsContent:i.push(this.newsContent)}e.desc=JSON.stringify(i),this.id?Object(s._40)(this.id,e).then(function(e){t.$message({type:"success",message:"修改成功!"}),t.$emit("reflash"),t.$emit("changeShow",!1),t.show=!1}):Object(s._34)(e).then(function(e){t.$message({type:"success",message:"保存成功!"}),t.$emit("reflash"),t.$emit("changeShow",!1)})},onPageChange:function(t){this.nowPage=t,this.getMediaList(this.type)},getMediaList:function(t){var e=this,i={type:t,page:this.nowPage,limit:this.limit};this.loading=!0,Object(s._14)(i).then(function(i){e.loading=!1,e.type=t,e.total=i.total_count,0===i.item.length?(e.$message({showClose:!0,message:"暂无数据"}),e.showMedia=!1):(e.showMedia=!0,e.mediaList=i.item)}).catch(function(){e.loading=!1,e.showMedia=!1})},onChooseMedia:function(t){"news"===this.type?this.addContent(this.type,t.content,t.media_id):this.addContent(this.type,t.url,t.media_id),this.showMedia=!1},addTeacherQrcode:function(){this.imageContent={type:"image",variable:"my_teacher"}},addContent:function(t,e,i){var s={};e&&(s={type:t,content:e}),i&&(s.media_id=i),"news"===t?this.newsContent=s:this.imageContent=s}}},l={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{title:"自动回复",center:"",visible:t.dialogObj.show,width:"800px"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[i("div",{staticClass:"focus-reply"},[i("div",{staticClass:"content"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"inner"},[i("ul",{staticClass:"weui-desktop-msg-sender__tabs"},[i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_text",class:"news"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.type="news"}}},[t._v("图文")]),t._v(" "),i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_text",class:"text"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.type="text"}}},[t._v("文字")]),t._v(" "),i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_img",class:"image"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.type="image"}}},[t._v("图片")]),t._v(" "),i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_img",class:"voice"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.type="voice"}}},[t._v("语音")]),t._v(" "),i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_img",class:"video"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.type="video"}}},[t._v("视频")])]),t._v(" "),i("div",{staticClass:"inner-bottom"},["image"===t.type?i("div",{staticClass:"img-action"},[t.imageContent?[t.imageContent.variable?i("div",{staticClass:"my-teacher"},[t._v("我的老师二维码")]):t._e(),t._v(" "),t.imageContent.content?i("img",{staticStyle:{"max-width":"80%"},attrs:{src:t.imageContent.content}}):t._e()]:t._e(),t._v(" "),i("div",{staticClass:"display-b"},[t.showMedia?t._e():i("div",{staticClass:"img-create-access"},[i("a",{staticClass:"img-create-access__link",attrs:{href:"javascript:;"},on:{click:function(e){t.getMediaList("image")}}},[t._v("从素材库中选择")])]),t._v(" "),t.showMedia?t._e():i("div",{staticClass:"img-create-access"},[i("a",{staticClass:"img-create-access__link",attrs:{href:"javascript:;"},on:{click:t.addTeacherQrcode}},[t._v("添加老师二维码")])])]),t._v(" "),t.showMedia&&t.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList},on:{"row-click":t.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(t){return[i("a",{attrs:{href:t.row.url,target:"_blank"}},[i("img",{staticStyle:{width:"60px"},attrs:{src:t.row.url}})])]}}])})],1),t._v(" "),i("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],1):t._e()],2):t._e(),t._v(" "),"news"===t.type?i("div",{staticClass:"img-action"},[t.newsContent&&t.newsContent.content?[i("div",{staticClass:"news-media"},t._l(t.newsContent.content.news_item,function(e,s){return i("div",{staticStyle:{position:"relative"}},[1===t.newsContent.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[t._v(t._s(e.title))]),t._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:e.thumb_url}}),t._v(" "),i("div",{staticClass:"digest"},[t._v(t._s(e.digest))]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:e.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t.newsContent.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===s?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:e.thumb_url}}),t._v(" "),i("div",{staticClass:"bottom-title"},[t._v(t._s(e.title))])]):i("div",{staticClass:"next-cover clear-both"},[i("span",{staticClass:"next-title"},[t._v(t._s(e.title))]),t._v(" "),i("img",{staticClass:"next-img",attrs:{src:e.thumb_url}})]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:e.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t._e()])}))]:t._e(),t._v(" "),i("div",{staticClass:"display-b"},[t.showMedia?t._e():i("div",{staticClass:"img-create-access"},[i("a",{staticClass:"img-create-access__link",attrs:{href:"javascript:;"},on:{click:function(e){t.getMediaList(t.type)}}},[t._v("从素材库中选择")])])]),t._v(" "),t.showMedia&&t.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList},on:{"row-click":t.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL",className:"news-media"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.content.news_item,function(s,a){return i("div",{staticStyle:{position:"relative"}},[1===e.row.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"digest"},[t._v(t._s(s.digest))]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):e.row.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===a?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"bottom-title"},[t._v(t._s(s.title))])]):i("div",{staticClass:"next-cover clear-both"},[i("span",{staticClass:"next-title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticClass:"next-img",attrs:{src:s.thumb_url}})]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t._e()])})}}])})],1),t._v(" "),i("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],1):t._e()],2):t._e(),t._v(" "),"voice"===t.type||"video"===t.type?i("div",{staticClass:"img-action"},[i("div",{staticClass:"display-b"},[t.showMedia?t._e():i("div",{staticClass:"img-create-access"},[i("a",{staticClass:"img-create-access__link",attrs:{href:"javascript:;"},on:{click:function(e){t.getMediaList(t.type)}}},[t._v("从素材库中选择")])])]),t._v(" "),t.showMedia&&t.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList},on:{"row-click":t.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(t){return[i("a",{attrs:{href:t.row.url,target:"_blank"}},[i("img",{staticStyle:{width:"60px"},attrs:{src:t.row.url}})])]}}])})],1),t._v(" "),i("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],1):t._e()]):"text"===t.type?i("div",{staticClass:"inner-emotion_editor"},[i("div",{staticClass:"inner-edit_area"},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"请输入内容"},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1),t._v(" "),i("div",{staticStyle:{float:"right"}},[i("el-popover",{attrs:{placement:"bottom-end",width:"400",offset:10,trigger:"manual"},model:{value:t.showEmotion,callback:function(e){t.showEmotion=e},expression:"showEmotion"}},[i("div",[i("emotion",{attrs:{height:200},on:{emotion:t.handleEmotion}})],1),t._v(" "),i("el-button",{attrs:{slot:"reference",type:"text"},on:{click:function(e){t.showEmotion=!t.showEmotion}},slot:"reference"},[i("span",{staticClass:"icon_emotion emotion_switch"})])],1),t._v(" "),i("el-button",{attrs:{type:"warning",plain:""},on:{click:t.addTeacherName}},[t._v("添加老师名字")]),t._v(" "),i("el-button",{attrs:{type:"success",plain:""},on:{click:t.addTeacherAlias}},[t._v("添加老师别名")])],1)]):t._e()]),t._v(" "),i("div",{staticClass:"tool_bar"},[i("el-button",{on:{click:t.close}},[t._v("取 消")]),t._v(" "),i("el-button",{staticClass:"weui-desktop-btn weui-desktop-btn_primary",on:{click:t.save}},[t._v("保存")])],1)])])])])},staticRenderFns:[]};var c=i("VU/8")(o,l,!1,function(t){i("jE+0"),i("HYz/")},"data-v-2fcf553f",null).exports,r={name:"focusReply",data:function(){return{loading:!1,total:0,nowPage:1,limit:10,activeName:"focus_reply_new",id:null,list:[],form:{key:"focus_reply_new",value:"focus_reply_new",desc:""},content:"",imageContent:"",type:"text",mediaList:[],mediaListMock:[{media_id:"hQb3Pbdb4E5Ivxi2sagL5sTdtW5W9pKJNA6Z8nBo6Ao",name:"xx.jpg",update_time:1535351431,url:"http://mmbiz.qpic.cn/mmbiz_jpg/qNgYSw5sicibUGtiaRYRY9QEZUoqgGdvkTE5Zvg58tUciaAXFslmwuiadgU6turtsF7mXFeicKa9RQTTG1gKSLqPiabpA/0?wx_fmt=jpeg"},{media_id:"hQb3Pbdb4E5Ivxi2sagL5p2poL7GllXYm4SETNmf210",name:"z.jpg",update_time:1535351316,url:"http://mmbiz.qpic.cn/mmbiz_jpg/qNgYSw5sicibUGtiaRYRY9QEZUoqgGdvkTE5mTOB0jnmfdH30s54N5FIr2Tsbd9QcBFDiapicYWJ6sCZRMGTIlj179g/0?wx_fmt=jpeg"}],showMedia:!1,rules:{value:[{required:!0,message:"请输入规则名称",trigger:"change"}],desc:[{required:!0,message:"请输入回复内容",trigger:"change"}],qr:[{required:!0,message:"请输入二维码",trigger:"change"}]},dialogObj:{show:!1,id:"",index:-1,list:[]}}},components:{page:a.a,dialogCom:c},mounted:function(){this.getList()},filters:{typeFilter:function(t){return t?"text"===t?"文字":"image"===t?"图片":"news"===t?"图文":val:""},contentFilter:function(t){return"text"===t.type?t.content:"image"===t.type?"<img src='"+t.content+"'>":void 0}},methods:{emotion:function(t){console.log("emotion",t);var e=t.replace(/\#|\;/gi,"");return'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'+["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"].indexOf(e)+'.gif" align="middle">'},handleClick:function(t){console.log(t.name),this.form={key:t.name,value:t.name,desc:""},this.nowPage=1,this.getList(),this.id=""},save:function(){var t=this,e=this.form,i=[];if("text"===this.type){if(!this.content)return void this.$message({showClose:!0,message:"请输入文本内容"});i[0]={type:this.type,content:this.content}}else if("image"===this.type){if(!this.imageContent)return void this.$message({showClose:!0,message:"请选择图片"});i[0]=this.imageContent}e.desc=JSON.stringify(i),this.id?Object(s._40)(this.id,e).then(function(e){t.$message({type:"success",message:"修改成功!"})}):Object(s._34)(e).then(function(e){t.$message({type:"success",message:"保存成功!"})})},onChooseMedia:function(t){this.addContent(this.type,t.url,t.media_id),this.showMedia=!1},addContent:function(t,e,i){var s={};e&&(s={type:t,content:e}),i&&(s.media_id=i),this.imageContent=s},getList:function(){var t=this;Object(s._7)({key:this.form.key}).then(function(e){if(e.list.length>0){t.id=e.list[0].id;var i=JSON.parse(e.list[0].desc);t.list=i||[]}else t.list=[]})},add:function(){this.dialogObj={show:!0,id:this.id?this.id:null,index:-1,list:this.list,key:this.form.key,value:this.form.value}},editRow:function(t,e){this.dialogObj={show:!0,id:this.id,index:t,list:this.list,key:this.form.key,value:this.form.value}},deleteRow:function(t,e){var i=this;this.$confirm("此操作将删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var a=e;a.splice(t,1);var n={key:i.form.key,value:i.form.value};n.desc=JSON.stringify(a),Object(s._40)(i.id,n).then(function(t){i.$message({type:"success",message:"删除成功!"}),i.getList()})}).catch(function(){i.$message({type:"success",message:"已取消删除!"})})},moveRow:function(t,e){var i=this,a=this.list[t],n=this.list[e];this.list[t]=n,this.list[e]=a;var o=this.list,l={key:this.form.key,value:this.form.value};l.desc=JSON.stringify(o),Object(s._40)(this.id,l).then(function(t){i.$message({type:"success",message:"保存成功!"}),i.getList()})},changeShow:function(t){this.dialogObj.show=t}}},d={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"focus-reply"},[i("div",{staticClass:"clear-both top"},[i("span",{staticClass:"title"},[t._v("自动回复")]),t._v(" "),t.$store.state.readonly?t._e():i("el-button",{staticStyle:{float:"right"},attrs:{type:"success",plain:""},on:{click:t.add}},[t._v("添加回复")])],1),t._v(" "),i("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"新用户",name:"focus_reply_new"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"无课用户",name:"focus_reply_no_course"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"有课用户",name:"focus_reply_course"}})],1),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,"max-height":"800"}},[i("el-table-column",{attrs:{fixed:"",label:"类型",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("typeFilter")(e.row.type))+"\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"内容"},scopedSlots:t._u([{key:"default",fn:function(e){return["text"===e.row.type?i("div",{domProps:{innerHTML:t._s(e.row.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi,t.emotion))}}):"image"===e.row.type&&e.row.content?i("a",{attrs:{href:e.row.content,target:"_blank"}},[i("img",{staticClass:"shotcut",attrs:{src:e.row.content}})]):"image"===e.row.type&&e.row.variable?i("div",[t._v("\n 老师二维码\n ")]):"news"===e.row.type?i("div",[t._v("\n 图文消息\n ")]):t._e()]}}])}),t._v(" "),t.$store.state.readonly?t._e():i("el-table-column",{attrs:{fixed:"right",label:"操作",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){i.preventDefault(),t.editRow(e.$index,t.list)}}},[t._v("\n 编辑\n ")]),t._v(" "),t.$store.state.deletePermission?i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){i.preventDefault(),t.deleteRow(e.$index,t.list)}}},[t._v("\n 移除\n ")]):t._e(),t._v(" "),0!==e.$index?i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){i.preventDefault(),t.moveRow(e.$index-1,e.$index)}}},[t._v("\n 上移\n ")]):t._e(),t._v(" "),e.$index!==t.list.length-1?i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){i.preventDefault(),t.moveRow(e.$index,e.$index+1)}}},[t._v("\n 下移\n ")]):t._e()]}}])})],1),t._v(" "),t.dialogObj.show?i("dialog-com",{attrs:{dialogObj:t.dialogObj},on:{changeShow:t.changeShow,reflash:t.getList}}):t._e()],1)},staticRenderFns:[]};var m=i("VU/8")(r,d,!1,function(t){i("/K0h")},"data-v-740b1a09",null);e.default=m.exports},"HYz/":function(t,e){},"jE+0":function(t,e){}});
\ No newline at end of file
webpackJsonp([3],{"+HU5":function(t,e){},D41W:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAA/CAYAAAA47kzyAAAAAXNSR0IArs4c6QAABFlJREFUeAHtXUtPE1EYnQ5tAUloSwpWwLYUCBsC0mLionFrXLhwZdz5A1yz0Ljyh7hwrS5cmJgYTWBhYgkoJTSQGJo+eAki0PIopZ5vsE1JaooWOvNNv5sMM9N7Z+6Zc7h37mnvw6JUCPF43LW5uTlhsVhuFwoFv81myw0PDztSqdTW6upqoHiJ2+1e9vl8/uJ5Op1eXllZKZ1L/L/zA3594PMYWw78TXq93iiO32Obgh5Z7M8ES/kZxKLzp9ier62tHbe2tlqbm5sVCKioqlqeVI4vmYGTkxMth3Le5+bmXhwdHU2Mj4//KGZfEjCRSHT09vZ+QMSNYqTsjcUASmcONdwvFLR7oVDoM6HTilUkEnGjypyF6iKesTQ7g8bj8dgCgYAbVelbaOYoCYhi+rKzs/NqeXE9c6WcGIYBh8OhDA0NOVECHxMoy8zMzE0o+ml0dPSKYVAKkPMy0Gbt7u7uQUPFet4rJJ2hGAhbu7q6woBkNxQsAVOVAWqlrq+v36FGTKhqaklgOAZyuZyCFulDEjBgOHQCqCoD5M1hJxxqLBY7dYxVL5EERmIADU+CY1Oz2Sx9dSOBGQMkoNPpTKl/vj5jBl/gEgMw9X7tmxihgy8D6uDg4Apf+ILcgiq0IDTwZAC/GMWlCuWpnYY6mUz6REDGAhJ0dWFhQd6BjEUkH3iNMf6Ghu5yueQdyPk/AD5Q3oGcBSTs4gOZKyg+kLGApveB6Meq0GbWQD7Q1F0pDg4OzKpd6bnEB5ao4HkgPpCnbhpq8YGMxSPo4gOZC0jwxQcyF5G9D0RTWjk8PKwoQyaTUaj/ZEtLS8V4GnnV19dXMY7Dh+QDTW0jSDwa70Fd8CoFu513f2ZT+EAMiaukjfYZukxq4vX39/81DfcI8YHMFRQfyFhA8YGMxSPo4gOZC0jwxQcyF9Ha3t5u2j4xbW1tpp5dg3wgeyPPvADVBH96evp0loqa7iIX68qA+EBd6a89c/GBtXOo2x3EB+pG/cVkLD7wYnjU9S7iA3Wlv/bMxUbUzqFudzB9v1DdmK1TxjI+sE5EX2Y24gMvk9063Fvd39/31CEfyeISGIAPXKYh1jQ/swSGDMAHOknAHHX+kcCSgR11YGDgo8zUy1I8Av1dxe+BMbbwGxg4jbyCjfhKVSitSSCBGQNbW1v5jY2NfRJwCpOHykuQmYAQjwY/vlIxbWF2fn7+Ha1JwOwZGhYuSt8xGp5TwWAwQiVQyefzjzB97/bOzk7DksLpwTs6Or5hmYj7hLm0cgv6V9xCaXwzMjLiaWpq4vQ8jYZ1Fg8chlYZenCtBNIBLeUCVQMQ7xmdU6CJtWnkD/lEmdTwlJN6/sU6SQrVipioIReNRn9ChyfIP1gUj7CUSmA5MIhFi4CEl5aWHuzt7d3FOS3zYvf7/WkUX28x7eLiYnJ3d7c0ugRDtRKIvy7xpwz8Jz89uHoP2zYG5yRhF0B/YRKivR4bG/tS5La4/w3f4xgkUWcXewAAAABJRU5ErkJggg=="},OTDE:function(t,e,i){t.exports=i.p+"static/img/index.4a79f8e.jpg"},hQs8:function(t,e){},nAsM:function(t,e){},sJm1:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("D41W"),n=i.n(a),s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-container",[i("el-header",{attrs:{height:"80px"}},[i("div",{staticClass:"head-top"},[i("el-button",{attrs:{size:"mini"}},[t._v("\n 课程基本信息编辑\n ")]),t._v(" "),i("el-button",{attrs:{size:"mini",type:"primary"}},[t._v("\n 课时设置\n ")]),t._v(" "),i("span",{staticClass:"page-type"},[t._v("\n 分页模式\n "),i("el-switch",{model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}})],1)],1),t._v(" "),i("div",{staticClass:"head-content"},[i("div",[t._v("\n 未命名页面\n ")])])]),t._v(" "),i("el-container",[i("el-aside",{attrs:{width:"200px"}},[i("div",{staticClass:"page-list"},t._l(t.selectedMould,function(e){return i("el-card",{key:e.name,staticClass:"box",attrs:{shadow:"hover","body-style":{padding:"0px"}},on:{click:function(i){t.addMould(e)}}},[i("img",{staticClass:"image",attrs:{src:e.imgUrl}}),t._v(" "),i("div",{staticStyle:{padding:"14px"}},[i("span",[t._v(t._s(e.name))]),t._v(" "),i("div",{staticClass:"bottom clearfix"})])])}))]),t._v(" "),i("el-main",[t._v("123")])],1)],1)},staticRenderFns:[]};var l={components:{editor:i("VU/8")({name:"editor",props:["selectedMould"],data:function(){return{value2:""}}},s,!1,function(t){i("nAsM")},"data-v-51fa880a",null).exports},data:function(){return{addUrl:n.a}}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-container",[i("el-aside",{staticClass:"left-block",attrs:{width:"140px"}},[i("div",{staticClass:"list-title"},[t._v("\n 页面列表\n ")]),t._v(" "),i("div",{staticClass:"page-list"},[i("div",{staticClass:"box"}),t._v(" "),i("div",{staticClass:"title"},[t._v("未命名页面")])]),t._v(" "),i("div",{staticClass:"page-list-add"},[i("img",{attrs:{src:t.addUrl}}),t._v(" "),i("div",{staticClass:"title"},[t._v("添加新页面")])])]),t._v(" "),i("el-main",[i("editor")],1)],1)},staticRenderFns:[]};var d=i("VU/8")(l,c,!1,function(t){i("hQs8")},"data-v-793e9cc7",null).exports,o=i("OTDE"),r=i.n(o),v={data:function(){return{indexImg:r.a,content:"我是富文本编辑器的内容",editorSetting:{height:400}}},components:{editor:d}},u={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"index"},[e("div",{staticStyle:{"text-align":"center","margin-top":"5%"}},[this._v("正在开发中...")])])}]};var A=i("VU/8")(v,u,!1,function(t){i("+HU5")},"data-v-c7ef8a10",null);e.default=A.exports}});
\ No newline at end of file
webpackJsonp([4],{"+HU5":function(t,e){},D41W:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAA/CAYAAAA47kzyAAAAAXNSR0IArs4c6QAABFlJREFUeAHtXUtPE1EYnQ5tAUloSwpWwLYUCBsC0mLionFrXLhwZdz5A1yz0Ljyh7hwrS5cmJgYTWBhYgkoJTSQGJo+eAki0PIopZ5vsE1JaooWOvNNv5sMM9N7Z+6Zc7h37mnvw6JUCPF43LW5uTlhsVhuFwoFv81myw0PDztSqdTW6upqoHiJ2+1e9vl8/uJ5Op1eXllZKZ1L/L/zA3594PMYWw78TXq93iiO32Obgh5Z7M8ES/kZxKLzp9ier62tHbe2tlqbm5sVCKioqlqeVI4vmYGTkxMth3Le5+bmXhwdHU2Mj4//KGZfEjCRSHT09vZ+QMSNYqTsjcUASmcONdwvFLR7oVDoM6HTilUkEnGjypyF6iKesTQ7g8bj8dgCgYAbVelbaOYoCYhi+rKzs/NqeXE9c6WcGIYBh8OhDA0NOVECHxMoy8zMzE0o+ml0dPSKYVAKkPMy0Gbt7u7uQUPFet4rJJ2hGAhbu7q6woBkNxQsAVOVAWqlrq+v36FGTKhqaklgOAZyuZyCFulDEjBgOHQCqCoD5M1hJxxqLBY7dYxVL5EERmIADU+CY1Oz2Sx9dSOBGQMkoNPpTKl/vj5jBl/gEgMw9X7tmxihgy8D6uDg4Apf+ILcgiq0IDTwZAC/GMWlCuWpnYY6mUz6REDGAhJ0dWFhQd6BjEUkH3iNMf6Ghu5yueQdyPk/AD5Q3oGcBSTs4gOZKyg+kLGApveB6Meq0GbWQD7Q1F0pDg4OzKpd6bnEB5ao4HkgPpCnbhpq8YGMxSPo4gOZC0jwxQcyF5G9D0RTWjk8PKwoQyaTUaj/ZEtLS8V4GnnV19dXMY7Dh+QDTW0jSDwa70Fd8CoFu513f2ZT+EAMiaukjfYZukxq4vX39/81DfcI8YHMFRQfyFhA8YGMxSPo4gOZC0jwxQcyF9Ha3t5u2j4xbW1tpp5dg3wgeyPPvADVBH96evp0loqa7iIX68qA+EBd6a89c/GBtXOo2x3EB+pG/cVkLD7wYnjU9S7iA3Wlv/bMxUbUzqFudzB9v1DdmK1TxjI+sE5EX2Y24gMvk9063Fvd39/31CEfyeISGIAPXKYh1jQ/swSGDMAHOknAHHX+kcCSgR11YGDgo8zUy1I8Av1dxe+BMbbwGxg4jbyCjfhKVSitSSCBGQNbW1v5jY2NfRJwCpOHykuQmYAQjwY/vlIxbWF2fn7+Ha1JwOwZGhYuSt8xGp5TwWAwQiVQyefzjzB97/bOzk7DksLpwTs6Or5hmYj7hLm0cgv6V9xCaXwzMjLiaWpq4vQ8jYZ1Fg8chlYZenCtBNIBLeUCVQMQ7xmdU6CJtWnkD/lEmdTwlJN6/sU6SQrVipioIReNRn9ChyfIP1gUj7CUSmA5MIhFi4CEl5aWHuzt7d3FOS3zYvf7/WkUX28x7eLiYnJ3d7c0ugRDtRKIvy7xpwz8Jz89uHoP2zYG5yRhF0B/YRKivR4bG/tS5La4/w3f4xgkUWcXewAAAABJRU5ErkJggg=="},OTDE:function(t,e,i){t.exports=i.p+"static/img/index.4a79f8e.jpg"},hQs8:function(t,e){},nAsM:function(t,e){},sJm1:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("D41W"),n=i.n(a),s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-container",[i("el-header",{attrs:{height:"80px"}},[i("div",{staticClass:"head-top"},[i("el-button",{attrs:{size:"mini"}},[t._v("\n 课程基本信息编辑\n ")]),t._v(" "),i("el-button",{attrs:{size:"mini",type:"primary"}},[t._v("\n 课时设置\n ")]),t._v(" "),i("span",{staticClass:"page-type"},[t._v("\n 分页模式\n "),i("el-switch",{model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}})],1)],1),t._v(" "),i("div",{staticClass:"head-content"},[i("div",[t._v("\n 未命名页面\n ")])])]),t._v(" "),i("el-container",[i("el-aside",{attrs:{width:"200px"}},[i("div",{staticClass:"page-list"},t._l(t.selectedMould,function(e){return i("el-card",{key:e.name,staticClass:"box",attrs:{shadow:"hover","body-style":{padding:"0px"}},on:{click:function(i){t.addMould(e)}}},[i("img",{staticClass:"image",attrs:{src:e.imgUrl}}),t._v(" "),i("div",{staticStyle:{padding:"14px"}},[i("span",[t._v(t._s(e.name))]),t._v(" "),i("div",{staticClass:"bottom clearfix"})])])}))]),t._v(" "),i("el-main",[t._v("123")])],1)],1)},staticRenderFns:[]};var l={components:{editor:i("VU/8")({name:"editor",props:["selectedMould"],data:function(){return{value2:""}}},s,!1,function(t){i("nAsM")},"data-v-51fa880a",null).exports},data:function(){return{addUrl:n.a}}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-container",[i("el-aside",{staticClass:"left-block",attrs:{width:"140px"}},[i("div",{staticClass:"list-title"},[t._v("\n 页面列表\n ")]),t._v(" "),i("div",{staticClass:"page-list"},[i("div",{staticClass:"box"}),t._v(" "),i("div",{staticClass:"title"},[t._v("未命名页面")])]),t._v(" "),i("div",{staticClass:"page-list-add"},[i("img",{attrs:{src:t.addUrl}}),t._v(" "),i("div",{staticClass:"title"},[t._v("添加新页面")])])]),t._v(" "),i("el-main",[i("editor")],1)],1)},staticRenderFns:[]};var d=i("VU/8")(l,c,!1,function(t){i("hQs8")},"data-v-793e9cc7",null).exports,o=i("OTDE"),r=i.n(o),v={data:function(){return{indexImg:r.a,content:"我是富文本编辑器的内容",editorSetting:{height:400}}},components:{editor:d}},u={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"index"},[e("div",{staticStyle:{"text-align":"center","margin-top":"5%"}},[this._v("正在开发中...")])])}]};var A=i("VU/8")(v,u,!1,function(t){i("+HU5")},"data-v-c7ef8a10",null);e.default=A.exports}});
\ No newline at end of file
webpackJsonp([5],{"2kEA":function(t,e){},"9SSf":function(t,e){},AgH1:function(t,e){},"C+jy":function(t,e,i){"use strict";var s={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"ly-emotion"},[this._t("default")],2)},staticRenderFns:[]};var n=i("VU/8")({name:"ly-emotion",mounted:function(){var t=this,e=this.$el.innerHTML,i='<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'+["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"].indexOf(e)+'.gif">';this.$nextTick(function(){t.$el.innerHTML=i})}},s,!1,function(t){i("AgH1")},"data-v-4281e520",null).exports,a={props:{height:{type:Number,default:200}},data:function(){return{list:[["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴"],["睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过"]["傲慢"],["饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂"],["疑问","嘘","晕","折磨","衰","骷髅","敲打","再见"],["擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠"],["鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀"],["西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰"],["凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀"],["足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强"],["弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你"],["NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈"],["磕头","回头","跳绳","挥手","激动","街舞","左太极","右太极"]]}},methods:{clickHandler:function(t){var e="#"+t+";";this.$emit("emotion",e)}},components:{Emotion:n}},o={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"emotion-box",style:{height:t.height+"px"}},t._l(t.list,function(e,s){return i("div",{key:s,staticClass:"emotion-box-line"},t._l(e,function(e,s){return i("emotion",{key:s,staticClass:"emotion-item",nativeOn:{click:function(i){t.clickHandler(e)}}},[t._v(t._s(e))])}))}))])},staticRenderFns:[]};var l=i("VU/8")(a,o,!1,function(t){i("9SSf")},"data-v-2885a82e",null);e.a=l.exports},CK6D:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("CCn6"),n=i("kmJW"),a=i("C+jy"),o={name:"focusReplyDialog",props:["dialogObj"],data:function(){return{show:!1,loading:!1,showEmotion:!1,total:0,nowPage:1,limit:5,id:null,list:[],index:-1,form:{key:"",value:"",desc:""},content:"",imageContent:"",type:"text",mediaList:[],mediaListMock:[],showMedia:!1,pickerOptions1:{disabledDate:function(t){return!(t.getTime()>Date.now())}},rules:{value:[{required:!0,message:"请输入规则名称",trigger:"change"}],desc:[{required:!0,message:"请输入回复内容",trigger:"change"}],qr:[{required:!0,message:"请输入二维码",trigger:"change"}]}}},components:{page:n.a,emotion:a.a},mounted:function(){this.initDialog()},filters:{},methods:{addTeacherName:function(){this.content+="{my_teacher_name}"},addTeacherAlias:function(){this.content+="{my_teacher_alias}"},handleEmotion:function(t){this.content+=t},initDialog:function(){if(this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.key=this.dialogObj.key,this.form.value=this.dialogObj.value,this.index=this.dialogObj.index,this.list=this.dialogObj.list||[],-1===this.index)this.type="text",this.content="";else if(this.type=this.list[this.index].type,"text"===this.type)this.content=this.list[this.index].content;else if("image"===this.type){var t={type:"image"};this.list[this.index].content&&(t.content=this.list[this.index].content),this.list[this.index].media_id&&(t.media_id=this.list[this.index].media_id),this.list[this.index].variable&&(t.variable=this.list[this.index].variable),this.imageContent=t}},close:function(){this.$emit("changeShow",!1)},save:function(){var t=this,e=this.form,i=this.list||[];if("text"===this.type){if(!this.content)return void this.$message({showClose:!0,message:"请输入文本内容"});var n={type:this.type,content:this.content};this.index>-1?i[this.index]=n:i.push(n)}else if("image"===this.type){if(!this.imageContent)return void this.$message({showClose:!0,message:"请选择图片"});this.index>-1?i[this.index]=this.imageContent:i.push(this.imageContent)}e.desc=JSON.stringify(i),this.id?Object(s._40)(this.id,e).then(function(e){t.$message({type:"success",message:"修改成功!"}),t.$emit("reflash"),t.$emit("changeShow",!1),t.show=!1}):Object(s._34)(e).then(function(e){t.$message({type:"success",message:"保存成功!"}),t.$emit("reflash"),t.$emit("changeShow",!1)})},onPageChange:function(t){this.nowPage=t,this.getMediaList(this.type)},getMediaList:function(t){var e=this,i={type:t,page:this.nowPage,limit:this.limit};this.loading=!0,Object(s._14)(i).then(function(i){e.loading=!1,e.type=t,e.total=i.total_count,0===i.item.length?(e.$message({showClose:!0,message:"暂无数据"}),e.showMedia=!1):(e.showMedia=!0,e.mediaList=i.item)}).catch(function(){e.loading=!1,e.showMedia=!1})},onChooseMedia:function(t){this.addContent(this.type,t.url,t.media_id),this.showMedia=!1},addTeacherQrcode:function(){this.imageContent={type:"image",variable:"my_teacher"}},addContent:function(t,e,i){var s={};e&&(s={type:t,content:e}),i&&(s.media_id=i),this.imageContent=s}}},l={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{title:"自动回复",center:"",visible:t.dialogObj.show,width:"800px"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[i("div",{staticClass:"focus-reply"},[i("div",{staticClass:"content"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"inner"},[i("ul",{staticClass:"weui-desktop-msg-sender__tabs"},[i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_text",class:"text"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.type="text"}}},[t._v("文字")]),t._v(" "),i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_img",class:"image"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.type="image"}}},[t._v("图片")])]),t._v(" "),i("div",{staticClass:"inner-bottom"},["image"===t.type?i("div",{staticClass:"img-action"},[t.imageContent?[t.imageContent.variable?i("div",{staticClass:"my-teacher"},[t._v("我的老师二维码")]):t._e(),t._v(" "),t.imageContent.content?i("img",{staticStyle:{"max-width":"80%"},attrs:{src:t.imageContent.content}}):t._e()]:t._e(),t._v(" "),i("div",{staticClass:"display-b"},[t.showMedia?t._e():i("div",{staticClass:"img-create-access"},[i("a",{staticClass:"img-create-access__link",attrs:{href:"javascript:;"},on:{click:function(e){t.getMediaList("image")}}},[t._v("从素材库中选择")])]),t._v(" "),t.showMedia?t._e():i("div",{staticClass:"img-create-access"},[i("a",{staticClass:"img-create-access__link",attrs:{href:"javascript:;"},on:{click:t.addTeacherQrcode}},[t._v("添加老师二维码")])])]),t._v(" "),t.showMedia&&t.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList},on:{"row-click":t.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(t){return[i("a",{attrs:{href:t.row.url,target:"_blank"}},[i("img",{staticStyle:{width:"60px"},attrs:{src:t.row.url}})])]}}])})],1),t._v(" "),i("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],1):t._e()],2):"text"===t.type?i("div",{staticClass:"inner-emotion_editor"},[i("div",{staticClass:"inner-edit_area"},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"请输入内容"},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1),t._v(" "),i("div",{staticStyle:{float:"right"}},[i("el-popover",{attrs:{placement:"bottom-end",width:"400",offset:10,trigger:"manual"},model:{value:t.showEmotion,callback:function(e){t.showEmotion=e},expression:"showEmotion"}},[i("div",[i("emotion",{attrs:{height:200},on:{emotion:t.handleEmotion}})],1),t._v(" "),i("el-button",{attrs:{slot:"reference",type:"text"},on:{click:function(e){t.showEmotion=!t.showEmotion}},slot:"reference"},[i("span",{staticClass:"icon_emotion emotion_switch"})])],1),t._v(" "),i("el-button",{attrs:{type:"warning",plain:""},on:{click:t.addTeacherName}},[t._v("添加老师名字")]),t._v(" "),i("el-button",{attrs:{type:"success",plain:""},on:{click:t.addTeacherAlias}},[t._v("添加老师别名")])],1)]):t._e()]),t._v(" "),i("div",{staticClass:"tool_bar"},[i("el-button",{on:{click:t.close}},[t._v("取 消")]),t._v(" "),i("el-button",{staticClass:"weui-desktop-btn weui-desktop-btn_primary",on:{click:t.save}},[t._v("保存")])],1)])])])])},staticRenderFns:[]};var c=i("VU/8")(o,l,!1,function(t){i("NnVc")},"data-v-35796fd6",null).exports,r={name:"focusReply",data:function(){return{loading:!1,total:0,nowPage:1,limit:10,activeName:"focus_reply_new",id:null,list:[],form:{key:"focus_reply_new",value:"focus_reply_new",desc:""},content:"",imageContent:"",type:"text",mediaList:[],mediaListMock:[{media_id:"hQb3Pbdb4E5Ivxi2sagL5sTdtW5W9pKJNA6Z8nBo6Ao",name:"xx.jpg",update_time:1535351431,url:"http://mmbiz.qpic.cn/mmbiz_jpg/qNgYSw5sicibUGtiaRYRY9QEZUoqgGdvkTE5Zvg58tUciaAXFslmwuiadgU6turtsF7mXFeicKa9RQTTG1gKSLqPiabpA/0?wx_fmt=jpeg"},{media_id:"hQb3Pbdb4E5Ivxi2sagL5p2poL7GllXYm4SETNmf210",name:"z.jpg",update_time:1535351316,url:"http://mmbiz.qpic.cn/mmbiz_jpg/qNgYSw5sicibUGtiaRYRY9QEZUoqgGdvkTE5mTOB0jnmfdH30s54N5FIr2Tsbd9QcBFDiapicYWJ6sCZRMGTIlj179g/0?wx_fmt=jpeg"}],showMedia:!1,rules:{value:[{required:!0,message:"请输入规则名称",trigger:"change"}],desc:[{required:!0,message:"请输入回复内容",trigger:"change"}],qr:[{required:!0,message:"请输入二维码",trigger:"change"}]},dialogObj:{show:!1,id:"",index:-1,list:[]}}},components:{page:n.a,dialogCom:c},mounted:function(){this.getList()},filters:{typeFilter:function(t){return t?"text"===t?"文字":"image"===t?"图片":val:""},contentFilter:function(t){return"text"===t.type?t.content:"image"===t.type?"<img src='"+t.content+"'>":void 0}},methods:{emotion:function(t){console.log("emotion",t);var e=t.replace(/\#|\;/gi,"");return'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'+["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"].indexOf(e)+'.gif" align="middle">'},handleClick:function(t){console.log(t.name),this.form={key:t.name,value:t.name,desc:""},this.nowPage=1,this.getList(),this.id=""},save:function(){var t=this,e=this.form,i=[];if("text"===this.type){if(!this.content)return void this.$message({showClose:!0,message:"请输入文本内容"});i[0]={type:this.type,content:this.content}}else if("image"===this.type){if(!this.imageContent)return void this.$message({showClose:!0,message:"请选择图片"});i[0]=this.imageContent}e.desc=JSON.stringify(i),this.id?Object(s._40)(this.id,e).then(function(e){t.$message({type:"success",message:"修改成功!"})}):Object(s._34)(e).then(function(e){t.$message({type:"success",message:"保存成功!"})})},onChooseMedia:function(t){this.addContent(this.type,t.url,t.media_id),this.showMedia=!1},addContent:function(t,e,i){var s={};e&&(s={type:t,content:e}),i&&(s.media_id=i),this.imageContent=s},getList:function(){var t=this;Object(s._7)({key:this.form.key}).then(function(e){if(e.list.length>0){t.id=e.list[0].id;var i=JSON.parse(e.list[0].desc);t.list=i||[]}else t.list=[]})},add:function(){this.dialogObj={show:!0,id:this.id?this.id:null,index:-1,list:this.list,key:this.form.key,value:this.form.value}},editRow:function(t,e){this.dialogObj={show:!0,id:this.id,index:t,list:this.list,key:this.form.key,value:this.form.value}},deleteRow:function(t,e){var i=this;this.$confirm("此操作将删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var n=e;n.splice(t,1);var a={key:i.form.key,value:i.form.value};a.desc=JSON.stringify(n),Object(s._40)(i.id,a).then(function(t){i.$message({type:"success",message:"删除成功!"}),i.getList()})}).catch(function(){i.$message({type:"success",message:"已取消删除!"})})},moveRow:function(t,e){var i=this,n=this.list[t],a=this.list[e];this.list[t]=a,this.list[e]=n;var o=this.list,l={key:this.form.key,value:this.form.value};l.desc=JSON.stringify(o),Object(s._40)(this.id,l).then(function(t){i.$message({type:"success",message:"保存成功!"}),i.getList()})},changeShow:function(t){this.dialogObj.show=t}}},d={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"focus-reply"},[i("div",{staticClass:"clear-both top"},[i("span",{staticClass:"title"},[t._v("自动回复")]),t._v(" "),t.$store.state.readonly?t._e():i("el-button",{staticStyle:{float:"right"},attrs:{type:"success",plain:""},on:{click:t.add}},[t._v("添加回复")])],1),t._v(" "),i("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"新用户",name:"focus_reply_new"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"无课用户",name:"focus_reply_no_course"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"有课用户",name:"focus_reply_course"}})],1),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,"max-height":"800"}},[i("el-table-column",{attrs:{fixed:"",label:"类型",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("typeFilter")(e.row.type))+"\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"内容"},scopedSlots:t._u([{key:"default",fn:function(e){return["text"===e.row.type?i("div",{domProps:{innerHTML:t._s(e.row.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi,t.emotion))}}):"image"===e.row.type&&e.row.content?i("a",{attrs:{href:e.row.content,target:"_blank"}},[i("img",{staticClass:"shotcut",attrs:{src:e.row.content}})]):e.row.variable?i("div",[t._v("\n 老师二维码\n ")]):t._e()]}}])}),t._v(" "),t.$store.state.readonly?t._e():i("el-table-column",{attrs:{fixed:"right",label:"操作",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){i.preventDefault(),t.editRow(e.$index,t.list)}}},[t._v("\n 编辑\n ")]),t._v(" "),t.$store.state.deletePermission?i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){i.preventDefault(),t.deleteRow(e.$index,t.list)}}},[t._v("\n 移除\n ")]):t._e(),t._v(" "),0!==e.$index?i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){i.preventDefault(),t.moveRow(e.$index-1,e.$index)}}},[t._v("\n 上移\n ")]):t._e(),t._v(" "),e.$index!==t.list.length-1?i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){i.preventDefault(),t.moveRow(e.$index,e.$index+1)}}},[t._v("\n 下移\n ")]):t._e()]}}])})],1),t._v(" "),t.dialogObj.show?i("dialog-com",{attrs:{dialogObj:t.dialogObj},on:{changeShow:t.changeShow,reflash:t.getList}}):t._e()],1)},staticRenderFns:[]};var h=i("VU/8")(r,d,!1,function(t){i("2kEA")},"data-v-a563850e",null);e.default=h.exports},NnVc:function(t,e){}});
\ No newline at end of file
webpackJsonp([4],{"1qkF":function(t,e){},"65NY":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("CCn6"),s=i("kmJW"),a=i("C+jy"),o={name:"dialogObj",props:["dialogObj"],data:function(){return{editIndex:-1,title:"",show:!1,showEmotion:!1,id:"",loading:!0,showType:!1,showTextContent:!1,total:0,nowPage:1,limit:5,type:"text",form:{key:"keywords_reply",value:"",desc:""},teacher_id:"",start_at:"",textContent:"",mediaList:[],showMedia:!1,teacherList:[],content:"",imageContent:{url:"",media_id:""},pickerOptions1:{disabledDate:function(t){return!(t.getTime()>Date.now())}},rules:{value:[{required:!0,message:"请输入规则名称",trigger:"change"}],desc:[{required:!0,message:"请输入回复内容",trigger:"change"}],qr:[{required:!0,message:"请输入二维码",trigger:"change"}]}}},components:{page:s.a,emotion:a.a},methods:{getTeacher:function(){var t=this;Object(n._26)({page:1,limit:1e3}).then(function(e){t.teacherList=e.list})},save:function(){var t=this,e={key:this.form.key,value:this.form.value,desc:this.form.desc};this.dialogObj.id?this.$refs.form.validate(function(i){i&&Object(n._40)(t.id,e).then(function(e){t.$message({type:"success",message:"修改成功!"}),t.$emit("reflash"),t.show=!1})}):this.$refs.form.validate(function(i){i&&Object(n._34)(e).then(function(e){t.$message({type:"success",message:"新增成功!"}),t.$emit("reflash"),t.show=!1})})},addContent:function(t,e,i,n){var s=this.form,a=s.desc?JSON.parse(s.desc):[],o={type:t};e&&(o.content=e),i&&(o.media_id=i),n&&(o.variable=n),this.editIndex>-1?a.splice(this.editIndex,1,o):a.push(o),s.desc=JSON.stringify(a),this.form=s,this.showType=!1},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.value=this.dialogObj.value,this.form.desc=this.dialogObj.desc,this.loading=!1,this.showType=!1},onPageChange:function(t){this.nowPage=t,this.getMediaList(this.type)},onChangeTab:function(t){this.type=t},onAddContent:function(){this.editIndex=-1,this.title="添加回复",this.content="",this.imageContent={url:"",media_id:"",variable:""},this.teacher_id="",this.start_at="",this.showType=!0},onEditText:function(t,e){this.title="编辑回复",this.type=t.type,this.editIndex=e,"text"===this.type?this.content=t.content:(t.content&&(this.imageContent={url:t.content,media_id:t.media_id}),t.variable&&(this.imageContent={variable:t.variable})),this.showType=!0},close:function(){this.content="",this.imageContent={url:"",media_id:""},this.teacher_id="",this.start_at="",this.showType=!1},confirm:function(){if("text"===this.type)this.content?this.addContent("text",this.content,"",""):this.$message({showClose:!0,message:"请输入文本内容"});else if("image"===this.type)if(this.imageContent.url||this.imageContent.variable){var t=this.imageContent.variable?this.imageContent.variable:"",e=this.imageContent.url?this.imageContent.url:"",i=this.imageContent.media_id?this.imageContent.media_id:"";this.addContent(this.type,e,i,t)}else this.$message({showClose:!0,message:"请选择图片"})},getMediaList:function(t){var e=this,i={type:t,page:this.nowPage,limit:this.limit};this.loading=!0,this.showMedia=!0,Object(n._14)(i).then(function(i){e.loading=!1,e.type=t,e.mediaList=i.item,e.total=i.total_count,0===e.total&&e.$message({showClose:!0,message:"暂无数据"})}).catch(function(){e.loading=!1})},editContent:function(){var t=this;this.$prompt("请输入文本","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(e){var i=e.value;t.addContent("text",i,"","")})},onDelText:function(t,e){var i=this,n=this.form;this.$confirm("此操作将删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t=JSON.parse(n.desc);t.splice(e,1),n.desc=JSON.stringify(t),i.$message({type:"success",message:"删除成功!"})}).catch(function(){i.$message({type:"info",message:"已取消删除"})}),this.form=n},onChooseMedia:function(t){this.imageContent=t,this.showMedia=!1},addTeacherQrcode:function(){this.showMedia=!1,this.imageContent={variable:"my_teacher"}},handleEmotion:function(t){this.content+=t},addTeacherName:function(){this.content+="{my_teacher_name}"},addTeacherAlias:function(){this.content+="{my_teacher_alias}"}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog(),this.getTeacher()},deep:!0},show:function(t){this.$emit("changeShow",t)}}},l={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.show?i("div",[i("el-dialog",{attrs:{title:"自动回复",center:"","append-to-body":"",visible:t.show,width:"800px"},on:{"update:visible":function(e){t.show=e}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules}},[i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[t._v("关键词")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{prop:"value"}},[i("el-input",{model:{value:t.form.value,callback:function(e){t.$set(t.form,"value",e)},expression:"form.value"}})],1)],1)],1),t._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[t._v("回复内容")])]),t._v(" "),i("el-col",{attrs:{span:20}},[t.form.desc?t._l(JSON.parse(t.form.desc),function(e,n){return i("div",{staticClass:"msg-item"},["text"===e.type?i("span",{staticClass:"msg-text"},[t._v(t._s(e.content))]):"image"===e.type&&e.content?i("img",{attrs:{src:e.content}}):e.variable?i("span",{staticClass:"msg-text"},[t._v("我的老师二维码")]):t._e(),t._v(" "),i("i",{staticClass:"el-icon-edit",on:{click:function(i){t.onEditText(e,n)}}}),t._v(" "),i("i",{staticClass:"el-icon-delete",on:{click:function(i){t.onDelText(e,n)}}})])}):t._e(),t._v(" "),i("div",{staticClass:"msg_sender_wrp"},[i("div",[i("i",{staticClass:"el-icon-circle-plus-outline",on:{click:t.onAddContent}})]),t._v(" "),i("el-dialog",{attrs:{width:"30%",title:t.title,visible:t.showType,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,"append-to-body":""},on:{"update:visible":function(e){t.showType=e}}},[i("div",[t.showType?i("el-tabs",{attrs:{type:"card"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[i("el-tab-pane",{attrs:{label:"文字",name:"text"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"图片",name:"image"}})],1):t._e(),t._v(" "),t.showType?i("div",{staticClass:"more-info clear-both"},["text"===t.type?[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"请输入内容"},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}}),t._v(" "),i("div",{staticStyle:{float:"right"}},[i("el-popover",{attrs:{placement:"bottom-end",width:"400",offset:10,trigger:"hover"},model:{value:t.showEmotion,callback:function(e){t.showEmotion=e},expression:"showEmotion"}},[i("div",[i("emotion",{attrs:{height:200},on:{emotion:t.handleEmotion}})],1),t._v(" "),i("el-button",{attrs:{slot:"reference",type:"text"},on:{click:function(e){t.showEmotion=!t.showEmotion}},slot:"reference"},[i("span",{staticClass:"icon_emotion emotion_switch"})])],1),t._v(" "),i("el-button",{attrs:{type:"warning",plain:""},on:{click:t.addTeacherName}},[t._v("添加老师名字")]),t._v(" "),i("el-button",{attrs:{type:"success",plain:""},on:{click:t.addTeacherAlias}},[t._v("添加老师别名")])],1)]:t._e(),t._v(" "),"image"===t.type?[t.imageContent.url?i("div",{staticClass:"img"},[i("img",{attrs:{src:t.imageContent.url}}),t._v(" "),i("i",{staticClass:"el-icon-delete",on:{click:function(e){t.imageContent={url:"",media_id:""}}}})]):t._e(),t._v(" "),t.imageContent.variable?i("div",{staticClass:"img my-teacher"},[i("div",[t._v("老师二维码")]),t._v(" "),i("i",{staticClass:"el-icon-delete",on:{click:function(e){t.imageContent={url:"",media_id:"",variable:""}}}})]):t._e(),t._v(" "),i("div",{staticClass:"display-b"},[i("div",{staticClass:"choose_item",staticStyle:{color:"#888"},on:{click:function(e){t.getMediaList("image")}}},[t._v("+从素材库中选择")]),t._v(" "),i("div",{staticClass:"choose_item",staticStyle:{color:"#888"},on:{click:t.addTeacherQrcode}},[t._v("+添加老师二维码")])]),t._v(" "),t.showMedia&&t.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList},on:{"row-click":t.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(t){return[i("a",{attrs:{href:t.row.url}},[i("img",{staticStyle:{width:"60px"},attrs:{src:t.row.url}})])]}}])})],1),t._v(" "),i("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],1):t._e()]:t._e(),t._v(" "),i("div",{staticClass:"tool_bar"},[i("el-button",{on:{click:t.close}},[t._v("取 消")]),t._v(" "),i("el-button",{staticClass:"weui-desktop-btn weui-desktop-btn_primary",on:{click:t.confirm}},[t._v("确定")])],1)],2):t._e()],1)])],1)],2)],1)],1),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.show=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保 存")])],1)],1)])],1):t._e()},staticRenderFns:[]};var c={name:"autoReply",data:function(){return{dialogObj:{value:"",desc:"",show:!1,id:""},list:[]}},components:{dialogCom:i("VU/8")(o,l,!1,function(t){i("xOIU")},"data-v-bcff83a2",null).exports},mounted:function(){this.getList()},methods:{emotion:function(t){var e=t.replace(/\#|\;/gi,"");return'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'+["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"].indexOf(e)+'.gif" align="middle">'},changeShow:function(t){this.dialogObj.show=t},getList:function(){var t=this;Object(n._7)({key:"keywords_reply"}).then(function(e){t.list=e.list})},add:function(){this.dialogObj.id="",this.dialogObj.value="",this.dialogObj.desc="",this.dialogObj.show=!0},edit:function(t){var e=this;Object(n._6)(t.id).then(function(t){e.dialogObj.id=t.id,e.dialogObj.value=t.value,e.dialogObj.desc=t.desc,e.dialogObj.show=!0})},del:function(t){var e=this;this.$confirm("此操作将删除该记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n.D)(t.id).then(function(t){e.getList(),e.$message({type:"success",message:"删除成功!"})})})}}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-row",{staticClass:"add-btn",attrs:{type:"flex",justify:"end"}},[i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[t.$store.state.readonly?t._e():i("el-button",{attrs:{type:"success",plain:""},on:{click:t.add}},[t._v("添加回复")])],1)],1),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list}},[i("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"top"}},[i("el-form-item",{attrs:{label:"回复内容"}},t._l(JSON.parse(e.row.desc),function(e,n){return i("div",[e.content&&"text"===e.type?i("span",[t._v("\n 回复"+t._s(n+1)+":\n "),i("span",{domProps:{innerHTML:t._s(e.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi,t.emotion))}})]):t._e(),t._v(" "),e.content&&"image"===e.type?i("span",[t._v("回复"+t._s(n+1)+":"),i("img",{staticClass:"img",attrs:{src:e.content}})]):t._e(),t._v(" "),e.variable?i("span",[t._v("回复"+t._s(n+1)+":老师二维码")]):t._e()])}))],1)]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"ID",prop:"id"}}),t._v(" "),i("el-table-column",{attrs:{label:"关键词",prop:"value"}}),t._v(" "),i("el-table-column",{attrs:{label:"回复内容"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(JSON.parse(e.row.desc).length)+" 条回复\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),t._v(" "),t.$store.state.readonly?t._e():i("el-table-column",{attrs:{width:"250",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(i){t.edit(e.row)}}},[t._v("\n 编辑\n ")]),t._v(" "),t.$store.state.deletePermission?i("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(i){t.del(e.row)}}},[t._v("\n 删除\n ")]):t._e()]}}])})],1),t._v(" "),i("dialog-com",{attrs:{dialogObj:t.dialogObj},on:{changeShow:t.changeShow,reflash:t.getList}})],1)},staticRenderFns:[]};var d=i("VU/8")(c,r,!1,function(t){i("1qkF")},"data-v-cf6972e6",null);e.default=d.exports},"9SSf":function(t,e){},AgH1:function(t,e){},"C+jy":function(t,e,i){"use strict";var n={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"ly-emotion"},[this._t("default")],2)},staticRenderFns:[]};var s=i("VU/8")({name:"ly-emotion",mounted:function(){var t=this,e=this.$el.innerHTML,i='<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'+["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"].indexOf(e)+'.gif">';this.$nextTick(function(){t.$el.innerHTML=i})}},n,!1,function(t){i("AgH1")},"data-v-4281e520",null).exports,a={props:{height:{type:Number,default:200}},data:function(){return{list:[["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴"],["睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过"]["傲慢"],["饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂"],["疑问","嘘","晕","折磨","衰","骷髅","敲打","再见"],["擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠"],["鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀"],["西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰"],["凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀"],["足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强"],["弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你"],["NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈"],["磕头","回头","跳绳","挥手","激动","街舞","左太极","右太极"]]}},methods:{clickHandler:function(t){var e="#"+t+";";this.$emit("emotion",e)}},components:{Emotion:s}},o={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"emotion-box",style:{height:t.height+"px"}},t._l(t.list,function(e,n){return i("div",{key:n,staticClass:"emotion-box-line"},t._l(e,function(e,n){return i("emotion",{key:n,staticClass:"emotion-item",nativeOn:{click:function(i){t.clickHandler(e)}}},[t._v(t._s(e))])}))}))])},staticRenderFns:[]};var l=i("VU/8")(a,o,!1,function(t){i("9SSf")},"data-v-2885a82e",null);e.a=l.exports},xOIU:function(t,e){}});
\ No newline at end of file
webpackJsonp([5],{"1qkF":function(t,e){},"65NY":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("CCn6"),s=i("kmJW"),a=i("C+jy"),o={name:"dialogObj",props:["dialogObj"],data:function(){return{editIndex:-1,title:"",show:!1,showEmotion:!1,id:"",loading:!0,showType:!1,showTextContent:!1,total:0,nowPage:1,limit:5,type:"text",form:{key:"keywords_reply",value:"",desc:""},teacher_id:"",start_at:"",textContent:"",mediaList:[],showMedia:!1,teacherList:[],content:"",imageContent:{url:"",media_id:""},pickerOptions1:{disabledDate:function(t){return!(t.getTime()>Date.now())}},rules:{value:[{required:!0,message:"请输入规则名称",trigger:"change"}],desc:[{required:!0,message:"请输入回复内容",trigger:"change"}],qr:[{required:!0,message:"请输入二维码",trigger:"change"}]}}},components:{page:s.a,emotion:a.a},methods:{getTeacher:function(){var t=this;Object(n._26)({page:1,limit:1e3}).then(function(e){t.teacherList=e.list})},save:function(){var t=this,e={key:this.form.key,value:this.form.value,desc:this.form.desc};this.dialogObj.id?this.$refs.form.validate(function(i){i&&Object(n._40)(t.id,e).then(function(e){t.$message({type:"success",message:"修改成功!"}),t.$emit("reflash"),t.show=!1})}):this.$refs.form.validate(function(i){i&&Object(n._34)(e).then(function(e){t.$message({type:"success",message:"新增成功!"}),t.$emit("reflash"),t.show=!1})})},addContent:function(t,e,i,n){var s=this.form,a=s.desc?JSON.parse(s.desc):[],o={type:t};e&&(o.content=e),i&&(o.media_id=i),n&&(o.variable=n),this.editIndex>-1?a.splice(this.editIndex,1,o):a.push(o),s.desc=JSON.stringify(a),this.form=s,this.showType=!1},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.value=this.dialogObj.value,this.form.desc=this.dialogObj.desc,this.loading=!1,this.showType=!1},onPageChange:function(t){this.nowPage=t,this.getMediaList(this.type)},onChangeTab:function(t){this.type=t},onAddContent:function(){this.editIndex=-1,this.title="添加回复",this.content="",this.imageContent={url:"",media_id:"",variable:""},this.teacher_id="",this.start_at="",this.showType=!0},onEditText:function(t,e){this.title="编辑回复",this.type=t.type,this.editIndex=e,"text"===this.type?this.content=t.content:(t.content&&(this.imageContent={url:t.content,media_id:t.media_id}),t.variable&&(this.imageContent={variable:t.variable})),this.showType=!0},close:function(){this.content="",this.imageContent={url:"",media_id:""},this.teacher_id="",this.start_at="",this.showType=!1},confirm:function(){if("text"===this.type)this.content?this.addContent("text",this.content,"",""):this.$message({showClose:!0,message:"请输入文本内容"});else if("image"===this.type)if(this.imageContent.url||this.imageContent.variable){var t=this.imageContent.variable?this.imageContent.variable:"",e=this.imageContent.url?this.imageContent.url:"",i=this.imageContent.media_id?this.imageContent.media_id:"";this.addContent(this.type,e,i,t)}else this.$message({showClose:!0,message:"请选择图片"})},getMediaList:function(t){var e=this,i={type:t,page:this.nowPage,limit:this.limit};this.loading=!0,this.showMedia=!0,Object(n._14)(i).then(function(i){e.loading=!1,e.type=t,e.mediaList=i.item,e.total=i.total_count,0===e.total&&e.$message({showClose:!0,message:"暂无数据"})}).catch(function(){e.loading=!1})},editContent:function(){var t=this;this.$prompt("请输入文本","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(e){var i=e.value;t.addContent("text",i,"","")})},onDelText:function(t,e){var i=this,n=this.form;this.$confirm("此操作将删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t=JSON.parse(n.desc);t.splice(e,1),n.desc=JSON.stringify(t),i.$message({type:"success",message:"删除成功!"})}).catch(function(){i.$message({type:"info",message:"已取消删除"})}),this.form=n},onChooseMedia:function(t){this.imageContent=t,this.showMedia=!1},addTeacherQrcode:function(){this.showMedia=!1,this.imageContent={variable:"my_teacher"}},handleEmotion:function(t){this.content+=t},addTeacherName:function(){this.content+="{my_teacher_name}"},addTeacherAlias:function(){this.content+="{my_teacher_alias}"}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog(),this.getTeacher()},deep:!0},show:function(t){this.$emit("changeShow",t)}}},l={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.show?i("div",[i("el-dialog",{attrs:{title:"自动回复",center:"","append-to-body":"",visible:t.show,width:"800px"},on:{"update:visible":function(e){t.show=e}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules}},[i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[t._v("关键词")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{prop:"value"}},[i("el-input",{model:{value:t.form.value,callback:function(e){t.$set(t.form,"value",e)},expression:"form.value"}})],1)],1)],1),t._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[t._v("回复内容")])]),t._v(" "),i("el-col",{attrs:{span:20}},[t.form.desc?t._l(JSON.parse(t.form.desc),function(e,n){return i("div",{staticClass:"msg-item"},["text"===e.type?i("span",{staticClass:"msg-text"},[t._v(t._s(e.content))]):"image"===e.type&&e.content?i("img",{attrs:{src:e.content}}):e.variable?i("span",{staticClass:"msg-text"},[t._v("我的老师二维码")]):t._e(),t._v(" "),i("i",{staticClass:"el-icon-edit",on:{click:function(i){t.onEditText(e,n)}}}),t._v(" "),i("i",{staticClass:"el-icon-delete",on:{click:function(i){t.onDelText(e,n)}}})])}):t._e(),t._v(" "),i("div",{staticClass:"msg_sender_wrp"},[i("div",[i("i",{staticClass:"el-icon-circle-plus-outline",on:{click:t.onAddContent}})]),t._v(" "),i("el-dialog",{attrs:{width:"30%",title:t.title,visible:t.showType,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,"append-to-body":""},on:{"update:visible":function(e){t.showType=e}}},[i("div",[t.showType?i("el-tabs",{attrs:{type:"card"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[i("el-tab-pane",{attrs:{label:"文字",name:"text"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"图片",name:"image"}})],1):t._e(),t._v(" "),t.showType?i("div",{staticClass:"more-info clear-both"},["text"===t.type?[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"请输入内容"},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}}),t._v(" "),i("div",{staticStyle:{float:"right"}},[i("el-popover",{attrs:{placement:"bottom-end",width:"400",offset:10,trigger:"hover"},model:{value:t.showEmotion,callback:function(e){t.showEmotion=e},expression:"showEmotion"}},[i("div",[i("emotion",{attrs:{height:200},on:{emotion:t.handleEmotion}})],1),t._v(" "),i("el-button",{attrs:{slot:"reference",type:"text"},on:{click:function(e){t.showEmotion=!t.showEmotion}},slot:"reference"},[i("span",{staticClass:"icon_emotion emotion_switch"})])],1),t._v(" "),i("el-button",{attrs:{type:"warning",plain:""},on:{click:t.addTeacherName}},[t._v("添加老师名字")]),t._v(" "),i("el-button",{attrs:{type:"success",plain:""},on:{click:t.addTeacherAlias}},[t._v("添加老师别名")])],1)]:t._e(),t._v(" "),"image"===t.type?[t.imageContent.url?i("div",{staticClass:"img"},[i("img",{attrs:{src:t.imageContent.url}}),t._v(" "),i("i",{staticClass:"el-icon-delete",on:{click:function(e){t.imageContent={url:"",media_id:""}}}})]):t._e(),t._v(" "),t.imageContent.variable?i("div",{staticClass:"img my-teacher"},[i("div",[t._v("老师二维码")]),t._v(" "),i("i",{staticClass:"el-icon-delete",on:{click:function(e){t.imageContent={url:"",media_id:"",variable:""}}}})]):t._e(),t._v(" "),i("div",{staticClass:"display-b"},[i("div",{staticClass:"choose_item",staticStyle:{color:"#888"},on:{click:function(e){t.getMediaList("image")}}},[t._v("+从素材库中选择")]),t._v(" "),i("div",{staticClass:"choose_item",staticStyle:{color:"#888"},on:{click:t.addTeacherQrcode}},[t._v("+添加老师二维码")])]),t._v(" "),t.showMedia&&t.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList},on:{"row-click":t.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(t){return[i("a",{attrs:{href:t.row.url}},[i("img",{staticStyle:{width:"60px"},attrs:{src:t.row.url}})])]}}])})],1),t._v(" "),i("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],1):t._e()]:t._e(),t._v(" "),i("div",{staticClass:"tool_bar"},[i("el-button",{on:{click:t.close}},[t._v("取 消")]),t._v(" "),i("el-button",{staticClass:"weui-desktop-btn weui-desktop-btn_primary",on:{click:t.confirm}},[t._v("确定")])],1)],2):t._e()],1)])],1)],2)],1)],1),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.show=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保 存")])],1)],1)])],1):t._e()},staticRenderFns:[]};var c={name:"autoReply",data:function(){return{dialogObj:{value:"",desc:"",show:!1,id:""},list:[]}},components:{dialogCom:i("VU/8")(o,l,!1,function(t){i("xOIU")},"data-v-bcff83a2",null).exports},mounted:function(){this.getList()},methods:{emotion:function(t){var e=t.replace(/\#|\;/gi,"");return'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'+["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"].indexOf(e)+'.gif" align="middle">'},changeShow:function(t){this.dialogObj.show=t},getList:function(){var t=this;Object(n._7)({key:"keywords_reply"}).then(function(e){t.list=e.list})},add:function(){this.dialogObj.id="",this.dialogObj.value="",this.dialogObj.desc="",this.dialogObj.show=!0},edit:function(t){var e=this;Object(n._6)(t.id).then(function(t){e.dialogObj.id=t.id,e.dialogObj.value=t.value,e.dialogObj.desc=t.desc,e.dialogObj.show=!0})},del:function(t){var e=this;this.$confirm("此操作将删除该记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n.D)(t.id).then(function(t){e.getList(),e.$message({type:"success",message:"删除成功!"})})})}}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-row",{staticClass:"add-btn",attrs:{type:"flex",justify:"end"}},[i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[t.$store.state.readonly?t._e():i("el-button",{attrs:{type:"success",plain:""},on:{click:t.add}},[t._v("添加回复")])],1)],1),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list}},[i("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"top"}},[i("el-form-item",{attrs:{label:"回复内容"}},t._l(JSON.parse(e.row.desc),function(e,n){return i("div",[e.content&&"text"===e.type?i("span",[t._v("\n 回复"+t._s(n+1)+":\n "),i("span",{domProps:{innerHTML:t._s(e.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi,t.emotion))}})]):t._e(),t._v(" "),e.content&&"image"===e.type?i("span",[t._v("回复"+t._s(n+1)+":"),i("img",{staticClass:"img",attrs:{src:e.content}})]):t._e(),t._v(" "),e.variable?i("span",[t._v("回复"+t._s(n+1)+":老师二维码")]):t._e()])}))],1)]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"ID",prop:"id"}}),t._v(" "),i("el-table-column",{attrs:{label:"关键词",prop:"value"}}),t._v(" "),i("el-table-column",{attrs:{label:"回复内容"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(JSON.parse(e.row.desc).length)+" 条回复\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),t._v(" "),t.$store.state.readonly?t._e():i("el-table-column",{attrs:{width:"250",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(i){t.edit(e.row)}}},[t._v("\n 编辑\n ")]),t._v(" "),t.$store.state.deletePermission?i("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(i){t.del(e.row)}}},[t._v("\n 删除\n ")]):t._e()]}}])})],1),t._v(" "),i("dialog-com",{attrs:{dialogObj:t.dialogObj},on:{changeShow:t.changeShow,reflash:t.getList}})],1)},staticRenderFns:[]};var d=i("VU/8")(c,r,!1,function(t){i("1qkF")},"data-v-cf6972e6",null);e.default=d.exports},"9SSf":function(t,e){},AgH1:function(t,e){},"C+jy":function(t,e,i){"use strict";var n={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"ly-emotion"},[this._t("default")],2)},staticRenderFns:[]};var s=i("VU/8")({name:"ly-emotion",mounted:function(){var t=this,e=this.$el.innerHTML,i='<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'+["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"].indexOf(e)+'.gif">';this.$nextTick(function(){t.$el.innerHTML=i})}},n,!1,function(t){i("AgH1")},"data-v-4281e520",null).exports,a={props:{height:{type:Number,default:200}},data:function(){return{list:[["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴"],["睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过"]["傲慢"],["饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂"],["疑问","嘘","晕","折磨","衰","骷髅","敲打","再见"],["擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠"],["鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀"],["西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰"],["凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀"],["足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强"],["弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你"],["NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈"],["磕头","回头","跳绳","挥手","激动","街舞","左太极","右太极"]]}},methods:{clickHandler:function(t){var e="#"+t+";";this.$emit("emotion",e)}},components:{Emotion:s}},o={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"emotion-box",style:{height:t.height+"px"}},t._l(t.list,function(e,n){return i("div",{key:n,staticClass:"emotion-box-line"},t._l(e,function(e,n){return i("emotion",{key:n,staticClass:"emotion-item",nativeOn:{click:function(i){t.clickHandler(e)}}},[t._v(t._s(e))])}))}))])},staticRenderFns:[]};var l=i("VU/8")(a,o,!1,function(t){i("9SSf")},"data-v-2885a82e",null);e.a=l.exports},xOIU:function(t,e){}});
\ No newline at end of file
webpackJsonp([31],{"81++":function(e,n){},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:"",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(6)]).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(21)]).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(10)]).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(11)]).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(19)]).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(14)]).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(9)]).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(29)]).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(23)]).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(27).then(function(){var n=[t("usUK")];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(15)]).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(8)]).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(5)]).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(4)]).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(18)]).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)}}}]},{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(28)]).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(22)]).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(20)]).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(25)]).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,n=this.$store.state.progressList,t=[];this.$router.options.routes[0].children=[],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),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("81++")},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(7)]).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(24)]).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(17)]).then(function(){var n=[t("0HId")];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){},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([31],{"81++":function(e,n){},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:"",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(6)]).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(22)]).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(10)]).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(11)]).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(19)]).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(14)]).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(9)]).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(20)]).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(24)]).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(28).then(function(){var n=[t("usUK")];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(15)]).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(8)]).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(3)]).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(5)]).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(18)]).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)}}}]},{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(29)]).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(23)]).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(27)]).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(26)]).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,n=this.$store.state.progressList,t=[];this.$router.options.routes[0].children=[],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),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("81++")},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(7)]).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(4).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(25)]).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(17)]).then(function(){var n=[t("0HId")];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){},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(f,t,a){for(var o,d,b,i=0,u=[];i<f.length;i++)d=f[i],n[d]&&u.push(n[d][0]),n[d]=0;for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);for(c&&c(f,t,a);u.length;)u.shift()();if(a)for(i=0;i<a.length;i++)b=r(r.s=a[i]);return b};var f={},n={32:0};function r(c){if(f[c])return f[c].exports;var n=f[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 f=new Promise(function(f,r){c=n[e]=[f,r]});c[2]=f;var t=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,r.nc&&a.setAttribute("nonce",r.nc),a.src=r.p+"static/js/"+e+"."+{0:"91a299939a5dcbfe7f63",1:"e35203cb92161829b4b7",2:"71ce0e8534ad0fb7a6cc",3:"58df26638cb030357eb5",4:"050046070d14b6d5dfef",5:"2941036bd5eef756ecd2",6:"090d3c91fe1290595ffc",7:"77794e8aa5f30ed3bbf9",8:"5dc8a96d8dc6aa6c173d",9:"7d0140bc9f5f8fede1eb",10:"735588d7fc688e387231",11:"0c81e93578aee6e54261",12:"f67dc6647a7d0fec3ef3",13:"ab7bad53bb2b286a5480",14:"c5bff20c73cfa0fcec4e",15:"beaedf43b9ef65d6531c",16:"e51f5256213b5603773f",17:"55dcb59d0260e8d196e1",18:"f6c8d826eda083894558",19:"2ac88c7047e92d0e35c9",20:"c00546c5f612e005766e",21:"00091fe5e2799d2f1f51",22:"ea6db2cfce2e112855ac",23:"312ffd537e4527089ef7",24:"8433c1107846ac44ff65",25:"e24c5f35c405369b6432",26:"ed25837110be08a8fd1d",27:"aed1710fdee959b271f5",28:"acc72ffbf31d9875340f",29:"e6dadb057c2f8f3818c9"}[e]+".js";var o=setTimeout(d,12e4);function d(){a.onerror=a.onload=null,clearTimeout(o);var c=n[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return a.onerror=a.onload=d,t.appendChild(a),f},r.m=e,r.c=f,r.d=function(e,c,f){r.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},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 c=window.webpackJsonp;window.webpackJsonp=function(f,t,a){for(var o,d,b,i=0,u=[];i<f.length;i++)d=f[i],n[d]&&u.push(n[d][0]),n[d]=0;for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);for(c&&c(f,t,a);u.length;)u.shift()();if(a)for(i=0;i<a.length;i++)b=r(r.s=a[i]);return b};var f={},n={32:0};function r(c){if(f[c])return f[c].exports;var n=f[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 f=new Promise(function(f,r){c=n[e]=[f,r]});c[2]=f;var t=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,r.nc&&a.setAttribute("nonce",r.nc),a.src=r.p+"static/js/"+e+"."+{0:"91a299939a5dcbfe7f63",1:"fdabc663719b382e9733",2:"2b64eedc0075b24dd878",3:"5d5c694e24b9e7fbcba2",4:"f7de107bf23fce922b15",5:"637adeff30c2e5d9c6c5",6:"090d3c91fe1290595ffc",7:"77794e8aa5f30ed3bbf9",8:"5dc8a96d8dc6aa6c173d",9:"7d0140bc9f5f8fede1eb",10:"4c72000640d4f5c55713",11:"0c81e93578aee6e54261",12:"f67dc6647a7d0fec3ef3",13:"ab7bad53bb2b286a5480",14:"c5bff20c73cfa0fcec4e",15:"beaedf43b9ef65d6531c",16:"e51f5256213b5603773f",17:"55dcb59d0260e8d196e1",18:"7eeac42508acf43712df",19:"2ac88c7047e92d0e35c9",20:"5d38e0afbbde65170123",21:"775b94d59809b118794f",22:"075831309ded240fea29",23:"0529f980fb885c8455d0",24:"e571378ee8a87f75c441",25:"7758dce100b41f43cd16",26:"dbe332743891b1337370",27:"f4355f0681d06224bf98",28:"e469d5671f79a4684dc7",29:"13aaff1a00cbf86eadf2"}[e]+".js";var o=setTimeout(d,12e4);function d(){a.onerror=a.onload=null,clearTimeout(o);var c=n[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return a.onerror=a.onload=d,t.appendChild(a),f},r.m=e,r.c=f,r.d=function(e,c,f){r.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},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
......@@ -212,7 +212,7 @@
invite_type: '',
invite_id: '',
buy_type: '',
status: '',
status: 1,
goods_id: '',
out_trade_no: '',
payTime: []
......
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