Commit 72653d0e authored by wangwei's avatar wangwei

盒子 添加搜索和库存

parent 0db31aa2
......@@ -53,7 +53,7 @@ module.exports = {
* Source Maps
*/
productionSourceMap: true,
productionSourceMap: false,
// https://webpack.js.org/configuration/devtool/#production
devtool: '#source-map',
......
<!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>singsing-new-admin</title><link href=/static/css/app.bf7c9cc623bd2606ba6f971f682c102e.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.2ae2e69a05c33dfc65f8.js></script><script type=text/javascript src=/static/js/vendor.0856e2556bbad7b42ae6.js></script><script type=text/javascript src=/static/js/app.66b35873389cb92fae19.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>singsing-new-admin</title><link href=/static/css/app.63ba7048206ac3f94810de8f616605d4.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.3afdfa49e103c07039d8.js></script><script type=text/javascript src=/static/js/vendor.23cbd467eb26df857ed2.js></script><script type=text/javascript src=/static/js/app.e2c2d18736bd9264ae20.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 diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
webpackJsonp([11],{"7dvn":function(t,e){},JI1O:function(t,e){},"sg/1":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("CCn6"),n=(s("+TkF"),{name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",title:"",loading:!0,form:{key:"no_lesson_date",value:"no_lesson_date",desc:[]},noLessonDate:"",rules:{noLessonDate:[{required:!0,message:"请选择日期",trigger:"change"}]}}},components:{page:s("kmJW").a},methods:{save:function(){var t=this;if(this.noLessonDate){var e={key:this.form.key,value:this.form.value},s=this.form.desc||[];-1===s.findIndex(function(e){return e===t.noLessonDate})?(s.push(this.noLessonDate),e.desc=JSON.stringify(s),this.id?Object(i._35)(this.id,e).then(function(e){t.$message({type:"success",message:"新增成功!"}),t.$emit("reflash"),t.show=!1}):Object(i._29)(e).then(function(e){t.$message({type:"success",message:"新增成功!"}),t.$emit("reflash"),t.show=!1})):this.$message({type:"error",message:"日期不能重复添加!"})}else this.$message({type:"error",message:"请选择不上课时间!"})},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.title=this.dialogObj.title,this.form.desc=this.dialogObj.desc,this.loading=!1}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(t){this.$emit("changeShow",t)}}}),o={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dialog",{attrs:{title:t.title,center:"","append-to-body":"",visible:t.show,width:"800px"},on:{"update:visible":function(e){t.show=e}}},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[s("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules}},[s("el-row",[s("el-col",{attrs:{span:4}},[s("label",[t._v("不上课日期")])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("el-form-item",[s("el-date-picker",{attrs:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:t.noLessonDate,callback:function(e){t.noLessonDate=e},expression:"noLessonDate"}})],1)],1)],1)],1),t._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(e){t.show=!1}}},[t._v("取 消")]),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("确 定")])],1)],1)])},staticRenderFns:[]};var a={name:"index",data:function(){return{dialogObj:{value:"",desc:"",show:!1,id:""},list:[],id:""}},components:{dialogCom:s("VU/8")(n,o,!1,function(t){s("7dvn")},"data-v-fea09884",null).exports},mounted:function(){this.getList()},methods:{changeShow:function(t){this.dialogObj.show=t},getList:function(){var t=this;Object(i._2)({key:"no_lesson_date"}).then(function(e){if(e.list.length>0){var s=e.list[0].desc;t.id=e.list[0].id,t.list=s?JSON.parse(s):[]}})},add:function(){this.dialogObj.title="添加不上课日期",this.dialogObj.desc=this.list||[],this.dialogObj.show=!0,this.list.length>0?this.dialogObj.id=this.id:this.dialogObj.id=""},edit:function(t){var e=this;Object(i._1)(t.id).then(function(t){e.dialogObj.title="修改不上课日期",e.dialogObj.desc=t.desc,e.dialogObj.show=!0})},del:function(t){var e=this;this.$confirm("此操作将删除该记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var s={key:"no_lesson_date",value:"no_lesson_date"},n=[];e.list.forEach(function(e){e!==t&&n.push(e)}),s.desc=JSON.stringify(n),Object(i._35)(e.id,s).then(function(t){e.$message({type:"success",message:"删除成功!"}),e.getList()})})}}},l={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("el-row",{staticClass:"add-btn",attrs:{type:"flex",justify:"end"}},[s("el-col",{attrs:{span:6}},[s("el-button",{attrs:{type:"success",plain:""},on:{click:t.add}},[t._v("添加不上课日期")])],1)],1),t._v(" "),s("div",{staticClass:"card"},t._l(t.list,function(e,i){return s("el-card",{attrs:{"body-style":{padding:"0px"}}},[s("span",{staticClass:"time"},[t._v(t._s(e))]),t._v(" "),s("div",{staticClass:"bottom clearfix"},[s("el-button",{staticClass:"button",attrs:{type:"text"},on:{click:function(s){t.del(e)}}},[t._v("删除")])],1)])})),t._v(" "),s("dialog-com",{attrs:{dialogObj:t.dialogObj},on:{changeShow:t.changeShow,reflash:t.getList}})],1)},staticRenderFns:[]};var d=s("VU/8")(a,l,!1,function(t){s("JI1O")},"data-v-f75ec832",null);e.default=d.exports}});
\ No newline at end of file
webpackJsonp([12],{"+Xfg":function(e,s){},"0HId":function(e,s,r){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var t=r("CCn6"),n=r("NC6I"),a=r.n(n),o=r("Nr3E"),i=r.n(o),l={data:function(){return{bgUrl:i.a,login:{username:"",password:""},loginRules:{username:[{required:!0,message:"请输入您的用户名",trigger:"blur"}],password:[{required:!0,message:"请输入您的密码",trigger:"blur"}]}}},methods:{submitForm:function(){var e=this;this.$refs.loginForm.validate(function(s){if(s){var r={username:e.login.username,password:a()(e.login.password)};Object(t._25)(r).then(function(s){e.$store.dispatch("setToken",s.token),e.$store.dispatch("setUserName",s.user_name),e.$router.push({name:"resources"})})}})}}},u={render:function(){var e=this,s=e.$createElement,r=e._self._c||s;return r("div",{staticClass:"login",style:{backgroundImage:"url("+e.bgUrl+")"}},[r("div",{staticClass:"wrap-main"},[r("h1",{staticClass:"title"},[e._v("唱唱启蒙——后台管理系统")]),e._v(" "),r("el-form",{ref:"loginForm",attrs:{model:e.login,rules:e.loginRules}},[r("el-form-item",{attrs:{prop:"username"}},[r("el-input",{attrs:{placeholder:"用户名"},model:{value:e.login.username,callback:function(s){e.$set(e.login,"username",s)},expression:"login.username"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"password"}},[r("el-input",{attrs:{type:"password",placeholder:"密码"},model:{value:e.login.password,callback:function(s){e.$set(e.login,"password",s)},expression:"login.password"}})],1),e._v(" "),r("el-form-item",[r("el-button",{staticClass:"btn",attrs:{size:"medium",type:"primary"},on:{click:e.submitForm}},[e._v("登陆")])],1)],1)],1)])},staticRenderFns:[]};var c=r("VU/8")(l,u,!1,function(e){r("+Xfg")},"data-v-c0efef30",null);s.default=c.exports},Nr3E:function(e,s,r){e.exports=r.p+"static/img/skyBackground.d3b1524.png"}});
\ No newline at end of file
webpackJsonp([13],{"65NY":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("CCn6"),n={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,showType:!1,showTextContent:!1,total:0,nowPage:0,type:"text",form:{key:"keywords_reply",value:"",desc:""},textContent:"",mediaList:[],showMedia:!1,rules:{value:[{required:!0,message:"请输入规则名称",trigger:"change"}],desc:[{required:!0,message:"请输入回复内容",trigger:"change"}],qr:[{required:!0,message:"请输入二维码",trigger:"change"}]}}},components:{page:s("kmJW").a},methods:{save:function(){var t=this;console.log("this.form",this.form),this.dialogObj.id?this.$refs.form.validate(function(e){e&&(t.form,Object(i._35)(t.id,t.form).then(function(e){t.$message({type:"success",message:"修改成功!"}),t.$emit("reflash"),t.show=!1}))}):this.$refs.form.validate(function(e){e&&Object(i._29)(t.form).then(function(e){t.$message({type:"success",message:"新增成功!"}),t.$emit("reflash"),t.show=!1})})},addContent:function(t,e,s){var i=this.form,n=JSON.parse(i.desc),o={};e&&(o={type:t,content:e}),s&&(o.media_id=s),n.push(o),i.desc=JSON.stringify(n),this.form=i},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},getMediaList:function(t){var e=this,s={type:t,page:this.nowPage};this.showType=!1,this.loading=!0,this.showMedia=!0,Object(i._9)(s).then(function(s){e.loading=!1,e.type=t,e.mediaList=s.item,e.total=s.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 s=e.value;t.addContent("text",s,"")})},onEditText:function(t,e){var s=this.form;this.$prompt("编辑文本","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputValue:t.content}).then(function(t){var i=t.value,n=JSON.parse(s.desc),o={type:"text",content:i};n.splice(e,1,o),s.desc=JSON.stringify(n)}),this.form=s},onDelText:function(t,e){var s=this,i=this.form;this.$confirm("此操作将删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t=JSON.parse(i.desc);t.splice(e,1),i.desc=JSON.stringify(t),s.$message({type:"success",message:"删除成功!"})}).catch(function(){s.$message({type:"info",message:"已取消删除"})}),this.form=i},onChooseMedia:function(t){this.addContent(this.type,t.url,t.media_id),this.showMedia=!1}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(t){this.$emit("changeShow",t)}}},o={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.show?s("div",[s("el-dialog",{attrs:{title:"自动回复",center:"","append-to-body":"",visible:t.show,width:"800px"},on:{"update:visible":function(e){t.show=e}}},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[s("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules}},[s("el-row",[s("el-col",{attrs:{span:4}},[s("label",[t._v("关键词")])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("el-form-item",{attrs:{prop:"value"}},[s("el-input",{model:{value:t.form.value,callback:function(e){t.$set(t.form,"value",e)},expression:"form.value"}})],1)],1)],1),t._v(" "),s("el-row",[s("el-col",{attrs:{span:4}},[s("label",[t._v("回复内容")])]),t._v(" "),s("el-col",{attrs:{span:8}},[t.form.desc?t._l(JSON.parse(t.form.desc),function(e,i){return s("div",{staticClass:"msg-item"},["text"===e.type?s("span",{staticClass:"msg-text"},[t._v(t._s(e.content))]):"image"===e.type?s("img",{attrs:{src:e.content}}):t._e(),t._v(" "),"text"===e.type?s("i",{staticClass:"el-icon-edit",on:{click:function(s){t.onEditText(e,i)}}}):t._e(),t._v(" "),s("i",{staticClass:"el-icon-delete",on:{click:function(s){t.onDelText(e,i)}}})])}):t._e(),t._v(" "),s("div",{staticClass:"msg_sender_wrp"},[s("i",{staticClass:"el-icon-circle-plus-outline",on:{click:function(e){t.showType=!0}}}),t._v(" "),t.showType?s("ul",{staticClass:"weui-desktop-msg-sender__tabs"},[s("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_text",on:{click:function(e){t.editContent()}}},[t._v("文字")]),t._v(" "),s("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_img",on:{click:function(e){t.getMediaList("image")}}},[t._v("图片")])]):t._e()])],2)],1)],1),t._v(" "),t.showMedia&&t.mediaList.length>0?s("div",[s("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList},on:{"row-click":t.onChooseMedia}},[s("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),s("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),s("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(t){return[s("a",{attrs:{href:t.row.url}},[s("img",{staticStyle:{width:"60px"},attrs:{src:t.row.url}})])]}}])})],1),t._v(" "),s("page",{attrs:{total:t.total},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],1):t._e(),t._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(e){t.show=!1}}},[t._v("取 消")]),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("确 定")])],1)],1)])],1):t._e()},staticRenderFns:[]};var a={name:"autoReply",data:function(){return{dialogObj:{value:"",desc:"",show:!1,id:""},list:[]}},components:{dialogCom:s("VU/8")(n,o,!1,function(t){s("K3ce")},"data-v-57876ea2",null).exports},mounted:function(){this.getList()},methods:{changeShow:function(t){this.dialogObj.show=t},getList:function(){var t=this;Object(i._2)({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(i._1)(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(i.z)(t.id).then(function(t){e.getList(),e.$message({type:"success",message:"删除成功!"})})})}}},l={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("el-row",{staticClass:"add-btn",attrs:{type:"flex",justify:"end"}},[s("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[s("el-button",{attrs:{type:"success",plain:""},on:{click:t.add}},[t._v("添加回复")])],1)],1),t._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list}},[s("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left"}},[s("el-form-item",{attrs:{label:"关键词"}},[s("span",[t._v(t._s(e.row.value))])]),t._v(" "),s("el-form-item",{attrs:{label:"回复内容"}},t._l(JSON.parse(e.row.desc),function(e,i){return s("div",[t._v(t._s(e.content))])}))],1)]}}])}),t._v(" "),s("el-table-column",{attrs:{label:"ID",prop:"id"}}),t._v(" "),s("el-table-column",{attrs:{label:"关键词",prop:"value"}}),t._v(" "),s("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(" "),s("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),t._v(" "),s("el-table-column",{attrs:{width:"250",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(s){t.edit(e.row)}}},[t._v("\n 编辑\n ")]),t._v(" "),s("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(s){t.del(e.row)}}},[t._v("\n 删除\n ")])]}}])})],1),t._v(" "),s("dialog-com",{attrs:{dialogObj:t.dialogObj},on:{changeShow:t.changeShow,reflash:t.getList}})],1)},staticRenderFns:[]};var c=s("VU/8")(a,l,!1,function(t){s("omi1")},"data-v-525f969b",null);e.default=c.exports},K3ce:function(t,e){},omi1:function(t,e){}});
\ No newline at end of file
webpackJsonp([14],{F8nD:function(e,t){},ft1L:function(e,t){},gaNG:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("CCn6"),i=(a("+TkF"),{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:a("kmJW").a},methods:{save:function(){var e=this;this.dialogObj.id?this.$refs.form.validate(function(t){t&&Object(s._35)(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(s._29)(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)}}}),o={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 l={name:"sysConfig",data:function(){return{dialogObj:{value:"",desc:"",show:!1,id:""},list:[]}},components:{dialogCom:a("VU/8")(i,o,!1,function(e){a("F8nD")},"data-v-47365745",null).exports},mounted:function(){this.getList()},methods:{changeShow:function(e){this.dialogObj.show=e},getList:function(){var e=this;Object(s._2)().then(function(t){e.list=t.list})},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(s._1)(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(s.z)(e.id).then(function(e){t.getList(),t.$message({type:"success",message:"删除成功!"})})})}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sys"},[a("div",{staticClass:"clear-both top"},[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(" "),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(" "),a("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(a){e.del(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),a("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.getList}})],1)},staticRenderFns:[]};var r=a("VU/8")(l,n,!1,function(e){a("ft1L")},"data-v-cb83762e",null);t.default=r.exports}});
\ No newline at end of file
webpackJsonp([15],{CGL6:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("CCn6"),l={name:"banner",data:function(){return{loading:!1,bannerList:[],total:0,uploadShow:!0,limit:1,dialog:{title:"新增Banner",show:!1,rules:{title:[{required:!0,message:"请填写Banner名称",trigger:"change"}],link:[{required:!0,message:"请填写Banner链接",trigger:"change"}]},form:{title:"",url:"",link:"",id:""}},imageList:[]}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.loading=!0,Object(n.S)().then(function(e){e&&(t.bannerList=e.list,t.total=e.total,t.loading=!1)})},edit:function(t){var e=this;this.dialog.form.id=t.id,this.dialog.title="编辑Banner",Object(n.R)(t.id).then(function(t){e.dialog.form.title=t.title,e.dialog.form.link=t.link,e.imageList=[{name:t.url,url:t.url}],e.dialog.show=!0,e.uploadShow=!1})},add:function(){this.dialog.show=!0,this.dialog.form.id="",this.dialog.title="新增Banner",this.dialog.form.title="",this.dialog.form.link="",this.imageList=[],this.uploadShow=!0},del:function(t){var e=this;this.$confirm("此操作将删除该Banner?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n.o)(t.id).then(function(t){e.$message({type:"success",message:"删除成功!"}),e.getList()})})},handleAvatarSuccess:function(t){this.imageList=[{name:t.data.url,url:"http://cdn.singsingenglish.com/"+t.data.url}],this.dialog.form.url="http://cdn.singsingenglish.com/"+t.data.url},beforeAvatarUpload:function(){this.uploadShow=!1},handleRemove:function(){this.uploadShow=!0},sub:function(){var t=this;this.$refs.form.validate(function(e){if(e){var i=t.dialog;if(i.form.id){var l={title:i.form.title,link:i.form.link};t.imageList.length>0&&(l.url=t.imageList[0].url),Object(n.F)(i.form.id,l).then(function(){t.$message({type:"success",message:"修改成功!"}),i.show=!1,t.getList()})}else{var a={title:i.form.title,link:i.form.link};t.imageList.length>0&&(a.url=t.imageList[0].url),Object(n.b)(a).then(function(){t.$message({type:"success",message:"添加成功!"}),i.show=!1,t.getList()})}}})},moveUp:function(t){var e=this.bannerList;this.sort(e[t].id,e[t-1].id)},moveDown:function(t){var e=this.bannerList;this.sort(e[t+1].id,e[t].id)},sort:function(t,e){var i=this;this.loading=!0,Object(n._27)(t,e).then(function(){i.loading=!1,i.getList()})},uploadFile:function(t){var e=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:t.file.uid}),this.fileUid=t.file.uid,Object(n._38)({file:t.file,type:"local"}).then(function(t){e.imageList=[{name:t.url,url:"http://cdn.singsingenglish.com/"+t.url}],e.loading=!1,e.$message({type:"success",message:"上传成功!"})}).catch(function(){e.loading=!1})}}},a={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:"banner"},[i("div",{staticClass:"head clear-both"},[i("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:t.add}},[t._v("新增banner")])],1),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.bannerList}},[i("el-table-column",{attrs:{prop:"id",label:"ID"}}),t._v(" "),i("el-table-column",{attrs:{prop:"title",label:"标题"}}),t._v(" "),i("el-table-column",{attrs:{prop:"url",label:"图片"},scopedSlots:t._u([{key:"default",fn:function(t){return[i("a",{attrs:{href:t.row.url,target:"_blank"}},[i("img",{staticClass:"short-banner",attrs:{src:t.row.url}})])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"link",label:"链接"}}),t._v(" "),i("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-popover",{attrs:{placement:"top",width:"280"}},[i("div",{staticStyle:{"text-align":"center"}},[i("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(i){t.edit(e.row)}}},[t._v("\n 编辑\n ")]),t._v(" "),i("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(i){t.del(e.row)}}},[t._v("\n 删除\n ")]),t._v(" "),e.$index>0?i("el-button",{attrs:{size:"mini",type:"primary",plain:""},on:{click:function(i){t.moveUp(e.$index)}}},[t._v("\n 上移\n ")]):t._e(),t._v(" "),e.$index!==t.bannerList.length-1?i("el-button",{attrs:{size:"mini",type:"primary",plain:""},on:{click:function(i){t.moveDown(e.$index)}}},[t._v("\n 下移\n ")]):t._e()],1),t._v(" "),i("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[t._v("操作")])],1)]}}])})],1),t._v(" "),i("el-dialog",{attrs:{title:t.dialog.title,center:"","append-to-body":"",visible:t.dialog.show,width:"30%"},on:{"update:visible":function(e){t.$set(t.dialog,"show",e)}}},[i("el-form",{ref:"form",attrs:{rules:t.dialog.rules,model:t.dialog.form,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"banner名称",prop:"title"}},[i("el-input",{model:{value:t.dialog.form.title,callback:function(e){t.$set(t.dialog.form,"title",e)},expression:"dialog.form.title"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"banner链接",prop:"link"}},[i("el-input",{model:{value:t.dialog.form.link,callback:function(e){t.$set(t.dialog.form,"link",e)},expression:"dialog.form.link"}})],1),t._v(" "),i("div",{staticClass:"upload-block"},[i("el-upload",{class:{disabled:!t.uploadShow},attrs:{action:"/api/public/upload/zone","http-request":t.uploadFile,"before-upload":t.beforeAvatarUpload,"list-type":"picture-card","file-list":t.imageList,"on-success":t.handleAvatarSuccess,"on-remove":t.handleRemove}},[i("i",{staticClass:"el-icon-plus"})])],1)],1),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialog.show=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.sub}},[t._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var o=i("VU/8")(l,a,!1,function(t){i("L7vZ"),i("GeLL")},null,null);e.default=o.exports},GeLL:function(t,e){},L7vZ:function(t,e){}});
\ No newline at end of file
webpackJsonp([16],{DgoR:function(e,t){},"bFl/":function(e,t){},jFLA:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=l("CCn6"),s=l("kmJW"),o={name:"detail",props:["showDetail","showId"],data:function(){return{userDetail:{},show:this.showDetail}},methods:{getDetail:function(){var e=this;Object(a._22)(this.showId).then(function(t){e.userDetail=t})}},watch:{show:function(e){this.$emit("changeShow",e)},showDetail:function(e){this.show=e,this.getDetail()}}},r={render:function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("el-dialog",{attrs:{title:"用户详情",center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[l("el-row",{attrs:{align:"middle",type:"flex"}},[l("el-col",{attrs:{span:4}},[l("label",[e._v("头像")])]),e._v(" "),l("el-col",{attrs:{span:8}},[l("img",{attrs:{src:e.userDetail.avatar}})]),e._v(" "),l("el-col",{attrs:{span:4}},[l("label",[e._v("昵称")])]),e._v(" "),l("el-col",{attrs:{span:8}},[e._v(e._s(e.userDetail.nickname))])],1),e._v(" "),l("el-row",[l("el-col",{attrs:{span:4}},[l("label",[e._v("手机号")])]),e._v(" "),l("el-col",{attrs:{span:8}},[e._v(e._s(e.userDetail.mobile))]),e._v(" "),l("el-col",{attrs:{span:4}},[l("label",[e._v("注册时间")])]),e._v(" "),l("el-col",{attrs:{span:8}},[e._v(e._s(e.userDetail.created_at))])],1),e._v(" "),l("el-row",[l("el-col",{attrs:{span:4}},[l("label",[e._v("生日")])]),e._v(" "),l("el-col",{attrs:{span:8}},[e._v(e._s(e.userDetail.birthday))]),e._v(" "),l("el-col",{attrs:{span:4}},[l("label",[e._v("ID")])]),e._v(" "),l("el-col",{attrs:{span:8}},[e._v(e._s(e.userDetail.user_id))])],1),e._v(" "),l("el-row",[l("el-col",{attrs:{span:4}},[l("label",[e._v("等级")])]),e._v(" "),l("el-col",{attrs:{span:8}},[e._v(e._s(e.userDetail.level))]),e._v(" "),l("el-col",{attrs:{span:4}},[l("label",[e._v("最后登录")])]),e._v(" "),l("el-col",{attrs:{span:8}},[e._v(e._s(e.userDetail.last_login_at))])],1),e._v(" "),l("el-row",{attrs:{align:"middle",type:"flex"}},[l("el-col",{attrs:{span:4}},[l("label",[e._v("邀请码")])]),e._v(" "),l("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.userDetail.invite_code)+"\n ")])],1)],1)},staticRenderFns:[]};var n=l("VU/8")(o,r,!1,function(e){l("bFl/")},"data-v-cdd97922",null).exports,i={name:"index",data:function(){return{searchFrom:{nickName:"",mobile:"",level:""},userList:[],total:0,nowPage:0,showDetail:!1,showId:""}},components:{page:s.a,detailDialog:n},mounted:function(){this.getUser()},methods:{getUser:function(){var e=this;Object(a._23)(this.searchFrom).then(function(t){e.userList=t.list,e.total=t.total})},detail:function(e){this.showId=e.user_id,this.showDetail=!0},changeShow:function(e){this.showDetail=e}}},c={render:function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"user"},[l("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px"}},[l("el-row",[l("el-col",{attrs:{span:4}},[l("el-form-item",{attrs:{label:"昵称"}},[l("el-input",{model:{value:e.searchFrom.nickName,callback:function(t){e.$set(e.searchFrom,"nickName",t)},expression:"searchFrom.nickName"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:4}},[l("el-form-item",{attrs:{label:"电话"}},[l("el-input",{model:{value:e.searchFrom.mobile,callback:function(t){e.$set(e.searchFrom,"mobile",t)},expression:"searchFrom.mobile"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:4}},[l("el-form-item",{attrs:{label:"等级"}},[l("el-input",{model:{value:e.searchFrom.level,callback:function(t){e.$set(e.searchFrom,"level",t)},expression:"searchFrom.level"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:4}},[l("el-form-item",[l("el-button",{attrs:{type:"primary",plain:""}},[e._v("搜索")])],1)],1)],1)],1),e._v(" "),l("el-table",{staticStyle:{width:"100%"},attrs:{data:e.userList}},[l("el-table-column",{attrs:{prop:"user_id",label:"账号ID"}}),e._v(" "),l("el-table-column",{attrs:{prop:"nickname",label:"用户名"}}),e._v(" "),l("el-table-column",{attrs:{prop:"avatar",label:"头像"},scopedSlots:e._u([{key:"default",fn:function(e){return[l("img",{staticClass:"avatar",attrs:{src:e.row.avatar}})]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"invite_code",label:"邀请码"}}),e._v(" "),l("el-table-column",{attrs:{prop:"mobile",label:"手机号"}}),e._v(" "),l("el-table-column",{attrs:{prop:"level",label:"等级"}}),e._v(" "),l("el-table-column",{attrs:{prop:"created_at",label:"注册时间"}}),e._v(" "),l("el-table-column",{attrs:{prop:"last_login_at",label:"最后登录时间"}}),e._v(" "),l("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(l){e.detail(t.row)}}},[e._v("\n 查看详情\n ")])]}}])})],1),e._v(" "),l("page",{attrs:{total:e.total},model:{value:e.nowPage,callback:function(t){e.nowPage=t},expression:"nowPage"}}),e._v(" "),l("detail-dialog",{attrs:{showDetail:e.showDetail,showId:e.showId}})],1)},staticRenderFns:[]};var u=l("VU/8")(i,c,!1,function(e){l("DgoR")},"data-v-1d679932",null);t.default=u.exports}});
\ No newline at end of file
This diff is collapsed.
webpackJsonp([18],{F5pf:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("CCn6"),o={name:"orderMoney",data:function(){return{nowPage:1,total:0,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:s("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:{getList:function(){var t=this,e={key:this.search.key,page:this.page.current,per_page:this.page.pageSize,status:this.search.status};Object(a._24)(e).then(function(e){"success"===e.data.result?(t.tableData=e.data.data.data,t.total=e.data.data.total):t.$message.error(e.data.message)})},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},onPageChange:function(t){this.page.current=t,this.getList()},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"})},onSave:function(t){var e=this;if(t){var s={desc:this.nowObj.desc};if(""===s.desc||null==s.desc)return this.$message.error("请填写备注"),!1;Object(a.L)(this.nowObj.id,"withdraw",s).then(function(t){"success"===t.data.result?e.doCallback():e.$message.error(t.data.message)})}else{var o={reason:this.nowObj.reason,status:this.nowObj.status};if((""===o.reason||null==o.reason)&&2===o.status)return this.$message.error("请填写失败理由"),!1;o.reason="",Object(a._39)(this.nowObj.id,o).then(function(t){"success"===t.data.result?e.doCallback():e.$message.error(t.data.message)})}}}},n={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.search,"label-width":"80px"}},[s("el-form-item",{attrs:{label:"关键字"}},[s("el-input",{attrs:{placeholder:"用户名/手机号"},model:{value:t.search.key,callback:function(e){t.$set(t.search,"key",e)},expression:"search.key"}})],1),t._v(" "),s("el-form-item",{attrs:{label:"订单状态"}},[s("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 s("el-option",{key:t.status,attrs:{label:t.label,value:t.status}})}))],1),t._v(" "),s("el-form-item",{attrs:{label:""}},[s("el-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")])],1)],1),t._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},[s("el-table-column",{attrs:{prop:"username",label:"用户名"}}),t._v(" "),s("el-table-column",{attrs:{prop:"mobile",label:"手机号"}}),t._v(" "),s("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(" "),s("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(" "),s("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(" "),s("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(" "),s("el-table-column",{attrs:{label:"提现状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("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(" "),s("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(" "),s("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),t._v(" "),s("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),s("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.status?s("el-button",{attrs:{type:"text",size:"small"},on:{click:function(s){t.checkMoney(e.row.id,e.row.desc)}}},[t._v("\n 审核\n ")]):t._e(),t._v(" "),s("el-button",{attrs:{type:"text",size:"small"},on:{click:function(s){t.addDesc(e.row.id,e.row.desc)}}},[t._v("\n 添加备注\n ")])]}}])})],1),t._v(" "),s("page",{attrs:{nowPage:t.nowPage,total:t.total}}),t._v(" "),t.showDialog?s("el-dialog",{attrs:{title:t.dialogTitle,visible:t.showDialog},on:{"update:visible":function(e){t.showDialog=e}}},[s("el-form",{ref:"saveuser",attrs:{model:t.nowObj,"label-width":"70px"}},[t.showDesc?t._e():s("el-form-item",{attrs:{label:"订单状态"}},[[s("el-radio-group",{model:{value:t.nowObj.status,callback:function(e){t.$set(t.nowObj,"status",e)},expression:"nowObj.status"}},[s("el-radio",{attrs:{label:1}},[t._v("提现成功")]),t._v(" "),s("el-radio",{attrs:{label:2}},[t._v("提现失败")])],1)]],2),t._v(" "),2!==t.nowObj.status||t.showDesc?t._e():s("el-form-item",{attrs:{label:"失败理由"}},[s("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?s("el-form-item",{attrs:{label:"备注信息"}},[s("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(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:function(e){t.onSave(t.showDesc)}}},[t._v("保 存")]),t._v(" "),s("el-button",{on:{click:function(e){t.showDialog=!1}}},[t._v("取 消")])],1)],1):t._e()],1)},staticRenderFns:[]};var l=s("VU/8")(o,n,!1,function(t){s("ZY8r")},"data-v-af6e0922",null);e.default=l.exports},ZY8r:function(t,e){}});
\ No newline at end of file
webpackJsonp([19],{"+jTk":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("CCn6"),i=o("+TkF"),l={name:"admin",components:{page:o("kmJW").a},data:function(){var e=this;return{nowPage:1,total:0,adminList:[],dialog:{dialogType:0,title:"新增账号",show:!1,select:[{code:0,value:i.a[0]},{code:1,value:i.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 i.a[e]}},created:function(){this.getList(),this.getRoleList()},methods:{getRoleList:function(){var e=this;Object(a._17)({page:1,limit:100}).then(function(t){t&&(e.roleList=t.list)})},getList:function(){var e=this;Object(a.Q)().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.n)(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.E)(t.form.id,o).then(function(){e.$message({type:"success",message:"修改成功!"}),t.show=!1,e.getList()})}else if(0===t.dialogType){var i={role_id:t.form.role_id,desc:t.form.desc,passwd:t.form.password,username:t.form.username};Object(a.a)(i).then(function(){e.$message({type:"success",message:"添加成功!"}),t.show=!1,e.getList()})}else if(2===t.dialogType){console.log(1);var l={passwd_new:t.form.password};Object(a.M)(t.form.id,l).then(function(){e.$message({type:"success",message:"修改成功!"}),t.show=!1,e.getList()})}}}},s={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"admin"},[o("div",{staticClass:"head clear-both"},[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.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_id",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:{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(" "),o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){e.del(t.row)}}},[e._v("\n 删除\n ")])],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}}),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 r=o("VU/8")(l,s,!1,function(e){o("Z64F")},"data-v-7adec71c",null);t.default=r.exports},Z64F:function(e,t){}});
\ No newline at end of file
webpackJsonp([2],{"+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([20],{Vt1u:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("CCn6"),n={name:"menu",components:{page:i("kmJW").a},data:function(){return{nowPage:1,total:0,roleList:[],dialog:{title:"新增角色",show:!1,select:[],rules:{name:[{required:!0,message:"请填写角色名称",trigger:"change"}],menu_ids:[{required:!0,message:"请选择菜单",trigger:"change"}]},form:{name:"",menu_ids:[],id:""}}}},created:function(){this.getList()},methods:{getMenuList:function(){var t=this;Object(a._10)().then(function(e){e&&(t.dialog.select=e)})},getList:function(){var t=this;Object(a._17)().then(function(e){e&&(t.roleList=e.list,t.total=e.total)})},edit:function(t){var e=this;this.dialog.form.id=t.id,this.dialog.title="编辑角色",this.getMenuList(),Object(a._16)(t.id).then(function(t){e.dialog.form.name=t.name;var i=t.menu_ids.split(",").map(function(t){return parseInt(t)});e.dialog.form.menu_ids=i,e.dialog.show=!0})},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(t){var e=this;this.$confirm("此操作将删除该角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.w)(t.id).then(function(t){e.$message({type:"success",message:"删除成功!"}),e.getList()})})},sub:function(){var t=this;this.$refs.form.validate(function(e){if(e){var i=t.dialog;if(i.form.id){var n={name:i.form.name,menu_ids:i.form.menu_ids.join(",")};Object(a._37)(i.form.id,n).then(function(){t.$message({type:"success",message:"修改成功!"}),i.show=!1,t.getList()})}else{var o={name:i.form.name,menu_ids:i.form.menu_ids.join(",")};Object(a._32)(o).then(function(){t.$message({type:"success",message:"添加成功!"}),i.show=!1,t.getList()})}}})}}},o={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"role"},[i("div",{staticClass:"head clear-both"},[i("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:t.add}},[t._v("新增角色")])],1),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.roleList}},[i("el-table-column",{attrs:{prop:"id",label:"角色ID"}}),t._v(" "),i("el-table-column",{attrs:{prop:"name",label:"角色名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"menu_ids",label:"菜单IDs"}}),t._v(" "),i("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),t._v(" "),i("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(i){t.edit(e.row)}}},[t._v("\n 编辑\n ")]),t._v(" "),i("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(i){t.del(e.row)}}},[t._v("\n 删除\n ")])]}}])})],1),t._v(" "),i("page",{attrs:{nowPage:t.nowPage,total:t.total}}),t._v(" "),i("el-dialog",{attrs:{title:t.dialog.title,center:"","append-to-body":"",visible:t.dialog.show,width:"30%"},on:{"update:visible":function(e){t.$set(t.dialog,"show",e)}}},[i("el-form",{ref:"form",attrs:{rules:t.dialog.rules,model:t.dialog.form,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"菜单名称",prop:"name"}},[i("el-input",{model:{value:t.dialog.form.name,callback:function(e){t.$set(t.dialog.form,"name",e)},expression:"dialog.form.name"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"菜单选项",prop:"menu_ids"}},[i("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:t.dialog.form.menu_ids,callback:function(e){t.$set(t.dialog.form,"menu_ids",e)},expression:"dialog.form.menu_ids"}},t._l(t.dialog.select,function(t){return i("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}))],1)],1),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialog.show=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.sub}},[t._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var s=i("VU/8")(n,o,!1,function(t){i("gA1E")},"data-v-765af4ba",null);e.default=s.exports},gA1E:function(t,e){}});
\ No newline at end of file
webpackJsonp([21],{"89rD":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("CCn6"),l={name:"index",components:{page:n("kmJW").a},data:function(){return{nowPage:1,total:0,list:[{out_trade_no:"111",refund_no:"111",user_id:"1",order_money:100,refund_money:100,desc:"sdfaf",callback:"ewewew",status:1,success_at:"2018-09-01"}]}},filters:{filterStatus:function(t){var e="";return 0===t?e="退款中":1===t?e="退款成功":2===t&&(e="退款失败"),e}},mounted:function(){this.getRefundList()},methods:{editComment:function(t,e){var n=this;this.$prompt("编辑备注","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputValue:e}).then(function(e){var l=e.value;Object(a.L)(t,"refund",{desc:l}).then(function(t){n.$message({type:"success",message:"编辑备注成功"}),n.getRefundList()})})},getRefundList:function(){var t=this;Object(a._15)().then(function(e){t.total=e.total,t.list=e.list})}}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"refund"},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list}},[n("el-table-column",{attrs:{prop:"out_trade_no",label:"out_trade_no"}}),t._v(" "),n("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),t._v(" "),n("el-table-column",{attrs:{label:"用户信息"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n id:"+t._s(e.row.user_id)+"\n "),n("br"),t._v("\n 名称:"+t._s(e.row.user_nickname)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"order_money",label:"订单金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.order_money/100))+"元\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"refund_money",label:"退款金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.refund_money/100))+"元\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"desc",label:"退款原因"}}),t._v(" "),n("el-table-column",{attrs:{prop:"callback",label:"微信回调"}}),t._v(" "),n("el-table-column",{attrs:{label:"退款状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(n){t.editComment(e.row.id,e.row.desc)}}},[t._v("\n 备注\n ")])]}}])})],1),t._v(" "),n("page",{attrs:{nowPage:t.nowPage,total:t.total}})],1)},staticRenderFns:[]};var r=n("VU/8")(l,o,!1,function(t){n("ezPC")},"data-v-75e7fae7",null);e.default=r.exports},ezPC:function(t,e){}});
\ No newline at end of file
webpackJsonp([22],{QOZ6:function(e,t){},aTXs:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o("CCn6"),a={name:"menu",data:function(){return{nowPage:1,total:0,menuList:[],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._10)().then(function(t){t&&(e.menuList=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=0},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.u)(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._36)(o.form.id,a).then(function(){e.$message({type:"success",message:"修改成功!"}),o.show=!1,e.getList()})}else{var n={name:o.form.name,cover:o.form.cover,pid:o.form.pid};Object(i._30)(n).then(function(){e.$message({type:"success",message:"添加成功!"}),o.show=!1,e.getList()})}}})}}},n={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"menu"},[o("div",{staticClass:"head clear-both"},[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:"id",label:"菜单ID"}}),e._v(" "),o("el-table-column",{attrs:{prop:"cover",label:"菜单Code"}}),e._v(" "),o("el-table-column",{attrs:{prop:"name",label:"菜单名称"}}),e._v(" "),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(" "),o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){e.del(t.row)}}},[e._v("\n 删除\n ")])]}}])})],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)],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,n,!1,function(e){o("QOZ6")},"data-v-62b7c138",null);t.default=s.exports}});
\ No newline at end of file
webpackJsonp([23],{CK6D:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i("CCn6"),a={name:"focusReply",data:function(){return{loading:!1,total:0,nowPage:1,id:null,form:{key:"focus_reply",value:"focus_reply",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"}]}}},components:{page:i("kmJW").a},mounted:function(){this.getList()},methods:{save:function(){var e=this,t=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}t.desc=JSON.stringify(i),this.id?Object(s._35)(this.id,t).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.show=!1}):Object(s._29)(t).then(function(t){e.$message({type:"success",message:"保存成功!"})})},getMediaList:function(e){var t=this,i={type:e,page:this.nowPage};this.loading=!0,Object(s._9)(i).then(function(i){t.loading=!1,t.type=e,t.total=i.total_count,0===i.item.length?(t.$message({showClose:!0,message:"暂无数据"}),t.showMedia=!1):(t.showMedia=!0,t.mediaList=i.item)}).catch(function(){t.loading=!1,t.showMedia=!1})},onChooseMedia:function(e){this.addContent(this.type,e.url,e.media_id),this.showMedia=!1},addContent:function(e,t,i){var s={};t&&(s={type:e,content:t}),i&&(s.media_id=i),this.imageContent=s},getList:function(){var e=this;Object(s._2)({key:"focus_reply"}).then(function(t){if(t.total>0){e.id=t.list[0].id;var i=JSON.parse(t.list[0].desc);e.type=i[0].type,"text"===e.type?e.content=i[0].content:"image"===e.type&&(e.imageContent={type:"image",content:i[0].content,media_id:i[0].media_id}),console.log("this.type",i)}})}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"focus-reply"},[i("div",{staticClass:"title"},[e._v("自动回复")]),e._v(" "),i("div",{staticClass:"content"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.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"===e.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(t){e.type="text"}}},[e._v("文字")]),e._v(" "),i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_img",class:"image"===e.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(t){e.type="image"}}},[e._v("图片")])]),e._v(" "),i("div",{staticClass:"inner-bottom"},["image"===e.type?i("div",{staticClass:"img-action"},[e.imageContent?i("img",{attrs:{src:e.imageContent.content}}):e._e(),e._v(" "),e.showMedia?e._e():i("div",{staticClass:"img-create-access"},[i("a",{staticClass:"img-create-access__link",attrs:{href:"javascript:;"},on:{click:function(t){e.getMediaList("image")}}},[e._v("从素材库中选择")])]),e._v(" "),e.showMedia&&e.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.mediaList},on:{"row-click":e.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),e._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),e._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("a",{attrs:{href:e.row.url}},[i("img",{staticStyle:{width:"60px"},attrs:{src:e.row.url}})])]}}])})],1),e._v(" "),i("page",{attrs:{total:e.total},model:{value:e.nowPage,callback:function(t){e.nowPage=t},expression:"nowPage"}})],1):e._e()]):"text"===e.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:e.content,callback:function(t){e.content=t},expression:"content"}})],1)]):e._e()]),e._v(" "),i("div",{staticClass:"tool_bar"},[i("button",{staticClass:"weui-desktop-btn weui-desktop-btn_primary",on:{click:e.save}},[e._v("保存")])])])])])},staticRenderFns:[]};var o=i("VU/8")(a,n,!1,function(e){i("ThlM")},"data-v-604728c1",null);t.default=o.exports},ThlM:function(e,t){}});
\ No newline at end of file
This diff is collapsed.
webpackJsonp([25],{LFYe:function(t,e){},Xhqp:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("CCn6"),i={name:"resource",data:function(){return{mediaList:[],nowPage:1,total:0,loading:!1,type:"image",imageList:[],uploadParam:{type:"wechat",chunk:0,count:1},fileUid:null,showProgress:!1,typeText:{image:"图片",video:"视频",voice:"语音"}}},components:{page:s("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)},getMediaList:function(t){var e=this,s={type:t,page:this.nowPage};this.loading=!0,Object(a._9)(s).then(function(s){e.loading=!1,e.type=t,e.mediaList=s.item,e.total=s.total_count,0===s.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(a._38)({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})}}},o={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"media"},[s("h2",{staticClass:"media-title"},[t._v("素材管理")]),t._v(" "),s("div",[s("ul",{staticClass:"media-navs"},[s("li",{staticClass:"media-nav js_top",class:"image"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("image")}}},[t._m(0)]),t._v(" "),s("li",{staticClass:"media-nav js_top",class:"voice"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("voice")}}},[t._m(1)]),t._v(" "),s("li",{staticClass:"media-nav js_top",class:"video"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("video")}}},[t._m(2)])]),t._v(" "),s("div",{staticClass:"media-panel"},[s("div",{staticClass:"media-panel-top flex-bt"},[s("div",{staticClass:"media-panel-top-left"},[t._v("\n "+t._s(t.typeText[t.type])+"(共"+t._s(t.total)+"条)\n ")]),t._v(" "),t.showProgress?s("div",{staticClass:"progress"},[s("el-progress",{attrs:{percentage:t.progress,status:"success"}})],1):t._e(),t._v(" "),s("div",{staticClass:"media-panel-top-right"},[s("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:"/api/public/upload/zone","http-request":t.uploadFile,"show-file-list":!1,data:t.uploadParam}},[s("el-button",{staticStyle:{order:"2"},attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")])],1)],1)]),t._v(" "),t.mediaList.length>0?s("div",[s("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList}},[s("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),s("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),s("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(e){return["image"===t.type?s("a",{attrs:{href:e.row.url}},[s("img",{staticStyle:{width:"60px"},attrs:{src:e.row.url}})]):t._e(),t._v(" "),"video"===t.type?s("video",{attrs:{width:"100",height:"100",controls:"controls"}},[s("source",{attrs:{src:e.row.url}}),t._v("\n Your browser does not support the video tag.\n ")]):t._e(),t._v(" "),"voice"===t.type?s("audio",{attrs:{id:"myAudio",controls:""}},[s("source",{attrs:{src:e.row.url}}),t._v("\n Your browser does not support the audio element.\n ")]):t._e()]}}])})],1),t._v(" "),s("page",{attrs:{total:t.total},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],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")])}]};var n=s("VU/8")(i,o,!1,function(t){s("LFYe")},"data-v-41a16a09",null);e.default=n.exports}});
\ No newline at end of file
webpackJsonp([26],{"7NE5":function(e,n){},"kBw/":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var a=t("VU/8")({name:"index"},r,!1,function(e){t("7NE5")},"data-v-3d6948f1",null);n.default=a.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
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([6],{"5E7e":function(e,t){},B31M:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("CCn6"),n=a("kmJW"),i={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,uploadShow:!0,type:0,title:"",form:{name:"",num:0,cover:""},imageList:[],rules:{},teacherDetail:{}}},methods:{sub:function(){var e=this;switch(this.dialogObj.type){case 0:this.$refs.form.validate(function(t){t&&(e.imageList.length>0&&(e.form.cover=e.imageList[0].name),Object(o.k)(e.form).then(function(){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.show=!1}))});break;case 1:this.$refs.form.validate(function(t){t&&(e.form.cover=e.imageList[0].name,Object(o.N)(e.id,e.form).then(function(){e.$message({type:"success",message:"新增成功!"}),e.$emit("reflash"),e.show=!1}))})}},handleAvatarSuccess:function(e){this.imageList=[{name:e.data.url,url:"http://cdn.singsingenglish.com/"+e.data.url}]},beforeAvatarUpload:function(){this.uploadShow=!1},uploadFile:function(e){var t=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(o._38)({file:e.file,type:"local"}).then(function(e){t.imageList=[{name:e.url,url:"http://cdn.singsingenglish.com/"+e.url}],t.loading=!1,t.$message({type:"success",message:"上传成功!"})}).catch(function(){t.loading=!1})},handleRemove:function(){this.uploadShow=!0},initDialog:function(){var e=this;switch(this.dialogObj.type){case 0:this.title="新增单品",this.show=this.dialogObj.show,this.type=0,this.imageList=[],this.form={name:"",num:0,cover:""},this.uploadShow=!0,this.loading=!1;break;case 1:this.title="编辑",this.show=this.dialogObj.show,this.id=this.dialogObj.id,this.type=1,Object(o._18)(this.dialogObj.id).then(function(t){e.loading=!1,e.form={name:t.name,num:t.num,cover:t.cover,category_name:t.category_name},e.form.cover&&""!==e.form.cover?(e.imageList=[{name:t.cover,url:"http://cdn.singsingenglish.com/"+t.cover}],e.uploadShow=!1):(e.imageList=[],e.uploadShow=!0)})}}},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:e.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("单品名称")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"name"}},[a("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),e._v(" "),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-number",{model:{value:e.form.num,callback:function(t){e.$set(e.form,"num",t)},expression:"form.num"}})],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",{model:{value:e.form.category_name,callback:function(t){e.$set(e.form,"category_name",t)},expression:"form.category_name"}})],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:20}},[a("div",{staticClass:"upload-block"},[a("el-upload",{class:{disabled:!e.uploadShow},attrs:{action:"/api/public/upload/zone","http-request":e.uploadFile,"before-upload":e.beforeAvatarUpload,"list-type":"picture-card","file-list":e.imageList,"on-success":e.handleAvatarSuccess,"on-remove":e.handleRemove}},[a("i",{staticClass:"el-icon-plus"})])],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.sub}},[e._v("确 定")])],1)],1)])},staticRenderFns:[]};var s=a("VU/8")(i,l,!1,function(e){a("KQFk"),a("5E7e")},"data-v-65cce16a",null).exports,r={name:"index",components:{page:n.a,dialogCom:s},data:function(){return{total:0,nowPage:0,searchFrom:{name:""},tableData:[],dialogObj:{type:0,show:!1,id:""}}},created:function(){this.initPage()},methods:{initPage:function(){var e=this,t={};this.searchFrom.name&&(t.name=this.searchFrom.name),this.searchFrom.category_name&&(t.category_name=this.searchFrom.category_name),Object(o._19)(t).then(function(t){e.tableData=t.list,e.total=t.total})},changeShow:function(){},delthat:function(e){var t=this;this.$confirm("此操作将删除该单品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.x)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"})}),t.initPage()})},onAdd:function(){this.dialogObj={type:0,show:!0}},edit:function(e){this.dialogObj={type:1,show:!0,id:e.id}}}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"single"},[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:"分类名称"}},[a("el-input",{attrs:{placeholder:"名称",size:"small"},model:{value:e.searchFrom.category_name,callback:function(t){e.$set(e.searchFrom,"category_name",t)},expression:"searchFrom.category_name"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"单品名称"}},[a("el-input",{attrs:{placeholder:"名称",size:"small"},model:{value:e.searchFrom.name,callback:function(t){e.$set(e.searchFrom,"name",t)},expression:"searchFrom.name"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:"",size:"small"},on:{click:e.initPage}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",[a("el-button",{attrs:{type:"success",plain:"",size:"small"},on:{click:e.onAdd}},[e._v("\n 添加单品\n ")])],1)],1)],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,"default-sort":{prop:"num",order:"descending"}}},[a("el-table-column",{attrs:{prop:"id",label:"id"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"category_name",label:"分类"}}),e._v(" "),a("el-table-column",{attrs:{prop:"num",sortable:"",label:"库存"}}),e._v(" "),a("el-table-column",{attrs:{width:"200",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(" "),a("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(a){e.delthat(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),a("page",{attrs:{total:e.total},model:{value:e.nowPage,callback:function(t){e.nowPage=t},expression:"nowPage"}}),e._v(" "),a("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.initPage}})],1)},staticRenderFns:[]};var m=a("VU/8")(r,c,!1,function(e){a("Xoly")},"data-v-7e60e20f",null);t.default=m.exports},KQFk:function(e,t){},Xoly:function(e,t){}});
\ No newline at end of file
webpackJsonp([7],{EYXI:function(e,t){},L8wl:function(e,t){},Y0Vi:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("CCn6"),s=a("+TkF"),i=a("kmJW"),o={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",statusOption:[{label:"正常",value:0},{label:"禁用",value:1}],typeOption:[{label:"老师",value:0},{label:"新星妈妈",value:1},{label:"推广人",value:2},{label:"市场",value:3}],loading:!0,type:0,title:"",form:{name:"",type:0,qr:"",alias:"",status:0},rules:{name:[{required:!0,message:"请输入名称",trigger:"change"}],qr:[{required:!0,message:"请输入二维码",trigger:"change"}]},teacherDetail:{},imageList:[],uploadShow:!0}},methods:{sub:function(){var e=this;switch(this.imageList.length>0&&(this.form.qr=this.imageList[0].url),this.dialogObj.type){case 2:this.$refs.form.validate(function(t){t&&Object(l.O)(e.id,e.form).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.show=!1})});break;case 0:this.$refs.form.validate(function(t){t&&Object(l.l)(e.form).then(function(t){e.$message({type:"success",message:"新增成功!"}),e.$emit("reflash"),e.show=!1})})}},beforeAvatarUpload:function(){this.uploadShow=!1},handleRemove:function(){this.uploadShow=!0},handleAvatarSuccess:function(e){this.imageList=[{name:e.data.url,url:"http://cdn.singsingenglish.com/"+e.data.url}]},uploadFile:function(e){var t=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(l._38)({file:e.file,type:"local"}).then(function(e){t.imageList=[{name:e.url,url:"http://cdn.singsingenglish.com/"+e.url}],t.uploadShow=!1,t.loading=!1,t.$message({type:"success",message:"上传成功!"})}).catch(function(){t.loading=!1})},initDialog:function(){var e=this;switch(this.dialogObj.type){case 0:this.title="新增教师",this.show=this.dialogObj.show,this.type=0,this.form.name="",this.form.alias="",this.form.qr="",this.form.type=0,this.form.status=0,this.imageList=[],this.loading=!1;break;case 1:this.title="教师详情",this.show=this.dialogObj.show,this.id=this.dialogObj.id,this.type=1,Object(l._20)(this.id).then(function(t){e.teacherDetail=t,e.loading=!1});break;case 2:this.title="编辑",this.show=this.dialogObj.show,this.id=this.dialogObj.id,this.type=2,Object(l._20)(this.id).then(function(t){e.form.name=t.name,e.form.alias=t.alias,e.form.qr=t.qr,e.form.type=t.type,e.form.status=t.status,e.imageList=[{name:t.qr,url:t.qr}],e.uploadShow=!t.qr,e.loading=!1})}}},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,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.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}},[1===e.type?a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("ID")])]),e._v(" "),a("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.teacherDetail.id)+"\n ")]),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("创建时间")])]),e._v(" "),a("el-col",{attrs:{span:8}},[e._v(e._s(e.teacherDetail.created_at))])],1):e._e(),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("昵称")])]),e._v(" "),a("el-col",{attrs:{span:8}},[1===e.type?a("span",[e._v(e._s(e.teacherDetail.name))]):e._e(),e._v(" "),1!==e.type?a("el-form-item",{attrs:{prop:"name"}},[a("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1):e._e()],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("微信号")])]),e._v(" "),a("el-col",{attrs:{span:8}},[1===e.type?a("span",[e._v(e._s(e.teacherDetail.alias))]):e._e(),e._v(" "),1!==e.type?a("el-form-item",[a("el-input",{model:{value:e.form.alias,callback:function(t){e.$set(e.form,"alias",t)},expression:"form.alias"}})],1):e._e()],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}},[1===e.type?a("span",[e._v(e._s(e.teacherDetail.status))]):e._e(),e._v(" "),1!==e.type?a("el-form-item",[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.statusOption,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1):e._e()],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("类型")])]),e._v(" "),a("el-col",{attrs:{span:8}},[1===e.type?a("span",[e._v(e._s(e.teacherDetail.type))]):e._e(),e._v(" "),1!==e.type?a("el-form-item",[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},e._l(e.typeOption,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1):e._e()],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}},[1===e.type?a("img",{staticClass:"qr-img",attrs:{src:e.teacherDetail.qr}}):e._e(),e._v(" "),1!==e.type?a("el-form-item",[a("el-upload",{class:{disabled:!e.uploadShow},attrs:{action:"/api/public/upload/zone","http-request":e.uploadFile,"before-upload":e.beforeAvatarUpload,"list-type":"picture-card","file-list":e.imageList,"on-success":e.handleAvatarSuccess,"on-remove":e.handleRemove}},[a("i",{staticClass:"el-icon-plus"})])],1):e._e()],1),e._v(" "),1===e.type?[a("el-col",{attrs:{span:4}},[a("label",[e._v("邀请码")])]),e._v(" "),a("el-col",{attrs:{span:8}},[1===e.type?a("span",[e._v(e._s(e.teacherDetail.invite_code))]):e._e()])]:e._e()],2)],1),e._v(" "),1!==e.type?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.sub}},[e._v("确 定")])],1):e._e()],1)])},staticRenderFns:[]};var r=a("VU/8")(o,n,!1,function(e){a("L8wl"),a("EYXI")},"data-v-72359ab0",null).exports,c={name:"index",data:function(){return{searchFrom:{name:""},userList:[],total:0,nowPage:0,dialogObj:{type:0,show:!1,id:""},teacherTypeOption:[{id:0,label:"老师"},{id:1,label:"新星妈妈"},{id:2,label:"推广人"},{id:3,label:"市场"}]}},components:{page:i.a,dialogCom:r},filters:{teacherType:function(e){return s.i[e]}},mounted:function(){this.getUser()},methods:{getUser:function(){var e=this;Object(l._21)(this.searchFrom).then(function(t){e.userList=t.list,e.total=t.total})},edit:function(e){this.dialogObj.id=e.id,this.dialogObj.type=2,this.dialogObj.show=!0},add:function(){this.dialogObj.type=0,this.dialogObj.show=!0},detail:function(e){this.dialogObj.id=e.id,this.dialogObj.type=1,this.dialogObj.show=!0},delTeacher:function(e){var t=this;this.$confirm("此操作将删除该账号?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(l.y)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.getUser()})})},changeShow:function(e){this.dialogObj.show=e}}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"user"},[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:"昵称"}},[a("el-input",{model:{value:e.searchFrom.name,callback:function(t){e.$set(e.searchFrom,"name",t)},expression:"searchFrom.name"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"教师类型"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.searchFrom.type,callback:function(t){e.$set(e.searchFrom,"type",t)},expression:"searchFrom.type"}},e._l(e.teacherTypeOption,function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})}))],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getUser}},[e._v("搜索")])],1)],1),e._v(" "),a("el-col",{attrs:{span:4,offset:8}},[a("el-form-item",[a("el-button",{attrs:{type:"success",plain:""},on:{click:e.add}},[e._v("新增教师")])],1)],1)],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.userList}},[a("el-table-column",{attrs:{prop:"id",label:"账号ID"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"alias",label:"微信号"}}),e._v(" "),a("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0===t.row.status?"正常":"禁用")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"invite_code",label:"邀请码"}}),e._v(" "),a("el-table-column",{attrs:{label:"二维码"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("a",{attrs:{href:e.row.qr}},[a("img",{staticClass:"shortcut",attrs:{src:e.row.qr}})])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"类别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("teacherType")(t.row.type))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"180",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(" "),a("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(a){e.delTeacher(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),a("page",{attrs:{total:e.total},model:{value:e.nowPage,callback:function(t){e.nowPage=t},expression:"nowPage"}}),e._v(" "),a("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.getUser}})],1)},staticRenderFns:[]};var p=a("VU/8")(c,u,!1,function(e){a("jF1g")},"data-v-61724be5",null);t.default=p.exports},jF1g:function(e,t){}});
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
webpackJsonp([29],{EDmx:function(e,n){},IcnI:function(e,n,t){"use strict";var a=t("7+uW"),o=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)},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})}}};a.default.use(o.a);n.a=new o.a.Store({state:{show:!1,userName:"",token:"",mainLoad:!0,menuList:[{name:"",value:"教研管理",icon:"icon-material",list:[{value:"教材列表",routerName:"resources",path:"/resources"}]},{name:"",value:"课程管理",icon:"icon-kecheng",list:[{value:"课程列表",routerName:"lesson",path:"/lesson"},{value:"期数列表",routerName:"periods",path:"/periods"},{value:"班级列表",routerName:"class",path:"/class"},{value:"不上课日期",routerName:"noLesson",path:"/noLesson"}]},{name:"",value:"人员管理",icon:"icon-laoshi",list:[{value:"教师列表",routerName:"teacher",path:"/teacher"},{value:"用户列表",routerName:"user",path:"/user"}]},{name:"",value:"商品管理",icon:"icon-shangpin1",list:[{value:"商品列表",routerName:"shop",path:"/shop"}]},{name:"",value:"订单管理",icon:"icon-dingdan",list:[{value:"订单列表",routerName:"order",path:"/order"},{value:"退款列表",routerName:"refund",path:"/refund"},{value:"提现列表",routerName:"putForward",path:"/putForward"},{value:"发货管理",routerName:"consignment",path:"/consignment"}]},{name:"",value:"实物管理",icon:"icon-shu",list:[{value:"单品列表",routerName:"single",path:"/single"},{value:"盒子列表",routerName:"box",path:"/box"}]},{name:"",value:"公众号",icon:"icon-ai-weixin",list:[{value:"关注自动回复",routerName:"focusReply",path:"/focusReply"},{value:"关键词回复",routerName:"autoReply",path:"/autoReply"},{value:"公众号菜单",routerName:"weChat",path:"/weChat"},{value:"素材管理",routerName:"weChatResource",path:"/weChatResource"},{value:"Banner管理",routerName:"banner",path:"/banner"}]},{name:"",value:"系统管理",icon:"icon-shezhi",list:[{value:"账号管理",routerName:"admin",path:"/admin"},{value:"角色管理",routerName:"role",path:"/role"},{value:"菜单管理",routerName:"menu",path:"/menu"},{value:"系统配置",routerName:"sysConfig",path:"/sysConfig"}]}],menuType:!1,nowTab:"first",progressList:[],openedTab:[{value:"首页",routerName:"first",name:"first",delNo:!0,path:"/index"}]},mutations:i,actions:{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)}}})},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=t("7+uW"),o={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},staticRenderFns:[]};var r=t("VU/8")({name:"App",data:function(){return{}}},o,!1,function(e){t("EDmx")},null,null).exports,i=t("YaEn"),u=t("zL8q"),c=t.n(u),s=(t("tvR6"),t("IcnI"));a.default.use(c.a),a.default.config.productionTip=!1,new a.default({el:"#app",store:s.a,router:i.a,components:{App:r},template:"<App/>"})},YaEn:function(e,n,t){"use strict";var a=t("7+uW"),o=t("IcnI"),r=t("/ocq"),i=t("zSLJ");a.default.use(r.a);var u=new r.a({routes:[{path:"/login",name:"login",component:function(e){return Promise.all([t.e(0),t.e(12)]).then(function(){var n=[t("0HId")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}},{path:"/",name:"index",component:function(e){return Promise.all([t.e(0),t.e(3)]).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(2).then(function(){var n=[t("sJm1")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/help",name:"help",component:function(e){return t.e(26).then(function(){var n=[t("kBw/")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/putForward",name:"putForward",component:function(e){return Promise.all([t.e(0),t.e(18)]).then(function(){var n=[t("F5pf")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/refund",name:"refund",component:function(e){return Promise.all([t.e(0),t.e(21)]).then(function(){var n=[t("89rD")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/noLesson",name:"noLesson",component:function(e){return Promise.all([t.e(0),t.e(11)]).then(function(){var n=[t("sg/1")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/banner",name:"banner",component:function(e){return Promise.all([t.e(0),t.e(15)]).then(function(){var n=[t("CGL6")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/weChatResource",name:"weChatResource",component:function(e){return Promise.all([t.e(0),t.e(25)]).then(function(){var n=[t("Xhqp")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/menu",name:"menu",component:function(e){return Promise.all([t.e(0),t.e(22)]).then(function(){var n=[t("aTXs")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/focusReply",name:"focusReply",component:function(e){return Promise.all([t.e(0),t.e(23)]).then(function(){var n=[t("CK6D")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/weChat",name:"weChat",component:function(e){return Promise.all([t.e(0),t.e(24)]).then(function(){var n=[t("q5av")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/autoReply",name:"autoReply",component:function(e){return Promise.all([t.e(0),t.e(13)]).then(function(){var n=[t("65NY")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/resources",name:"resources",component:function(e){return Promise.all([t.e(1),t.e(0)]).then(function(){var n=[t("z5EG")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{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)}},{path:"/shop",name:"shop",component:function(e){return Promise.all([t.e(0),t.e(17)]).then(function(){var n=[t("1djJ")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{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)}},{path:"/single",name:"single",component:function(e){return Promise.all([t.e(0),t.e(6)]).then(function(){var n=[t("B31M")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/box",name:"box",component:function(e){return Promise.all([t.e(0),t.e(4)]).then(function(){var n=[t("+vCD")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/lesson",name:"lesson",component:function(e){return Promise.all([t.e(0),t.e(9)]).then(function(){var n=[t("AbSL")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/user",name:"user",component:function(e){return Promise.all([t.e(0),t.e(16)]).then(function(){var n=[t("jFLA")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/teacher",name:"teacher",component:function(e){return Promise.all([t.e(0),t.e(7)]).then(function(){var n=[t("Y0Vi")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/admin",name:"admin",component:function(e){return Promise.all([t.e(0),t.e(19)]).then(function(){var n=[t("+jTk")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/role",name:"role",component:function(e){return Promise.all([t.e(0),t.e(20)]).then(function(){var n=[t("Vt1u")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/class",name:"class",component:function(e){return Promise.all([t.e(0),t.e(8)]).then(function(){var n=[t("OX9A")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/order",name:"order",component:function(e){return Promise.all([t.e(0),t.e(5)]).then(function(){var n=[t("2qmY")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/sysConfig",name:"sysConfig",component:function(e){return Promise.all([t.e(0),t.e(14)]).then(function(){var n=[t("gaNG")];e.apply(null,n)}.bind(this)).catch(t.oe)}}]}]});u.beforeEach(function(e,n,t){if(o.a.commit("mainCanShow"),i.a.get("cc_token")&&(o.a.dispatch("setToken",i.a.get("cc_token")),null!==i.a.get("cc_user_name")&&o.a.dispatch("setUserName",i.a.get("cc_user_name"))),o.a.state.nowTab=e.name,e.matched.length>1&&"first"!==e.name){for(var a=void 0,r=0;r<o.a.state.menuList.length;r++)for(var u=o.a.state.menuList[r],c=0;c<u.list.length;c++){var s=u.list[c];s.path===e.path&&(a=s)}o.a.state.openedTab.indexOf(a)<0&&o.a.state.openedTab.push(a)}e.matched.some(function(e){return!0!==e.meta.skip_auth})&&!o.a.state.token?t({path:"/login"}):t()}),n.a=u},tvR6:function(e,n){},zSLJ:function(e,n,t){"use strict";n.a={set:function(e,n,t){var a=new Date;a.setTime(a.getTime()+864e5*t),window.document.cookie=e+"="+n+";path=/;expires="+a.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(r){var n=window.webpackJsonp;window.webpackJsonp=function(e,u,c){for(var f,i,p,a=0,l=[];a<e.length;a++)i=e[a],o[i]&&l.push(o[i][0]),o[i]=0;for(f in u)Object.prototype.hasOwnProperty.call(u,f)&&(r[f]=u[f]);for(n&&n(e,u,c);l.length;)l.shift()();if(c)for(a=0;a<c.length;a++)p=t(t.s=c[a]);return p};var e={},o={2:0};function t(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return r[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=r,t.c=e,t.d=function(r,n,e){t.o(r,n)||Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:e})},t.n=function(r){var n=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(n,"a",n),n},t.o=function(r,n){return Object.prototype.hasOwnProperty.call(r,n)},t.p="/",t.oe=function(r){throw console.error(r),r}}([]);
//# sourceMappingURL=manifest.2ae2e69a05c33dfc65f8.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap 9e39251c8e7efe3ea083"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","p","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,EAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAAT,EAGAE,EAAAQ,EAAAN,EAGAF,EAAAS,EAAA,SAAAL,EAAAM,EAAAC,GACAX,EAAAY,EAAAR,EAAAM,IACAhB,OAAAmB,eAAAT,EAAAM,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAX,EAAAiB,EAAA,SAAAZ,GACA,IAAAM,EAAAN,KAAAa,WACA,WAA2B,OAAAb,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAO,EAAAC,GAAsD,OAAA1B,OAAAC,UAAAC,eAAAC,KAAAsB,EAAAC,IAGtDpB,EAAAqB,EAAA,IAGArB,EAAAsB,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.2ae2e69a05c33dfc65f8.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 9e39251c8e7efe3ea083"],"sourceRoot":""}
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,t,o){for(var d,f,b,i=0,u=[];i<a.length;i++)f=a[i],n[f]&&u.push(n[f][0]),n[f]=0;for(d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d]);for(c&&c(a,t,o);u.length;)u.shift()();if(o)for(i=0;i<o.length;i++)b=r(r.s=o[i]);return b};var a={},n={30:0};function r(c){if(a[c])return a[c].exports;var n=a[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var c=n[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,r){c=n[e]=[a,r]});c[2]=a;var t=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,r.nc&&o.setAttribute("nonce",r.nc),o.src=r.p+"static/js/"+e+"."+{0:"583b4eb0f6f3e6c13eaa",1:"ce2973acb99cfebacaf9",2:"584411714d0b5f26a217",3:"8a6a28fbd223a63bc2cd",4:"bd5c173d0eb4de6315f8",5:"e5de567eb38120d6b4a9",6:"767c8657d25c914313c7",7:"4a84f642c2a3f83e638e",8:"57e2db840a808ce2ced8",9:"f9131bc68541893b9acc",10:"c90556eb1d15f32fbaa0",11:"d2c883a2e4e7d089161c",12:"97aa15dfa6372a8342af",13:"84c834746d37d3a438c8",14:"b9d865c60a97c3320e94",15:"289b730dd367bd6dd34e",16:"7e598c07db6d0aa3c107",17:"debab6cfeb44ffe851b7",18:"0a15b73b9a3514d6998a",19:"93fce3dd153e8e41d44f",20:"44c717089be882c1014b",21:"91b08118728a6c3ea6b2",22:"29c204f2840036c97de6",23:"0d6a8c705acf42f750ef",24:"152a8c1d16f020ccd100",25:"2ee7e65c23944db3c247",26:"5b14669e851629419baf",27:"aed1710fdee959b271f5"}[e]+".js";var d=setTimeout(f,12e4);function f(){o.onerror=o.onload=null,clearTimeout(d);var c=n[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return o.onerror=o.onload=f,t.appendChild(o),a},r.m=e,r.c=a,r.d=function(e,c,a){r.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},r.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(c,"a",c),c},r.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},r.p="/",r.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -2,33 +2,6 @@ import Vue from 'vue'
import store from "@/store"
import Router from 'vue-router'
import Cookie from '../util/cookie'
import index from '@/components/framework'
import main from '@/components/main'
import login from '@/components/login'
import resources from '@/components/resources'
import admin from '@/components/system/admin'
import role from '@/components/system/role'
import menu from '@/components/system/menu'
import user from '@/components/user'
import teacher from '@/components/teacher'
import lesson from '@/components/lesson'
import box from '@/components/box'
import single from '@/components/single'
import periods from '@/components/periods'
import classList from '@/components/class'
import order from '@/components/order'
import shop from '@/components/shop'
import consignment from '@/components/consignment'
import focusReply from '@/components/weChat/focusReply'
import weChat from '@/components/weChat'
import help from '@/components/help'
import sysConfig from '@/components/system/sysConfig'
import autoReply from '@/components/weChat/autoReply'
import weChatResource from '@/components/weChat/weChatResource'
import banner from '@/components/system/banner'
import noLesson from '@/components/noLesson'
import putForward from '@/components/putForward'
import refund from '@/components/refund'
Vue.use(Router);
......@@ -37,7 +10,7 @@ const router =new Router({
{
path:'/login',
name:'login',
component:login,
component: e=>require(['@/components/login'],e),
meta:{
skip_auth:true,
}
......@@ -45,110 +18,110 @@ const router =new Router({
{
path: '/',
name: 'index',
component: index,
component: e=>require(['@/components/framework'],e),
redirect:{name:'first'},
children:[
{
path: '',
name:'first',
component: main
component: e=>require(['@/components/main'],e),
},{
path: '/help',
name:'help',
component: help
component: e=>require(['@/components/help'],e),
},{
path: '/putForward',
name:'putForward',
component: putForward
component: e=>require(['@/components/putForward'],e),
},{
path: '/refund',
name:'refund',
component: refund
component: e=>require(['@/components/refund'],e),
},{
path: '/noLesson',
name:'noLesson',
component: noLesson
component: e=>require(['@/components/noLesson'],e),
},{
path: '/banner',
name:'banner',
component: banner
component: e=>require(['@/components/system/banner'],e),
},{
path: '/weChatResource',
name:'weChatResource',
component: weChatResource
component: e=>require(['@/components/weChat/weChatResource'],e),
},{
path: '/menu',
name:'menu',
component: menu
component: e=>require(['@/components/system/menu'],e),
},{
path: '/focusReply',
name:'focusReply',
component: focusReply
component: e=>require(['@/components/weChat/focusReply'],e),
},{
path: '/weChat',
name:'weChat',
component: weChat
component: e=>require(['@/components/weChat'],e),
},{
path: '/autoReply',
name:'autoReply',
component: autoReply
component: e=>require(['@/components/weChat/autoReply'],e),
},{
path: '/resources',
name:'resources',
component: resources
component: e=>require(['@/components/resources'],e),
},{
path: '/periods',
name:'periods',
component: periods
component: e=>require(['@/components/periods'],e),
},{
path: '/shop',
name:'shop',
component: shop
component: e=>require(['@/components/shop'],e),
},{
path: '/consignment',
name:'consignment',
component: consignment
component: e=>require(['@/components/consignment'],e),
},{
path: '/single',
name:'single',
component: single
component: e=>require(['@/components/single'],e),
},{
path: '/box',
name:'box',
component: box
component: e=>require(['@/components/box'],e),
},{
path: '/lesson',
name:'lesson',
component: lesson
component: e=>require(['@/components/lesson'],e),
},{
path: '/user',
name:'user',
component: user
component: e=>require(['@/components/user'],e),
},{
path: '/teacher',
name:'teacher',
component: teacher
component: e=>require(['@/components/teacher'],e),
},{
path: '/admin',
name:'admin',
component: admin
component: e=>require(['@/components/system/admin'],e),
},{
path: '/role',
name:'role',
component: role
component: e=>require(['@/components/system/role'],e),
},
{
path: '/class',
name:'class',
component: classList
component: e=>require(['@/components/class'],e),
},{
path: '/order',
name:'order',
component: order
component: e=>require(['@/components/order'],e),
},{
path: '/sysConfig',
name:'sysConfig',
component: sysConfig
component: e=>require(['@/components/system/sysConfig'],e),
},
]
}
......
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