Commit 57ce7470 authored by wangwei's avatar wangwei

分销

parent b357f92b
...@@ -12,8 +12,8 @@ module.exports = { ...@@ -12,8 +12,8 @@ module.exports = {
//本地代理设置 //本地代理设置
proxyTable: { proxyTable: {
'/api': { '/api': {
// target: 'http://local.base-api.sing.com', // 接口的域名 target: 'http://local.base-api.sing.com', // 接口的域名
target: 'https://wechat-test.changchangenglish.com/', // target: 'https://wechat-test.changchangenglish.com/',
changeOrigin: true, // 如果接口跨域,需要进行这个参数配置 changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
} }
}, },
......
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https://at.alicdn.com/t/font_746649_7dsnjecwkpg.css><title>唱唱启蒙-后台</title><link href=/static/css/app.1295c42d8334d473da7d78ac3f2c8c0a.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.6daa63f5add26851711d.js></script><script type=text/javascript src=/static/js/vendor.f24ca1a9ea210948d5fd.js></script><script type=text/javascript src=/static/js/app.66d652e75dff7ebf09e6.js></script></body><script>let el = document.getElementsByTagName("script"); <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https://at.alicdn.com/t/font_746649_7dsnjecwkpg.css><title>唱唱启蒙-后台</title><link href=/static/css/app.1295c42d8334d473da7d78ac3f2c8c0a.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.b6790505298575fff725.js></script><script type=text/javascript src=/static/js/vendor.f24ca1a9ea210948d5fd.js></script><script type=text/javascript src=/static/js/app.66d652e75dff7ebf09e6.js></script></body><script>let el = document.getElementsByTagName("script");
el.onerror = function(a,b,c){ el.onerror = function(a,b,c){
console.log('error:',a,b,c); console.log('error:',a,b,c);
}; };
......
webpackJsonp([24],{"1djJ":function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=s("CCn6"),i=s("+TkF"),n=s("kmJW"),a={name:"dialogObj",props:["dialogObj"],data:function(){return{loading:!0,form:{name:"",goods_type:1,goods_desc:{desc:"",imgLesson:[],img:[]},course_id:"",course_type:0,watch_num:"",duration_num:0,original_price:"",current_price:"",is_real:0,is_auth_user:0,share_desc:{title:"",content:"",img:[]},desc:{detail:"",qa:"",customer_service:[]}},lessonList:[]}},methods:{sub:function(){var e=this,t=JSON.parse(JSON.stringify(this.form)+"");switch(t.original_price=(100*t.original_price).toFixed(0),t.current_price=(100*t.current_price).toFixed(0),t.goods_desc=JSON.stringify(t.goods_desc),t.desc=JSON.stringify(t.desc),t.share_desc=JSON.stringify(t.share_desc),this.dialogObj.type){case 1:Object(o.Q)(this.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.dialogObj.show=!1});break;case 0:Object(o.i)(t).then(function(t){e.$message({type:"success",message:"新增成功!"}),e.$emit("reflash"),e.dialogObj.show=!1})}},removeFileMain:function(e){var t=this.form.goods_desc.img.findIndex(function(t){return t.name===e.name});this.form.goods_desc.img.splice(t,1)},uploadFileLesson:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(o._58)({file:e.file,type:"local"}).then(function(e){t.form.goods_desc.imgLesson=[{name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""}],t.$message({message:"上传成功",type:"success"})})},removeFileLesson:function(){this.form.goods_desc.imgLesson=[]},uploadFileMain:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(o._58)({file:e.file,type:"local"}).then(function(e){t.form.goods_desc.img.push({name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""}),t.$message({message:"上传成功",type:"success"})})},uploadFileMainShare:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(o._58)({file:e.file,type:"local"}).then(function(e){t.$message({message:"上传成功",type:"success"}),t.form.share_desc.img?t.form.share_desc.img[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.share_desc.img=[],t.form.share_desc.img[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},uploadFileMainService:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(o._58)({file:e.file,type:"local"}).then(function(e){t.$message({message:"上传成功",type:"success"}),t.form.desc.customer_service?t.form.desc.customer_service[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.desc.customer_service=[],t.form.desc.customer_service[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},uploadFileShare:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(o._58)({file:e.file,type:"local"}).then(function(e){t.$message({message:"上传成功",type:"success"}),t.form.share_desc.img?t.form.share_desc.img[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.share_desc.img=[],t.form.share_desc.img[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},initDialog:function(){var e=this;switch(this.dialogObj.type){case 0:this.loading=!1,this.form={name:"",goods_type:1,goods_desc:{desc:"",img:[]},course_id:"",course_type:0,watch_num:"",duration_num:0,original_price:"",current_price:"",is_real:0,is_auth_user:0,share_desc:{title:"",content:"",img:[]},desc:{detail:"",qa:"",customer_service:[]}},this.getLessonList();break;case 1:case 2:Object(o._16)(this.dialogObj.id).then(function(t){e.loading=!1,e.form={name:t.name,goods_type:t.goods_type,goods_desc:JSON.parse(t.goods_desc),course_id:t.course_id,course_type:t.course_type,watch_num:t.watch_num,duration_num:t.duration_num,original_price:t.original_price/100,current_price:t.current_price/100,is_real:t.is_real,is_auth_user:t.is_auth_user,share_desc:JSON.parse(t.share_desc),desc:JSON.parse(t.desc),invite_earnings:t.invite_earnings,is_auth_teacher:t.is_auth_teacher},e.getLessonList()});break;case 3:this.title="编辑",this.show=this.dialogObj.show,this.id=this.dialogObj.id,this.type=2}},changeLessonType:function(){this.getLessonList()},getLessonList:function(){var e=this;Object(o._18)({type:this.form.course_type}).then(function(t){e.lessonList=t.list})}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},l=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-dialog",{attrs:{title:e.dialogObj.title,center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[s("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px",disabled:2===e.dialogObj.type}},[s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"商品名称"}},[s("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"商品描述"}},[s("el-input",{model:{value:e.form.goods_desc.desc,callback:function(t){e.$set(e.form.goods_desc,"desc",t)},expression:"form.goods_desc.desc"}})],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"课程类型"}},[s("el-select",{attrs:{placeholder:"请选择"},on:{change:function(t){e.changeLessonType()}},model:{value:e.form.course_type,callback:function(t){e.$set(e.form,"course_type",t)},expression:"form.course_type"}},[s("el-option",{attrs:{label:"日课",value:1}}),e._v(" "),s("el-option",{attrs:{label:"月课",value:0}})],1)],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"课程"}},[s("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.course_id,callback:function(t){e.$set(e.form,"course_id",t)},expression:"form.course_id"}},e._l(e.lessonList,function(e){return s("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})}))],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"观看时长(节)"}},[s("el-input-number",{attrs:{label:"课时数"},model:{value:e.form.watch_num,callback:function(t){e.$set(e.form,"watch_num",t)},expression:"form.watch_num"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"续看时长(天)"}},[s("el-input-number",{attrs:{label:"看课天数"},model:{value:e.form.duration_num,callback:function(t){e.$set(e.form,"duration_num",t)},expression:"form.duration_num"}})],1)],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"课程封面(750*600)"}},[s("el-upload",{staticClass:"upload-demo",attrs:{"list-type":"picture-card",action:"/api/public/upload","http-request":e.uploadFileLesson,"on-remove":e.removeFileLesson,limit:1,"file-list":e.form.goods_desc.imgLesson}},[s("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),s("el-form-item",{attrs:{label:"主图(750*600)"}},[s("el-upload",{staticClass:"upload-demo",attrs:{"list-type":"picture-card",action:"/api/public/upload","http-request":e.uploadFileMain,"on-remove":e.removeFileMain,"file-list":e.form.goods_desc.img}},[s("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),s("el-form-item",{attrs:{label:"客服(200*200)"}},[s("el-upload",{staticClass:"upload-demo",class:e.form.desc.customer_service&&e.form.desc.customer_service.length>0?"uploadService":"",attrs:{"list-type":"picture-card",action:"/api/public/upload",limit:1,"http-request":e.uploadFileMainService,"file-list":e.form.desc.customer_service}},[s("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"商品类型"}},[s("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.goods_type,callback:function(t){e.$set(e.form,"goods_type",t)},expression:"form.goods_type"}},[s("el-option",{attrs:{label:"普通商品",value:1}}),e._v(" "),s("el-option",{attrs:{label:"团购商品",value:2}})],1)],1)],1)],1),e._v(" "),1===e.form.goods_type?s("el-form-item",{attrs:{label:"推荐奖金(元)"}},[s("el-input-number",{attrs:{label:"推荐奖金"},model:{value:e.form.invite_earnings,callback:function(t){e.$set(e.form,"invite_earnings",t)},expression:"form.invite_earnings"}})],1):e._e(),e._v(" "),s("el-form-item",{attrs:{label:"是否配置实物"}},[s("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_real,callback:function(t){e.$set(e.form,"is_real",t)},expression:"form.is_real"}}),e._v(" "),s("span",{staticStyle:{"font-size":"12px"}},[e._v("打开后提示用户填写具体住址")])],1),e._v(" "),1===e.form.goods_type?s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"是否允许用户推广","label-width":"200"}},[s("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_auth_user,callback:function(t){e.$set(e.form,"is_auth_user",t)},expression:"form.is_auth_user"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"是否允许老师推广","label-width":"200"}},[s("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_auth_teacher,callback:function(t){e.$set(e.form,"is_auth_teacher",t)},expression:"form.is_auth_teacher"}})],1)],1)],1):e._e(),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:1===e.form.goods_type?"原价(元)":"单买价格(元)"}},[s("el-input-number",{attrs:{label:"原价"},model:{value:e.form.original_price,callback:function(t){e.$set(e.form,"original_price",t)},expression:"form.original_price"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:1===e.form.goods_type?"现价(元)":"拼团价格(元)"}},[s("el-input-number",{attrs:{label:"现价"},model:{value:e.form.current_price,callback:function(t){e.$set(e.form,"current_price",t)},expression:"form.current_price"}})],1)],1)],1),e._v(" "),2===e.form.goods_type?s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"成团人数(人)"}},[s("el-input-number",{attrs:{label:"成团人数"},model:{value:e.form.desc.group_number,callback:function(t){e.$set(e.form.desc,"group_number",t)},expression:"form.desc.group_number"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"团购失效时间(小时)","label-width":"136"}},[s("el-input-number",{attrs:{label:"团购失效时间"},model:{value:e.form.desc.group_continue,callback:function(t){e.$set(e.form.desc,"group_continue",t)},expression:"form.desc.group_continue"}})],1)],1)],1):e._e(),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"分享标题"}},[s("el-input",{model:{value:e.form.share_desc.title,callback:function(t){e.$set(e.form.share_desc,"title",t)},expression:"form.share_desc.title"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"分享内容"}},[s("el-input",{model:{value:e.form.share_desc.content,callback:function(t){e.$set(e.form.share_desc,"content",t)},expression:"form.share_desc.content"}})],1)],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"分享主图(300*300)"}},[s("el-upload",{attrs:{"list-type":"picture-card",action:"/api/public/upload",limit:1,"file-list":e.form.share_desc.img,"http-request":e.uploadFileMainShare}},[s("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"商品详情"}},[s("el-input",{attrs:{type:"textarea",rows:25},model:{value:e.form.desc.detail,callback:function(t){e.$set(e.form.desc,"detail",t)},expression:"form.desc.detail"}})],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"购买须知"}},[s("el-input",{attrs:{type:"textarea",rows:25},model:{value:e.form.desc.qa,callback:function(t){e.$set(e.form.desc,"qa",t)},expression:"form.desc.qa"}})],1)],1)],1)],1),e._v(" "),2!==e.dialogObj.type?s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1):e._e()],1)])};l._withStripped=!0;var r={render:l,staticRenderFns:[]},c=r;var d=!1;var u=s("VU/8")(a,c,!1,function(e){d||s("7XPy")},"data-v-0134c3a4",null);u.options.__file="src\\components\\shop\\dialog.vue";var m=u.exports,p={name:"index",data:function(){return{searchFrom:{name:""},userList:[],total:0,nowPage:1,limit:10,chooseDialog:{show:!1,title:"",id:"",form:{value:"",list:[]},type:0},dialogObj:{type:0,show:!1,title:"",id:""},classList:[]}},components:{page:n.a,dialogCom:m},filters:{isOrNot:function(e){return i.h[e]},goodsType:function(e){return i.e[e]},lessonType:function(e){return i.i[e]},goodsStatus:function(e){return i.d[e]}},mounted:function(){this.getUser(),this.getClassList()},methods:{onPageChange:function(e){this.nowPage=e,this.getUser()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getUser()},copyShop:function(e){var t=this;this.$confirm("此操作将复制该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.s)(e.id).then(function(e){t.$message({type:"success",message:"复制成功!"})}),t.getUser()})},copyUrl:function(e){var t="https://wechat-test.changchangenglish.com/#/buyDetail?shopId="+e,s=document.createElement("input");s.value=t,document.body.appendChild(s),s.select(),document.execCommand("Copy"),this.$message({message:"已成功复制到剪切板",type:"success"}),s.remove()},dialogSub:function(){var e=this;switch(this.chooseDialog.type){case 0:Object(o.o)(this.chooseDialog.id,this.chooseDialog.form.value).then(function(t){e.$message({message:"绑定成功",type:"success"}),e.chooseDialog.show=!1}),this.getUser();break;case 1:var t={conflict_goods_ids:this.chooseDialog.form.list.toString()};Object(o.r)(this.chooseDialog.id,t).then(function(t){e.$message({message:"设置成功",type:"success"}),e.chooseDialog.show=!1,e.getUser()})}},getUser:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.name&&(t.name=this.searchFrom.name),this.searchFrom.course_id&&(t.course_id=this.searchFrom.course_id),this.searchFrom.status&&(t.status=this.searchFrom.status),this.searchFrom.current_price&&(t.current_price=100*this.searchFrom.current_price),Object(o._17)(t).then(function(t){t.list.forEach(function(e){""===e.conflict_goods_ids?e.conflict_goods_ids=[]:e.conflict_goods_ids=e.conflict_goods_ids.split(",")}),e.userList=t.list,e.total=t.total})},edit:function(e){this.dialogObj={type:1,title:"编辑商品",show:!0,id:e.id}},add:function(){this.dialogObj={type:0,title:"添加商品",show:!0}},detail:function(e){this.dialogObj.id=e.id,this.dialogObj.type=2,this.dialogObj.title="查看商品",this.dialogObj.show=!0},onDel:function(e){var t=this;this.$confirm("此操作将删除该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.H)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"})}),t.getUser()})},onUp:function(e){var t=this;this.$confirm("此操作将上架该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o._53)(e.id).then(function(e){t.$message({type:"success",message:"操作成功!"}),t.getUser()})})},onDown:function(e){var t=this;this.$confirm("此操作将下架该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.J)(e.id).then(function(e){t.$message({type:"success",message:"操作成功!"}),t.getUser()})})},changeShow:function(e){this.dialogObj.show=e},bindOther:function(e){this.chooseDialog={show:!0,title:"绑定商品",id:e.id,form:{value:"",list:[]},type:0}},conflict:function(e){this.chooseDialog={show:!0,title:"冲突商品",id:e.id,form:{value:"",list:e.conflict_goods_ids},type:1}},getClassList:function(){var e=this;Object(o._18)({limit:2e3,page:1}).then(function(t){e.classList=t.list})}}},f=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"user"},[s("el-form",{ref:"searchFrom",staticClass:"search-form",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[s("el-form-item",{attrs:{label:"商品名称"}},[s("el-input",{model:{value:e.searchFrom.name,callback:function(t){e.$set(e.searchFrom,"name",t)},expression:"searchFrom.name"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"课程"}},[s("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getUser},model:{value:e.searchFrom.course_id,callback:function(t){e.$set(e.searchFrom,"course_id",t)},expression:"searchFrom.course_id"}},[s("el-option",{attrs:{value:"",label:"请选择"}}),e._v(" "),e._l(e.classList,function(e,t){return s("el-option",{key:t,attrs:{label:e.title,value:e.id}})})],2)],1),e._v(" "),s("el-form-item",{attrs:{label:"商品状态"}},[s("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getUser},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},[s("el-option",{attrs:{value:"",label:"请选择"}}),e._v(" "),s("el-option",{attrs:{value:"0",label:"编辑中"}}),e._v(" "),s("el-option",{attrs:{value:"1",label:"上架"}}),e._v(" "),s("el-option",{attrs:{value:"2",label:"下架"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"商品现价/团购价","label-width":"120px"}},[s("el-input-number",{model:{value:e.searchFrom.current_price,callback:function(t){e.$set(e.searchFrom,"current_price",t)},expression:"searchFrom.current_price"}})],1),e._v(" "),s("el-form-item",[s("div",{staticClass:"search-btn-block"},[s("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-search"},on:{click:e.getUser}},[e._v("搜索")])],1)])],1),e._v(" "),s("div",{staticClass:"new-block"},[e.$store.state.readonly?e._e():s("el-button",{attrs:{type:"success",plain:""},on:{click:e.add}},[e._v("添加商品")])],1),e._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.userList}},[s("el-table-column",{attrs:{prop:"name",label:"名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("router-link",{attrs:{to:{name:"periods",query:{goods_id:t.row.id}}}},[e._v("\n "+e._s(t.row.name)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"商品类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("goodsType")(t.row.goods_type))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"商品原价/直购价"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.original_price/100)+"元\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"商品现价/团购价"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.current_price/100)+"元\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"course_title",label:"课程名称"}}),e._v(" "),s("el-table-column",{attrs:{label:"课程类别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("lessonType")(t.row.course_type))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"是否有实物"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("isOrNot")(t.row.is_real))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("goodsStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{width:"60",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-popover",{attrs:{placement:"top",width:"600"}},[s("div",{staticStyle:{"text-align":"center"}},[s("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(s){e.detail(t.row)}}},[e._v("\n 查看详情\n ")]),e._v(" "),s("el-button",{attrs:{size:"mini",plain:""},on:{click:function(s){e.copyUrl(t.row.id)}}},[e._v("\n 复制链接\n ")]),e._v(" "),e.$store.state.readonly?e._e():[2===t.row.status||0===t.row.status?s("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(s){e.onUp(t.row)}}},[e._v("\n 上架\n ")]):e._e(),e._v(" "),1===t.row.status?s("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(s){e.onDown(t.row)}}},[e._v("\n 下架\n ")]):e._e(),e._v(" "),s("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(s){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),s("el-button",{attrs:{size:"mini",plain:"",type:"success"},on:{click:function(s){e.copyShop(t.row)}}},[e._v("\n 复制商品\n ")]),e._v(" "),2===t.row.status?s("el-button",{attrs:{size:"mini",plain:""},on:{click:function(s){e.bindOther(t.row)}}},[e._v("\n 绑定商品\n ")]):e._e(),e._v(" "),s("el-button",{attrs:{size:"mini",plain:""},on:{click:function(s){e.conflict(t.row)}}},[e._v("\n 冲突商品\n ")]),e._v(" "),e.$store.state.deletePermission?s("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(s){e.onDel(t.row)}}},[e._v("\n 删除\n ")]):e._e()]],2),e._v(" "),s("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),s("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),s("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.getUser}}),e._v(" "),s("el-dialog",{attrs:{title:e.chooseDialog.title,visible:e.chooseDialog.show,width:"30%"},on:{"update:visible":function(t){e.$set(e.chooseDialog,"show",t)}}},[s("el-form",{ref:"form",attrs:{"label-width":"80px"}},[0===e.chooseDialog.type?s("el-form-item",{attrs:{label:"绑定商品"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.chooseDialog.form.value,callback:function(t){e.$set(e.chooseDialog.form,"value",t)},expression:"chooseDialog.form.value"}},e._l(e.userList,function(e){return s("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e(),e._v(" "),1===e.chooseDialog.type?s("el-form-item",{attrs:{label:"冲突商品"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",multiple:""},model:{value:e.chooseDialog.form.list,callback:function(t){e.$set(e.chooseDialog.form,"list",t)},expression:"chooseDialog.form.list"}},e._l(e.userList,function(e){return s("el-option",{key:e.id,attrs:{label:e.name,value:e.id.toString()}})}))],1):e._e()],1),e._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.chooseDialog.show=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogSub()}}},[e._v("确 定")])],1)],1)],1)};f._withStripped=!0;var h={render:f,staticRenderFns:[]},g=h;var _=!1;var v=s("VU/8")(p,g,!1,function(e){_||s("Y727")},"data-v-7fddce5c",null);v.options.__file="src\\components\\shop\\index.vue";t.default=v.exports},"7XPy":function(e,t,s){var o=s("bG7/");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);s("rjj0")("4763fb45",o,!1,{})},Y727:function(e,t,s){var o=s("totp");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);s("rjj0")("5f457a2b",o,!1,{})},"bG7/":function(e,t,s){(e.exports=s("FZ+f")(!0)).push([e.i,"\n.el-col[data-v-0134c3a4] {\n min-height: 50px;\n text-align: center;\n margin-bottom: 10px;\n line-height: 40px;\n}\n.el-col .el-select[data-v-0134c3a4],\n.el-col .el-select[data-v-0134c3a4] {\n width: 100%;\n}\n.el-col img[data-v-0134c3a4] {\n width: 50px;\n border-radius: 100px;\n}\n.el-col label[data-v-0134c3a4] {\n color: #5982e6;\n}\n.dialog-footer[data-v-0134c3a4] {\n display: block;\n text-align: center;\n}\n.size[data-v-0134c3a4] {\n color: #666;\n font-size: 14px;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/shop/dialog.vue"],names:[],mappings:";AACA;EACE,iBAAiB;EACjB,mBAAmB;EACnB,oBAAoB;EACpB,kBAAkB;CACnB;AACD;;EAEE,YAAY;CACb;AACD;EACE,YAAY;EACZ,qBAAqB;CACtB;AACD;EACE,eAAe;CAChB;AACD;EACE,eAAe;EACf,mBAAmB;CACpB;AACD;EACE,YAAY;EACZ,gBAAgB;CACjB",file:"dialog.vue",sourcesContent:["\n.el-col[data-v-0134c3a4] {\n min-height: 50px;\n text-align: center;\n margin-bottom: 10px;\n line-height: 40px;\n}\n.el-col .el-select[data-v-0134c3a4],\n.el-col .el-select[data-v-0134c3a4] {\n width: 100%;\n}\n.el-col img[data-v-0134c3a4] {\n width: 50px;\n border-radius: 100px;\n}\n.el-col label[data-v-0134c3a4] {\n color: #5982e6;\n}\n.dialog-footer[data-v-0134c3a4] {\n display: block;\n text-align: center;\n}\n.size[data-v-0134c3a4] {\n color: #666;\n font-size: 14px;\n}\n"],sourceRoot:""}])},totp:function(e,t,s){(e.exports=s("FZ+f")(!0)).push([e.i,'\n.search-btn-block[data-v-7fddce5c] {\n margin-left: 20px;\n}\n.search-form[data-v-7fddce5c] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-7fddce5c] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-7fddce5c] {\n float: right;\n}\n.text-c[data-v-7fddce5c] {\n text-align: center;\n}\n.main-block[data-v-7fddce5c] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-7fddce5c] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\\5FAE\\8F6F\\96C5\\9ED1", Arial, sans-serif;\n}\n.clear-both[data-v-7fddce5c]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-7fddce5c]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-7fddce5c]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-7fddce5c]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.user[data-v-7fddce5c] {\n height: 100%;\n overflow: auto;\n padding: 20px 0;\n}\n.user .btn-content[data-v-7fddce5c] {\n text-align: center;\n}\n',"",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/shop/index.vue"],names:[],mappings:";AACA;EACE,kBAAkB;CACnB;AACD;EACE,kBAAkB;EAClB,cAAc;EACd,eAAe;CAChB;AACD;EACE,aAAa;EACb,kBAAkB;CACnB;AACD;EACE,aAAa;CACd;AACD;EACE,mBAAmB;CACpB;AACD;EACE,YAAY;EACZ,kBAAkB;EAClB,aAAa;CACd;AACD;EACE,0IAA0H;CAC3H;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb;AACD;EACE,oBAAoB;CACrB;AACD;EACE,WAAW;EACX,YAAY;CACb;AACD;EACE,uBAAuB;EACvB,oBAAoB;EACpB,aAAa;EACb,iBAAiB;CAClB;AACD;EACE,aAAa;EACb,eAAe;EACf,gBAAgB;CACjB;AACD;EACE,mBAAmB;CACpB",file:"index.vue",sourcesContent:['\n.search-btn-block[data-v-7fddce5c] {\n margin-left: 20px;\n}\n.search-form[data-v-7fddce5c] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-7fddce5c] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-7fddce5c] {\n float: right;\n}\n.text-c[data-v-7fddce5c] {\n text-align: center;\n}\n.main-block[data-v-7fddce5c] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-7fddce5c] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;\n}\n.clear-both[data-v-7fddce5c]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-7fddce5c]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-7fddce5c]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-7fddce5c]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.user[data-v-7fddce5c] {\n height: 100%;\n overflow: auto;\n padding: 20px 0;\n}\n.user .btn-content[data-v-7fddce5c] {\n text-align: center;\n}\n'],sourceRoot:""}])}});
\ No newline at end of file
webpackJsonp([24],{"1djJ":function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=s("CCn6"),o=s("+TkF"),n=s("kmJW"),a={name:"dialogObj",props:["dialogObj"],data:function(){return{loading:!0,form:{name:"",goods_type:1,goods_desc:{desc:"",imgLesson:[],img:[]},course_id:"",course_type:0,watch_num:"",duration_num:0,original_price:"",current_price:"",is_real:0,is_auth_user:0,share_desc:{title:"",content:"",img:[],refImg:[]},desc:{detail:"",qa:"",customer_service:[]}},lessonList:[]}},methods:{sub:function(){var e=this;console.log(this.form);var t=JSON.parse(JSON.stringify(this.form)+"");switch(t.original_price=(100*t.original_price).toFixed(0),t.current_price=(100*t.current_price).toFixed(0),t.invite_earnings=(100*t.invite_earnings).toFixed(0),t.goods_desc=JSON.stringify(t.goods_desc),t.desc=JSON.stringify(t.desc),t.share_desc=JSON.stringify(t.share_desc),this.dialogObj.type){case 1:Object(i.Q)(this.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.dialogObj.show=!1});break;case 0:Object(i.i)(t).then(function(t){e.$message({type:"success",message:"新增成功!"}),e.$emit("reflash"),e.dialogObj.show=!1})}},removeFileMain:function(e){var t=this.form.goods_desc.img.findIndex(function(t){return t.name===e.name});this.form.goods_desc.img.splice(t,1)},uploadFileLesson:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(i._58)({file:e.file,type:"local"}).then(function(e){t.form.goods_desc.imgLesson=[{name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""}],t.$message({message:"上传成功",type:"success"})})},removeFileLesson:function(){this.form.goods_desc.imgLesson=[]},uploadFileMain:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(i._58)({file:e.file,type:"local"}).then(function(e){t.form.goods_desc.img.push({name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""}),t.$message({message:"上传成功",type:"success"})})},removeFileShareRef:function(){this.form.share_desc.refImg=[]},uploadFileMainShareRef:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(i._58)({file:e.file,type:"local"}).then(function(e){t.$message({message:"上传成功",type:"success"}),t.form.share_desc.refImg?t.form.share_desc.refImg[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.share_desc.refImg=[],t.form.share_desc.refImg[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},uploadFileMainShare:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(i._58)({file:e.file,type:"local"}).then(function(e){t.$message({message:"上传成功",type:"success"}),t.form.share_desc.img?t.form.share_desc.img[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.share_desc.img=[],t.form.share_desc.img[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},uploadFileMainService:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(i._58)({file:e.file,type:"local"}).then(function(e){t.$message({message:"上传成功",type:"success"}),t.form.desc.customer_service?t.form.desc.customer_service[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.desc.customer_service=[],t.form.desc.customer_service[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},uploadFileShare:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(i._58)({file:e.file,type:"local"}).then(function(e){t.$message({message:"上传成功",type:"success"}),t.form.share_desc.img?t.form.share_desc.img[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.share_desc.img=[],t.form.share_desc.img[0]={name:e.url,url:"http://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},initDialog:function(){var e=this;switch(this.dialogObj.type){case 0:this.loading=!1,this.form={name:"",goods_type:1,goods_desc:{desc:"",img:[]},course_id:"",course_type:0,watch_num:"",duration_num:0,original_price:"",current_price:"",is_real:0,is_auth_user:0,share_desc:{title:"",content:"",refImg:[],img:[]},desc:{detail:"",qa:"",customer_service:[]}},this.getLessonList();break;case 1:case 2:this.form={name:"",goods_type:1,goods_desc:{desc:"",img:[]},course_id:"",course_type:0,watch_num:"",duration_num:0,original_price:"",current_price:"",is_real:0,is_auth_user:0,share_desc:{title:"",content:"",refImg:[],img:[]},desc:{detail:"",qa:"",customer_service:[]}},Object(i._16)(this.dialogObj.id).then(function(t){e.loading=!1;var s=JSON.parse(t.share_desc);s.refImg||(s.refImg=[]),e.form={name:t.name,goods_type:t.goods_type,goods_desc:JSON.parse(t.goods_desc),course_id:t.course_id,course_type:t.course_type,watch_num:t.watch_num,duration_num:t.duration_num,original_price:t.original_price/100,current_price:t.current_price/100,is_real:t.is_real,is_auth_user:t.is_auth_user,share_desc:JSON.parse(t.share_desc),desc:JSON.parse(t.desc),invite_earnings:t.invite_earnings/100,is_auth_teacher:t.is_auth_teacher},e.getLessonList()});break;case 3:this.title="编辑",this.show=this.dialogObj.show,this.id=this.dialogObj.id,this.type=2}},changeLessonType:function(){this.getLessonList()},getLessonList:function(){var e=this;Object(i._18)({type:this.form.course_type}).then(function(t){e.lessonList=t.list})}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},l=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-dialog",{attrs:{title:e.dialogObj.title,center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[s("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px",disabled:2===e.dialogObj.type}},[s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"商品名称"}},[s("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"商品描述"}},[s("el-input",{model:{value:e.form.goods_desc.desc,callback:function(t){e.$set(e.form.goods_desc,"desc",t)},expression:"form.goods_desc.desc"}})],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"课程类型"}},[s("el-select",{attrs:{placeholder:"请选择"},on:{change:function(t){e.changeLessonType()}},model:{value:e.form.course_type,callback:function(t){e.$set(e.form,"course_type",t)},expression:"form.course_type"}},[s("el-option",{attrs:{label:"日课",value:1}}),e._v(" "),s("el-option",{attrs:{label:"月课",value:0}})],1)],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"课程"}},[s("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.course_id,callback:function(t){e.$set(e.form,"course_id",t)},expression:"form.course_id"}},e._l(e.lessonList,function(e){return s("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})}))],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"观看时长(节)"}},[s("el-input-number",{attrs:{label:"课时数"},model:{value:e.form.watch_num,callback:function(t){e.$set(e.form,"watch_num",t)},expression:"form.watch_num"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"续看时长(天)"}},[s("el-input-number",{attrs:{label:"看课天数"},model:{value:e.form.duration_num,callback:function(t){e.$set(e.form,"duration_num",t)},expression:"form.duration_num"}})],1)],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"课程封面(750*600)"}},[s("el-upload",{staticClass:"upload-demo",attrs:{"list-type":"picture-card",action:"/api/public/upload","http-request":e.uploadFileLesson,"on-remove":e.removeFileLesson,limit:1,"file-list":e.form.goods_desc.imgLesson}},[s("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),s("el-form-item",{attrs:{label:"主图(750*600)"}},[s("el-upload",{staticClass:"upload-demo",attrs:{"list-type":"picture-card",action:"/api/public/upload","http-request":e.uploadFileMain,"on-remove":e.removeFileMain,"file-list":e.form.goods_desc.img}},[s("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),s("el-form-item",{attrs:{label:"客服(200*200)"}},[s("el-upload",{staticClass:"upload-demo",class:e.form.desc.customer_service&&e.form.desc.customer_service.length>0?"uploadService":"",attrs:{"list-type":"picture-card",action:"/api/public/upload",limit:1,"http-request":e.uploadFileMainService,"file-list":e.form.desc.customer_service}},[s("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"商品类型"}},[s("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.goods_type,callback:function(t){e.$set(e.form,"goods_type",t)},expression:"form.goods_type"}},[s("el-option",{attrs:{label:"普通商品",value:1}}),e._v(" "),s("el-option",{attrs:{label:"团购商品",value:2}})],1)],1)],1)],1),e._v(" "),1===e.form.goods_type?s("el-form-item",{attrs:{label:"推荐奖金(元)"}},[s("el-input-number",{attrs:{label:"推荐奖金"},model:{value:e.form.invite_earnings,callback:function(t){e.$set(e.form,"invite_earnings",t)},expression:"form.invite_earnings"}})],1):e._e(),e._v(" "),s("el-form-item",{attrs:{label:"是否配置实物"}},[s("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_real,callback:function(t){e.$set(e.form,"is_real",t)},expression:"form.is_real"}}),e._v(" "),s("span",{staticStyle:{"font-size":"12px"}},[e._v("打开后提示用户填写具体住址")])],1),e._v(" "),1===e.form.goods_type?s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"是否允许用户推广","label-width":"200"}},[s("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_auth_user,callback:function(t){e.$set(e.form,"is_auth_user",t)},expression:"form.is_auth_user"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"是否允许老师推广","label-width":"200"}},[s("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_auth_teacher,callback:function(t){e.$set(e.form,"is_auth_teacher",t)},expression:"form.is_auth_teacher"}})],1)],1)],1):e._e(),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:1===e.form.goods_type?"原价(元)":"单买价格(元)"}},[s("el-input-number",{attrs:{label:"原价"},model:{value:e.form.original_price,callback:function(t){e.$set(e.form,"original_price",t)},expression:"form.original_price"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:1===e.form.goods_type?"现价(元)":"拼团价格(元)"}},[s("el-input-number",{attrs:{label:"现价"},model:{value:e.form.current_price,callback:function(t){e.$set(e.form,"current_price",t)},expression:"form.current_price"}})],1)],1)],1),e._v(" "),2===e.form.goods_type?s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"成团人数(人)"}},[s("el-input-number",{attrs:{label:"成团人数"},model:{value:e.form.desc.group_number,callback:function(t){e.$set(e.form.desc,"group_number",t)},expression:"form.desc.group_number"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"团购失效时间(小时)","label-width":"136"}},[s("el-input-number",{attrs:{label:"团购失效时间"},model:{value:e.form.desc.group_continue,callback:function(t){e.$set(e.form.desc,"group_continue",t)},expression:"form.desc.group_continue"}})],1)],1)],1):e._e(),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"分享标题"}},[s("el-input",{model:{value:e.form.share_desc.title,callback:function(t){e.$set(e.form.share_desc,"title",t)},expression:"form.share_desc.title"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"分享内容"}},[s("el-input",{model:{value:e.form.share_desc.content,callback:function(t){e.$set(e.form.share_desc,"content",t)},expression:"form.share_desc.content"}})],1)],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"分享主图(300*300)"}},[s("el-upload",{attrs:{"list-type":"picture-card",action:"/api/public/upload",limit:1,"file-list":e.form.share_desc.img,"http-request":e.uploadFileMainShare}},[s("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),s("el-form-item",{attrs:{label:"分享海报"}},[s("el-upload",{attrs:{"list-type":"picture-card",action:"/api/public/upload",limit:1,"file-list":e.form.share_desc.refImg,"http-request":e.uploadFileMainShareRef}},[s("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"商品详情"}},[s("el-input",{attrs:{type:"textarea",rows:25},model:{value:e.form.desc.detail,callback:function(t){e.$set(e.form.desc,"detail",t)},expression:"form.desc.detail"}})],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"购买须知"}},[s("el-input",{attrs:{type:"textarea",rows:25},model:{value:e.form.desc.qa,callback:function(t){e.$set(e.form.desc,"qa",t)},expression:"form.desc.qa"}})],1)],1)],1)],1),e._v(" "),2!==e.dialogObj.type?s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1):e._e()],1)])};l._withStripped=!0;var r={render:l,staticRenderFns:[]},c=r;var d=!1;var u=s("VU/8")(a,c,!1,function(e){d||s("7XPy")},"data-v-0134c3a4",null);u.options.__file="src\\components\\shop\\dialog.vue";var m=u.exports,f={name:"index",data:function(){return{searchFrom:{name:""},userList:[],total:0,nowPage:1,limit:10,chooseDialog:{show:!1,title:"",id:"",form:{value:"",list:[]},type:0},dialogObj:{type:0,show:!1,title:"",id:""},classList:[]}},components:{page:n.a,dialogCom:m},filters:{isOrNot:function(e){return o.h[e]},goodsType:function(e){return o.e[e]},lessonType:function(e){return o.i[e]},goodsStatus:function(e){return o.d[e]}},mounted:function(){this.getUser(),this.getClassList()},methods:{onPageChange:function(e){this.nowPage=e,this.getUser()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getUser()},copyShop:function(e){var t=this;this.$confirm("此操作将复制该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.s)(e.id).then(function(e){t.$message({type:"success",message:"复制成功!"})}),t.getUser()})},copyUrl:function(e){var t="https://wechat-test.changchangenglish.com/#/buyDetail?shopId="+e,s=document.createElement("input");s.value=t,document.body.appendChild(s),s.select(),document.execCommand("Copy"),this.$message({message:"已成功复制到剪切板",type:"success"}),s.remove()},dialogSub:function(){var e=this;switch(this.chooseDialog.type){case 0:Object(i.o)(this.chooseDialog.id,this.chooseDialog.form.value).then(function(t){e.$message({message:"绑定成功",type:"success"}),e.chooseDialog.show=!1}),this.getUser();break;case 1:var t={conflict_goods_ids:this.chooseDialog.form.list.toString()};Object(i.r)(this.chooseDialog.id,t).then(function(t){e.$message({message:"设置成功",type:"success"}),e.chooseDialog.show=!1,e.getUser()})}},getUser:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.name&&(t.name=this.searchFrom.name),this.searchFrom.course_id&&(t.course_id=this.searchFrom.course_id),this.searchFrom.status&&(t.status=this.searchFrom.status),this.searchFrom.current_price&&(t.current_price=100*this.searchFrom.current_price),Object(i._17)(t).then(function(t){t.list.forEach(function(e){""===e.conflict_goods_ids?e.conflict_goods_ids=[]:e.conflict_goods_ids=e.conflict_goods_ids.split(",")}),e.userList=t.list,e.total=t.total})},edit:function(e){this.dialogObj={type:1,title:"编辑商品",show:!0,id:e.id}},add:function(){this.dialogObj={type:0,title:"添加商品",show:!0}},detail:function(e){this.dialogObj.id=e.id,this.dialogObj.type=2,this.dialogObj.title="查看商品",this.dialogObj.show=!0},onDel:function(e){var t=this;this.$confirm("此操作将删除该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.H)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"})}),t.getUser()})},onUp:function(e){var t=this;this.$confirm("此操作将上架该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i._53)(e.id).then(function(e){t.$message({type:"success",message:"操作成功!"}),t.getUser()})})},onDown:function(e){var t=this;this.$confirm("此操作将下架该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.J)(e.id).then(function(e){t.$message({type:"success",message:"操作成功!"}),t.getUser()})})},changeShow:function(e){this.dialogObj.show=e},bindOther:function(e){this.chooseDialog={show:!0,title:"绑定商品",id:e.id,form:{value:"",list:[]},type:0}},conflict:function(e){this.chooseDialog={show:!0,title:"冲突商品",id:e.id,form:{value:"",list:e.conflict_goods_ids},type:1}},getClassList:function(){var e=this;Object(i._18)({limit:2e3,page:1}).then(function(t){e.classList=t.list})}}},p=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"user"},[s("el-form",{ref:"searchFrom",staticClass:"search-form",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[s("el-form-item",{attrs:{label:"商品名称"}},[s("el-input",{model:{value:e.searchFrom.name,callback:function(t){e.$set(e.searchFrom,"name",t)},expression:"searchFrom.name"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"课程"}},[s("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getUser},model:{value:e.searchFrom.course_id,callback:function(t){e.$set(e.searchFrom,"course_id",t)},expression:"searchFrom.course_id"}},[s("el-option",{attrs:{value:"",label:"请选择"}}),e._v(" "),e._l(e.classList,function(e,t){return s("el-option",{key:t,attrs:{label:e.title,value:e.id}})})],2)],1),e._v(" "),s("el-form-item",{attrs:{label:"商品状态"}},[s("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getUser},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},[s("el-option",{attrs:{value:"",label:"请选择"}}),e._v(" "),s("el-option",{attrs:{value:"0",label:"编辑中"}}),e._v(" "),s("el-option",{attrs:{value:"1",label:"上架"}}),e._v(" "),s("el-option",{attrs:{value:"2",label:"下架"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"商品现价/团购价","label-width":"120px"}},[s("el-input-number",{model:{value:e.searchFrom.current_price,callback:function(t){e.$set(e.searchFrom,"current_price",t)},expression:"searchFrom.current_price"}})],1),e._v(" "),s("el-form-item",[s("div",{staticClass:"search-btn-block"},[s("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-search"},on:{click:e.getUser}},[e._v("搜索")])],1)])],1),e._v(" "),s("div",{staticClass:"new-block"},[e.$store.state.readonly?e._e():s("el-button",{attrs:{type:"success",plain:""},on:{click:e.add}},[e._v("添加商品")])],1),e._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.userList}},[s("el-table-column",{attrs:{prop:"name",label:"名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("router-link",{attrs:{to:{name:"periods",query:{goods_id:t.row.id}}}},[e._v("\n "+e._s(t.row.name)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"商品类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("goodsType")(t.row.goods_type))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"商品原价/直购价"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.original_price/100)+"元\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"商品现价/团购价"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.current_price/100)+"元\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"course_title",label:"课程名称"}}),e._v(" "),s("el-table-column",{attrs:{label:"课程类别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("lessonType")(t.row.course_type))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"是否有实物"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("isOrNot")(t.row.is_real))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("goodsStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{width:"60",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-popover",{attrs:{placement:"top",width:"600"}},[s("div",{staticStyle:{"text-align":"center"}},[s("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(s){e.detail(t.row)}}},[e._v("\n 查看详情\n ")]),e._v(" "),s("el-button",{attrs:{size:"mini",plain:""},on:{click:function(s){e.copyUrl(t.row.id)}}},[e._v("\n 复制链接\n ")]),e._v(" "),e.$store.state.readonly?e._e():[2===t.row.status||0===t.row.status?s("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(s){e.onUp(t.row)}}},[e._v("\n 上架\n ")]):e._e(),e._v(" "),1===t.row.status?s("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(s){e.onDown(t.row)}}},[e._v("\n 下架\n ")]):e._e(),e._v(" "),s("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(s){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),s("el-button",{attrs:{size:"mini",plain:"",type:"success"},on:{click:function(s){e.copyShop(t.row)}}},[e._v("\n 复制商品\n ")]),e._v(" "),2===t.row.status?s("el-button",{attrs:{size:"mini",plain:""},on:{click:function(s){e.bindOther(t.row)}}},[e._v("\n 绑定商品\n ")]):e._e(),e._v(" "),s("el-button",{attrs:{size:"mini",plain:""},on:{click:function(s){e.conflict(t.row)}}},[e._v("\n 冲突商品\n ")]),e._v(" "),e.$store.state.deletePermission?s("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(s){e.onDel(t.row)}}},[e._v("\n 删除\n ")]):e._e()]],2),e._v(" "),s("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),s("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),s("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.getUser}}),e._v(" "),s("el-dialog",{attrs:{title:e.chooseDialog.title,visible:e.chooseDialog.show,width:"30%"},on:{"update:visible":function(t){e.$set(e.chooseDialog,"show",t)}}},[s("el-form",{ref:"form",attrs:{"label-width":"80px"}},[0===e.chooseDialog.type?s("el-form-item",{attrs:{label:"绑定商品"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.chooseDialog.form.value,callback:function(t){e.$set(e.chooseDialog.form,"value",t)},expression:"chooseDialog.form.value"}},e._l(e.userList,function(e){return s("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e(),e._v(" "),1===e.chooseDialog.type?s("el-form-item",{attrs:{label:"冲突商品"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",multiple:""},model:{value:e.chooseDialog.form.list,callback:function(t){e.$set(e.chooseDialog.form,"list",t)},expression:"chooseDialog.form.list"}},e._l(e.userList,function(e){return s("el-option",{key:e.id,attrs:{label:e.name,value:e.id.toString()}})}))],1):e._e()],1),e._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.chooseDialog.show=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogSub()}}},[e._v("确 定")])],1)],1)],1)};p._withStripped=!0;var h={render:p,staticRenderFns:[]},g=h;var _=!1;var v=s("VU/8")(f,g,!1,function(e){_||s("Y727")},"data-v-7fddce5c",null);v.options.__file="src\\components\\shop\\index.vue";t.default=v.exports},"7XPy":function(e,t,s){var i=s("bG7/");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);s("rjj0")("4763fb45",i,!1,{})},Y727:function(e,t,s){var i=s("totp");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);s("rjj0")("5f457a2b",i,!1,{})},"bG7/":function(e,t,s){(e.exports=s("FZ+f")(!0)).push([e.i,"\n.el-col[data-v-0134c3a4] {\n min-height: 50px;\n text-align: center;\n margin-bottom: 10px;\n line-height: 40px;\n}\n.el-col .el-select[data-v-0134c3a4],\n.el-col .el-select[data-v-0134c3a4] {\n width: 100%;\n}\n.el-col img[data-v-0134c3a4] {\n width: 50px;\n border-radius: 100px;\n}\n.el-col label[data-v-0134c3a4] {\n color: #5982e6;\n}\n.dialog-footer[data-v-0134c3a4] {\n display: block;\n text-align: center;\n}\n.size[data-v-0134c3a4] {\n color: #666;\n font-size: 14px;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/shop/dialog.vue"],names:[],mappings:";AACA;EACE,iBAAiB;EACjB,mBAAmB;EACnB,oBAAoB;EACpB,kBAAkB;CACnB;AACD;;EAEE,YAAY;CACb;AACD;EACE,YAAY;EACZ,qBAAqB;CACtB;AACD;EACE,eAAe;CAChB;AACD;EACE,eAAe;EACf,mBAAmB;CACpB;AACD;EACE,YAAY;EACZ,gBAAgB;CACjB",file:"dialog.vue",sourcesContent:["\n.el-col[data-v-0134c3a4] {\n min-height: 50px;\n text-align: center;\n margin-bottom: 10px;\n line-height: 40px;\n}\n.el-col .el-select[data-v-0134c3a4],\n.el-col .el-select[data-v-0134c3a4] {\n width: 100%;\n}\n.el-col img[data-v-0134c3a4] {\n width: 50px;\n border-radius: 100px;\n}\n.el-col label[data-v-0134c3a4] {\n color: #5982e6;\n}\n.dialog-footer[data-v-0134c3a4] {\n display: block;\n text-align: center;\n}\n.size[data-v-0134c3a4] {\n color: #666;\n font-size: 14px;\n}\n"],sourceRoot:""}])},totp:function(e,t,s){(e.exports=s("FZ+f")(!0)).push([e.i,'\n.search-btn-block[data-v-7fddce5c] {\n margin-left: 20px;\n}\n.search-form[data-v-7fddce5c] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-7fddce5c] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-7fddce5c] {\n float: right;\n}\n.text-c[data-v-7fddce5c] {\n text-align: center;\n}\n.main-block[data-v-7fddce5c] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-7fddce5c] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\\5FAE\\8F6F\\96C5\\9ED1", Arial, sans-serif;\n}\n.clear-both[data-v-7fddce5c]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-7fddce5c]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-7fddce5c]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-7fddce5c]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.user[data-v-7fddce5c] {\n height: 100%;\n overflow: auto;\n padding: 20px 0;\n}\n.user .btn-content[data-v-7fddce5c] {\n text-align: center;\n}\n',"",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/shop/index.vue"],names:[],mappings:";AACA;EACE,kBAAkB;CACnB;AACD;EACE,kBAAkB;EAClB,cAAc;EACd,eAAe;CAChB;AACD;EACE,aAAa;EACb,kBAAkB;CACnB;AACD;EACE,aAAa;CACd;AACD;EACE,mBAAmB;CACpB;AACD;EACE,YAAY;EACZ,kBAAkB;EAClB,aAAa;CACd;AACD;EACE,0IAA0H;CAC3H;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb;AACD;EACE,oBAAoB;CACrB;AACD;EACE,WAAW;EACX,YAAY;CACb;AACD;EACE,uBAAuB;EACvB,oBAAoB;EACpB,aAAa;EACb,iBAAiB;CAClB;AACD;EACE,aAAa;EACb,eAAe;EACf,gBAAgB;CACjB;AACD;EACE,mBAAmB;CACpB",file:"index.vue",sourcesContent:['\n.search-btn-block[data-v-7fddce5c] {\n margin-left: 20px;\n}\n.search-form[data-v-7fddce5c] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-7fddce5c] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-7fddce5c] {\n float: right;\n}\n.text-c[data-v-7fddce5c] {\n text-align: center;\n}\n.main-block[data-v-7fddce5c] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-7fddce5c] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;\n}\n.clear-both[data-v-7fddce5c]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-7fddce5c]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-7fddce5c]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-7fddce5c]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.user[data-v-7fddce5c] {\n height: 100%;\n overflow: auto;\n padding: 20px 0;\n}\n.user .btn-content[data-v-7fddce5c] {\n text-align: center;\n}\n'],sourceRoot:""}])}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([30],{F5pf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,s=a("CCn6");function o(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var l={name:"putForward",data:function(){return{nowPage:1,total:0,limit:10,search:{key:"",status:0},liStatus:[{label:"全部",status:""},{label:"申请中",status:0},{label:"提现成功",status:1},{label:"提现失败",status:2}],tableData:[],showDialog:!1,showDesc:!1,dialogTitle:"审核",nowObj:{id:"",status:1,reason:"",desc:""},page:{current:1,pageSize:100,total:0}}},components:{page:a("kmJW").a},filters:{moneyYuan:function(t){return(t/100).toFixed(2)+"元"},filterStatus:function(t){var e="";return 0===t?e="审核中":1===t?e="提现成功":2===t&&(e="提现失败"),e}},mounted:function(){this.getList()},methods:(n={onPageChange:function(t){this.nowPage=t},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getList()},getList:function(){var t=this,e={limit:this.limit,page:this.nowPage};Object(s._40)(e).then(function(e){t.tableData=e.list,t.total=e.total})},onSearch:function(){this.page.current=1,this.getList()},checkMoney:function(t){this.nowObj.id=t,this.showDesc=!1,this.showDialog=!0},addDesc:function(t,e){this.nowObj.id=t,this.nowObj.desc=e,this.showDesc=!0,this.showDialog=!0}},o(n,"onPageChange",function(t){this.page.current=t,this.getList()}),o(n,"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"})}),o(n,"onSave",function(t){var e=this;if(t){var a={desc:this.nowObj.desc};if(""===a.desc||null==a.desc)return this.$message.error("请填写备注"),!1;Object(s.S)(this.nowObj.id,"withdraw",a).then(function(t){e.doCallback()})}else{var n={reason:this.nowObj.reason,status:this.nowObj.status};if((""===n.reason||null==n.reason)&&2===n.status)return this.$message.error("请填写失败理由"),!1;n.reason="",Object(s._60)(this.nowObj.id,n).then(function(t){e.doCallback()})}}),n)},r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"putForward"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.search,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"关键字"}},[a("el-input",{attrs:{placeholder:"用户名/手机号"},model:{value:t.search.key,callback:function(e){t.$set(t.search,"key",e)},expression:"search.key"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"订单状态"}},[a("el-select",{attrs:{placeholder:"用户名/手机/课程名称"},on:{change:t.onSearch},model:{value:t.search.status,callback:function(e){t.$set(t.search,"status",e)},expression:"search.status"}},t._l(t.liStatus,function(t){return a("el-option",{key:t.status,attrs:{label:t.label,value:t.status}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")])],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},[a("el-table-column",{attrs:{prop:"username",label:"用户名"}}),t._v(" "),a("el-table-column",{attrs:{prop:"mobile",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{label:"已获得总额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.getSumMoney))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"已提金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.alreadyMoney))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"可提余额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.resMoney))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.money))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:{status:!0,red:2===e.row.status,green:1===e.row.status}},[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"同意提现时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pay_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),t.$store.state.readonly?t._e():a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.checkMoney(e.row.id,e.row.desc)}}},[t._v("\n 审核\n ")]):t._e(),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.addDesc(e.row.id,e.row.desc)}}},[t._v("\n 添加备注\n ")])]}}])})],1),t._v(" "),a("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}}),t._v(" "),t.showDialog?a("el-dialog",{attrs:{title:t.dialogTitle,visible:t.showDialog},on:{"update:visible":function(e){t.showDialog=e}}},[a("el-form",{ref:"saveuser",attrs:{model:t.nowObj,"label-width":"70px"}},[t.showDesc?t._e():a("el-form-item",{attrs:{label:"订单状态"}},[[a("el-radio-group",{model:{value:t.nowObj.status,callback:function(e){t.$set(t.nowObj,"status",e)},expression:"nowObj.status"}},[a("el-radio",{attrs:{label:1}},[t._v("提现成功")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("提现失败")])],1)]],2),t._v(" "),2!==t.nowObj.status||t.showDesc?t._e():a("el-form-item",{attrs:{label:"失败理由"}},[a("el-input",{attrs:{type:"textarea",rows:"3","auto-complete":"off"},model:{value:t.nowObj.reason,callback:function(e){t.$set(t.nowObj,"reason",e)},expression:"nowObj.reason"}})],1),t._v(" "),t.showDesc?a("el-form-item",{attrs:{label:"备注信息"}},[a("el-input",{attrs:{type:"textarea",rows:"3","auto-complete":"off"},model:{value:t.nowObj.desc,callback:function(e){t.$set(t.nowObj,"desc",e)},expression:"nowObj.desc"}})],1):t._e()],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.onSave(t.showDesc)}}},[t._v("保 存")]),t._v(" "),a("el-button",{on:{click:function(e){t.showDialog=!1}}},[t._v("取 消")])],1)],1):t._e()],1)};r._withStripped=!0;var i={render:r,staticRenderFns:[]},c=i;var u=!1;var d=a("VU/8")(l,c,!1,function(t){u||a("teZk")},"data-v-5621cbc8",null);d.options.__file="src\\components\\putForward\\index.vue";e.default=d.exports},teZk:function(t,e,a){var n=a("wJWK");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("e8a70c02",n,!1,{})},wJWK:function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.putForward[data-v-5621cbc8] {\n padding: 20px 0;\n}\n.status[data-v-5621cbc8]{\n color: #e9a038;\n}\n.status.red[data-v-5621cbc8]{\n color: #c30005;\n}\n.status.green[data-v-5621cbc8]{\n color: #00ac00;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/putForward/index.vue"],names:[],mappings:";AACA;EACE,gBAAgB;CACjB;AACD;EACE,eAAe;CAChB;AACD;EACE,eAAe;CAChB;AACD;EACE,eAAe;CAChB",file:"index.vue",sourcesContent:["\n.putForward[data-v-5621cbc8] {\n padding: 20px 0;\n}\n.status[data-v-5621cbc8]{\n color: #e9a038;\n}\n.status.red[data-v-5621cbc8]{\n color: #c30005;\n}\n.status.green[data-v-5621cbc8]{\n color: #00ac00;\n}\n"],sourceRoot:""}])}}); webpackJsonp([30],{F5pf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,s=a("CCn6");function o(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var l={name:"putForward",data:function(){return{nowPage:1,total:0,limit:10,search:{key:"",status:1},liStatus:[{label:"全部",status:""},{label:"申请中",status:0},{label:"提现成功",status:1},{label:"提现失败",status:2}],tableData:[],showDialog:!1,showDesc:!1,dialogTitle:"审核",nowObj:{id:"",status:1,reason:"",desc:""},page:{current:1,pageSize:100,total:0}}},components:{page:a("kmJW").a},filters:{moneyYuan:function(t){return(t/100).toFixed(2)+"元"},filterStatus:function(t){var e="";return 0===t?e="审核中":1===t?e="提现成功":2===t&&(e="提现失败"),e}},mounted:function(){this.getList()},methods:(n={onPageChange:function(t){this.nowPage=t},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getList()},getList:function(){var t=this,e={limit:this.limit,page:this.nowPage};Object(s._40)(e).then(function(e){t.tableData=e.list,t.total=e.total})},onSearch:function(){this.page.current=1,this.getList()},checkMoney:function(t){this.nowObj.id=t,this.showDesc=!1,this.showDialog=!0},addDesc:function(t,e){this.nowObj.id=t,this.nowObj.desc=e,this.showDesc=!0,this.showDialog=!0}},o(n,"onPageChange",function(t){this.page.current=t,this.getList()}),o(n,"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"})}),o(n,"onSave",function(t){var e=this;if(t){var a={desc:this.nowObj.desc};if(""===a.desc||null==a.desc)return this.$message.error("请填写备注"),!1;Object(s.S)(this.nowObj.id,"withdraw",a).then(function(t){e.doCallback()})}else{var n={reason:this.nowObj.reason,status:this.nowObj.status};if((""===n.reason||null==n.reason)&&2===n.status)return this.$message.error("请填写失败理由"),!1;n.reason="",Object(s._60)(this.nowObj.id,n).then(function(t){e.doCallback()})}}),n)},r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"putForward"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.search,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"关键字"}},[a("el-input",{attrs:{placeholder:"用户名/手机号"},model:{value:t.search.key,callback:function(e){t.$set(t.search,"key",e)},expression:"search.key"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"订单状态"}},[a("el-select",{attrs:{placeholder:"用户名/手机/课程名称"},on:{change:t.onSearch},model:{value:t.search.status,callback:function(e){t.$set(t.search,"status",e)},expression:"search.status"}},t._l(t.liStatus,function(t){return a("el-option",{key:t.status,attrs:{label:t.label,value:t.status}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")])],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},[a("el-table-column",{attrs:{prop:"username",label:"用户名"}}),t._v(" "),a("el-table-column",{attrs:{prop:"mobile",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{label:"已获得总额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.getSumMoney))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"已提金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.alreadyMoney))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"可提余额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.resMoney))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.money))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:{status:!0,red:2===e.row.status,green:1===e.row.status}},[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"同意提现时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pay_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),t.$store.state.readonly?t._e():a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.checkMoney(e.row.id,e.row.desc)}}},[t._v("\n 审核\n ")]):t._e(),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.addDesc(e.row.id,e.row.desc)}}},[t._v("\n 添加备注\n ")])]}}])})],1),t._v(" "),a("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}}),t._v(" "),t.showDialog?a("el-dialog",{attrs:{title:t.dialogTitle,visible:t.showDialog},on:{"update:visible":function(e){t.showDialog=e}}},[a("el-form",{ref:"saveuser",attrs:{model:t.nowObj,"label-width":"70px"}},[t.showDesc?t._e():a("el-form-item",{attrs:{label:"订单状态"}},[[a("el-radio-group",{model:{value:t.nowObj.status,callback:function(e){t.$set(t.nowObj,"status",e)},expression:"nowObj.status"}},[a("el-radio",{attrs:{label:1}},[t._v("提现成功")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("提现失败")])],1)]],2),t._v(" "),2!==t.nowObj.status||t.showDesc?t._e():a("el-form-item",{attrs:{label:"失败理由"}},[a("el-input",{attrs:{type:"textarea",rows:"3","auto-complete":"off"},model:{value:t.nowObj.reason,callback:function(e){t.$set(t.nowObj,"reason",e)},expression:"nowObj.reason"}})],1),t._v(" "),t.showDesc?a("el-form-item",{attrs:{label:"备注信息"}},[a("el-input",{attrs:{type:"textarea",rows:"3","auto-complete":"off"},model:{value:t.nowObj.desc,callback:function(e){t.$set(t.nowObj,"desc",e)},expression:"nowObj.desc"}})],1):t._e()],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.onSave(t.showDesc)}}},[t._v("保 存")]),t._v(" "),a("el-button",{on:{click:function(e){t.showDialog=!1}}},[t._v("取 消")])],1)],1):t._e()],1)};r._withStripped=!0;var i={render:r,staticRenderFns:[]},c=i;var u=!1;var d=a("VU/8")(l,c,!1,function(t){u||a("teZk")},"data-v-5621cbc8",null);d.options.__file="src\\components\\putForward\\index.vue";e.default=d.exports},teZk:function(t,e,a){var n=a("wJWK");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("e8a70c02",n,!1,{})},wJWK:function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.putForward[data-v-5621cbc8] {\n padding: 20px 0;\n}\n.status[data-v-5621cbc8]{\n color: #e9a038;\n}\n.status.red[data-v-5621cbc8]{\n color: #c30005;\n}\n.status.green[data-v-5621cbc8]{\n color: #00ac00;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/putForward/index.vue"],names:[],mappings:";AACA;EACE,gBAAgB;CACjB;AACD;EACE,eAAe;CAChB;AACD;EACE,eAAe;CAChB;AACD;EACE,eAAe;CAChB",file:"index.vue",sourcesContent:["\n.putForward[data-v-5621cbc8] {\n padding: 20px 0;\n}\n.status[data-v-5621cbc8]{\n color: #e9a038;\n}\n.status.red[data-v-5621cbc8]{\n color: #c30005;\n}\n.status.green[data-v-5621cbc8]{\n color: #00ac00;\n}\n"],sourceRoot:""}])}});
\ No newline at end of file \ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,r,t){for(var d,o,b,i=0,u=[];i<c.length;i++)o=c[i],f[o]&&u.push(f[o][0]),f[o]=0;for(d in r)Object.prototype.hasOwnProperty.call(r,d)&&(e[d]=r[d]);for(a&&a(c,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)b=n(n.s=t[i]);return b};var c={},f={39:0};function n(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,n),f.l=!0,f.exports}n.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,n){a=f[e]=[c,n]});a[2]=c;var r=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,n.nc&&t.setAttribute("nonce",n.nc),t.src=n.p+"static/js/"+e+"."+{0:"3b1d82cbe89ca7061a5b",1:"65d02bf3ab42eef3e8d1",2:"42cad276cc70c5a4a69e",3:"8e3629feec6e3612abab",4:"db215147f8308b14e0a4",5:"022d5a21efe8f82f8d4e",6:"1741e48fb08b0a2de138",7:"afe7c14969ada89161f1",8:"23ed2abfb17f38e74608",9:"9ffac010c8948205dd5b",10:"5347820d51049bfcd023",11:"f34fc374ed35b0797ae9",12:"123af0a13c1eb163af46",13:"b1b323d5f92b483449a1",14:"4d751448decc0d1e79a5",15:"2adf7b1eb12e40ed3a15",16:"61cb723e6d73753b90da",17:"0001adbd2c61dbb2e0cd",18:"537b99b7140d87ae77ba",19:"5db37fafec06cc47f122",20:"5a44a3556475ecbb4569",21:"def0f66124ef0d181f53",22:"8e08f27eb74c9aa2c864",23:"1ee1db1d689d6f58e176",24:"0c88ebaeb0232b0e7298",25:"60af62957059764cc638",26:"3c54fb6e8ad1f3587eb1",27:"27d330593df2b4783aa9",28:"f4f2a1f2200a80aa208b",29:"363c157cc49db677d6e3",30:"b3760f4c173ff80edb6c",31:"7d605cd1ba3324f19fc7",32:"a71e52950e9219ad363f",33:"3dc8c2fce74697c3dd67",34:"c8baf2b2f12cfe0bd2fa",35:"dce4e1784ec7a98260a9",36:"ebba859e92483da4aa80"}[e]+".js";var d=setTimeout(o,12e4);function o(){t.onerror=t.onload=null,clearTimeout(d);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return t.onerror=t.onload=o,r.appendChild(t),c},n.m=e,n.c=c,n.d=function(e,a,c){n.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},n.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(a,"a",a),a},n.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},n.p="/",n.oe=function(e){throw console.error(e),e}}([]); !function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,r,t){for(var d,o,b,i=0,u=[];i<c.length;i++)o=c[i],f[o]&&u.push(f[o][0]),f[o]=0;for(d in r)Object.prototype.hasOwnProperty.call(r,d)&&(e[d]=r[d]);for(a&&a(c,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)b=n(n.s=t[i]);return b};var c={},f={39:0};function n(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,n),f.l=!0,f.exports}n.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,n){a=f[e]=[c,n]});a[2]=c;var r=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,n.nc&&t.setAttribute("nonce",n.nc),t.src=n.p+"static/js/"+e+"."+{0:"3b1d82cbe89ca7061a5b",1:"65d02bf3ab42eef3e8d1",2:"42cad276cc70c5a4a69e",3:"1ea44cf53e69ae344e4f",4:"db215147f8308b14e0a4",5:"022d5a21efe8f82f8d4e",6:"1741e48fb08b0a2de138",7:"afe7c14969ada89161f1",8:"23ed2abfb17f38e74608",9:"9ffac010c8948205dd5b",10:"5347820d51049bfcd023",11:"f34fc374ed35b0797ae9",12:"123af0a13c1eb163af46",13:"b1b323d5f92b483449a1",14:"4d751448decc0d1e79a5",15:"2adf7b1eb12e40ed3a15",16:"61cb723e6d73753b90da",17:"0001adbd2c61dbb2e0cd",18:"537b99b7140d87ae77ba",19:"5db37fafec06cc47f122",20:"5a44a3556475ecbb4569",21:"def0f66124ef0d181f53",22:"8e08f27eb74c9aa2c864",23:"1ee1db1d689d6f58e176",24:"c7426c2a4557f0300813",25:"60af62957059764cc638",26:"3c54fb6e8ad1f3587eb1",27:"27d330593df2b4783aa9",28:"f4f2a1f2200a80aa208b",29:"363c157cc49db677d6e3",30:"6d391d5ae61ab9b255c7",31:"7d605cd1ba3324f19fc7",32:"a71e52950e9219ad363f",33:"3dc8c2fce74697c3dd67",34:"c8baf2b2f12cfe0bd2fa",35:"dce4e1784ec7a98260a9",36:"ebba859e92483da4aa80"}[e]+".js";var d=setTimeout(o,12e4);function o(){t.onerror=t.onload=null,clearTimeout(d);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return t.onerror=t.onload=o,r.appendChild(t),c},n.m=e,n.c=c,n.d=function(e,a,c){n.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},n.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(a,"a",a),a},n.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},n.p="/",n.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https://at.alicdn.com/t/font_746649_7dsnjecwkpg.css><title>唱唱启蒙-后台</title><link href=/static/css/app.025def7b97be713372271d109b486e9e.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.ef846e5628467266d1a2.js></script><script type=text/javascript src=/static/js/vendor.19b2456e976962f3ee99.js></script><script type=text/javascript src=/static/js/app.793b9388215dcc31f648.js></script></body><script>let el = document.getElementsByTagName("script"); <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https://at.alicdn.com/t/font_746649_7dsnjecwkpg.css><title>唱唱启蒙-后台</title><link href=/static/css/app.ddb772dbfd739955ffec09525e76481f.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.4b99b711309c82385e01.js></script><script type=text/javascript src=/static/js/vendor.19b2456e976962f3ee99.js></script><script type=text/javascript src=/static/js/app.07ef953c3be4f6728e21.js></script></body><script>let el = document.getElementsByTagName("script");
el.onerror = function(a,b,c){ el.onerror = function(a,b,c){
console.log('error:',a,b,c); console.log('error:',a,b,c);
}; };
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([25],{"89rD":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("CCn6"),s={name:"index",components:{page:a("kmJW").a},data:function(){return{nowPage:1,total:0,limit:10,refundTypeList:[{id:0,value:"退款中"},{id:1,value:"退款成功"},{id:2,value:"退款失败"}],searchFrom:{nickname:"",user_id:"",out_trade_no:"",status:1},list:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="退款中":1===e?t="退款成功":2===e&&(t="退款失败"),t}},mounted:function(){this.getRefundList()},methods:{editComment:function(e,t){var a=this;this.$prompt("编辑备注","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t}).then(function(t){var s=t.value;Object(n.S)(e,"refund",{desc:s}).then(function(e){a.$message({type:"success",message:"编辑备注成功"}),a.getRefundList()})})},onPageChange:function(e){this.nowPage=e,this.getRefundList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getRefundList()},getRefundList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.status&&(t.status=this.searchFrom.status),this.searchFrom.out_trade_no&&(t.out_trade_no=this.searchFrom.out_trade_no),Object(n._30)(t).then(function(t){e.total=t.total,e.list=t.list})}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"refund"},[a("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"用户昵称"}},[a("el-input",{model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"用户ID"}},[a("el-input",{model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"订单编号"}},[a("el-input",{model:{value:e.searchFrom.out_trade_no,callback:function(t){e.$set(e.searchFrom,"out_trade_no",t)},expression:"searchFrom.out_trade_no"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"退款状态"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getRefundList},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},e._l(e.refundTypeList,function(e){return a("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.getRefundList}},[e._v("搜索")])],1)],1)],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[a("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),a("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v("\n "+e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"order_money",label:"订单金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.order_money/100))+"元\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"refund_money",label:"退款金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.refund_money/100))+"元\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),a("el-table-column",{attrs:{label:"退款状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}}),e._v(" "),e.$store.state.readonly?e._e():a("el-table-column",{attrs:{label:"操作","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(a){e.editComment(t.row.id,t.row.desc)}}},[e._v("\n 备注\n ")])]}}])})],1),e._v(" "),a("page",{attrs:{nowPage:e.nowPage,total:e.total},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var o=a("VU/8")(s,r,!1,function(e){a("AxBi"),a("Jzdq")},"data-v-1e68c0e6",null);t.default=o.exports},AxBi:function(e,t){},Jzdq:function(e,t){}}); webpackJsonp([21],{"89rD":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("CCn6"),s={name:"index",components:{page:a("kmJW").a},data:function(){return{nowPage:1,total:0,limit:10,refundTypeList:[{id:0,value:"退款中"},{id:1,value:"退款成功"},{id:2,value:"退款失败"}],searchFrom:{nickname:"",user_id:"",out_trade_no:"",status:1},list:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="退款中":1===e?t="退款成功":2===e&&(t="退款失败"),t}},mounted:function(){this.getRefundList()},methods:{editComment:function(e,t){var a=this;this.$prompt("编辑备注","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t}).then(function(t){var s=t.value;Object(n.S)(e,"refund",{desc:s}).then(function(e){a.$message({type:"success",message:"编辑备注成功"}),a.getRefundList()})})},onPageChange:function(e){this.nowPage=e,this.getRefundList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getRefundList()},getRefundList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.status&&(t.status=this.searchFrom.status),this.searchFrom.out_trade_no&&(t.out_trade_no=this.searchFrom.out_trade_no),Object(n._30)(t).then(function(t){e.total=t.total,e.list=t.list})}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"refund"},[a("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"用户昵称"}},[a("el-input",{model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"用户ID"}},[a("el-input",{model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"订单编号"}},[a("el-input",{model:{value:e.searchFrom.out_trade_no,callback:function(t){e.$set(e.searchFrom,"out_trade_no",t)},expression:"searchFrom.out_trade_no"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"退款状态"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getRefundList},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},e._l(e.refundTypeList,function(e){return a("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.getRefundList}},[e._v("搜索")])],1)],1)],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[a("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),a("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v("\n "+e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"order_money",label:"订单金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.order_money/100))+"元\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"refund_money",label:"退款金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.refund_money/100))+"元\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),a("el-table-column",{attrs:{label:"退款状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}}),e._v(" "),e.$store.state.readonly?e._e():a("el-table-column",{attrs:{label:"操作","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(a){e.editComment(t.row.id,t.row.desc)}}},[e._v("\n 备注\n ")])]}}])})],1),e._v(" "),a("page",{attrs:{nowPage:e.nowPage,total:e.total},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var o=a("VU/8")(s,r,!1,function(e){a("KyiJ"),a("L9LS")},"data-v-5180ce99",null);t.default=o.exports},KyiJ:function(e,t){},L9LS:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([21],{Uj1Q:function(t,e){},XxBP:function(t,e){},"sg/1":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("CCn6"),o=(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"}]},pickerOptions1:{disabledDate:function(t){return!(t.getTime()>Date.now())}}}},components:{page:s("kmJW").a},methods:{save:function(){var t=this;if(0!==this.noLessonDate.length){var e={key:this.form.key,value:this.form.value},s=this.form.desc||[];this.noLessonDate.length>0&&(s=s.concat(this.noLessonDate),s=this.dedupe(s)),e.desc=JSON.stringify(s),this.id?Object(i._54)(this.id,e).then(function(e){t.$message({type:"success",message:"新增成功!"}),t.noLessonDate=s,t.$emit("reflash"),t.show=!1}):Object(i._47)(e).then(function(e){t.$message({type:"success",message:"新增成功!"}),t.noLessonDate=s,t.$emit("reflash"),t.show=!1})}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.noLessonDate=this.form.desc,this.loading=!1},dedupe:function(t){return Array.from(new Set(t))}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(t){this.$emit("changeShow",t)}}}),n={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dialog",{attrs:{title:t.title,center:"","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,"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:20}},[s("el-form-item",[s("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"dates","value-format":"yyyy-MM-dd","picker-options":t.pickerOptions1,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")(o,n,!1,function(t){s("Uj1Q")},"data-v-e9aa269a",null).exports},mounted:function(){this.getList()},methods:{changeShow:function(t){this.dialogObj.show=t},getList:function(){var t=this;Object(i._12)({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._11)(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"},o=[];e.list.forEach(function(e){e!==t&&o.push(e)}),s.desc=JSON.stringify(o),Object(i._54)(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",{attrs:{classs:"noLesson"}},[s("el-row",{staticClass:"add-btn",attrs:{type:"flex",justify:"end"}},[s("el-col",{attrs:{span:6}},[t.$store.state.readonly?t._e():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",{key:i,attrs:{"body-style":{padding:"0px"}}},[s("span",{staticClass:"time"},[t._v(t._s(e))]),t._v(" "),s("div",{staticClass:"bottom clearfix"},[t.$store.state.deletePermission&&!t.$store.state.readonly?s("el-button",{staticClass:"button",attrs:{type:"text"},on:{click:function(s){t.del(e)}}},[t._v("删除")]):t._e()],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("XxBP")},"data-v-4c22ba2e",null);e.default=d.exports}}); webpackJsonp([22],{Uj1Q:function(t,e){},XxBP:function(t,e){},"sg/1":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("CCn6"),o=(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"}]},pickerOptions1:{disabledDate:function(t){return!(t.getTime()>Date.now())}}}},components:{page:s("kmJW").a},methods:{save:function(){var t=this;if(0!==this.noLessonDate.length){var e={key:this.form.key,value:this.form.value},s=this.form.desc||[];this.noLessonDate.length>0&&(s=s.concat(this.noLessonDate),s=this.dedupe(s)),e.desc=JSON.stringify(s),this.id?Object(i._54)(this.id,e).then(function(e){t.$message({type:"success",message:"新增成功!"}),t.noLessonDate=s,t.$emit("reflash"),t.show=!1}):Object(i._47)(e).then(function(e){t.$message({type:"success",message:"新增成功!"}),t.noLessonDate=s,t.$emit("reflash"),t.show=!1})}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.noLessonDate=this.form.desc,this.loading=!1},dedupe:function(t){return Array.from(new Set(t))}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(t){this.$emit("changeShow",t)}}}),n={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dialog",{attrs:{title:t.title,center:"","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,"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:20}},[s("el-form-item",[s("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"dates","value-format":"yyyy-MM-dd","picker-options":t.pickerOptions1,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")(o,n,!1,function(t){s("Uj1Q")},"data-v-e9aa269a",null).exports},mounted:function(){this.getList()},methods:{changeShow:function(t){this.dialogObj.show=t},getList:function(){var t=this;Object(i._12)({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._11)(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"},o=[];e.list.forEach(function(e){e!==t&&o.push(e)}),s.desc=JSON.stringify(o),Object(i._54)(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",{attrs:{classs:"noLesson"}},[s("el-row",{staticClass:"add-btn",attrs:{type:"flex",justify:"end"}},[s("el-col",{attrs:{span:6}},[t.$store.state.readonly?t._e():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",{key:i,attrs:{"body-style":{padding:"0px"}}},[s("span",{staticClass:"time"},[t._v(t._s(e))]),t._v(" "),s("div",{staticClass:"bottom clearfix"},[t.$store.state.deletePermission&&!t.$store.state.readonly?s("el-button",{staticClass:"button",attrs:{type:"text"},on:{click:function(s){t.del(e)}}},[t._v("删除")]):t._e()],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("XxBP")},"data-v-4c22ba2e",null);e.default=d.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([22],{Xhqp:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("CCn6"),a={name:"resource",data:function(){return{mediaList:[],nowPage:1,total:0,limit:5,loading:!1,type:"news",imageList:[],uploadParam:{type:"wechat",chunk:0,count:1},fileUid:null,showProgress:!1,typeText:{image:"图片",video:"视频",voice:"语音"}}},components:{page:i("kmJW").a},mounted:function(){this.getMediaList(this.type)},computed:{progress:function(){var t=this;return this.$store.state.progressList.find(function(e){return e.id===t.fileUid}).num<100?this.$store.state.progressList.find(function(e){return e.id===t.fileUid}).num:100}},methods:{getMediaType:function(t){this.type=t,this.nowPage=1,this.getMediaList(t)},onPageChange:function(t){this.nowPage=t,this.getMediaList(this.type)},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getMediaList(this.type)},getMediaList:function(t){var e=this,i={type:t,page:this.nowPage,limit:this.limit};this.loading=!0,Object(s._20)(i).then(function(i){e.loading=!1,e.type=t,e.mediaList=i.item,e.total=i.total_count,0===i.item.length&&e.$message({showClose:!0,message:"暂无数据"})}).catch(function(){e.loading=!1})},handleUploadSuccess:function(t){200===t.code&&(this.imageList=[{name:t.data.url,url:"https://cdn.singsingenglish.com/"+t.data.url}])},uploadFile:function(t){var e=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:t.file.uid}),this.fileUid=t.file.uid,this.showProgress=!0,Object(s._58)({file:t.file,type:"wechat"}).then(function(t){e.imageList=[{name:t.url,url:"https://cdn.singsingenglish.com/"+t.url}],e.getMediaList(e.type),e.loading=!1,e.showProgress=!1,e.$message({type:"success",message:"上传成功!"})}).catch(function(){e.loading=!1,e.showProgress=!1})}}},n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"media"},[i("h2",{staticClass:"media-title"},[t._v("素材管理")]),t._v(" "),i("div",[i("ul",{staticClass:"media-navs"},[i("li",{staticClass:"media-nav js_top",class:"news"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("news")}}},[t._m(0)]),t._v(" "),i("li",{staticClass:"media-nav js_top",class:"image"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("image")}}},[t._m(1)]),t._v(" "),i("li",{staticClass:"media-nav js_top",class:"voice"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("voice")}}},[t._m(2)]),t._v(" "),i("li",{staticClass:"media-nav js_top",class:"video"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("video")}}},[t._m(3)])]),t._v(" "),i("div",{staticClass:"media-panel"},[i("div",{staticClass:"media-panel-top flex-bt"},[i("div",{staticClass:"media-panel-top-left"},[t._v("\n "+t._s(t.typeText[t.type])+"(共"+t._s(t.total)+"条)\n ")]),t._v(" "),t.showProgress?i("div",{staticClass:"progress"},[i("el-progress",{attrs:{percentage:t.progress,status:"success"}})],1):t._e(),t._v(" "),"news"!==t.type?i("div",{staticClass:"media-panel-top-right"},[i("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:"/api/public/upload/zone","http-request":t.uploadFile,"show-file-list":!1,data:t.uploadParam}},[t.$store.state.readonly?t._e():i("el-button",{staticStyle:{order:"2"},attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")])],1)],1):t._e()]),t._v(" "),t.mediaList.length>0&&"news"===t.type?i("div",{staticClass:"d-start",staticStyle:{"margin-bottom":"20px"}},t._l(t.mediaList,function(e,s){return i("div",{key:s,staticClass:"news-media"},[i("el-card",{attrs:{"body-style":{padding:"0px"}}},t._l(e.content.news_item,function(s,a){return i("div",{staticStyle:{position:"relative"}},[1===e.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"digest"},[t._v(t._s(s.digest))]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):e.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===a?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"bottom-title"},[t._v(t._s(s.title))])]):i("div",{staticClass:"next-cover"},[i("span",{staticClass:"next-title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticClass:"next-img",attrs:{src:s.thumb_url}})]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t._e()])}))],1)})):t._e(),t._v(" "),t.mediaList.length>0&&"news"===t.type?i("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}}):t._e(),t._v(" "),t.mediaList.length>0&&"news"!==t.type?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(e){return["image"===t.type?i("a",{attrs:{href:e.row.url,target:"_blank"}},[i("img",{staticStyle:{width:"60px"},attrs:{src:e.row.url}})]):t._e(),t._v(" "),"video"===t.type&&e.row.info&&e.row.info.down_url?i("a",{attrs:{href:e.row.info.down_url,target:"_blank"}},[t._v("\n "+t._s(e.row.info.title)+"\n ")]):t._e(),t._v(" "),"voice"===t.type?i("audio",{attrs:{id:"myAudio",controls:""}},[i("source",{attrs:{src:e.row.url}}),t._v("\n Your browser does not support the audio element.\n ")]):t._e()]}}])})],1),t._v(" "),i("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1):t._e()],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("图文消息"),e("br")])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("图片"),e("br")])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("语音"),e("br")])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("视频"),e("br")])}]};var o=i("VU/8")(a,n,!1,function(t){i("nYpX"),i("q2HM")},"data-v-44f59173",null);e.default=o.exports},nYpX:function(t,e){},q2HM:function(t,e){}}); webpackJsonp([23],{Xhqp:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("CCn6"),a={name:"resource",data:function(){return{mediaList:[],nowPage:1,total:0,limit:5,loading:!1,type:"news",imageList:[],uploadParam:{type:"wechat",chunk:0,count:1},fileUid:null,showProgress:!1,typeText:{image:"图片",video:"视频",voice:"语音"}}},components:{page:i("kmJW").a},mounted:function(){this.getMediaList(this.type)},computed:{progress:function(){var t=this;return this.$store.state.progressList.find(function(e){return e.id===t.fileUid}).num<100?this.$store.state.progressList.find(function(e){return e.id===t.fileUid}).num:100}},methods:{getMediaType:function(t){this.type=t,this.nowPage=1,this.getMediaList(t)},onPageChange:function(t){this.nowPage=t,this.getMediaList(this.type)},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getMediaList(this.type)},getMediaList:function(t){var e=this,i={type:t,page:this.nowPage,limit:this.limit};this.loading=!0,Object(s._20)(i).then(function(i){e.loading=!1,e.type=t,e.mediaList=i.item,e.total=i.total_count,0===i.item.length&&e.$message({showClose:!0,message:"暂无数据"})}).catch(function(){e.loading=!1})},handleUploadSuccess:function(t){200===t.code&&(this.imageList=[{name:t.data.url,url:"https://cdn.singsingenglish.com/"+t.data.url}])},uploadFile:function(t){var e=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:t.file.uid}),this.fileUid=t.file.uid,this.showProgress=!0,Object(s._58)({file:t.file,type:"wechat"}).then(function(t){e.imageList=[{name:t.url,url:"https://cdn.singsingenglish.com/"+t.url}],e.getMediaList(e.type),e.loading=!1,e.showProgress=!1,e.$message({type:"success",message:"上传成功!"})}).catch(function(){e.loading=!1,e.showProgress=!1})}}},n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"media"},[i("h2",{staticClass:"media-title"},[t._v("素材管理")]),t._v(" "),i("div",[i("ul",{staticClass:"media-navs"},[i("li",{staticClass:"media-nav js_top",class:"news"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("news")}}},[t._m(0)]),t._v(" "),i("li",{staticClass:"media-nav js_top",class:"image"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("image")}}},[t._m(1)]),t._v(" "),i("li",{staticClass:"media-nav js_top",class:"voice"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("voice")}}},[t._m(2)]),t._v(" "),i("li",{staticClass:"media-nav js_top",class:"video"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("video")}}},[t._m(3)])]),t._v(" "),i("div",{staticClass:"media-panel"},[i("div",{staticClass:"media-panel-top flex-bt"},[i("div",{staticClass:"media-panel-top-left"},[t._v("\n "+t._s(t.typeText[t.type])+"(共"+t._s(t.total)+"条)\n ")]),t._v(" "),t.showProgress?i("div",{staticClass:"progress"},[i("el-progress",{attrs:{percentage:t.progress,status:"success"}})],1):t._e(),t._v(" "),"news"!==t.type?i("div",{staticClass:"media-panel-top-right"},[i("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:"/api/public/upload/zone","http-request":t.uploadFile,"show-file-list":!1,data:t.uploadParam}},[t.$store.state.readonly?t._e():i("el-button",{staticStyle:{order:"2"},attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")])],1)],1):t._e()]),t._v(" "),t.mediaList.length>0&&"news"===t.type?i("div",{staticClass:"d-start",staticStyle:{"margin-bottom":"20px"}},t._l(t.mediaList,function(e,s){return i("div",{key:s,staticClass:"news-media"},[i("el-card",{attrs:{"body-style":{padding:"0px"}}},t._l(e.content.news_item,function(s,a){return i("div",{staticStyle:{position:"relative"}},[1===e.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"digest"},[t._v(t._s(s.digest))]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):e.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===a?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"bottom-title"},[t._v(t._s(s.title))])]):i("div",{staticClass:"next-cover"},[i("span",{staticClass:"next-title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticClass:"next-img",attrs:{src:s.thumb_url}})]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t._e()])}))],1)})):t._e(),t._v(" "),t.mediaList.length>0&&"news"===t.type?i("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}}):t._e(),t._v(" "),t.mediaList.length>0&&"news"!==t.type?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(e){return["image"===t.type?i("a",{attrs:{href:e.row.url,target:"_blank"}},[i("img",{staticStyle:{width:"60px"},attrs:{src:e.row.url}})]):t._e(),t._v(" "),"video"===t.type&&e.row.info&&e.row.info.down_url?i("a",{attrs:{href:e.row.info.down_url,target:"_blank"}},[t._v("\n "+t._s(e.row.info.title)+"\n ")]):t._e(),t._v(" "),"voice"===t.type?i("audio",{attrs:{id:"myAudio",controls:""}},[i("source",{attrs:{src:e.row.url}}),t._v("\n Your browser does not support the audio element.\n ")]):t._e()]}}])})],1),t._v(" "),i("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1):t._e()],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("图文消息"),e("br")])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("图片"),e("br")])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("语音"),e("br")])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("视频"),e("br")])}]};var o=i("VU/8")(a,n,!1,function(t){i("nYpX"),i("q2HM")},"data-v-44f59173",null);e.default=o.exports},nYpX:function(t,e){},q2HM:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([23],{F8nD:function(e,t){},YQOW:function(e,t){},gaNG:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("CCn6"),o=(a("+TkF"),a("kmJW")),s={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,form:{key:"",value:"",desc:""},mediaList:[],rules:{value:[{required:!0,message:"请输入关键词",trigger:"change"}],desc:[{required:!0,message:"请输入描述",trigger:"change"}],key:[{required:!0,message:"请输入Key",trigger:"change"}]}}},components:{page:o.a},methods:{save:function(){var e=this;this.dialogObj.id?this.$refs.form.validate(function(t){t&&Object(i._54)(e.id,e.form).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.show=!1})}):this.$refs.form.validate(function(t){t&&Object(i._47)(e.form).then(function(t){e.$message({type:"success",message:"新增成功!"}),e.$emit("reflash"),e.show=!1})})},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.key=this.dialogObj.key,this.form.value=this.dialogObj.value,this.form.desc=this.dialogObj.desc,this.loading=!1}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"自动回复",center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("Key")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"key"}},[a("el-input",{model:{value:e.form.key,callback:function(t){e.$set(e.form,"key",t)},expression:"form.key"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("关键词")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"value"}},[a("el-input",{model:{value:e.form.value,callback:function(t){e.$set(e.form,"value",t)},expression:"form.value"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("描述")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",[a("el-input",{attrs:{type:"textarea"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1)],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)],1)])},staticRenderFns:[]};var n={name:"sysConfig",data:function(){return{total:0,nowPage:1,limit:10,dialogObj:{value:"",desc:"",show:!1,id:""},list:[]}},components:{dialogCom:a("VU/8")(s,l,!1,function(e){a("F8nD")},"data-v-47365745",null).exports,page:o.a},mounted:function(){this.getList()},methods:{changeShow:function(e){this.dialogObj.show=e},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};Object(i._12)(t).then(function(t){e.list=t.list,e.total=t.total})},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getList()},add:function(){this.dialogObj.id="",this.dialogObj.key="",this.dialogObj.value="",this.dialogObj.desc="",this.dialogObj.show=!0},edit:function(e){var t=this;Object(i._11)(e.id).then(function(e){t.dialogObj.id=e.id,t.dialogObj.key=e.key,t.dialogObj.value=e.value,t.dialogObj.desc=e.desc,t.dialogObj.show=!0})},del:function(e){var t=this;this.$confirm("此操作将删除该记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.G)(e.id).then(function(e){t.getList(),t.$message({type:"success",message:"删除成功!"})})})}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sys"},[a("div",{staticClass:"clear-both top"},[e.$store.state.readonly?e._e():a("el-button",{staticStyle:{float:"right"},attrs:{type:"success",plain:""},on:{click:e.add}},[e._v("添加配置")])],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left"}},[a("el-form-item",{attrs:{label:"Key"}},[a("span",[e._v(e._s(t.row.key))])]),e._v(" "),a("el-form-item",{attrs:{label:"关键词"}},[a("span",[e._v(e._s(t.row.value))])]),e._v(" "),a("el-form-item",{attrs:{label:"描述"}},[a("span",[e._v(e._s(t.row.desc))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"ID",prop:"id"}}),e._v(" "),a("el-table-column",{attrs:{label:"Key",prop:"key"}}),e._v(" "),a("el-table-column",{attrs:{label:"关键词",prop:"value"}}),e._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),e._v(" "),e.$store.state.readonly?e._e():a("el-table-column",{attrs:{width:"250",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(a){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission?a("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(a){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),a("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.getList}}),e._v(" "),a("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var c=a("VU/8")(n,r,!1,function(e){a("YQOW")},"data-v-287f4b28",null);t.default=c.exports}}); webpackJsonp([24],{F8nD:function(e,t){},YQOW:function(e,t){},gaNG:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("CCn6"),o=(a("+TkF"),a("kmJW")),s={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,form:{key:"",value:"",desc:""},mediaList:[],rules:{value:[{required:!0,message:"请输入关键词",trigger:"change"}],desc:[{required:!0,message:"请输入描述",trigger:"change"}],key:[{required:!0,message:"请输入Key",trigger:"change"}]}}},components:{page:o.a},methods:{save:function(){var e=this;this.dialogObj.id?this.$refs.form.validate(function(t){t&&Object(i._54)(e.id,e.form).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.show=!1})}):this.$refs.form.validate(function(t){t&&Object(i._47)(e.form).then(function(t){e.$message({type:"success",message:"新增成功!"}),e.$emit("reflash"),e.show=!1})})},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.key=this.dialogObj.key,this.form.value=this.dialogObj.value,this.form.desc=this.dialogObj.desc,this.loading=!1}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"自动回复",center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("Key")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"key"}},[a("el-input",{model:{value:e.form.key,callback:function(t){e.$set(e.form,"key",t)},expression:"form.key"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("关键词")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"value"}},[a("el-input",{model:{value:e.form.value,callback:function(t){e.$set(e.form,"value",t)},expression:"form.value"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("描述")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",[a("el-input",{attrs:{type:"textarea"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1)],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)],1)])},staticRenderFns:[]};var n={name:"sysConfig",data:function(){return{total:0,nowPage:1,limit:10,dialogObj:{value:"",desc:"",show:!1,id:""},list:[]}},components:{dialogCom:a("VU/8")(s,l,!1,function(e){a("F8nD")},"data-v-47365745",null).exports,page:o.a},mounted:function(){this.getList()},methods:{changeShow:function(e){this.dialogObj.show=e},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};Object(i._12)(t).then(function(t){e.list=t.list,e.total=t.total})},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getList()},add:function(){this.dialogObj.id="",this.dialogObj.key="",this.dialogObj.value="",this.dialogObj.desc="",this.dialogObj.show=!0},edit:function(e){var t=this;Object(i._11)(e.id).then(function(e){t.dialogObj.id=e.id,t.dialogObj.key=e.key,t.dialogObj.value=e.value,t.dialogObj.desc=e.desc,t.dialogObj.show=!0})},del:function(e){var t=this;this.$confirm("此操作将删除该记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.G)(e.id).then(function(e){t.getList(),t.$message({type:"success",message:"删除成功!"})})})}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sys"},[a("div",{staticClass:"clear-both top"},[e.$store.state.readonly?e._e():a("el-button",{staticStyle:{float:"right"},attrs:{type:"success",plain:""},on:{click:e.add}},[e._v("添加配置")])],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left"}},[a("el-form-item",{attrs:{label:"Key"}},[a("span",[e._v(e._s(t.row.key))])]),e._v(" "),a("el-form-item",{attrs:{label:"关键词"}},[a("span",[e._v(e._s(t.row.value))])]),e._v(" "),a("el-form-item",{attrs:{label:"描述"}},[a("span",[e._v(e._s(t.row.desc))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"ID",prop:"id"}}),e._v(" "),a("el-table-column",{attrs:{label:"Key",prop:"key"}}),e._v(" "),a("el-table-column",{attrs:{label:"关键词",prop:"value"}}),e._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),e._v(" "),e.$store.state.readonly?e._e():a("el-table-column",{attrs:{width:"250",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(a){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission?a("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(a){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),a("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.getList}}),e._v(" "),a("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var c=a("VU/8")(n,r,!1,function(e){a("YQOW")},"data-v-287f4b28",null);t.default=c.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([24],{"0Xc4":function(e,t){},"1djJ":function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=s("CCn6"),i=s("+TkF"),l=s("kmJW"),a={name:"dialogObj",props:["dialogObj"],data:function(){return{loading:!0,form:{name:"",goods_type:1,goods_desc:{desc:"",imgLesson:[],img:[]},course_id:"",course_type:0,watch_num:"",duration_num:0,original_price:"",current_price:"",is_real:0,is_auth_user:0,share_desc:{title:"",content:"",img:[]},desc:{detail:"",qa:"",customer_service:[]}},lessonList:[]}},methods:{sub:function(){var e=this,t=JSON.parse(JSON.stringify(this.form)+"");switch(t.original_price=(100*t.original_price).toFixed(0),t.current_price=(100*t.current_price).toFixed(0),t.goods_desc=JSON.stringify(t.goods_desc),t.desc=JSON.stringify(t.desc),t.share_desc=JSON.stringify(t.share_desc),this.dialogObj.type){case 1:Object(o.Q)(this.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.dialogObj.show=!1});break;case 0:Object(o.i)(t).then(function(t){e.$message({type:"success",message:"新增成功!"}),e.$emit("reflash"),e.dialogObj.show=!1})}},removeFileMain:function(e){var t=this.form.goods_desc.img.findIndex(function(t){return t.name===e.name});this.form.goods_desc.img.splice(t,1)},uploadFileLesson:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(o._58)({file:e.file,type:"local"}).then(function(e){t.form.goods_desc.imgLesson=[{name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""}],t.$message({message:"上传成功",type:"success"})})},removeFileLesson:function(){this.form.goods_desc.imgLesson=[]},uploadFileMain:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(o._58)({file:e.file,type:"local"}).then(function(e){t.form.goods_desc.img.push({name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""}),t.$message({message:"上传成功",type:"success"})})},uploadFileMainShare:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(o._58)({file:e.file,type:"local"}).then(function(e){t.$message({message:"上传成功",type:"success"}),t.form.share_desc.img?t.form.share_desc.img[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.share_desc.img=[],t.form.share_desc.img[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},uploadFileMainService:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(o._58)({file:e.file,type:"local"}).then(function(e){t.$message({message:"上传成功",type:"success"}),t.form.desc.customer_service?t.form.desc.customer_service[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.desc.customer_service=[],t.form.desc.customer_service[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},uploadFileShare:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(o._58)({file:e.file,type:"local"}).then(function(e){t.$message({message:"上传成功",type:"success"}),t.form.share_desc.img?t.form.share_desc.img[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.share_desc.img=[],t.form.share_desc.img[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},initDialog:function(){var e=this;switch(this.dialogObj.type){case 0:this.loading=!1,this.form={name:"",goods_type:1,goods_desc:{desc:"",img:[]},course_id:"",course_type:0,watch_num:"",duration_num:0,original_price:"",current_price:"",is_real:0,is_auth_user:0,share_desc:{title:"",content:"",img:[]},desc:{detail:"",qa:"",customer_service:[]}},this.getLessonList();break;case 1:case 2:Object(o._16)(this.dialogObj.id).then(function(t){e.loading=!1,e.form={name:t.name,goods_type:t.goods_type,goods_desc:JSON.parse(t.goods_desc),course_id:t.course_id,course_type:t.course_type,watch_num:t.watch_num,duration_num:t.duration_num,original_price:t.original_price/100,current_price:t.current_price/100,is_real:t.is_real,is_auth_user:t.is_auth_user,share_desc:JSON.parse(t.share_desc),desc:JSON.parse(t.desc),invite_earnings:t.invite_earnings,is_auth_teacher:t.is_auth_teacher},e.getLessonList()});break;case 3:this.title="编辑",this.show=this.dialogObj.show,this.id=this.dialogObj.id,this.type=2}},changeLessonType:function(){this.getLessonList()},getLessonList:function(){var e=this;Object(o._18)({type:this.form.course_type}).then(function(t){e.lessonList=t.list})}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},r={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-dialog",{attrs:{title:e.dialogObj.title,center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[s("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px",disabled:2===e.dialogObj.type}},[s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"商品名称"}},[s("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"商品描述"}},[s("el-input",{model:{value:e.form.goods_desc.desc,callback:function(t){e.$set(e.form.goods_desc,"desc",t)},expression:"form.goods_desc.desc"}})],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"课程类型"}},[s("el-select",{attrs:{placeholder:"请选择"},on:{change:function(t){e.changeLessonType()}},model:{value:e.form.course_type,callback:function(t){e.$set(e.form,"course_type",t)},expression:"form.course_type"}},[s("el-option",{attrs:{label:"日课",value:1}}),e._v(" "),s("el-option",{attrs:{label:"月课",value:0}})],1)],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"课程"}},[s("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.course_id,callback:function(t){e.$set(e.form,"course_id",t)},expression:"form.course_id"}},e._l(e.lessonList,function(e){return s("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})}))],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"观看时长(节)"}},[s("el-input-number",{attrs:{label:"课时数"},model:{value:e.form.watch_num,callback:function(t){e.$set(e.form,"watch_num",t)},expression:"form.watch_num"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"续看时长(天)"}},[s("el-input-number",{attrs:{label:"看课天数"},model:{value:e.form.duration_num,callback:function(t){e.$set(e.form,"duration_num",t)},expression:"form.duration_num"}})],1)],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"课程封面(750*600)"}},[s("el-upload",{staticClass:"upload-demo",attrs:{"list-type":"picture-card",action:"/api/public/upload","http-request":e.uploadFileLesson,"on-remove":e.removeFileLesson,limit:1,"file-list":e.form.goods_desc.imgLesson}},[s("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),s("el-form-item",{attrs:{label:"主图(750*600)"}},[s("el-upload",{staticClass:"upload-demo",attrs:{"list-type":"picture-card",action:"/api/public/upload","http-request":e.uploadFileMain,"on-remove":e.removeFileMain,"file-list":e.form.goods_desc.img}},[s("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),s("el-form-item",{attrs:{label:"客服(200*200)"}},[s("el-upload",{staticClass:"upload-demo",class:e.form.desc.customer_service&&e.form.desc.customer_service.length>0?"uploadService":"",attrs:{"list-type":"picture-card",action:"/api/public/upload",limit:1,"http-request":e.uploadFileMainService,"file-list":e.form.desc.customer_service}},[s("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"商品类型"}},[s("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.goods_type,callback:function(t){e.$set(e.form,"goods_type",t)},expression:"form.goods_type"}},[s("el-option",{attrs:{label:"普通商品",value:1}}),e._v(" "),s("el-option",{attrs:{label:"团购商品",value:2}})],1)],1)],1)],1),e._v(" "),1===e.form.goods_type?s("el-form-item",{attrs:{label:"推荐奖金(元)"}},[s("el-input-number",{attrs:{label:"推荐奖金"},model:{value:e.form.invite_earnings,callback:function(t){e.$set(e.form,"invite_earnings",t)},expression:"form.invite_earnings"}})],1):e._e(),e._v(" "),s("el-form-item",{attrs:{label:"是否配置实物"}},[s("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_real,callback:function(t){e.$set(e.form,"is_real",t)},expression:"form.is_real"}}),e._v(" "),s("span",{staticStyle:{"font-size":"12px"}},[e._v("打开后提示用户填写具体住址")])],1),e._v(" "),1===e.form.goods_type?s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"是否允许用户推广","label-width":"200"}},[s("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_auth_user,callback:function(t){e.$set(e.form,"is_auth_user",t)},expression:"form.is_auth_user"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"是否允许老师推广","label-width":"200"}},[s("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_auth_teacher,callback:function(t){e.$set(e.form,"is_auth_teacher",t)},expression:"form.is_auth_teacher"}})],1)],1)],1):e._e(),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:1===e.form.goods_type?"原价(元)":"单买价格(元)"}},[s("el-input-number",{attrs:{label:"原价"},model:{value:e.form.original_price,callback:function(t){e.$set(e.form,"original_price",t)},expression:"form.original_price"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:1===e.form.goods_type?"现价(元)":"拼团价格(元)"}},[s("el-input-number",{attrs:{label:"现价"},model:{value:e.form.current_price,callback:function(t){e.$set(e.form,"current_price",t)},expression:"form.current_price"}})],1)],1)],1),e._v(" "),2===e.form.goods_type?s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"成团人数(人)"}},[s("el-input-number",{attrs:{label:"成团人数"},model:{value:e.form.desc.group_number,callback:function(t){e.$set(e.form.desc,"group_number",t)},expression:"form.desc.group_number"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"团购失效时间(小时)","label-width":"136"}},[s("el-input-number",{attrs:{label:"团购失效时间"},model:{value:e.form.desc.group_continue,callback:function(t){e.$set(e.form.desc,"group_continue",t)},expression:"form.desc.group_continue"}})],1)],1)],1):e._e(),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"分享标题"}},[s("el-input",{model:{value:e.form.share_desc.title,callback:function(t){e.$set(e.form.share_desc,"title",t)},expression:"form.share_desc.title"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"分享内容"}},[s("el-input",{model:{value:e.form.share_desc.content,callback:function(t){e.$set(e.form.share_desc,"content",t)},expression:"form.share_desc.content"}})],1)],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"分享主图(300*300)"}},[s("el-upload",{attrs:{"list-type":"picture-card",action:"/api/public/upload",limit:1,"file-list":e.form.share_desc.img,"http-request":e.uploadFileMainShare}},[s("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"商品详情"}},[s("el-input",{attrs:{type:"textarea",rows:25},model:{value:e.form.desc.detail,callback:function(t){e.$set(e.form.desc,"detail",t)},expression:"form.desc.detail"}})],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"购买须知"}},[s("el-input",{attrs:{type:"textarea",rows:25},model:{value:e.form.desc.qa,callback:function(t){e.$set(e.form.desc,"qa",t)},expression:"form.desc.qa"}})],1)],1)],1)],1),e._v(" "),2!==e.dialogObj.type?s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1):e._e()],1)])},staticRenderFns:[]};var n=s("VU/8")(a,r,!1,function(e){s("0Xc4")},"data-v-28239383",null).exports,c={name:"index",data:function(){return{searchFrom:{name:""},userList:[],total:0,nowPage:1,limit:10,chooseDialog:{show:!1,title:"",id:"",form:{value:"",list:[]},type:0},dialogObj:{type:0,show:!1,title:"",id:""},classList:[]}},components:{page:l.a,dialogCom:n},filters:{isOrNot:function(e){return i.h[e]},goodsType:function(e){return i.e[e]},lessonType:function(e){return i.i[e]},goodsStatus:function(e){return i.d[e]}},mounted:function(){this.getUser(),this.getClassList()},methods:{onPageChange:function(e){this.nowPage=e,this.getUser()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getUser()},copyShop:function(e){var t=this;this.$confirm("此操作将复制该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.s)(e.id).then(function(e){t.$message({type:"success",message:"复制成功!"})}),t.getUser()})},copyUrl:function(e){var t="https://wechat.changchangenglish.com/#/buyDetail?shopId="+e,s=document.createElement("input");s.value=t,document.body.appendChild(s),s.select(),document.execCommand("Copy"),this.$message({message:"已成功复制到剪切板",type:"success"}),s.remove()},dialogSub:function(){var e=this;switch(this.chooseDialog.type){case 0:Object(o.o)(this.chooseDialog.id,this.chooseDialog.form.value).then(function(t){e.$message({message:"绑定成功",type:"success"}),e.chooseDialog.show=!1}),this.getUser();break;case 1:var t={conflict_goods_ids:this.chooseDialog.form.list.toString()};Object(o.r)(this.chooseDialog.id,t).then(function(t){e.$message({message:"设置成功",type:"success"}),e.chooseDialog.show=!1,e.getUser()})}},getUser:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.name&&(t.name=this.searchFrom.name),this.searchFrom.course_id&&(t.course_id=this.searchFrom.course_id),this.searchFrom.status&&(t.status=this.searchFrom.status),this.searchFrom.current_price&&(t.current_price=100*this.searchFrom.current_price),Object(o._17)(t).then(function(t){t.list.forEach(function(e){""===e.conflict_goods_ids?e.conflict_goods_ids=[]:e.conflict_goods_ids=e.conflict_goods_ids.split(",")}),e.userList=t.list,e.total=t.total})},edit:function(e){this.dialogObj={type:1,title:"编辑商品",show:!0,id:e.id}},add:function(){this.dialogObj={type:0,title:"添加商品",show:!0}},detail:function(e){this.dialogObj.id=e.id,this.dialogObj.type=2,this.dialogObj.title="查看商品",this.dialogObj.show=!0},onDel:function(e){var t=this;this.$confirm("此操作将删除该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.H)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"})}),t.getUser()})},onUp:function(e){var t=this;this.$confirm("此操作将上架该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o._53)(e.id).then(function(e){t.$message({type:"success",message:"操作成功!"}),t.getUser()})})},onDown:function(e){var t=this;this.$confirm("此操作将下架该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.J)(e.id).then(function(e){t.$message({type:"success",message:"操作成功!"}),t.getUser()})})},changeShow:function(e){this.dialogObj.show=e},bindOther:function(e){this.chooseDialog={show:!0,title:"绑定商品",id:e.id,form:{value:"",list:[]},type:0}},conflict:function(e){this.chooseDialog={show:!0,title:"冲突商品",id:e.id,form:{value:"",list:e.conflict_goods_ids},type:1}},getClassList:function(){var e=this;Object(o._18)({limit:2e3,page:1}).then(function(t){e.classList=t.list})}}},u={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"user"},[s("el-form",{ref:"searchFrom",staticClass:"search-form",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[s("el-form-item",{attrs:{label:"商品名称"}},[s("el-input",{model:{value:e.searchFrom.name,callback:function(t){e.$set(e.searchFrom,"name",t)},expression:"searchFrom.name"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"课程"}},[s("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getUser},model:{value:e.searchFrom.course_id,callback:function(t){e.$set(e.searchFrom,"course_id",t)},expression:"searchFrom.course_id"}},[s("el-option",{attrs:{value:"",label:"请选择"}}),e._v(" "),e._l(e.classList,function(e,t){return s("el-option",{key:t,attrs:{label:e.title,value:e.id}})})],2)],1),e._v(" "),s("el-form-item",{attrs:{label:"商品状态"}},[s("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getUser},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},[s("el-option",{attrs:{value:"",label:"请选择"}}),e._v(" "),s("el-option",{attrs:{value:"0",label:"编辑中"}}),e._v(" "),s("el-option",{attrs:{value:"1",label:"上架"}}),e._v(" "),s("el-option",{attrs:{value:"2",label:"下架"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"商品现价/团购价","label-width":"120px"}},[s("el-input-number",{model:{value:e.searchFrom.current_price,callback:function(t){e.$set(e.searchFrom,"current_price",t)},expression:"searchFrom.current_price"}})],1),e._v(" "),s("el-form-item",[s("div",{staticClass:"search-btn-block"},[s("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-search"},on:{click:e.getUser}},[e._v("搜索")])],1)])],1),e._v(" "),s("div",{staticClass:"new-block"},[e.$store.state.readonly?e._e():s("el-button",{attrs:{type:"success",plain:""},on:{click:e.add}},[e._v("添加商品")])],1),e._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.userList}},[s("el-table-column",{attrs:{prop:"name",label:"名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("router-link",{attrs:{to:{name:"periods",query:{goods_id:t.row.id}}}},[e._v("\n "+e._s(t.row.name)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"商品类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("goodsType")(t.row.goods_type))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"商品原价/直购价"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.original_price/100)+"元\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"商品现价/团购价"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.current_price/100)+"元\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"course_title",label:"课程名称"}}),e._v(" "),s("el-table-column",{attrs:{label:"课程类别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("lessonType")(t.row.course_type))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"是否有实物"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("isOrNot")(t.row.is_real))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("goodsStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{width:"60",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-popover",{attrs:{placement:"top",width:"600"}},[s("div",{staticStyle:{"text-align":"center"}},[s("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(s){e.detail(t.row)}}},[e._v("\n 查看详情\n ")]),e._v(" "),s("el-button",{attrs:{size:"mini",plain:""},on:{click:function(s){e.copyUrl(t.row.id)}}},[e._v("\n 复制链接\n ")]),e._v(" "),e.$store.state.readonly?e._e():[2===t.row.status||0===t.row.status?s("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(s){e.onUp(t.row)}}},[e._v("\n 上架\n ")]):e._e(),e._v(" "),1===t.row.status?s("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(s){e.onDown(t.row)}}},[e._v("\n 下架\n ")]):e._e(),e._v(" "),s("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(s){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),s("el-button",{attrs:{size:"mini",plain:"",type:"success"},on:{click:function(s){e.copyShop(t.row)}}},[e._v("\n 复制商品\n ")]),e._v(" "),2===t.row.status?s("el-button",{attrs:{size:"mini",plain:""},on:{click:function(s){e.bindOther(t.row)}}},[e._v("\n 绑定商品\n ")]):e._e(),e._v(" "),s("el-button",{attrs:{size:"mini",plain:""},on:{click:function(s){e.conflict(t.row)}}},[e._v("\n 冲突商品\n ")]),e._v(" "),e.$store.state.deletePermission?s("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(s){e.onDel(t.row)}}},[e._v("\n 删除\n ")]):e._e()]],2),e._v(" "),s("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),s("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),s("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.getUser}}),e._v(" "),s("el-dialog",{attrs:{title:e.chooseDialog.title,visible:e.chooseDialog.show,width:"30%"},on:{"update:visible":function(t){e.$set(e.chooseDialog,"show",t)}}},[s("el-form",{ref:"form",attrs:{"label-width":"80px"}},[0===e.chooseDialog.type?s("el-form-item",{attrs:{label:"绑定商品"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.chooseDialog.form.value,callback:function(t){e.$set(e.chooseDialog.form,"value",t)},expression:"chooseDialog.form.value"}},e._l(e.userList,function(e){return s("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e(),e._v(" "),1===e.chooseDialog.type?s("el-form-item",{attrs:{label:"冲突商品"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",multiple:""},model:{value:e.chooseDialog.form.list,callback:function(t){e.$set(e.chooseDialog.form,"list",t)},expression:"chooseDialog.form.list"}},e._l(e.userList,function(e){return s("el-option",{key:e.id,attrs:{label:e.name,value:e.id.toString()}})}))],1):e._e()],1),e._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.chooseDialog.show=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogSub()}}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var m=s("VU/8")(c,u,!1,function(e){s("K6A+")},"data-v-5f536b82",null);t.default=m.exports},"K6A+":function(e,t){}});
\ No newline at end of file
webpackJsonp([25],{"1djJ":function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=s("CCn6"),o=s("+TkF"),l=s("kmJW"),a={name:"dialogObj",props:["dialogObj"],data:function(){return{loading:!0,form:{name:"",goods_type:1,goods_desc:{desc:"",imgLesson:[],img:[]},course_id:"",course_type:0,watch_num:"",duration_num:0,original_price:"",current_price:"",is_real:0,is_auth_user:0,share_desc:{title:"",content:"",img:[],refImg:[]},desc:{detail:"",qa:"",customer_service:[]}},lessonList:[]}},methods:{sub:function(){var e=this;console.log(this.form);var t=JSON.parse(JSON.stringify(this.form)+"");switch(t.original_price=(100*t.original_price).toFixed(0),t.current_price=(100*t.current_price).toFixed(0),t.invite_earnings=(100*t.invite_earnings).toFixed(0),t.goods_desc=JSON.stringify(t.goods_desc),t.desc=JSON.stringify(t.desc),t.share_desc=JSON.stringify(t.share_desc),this.dialogObj.type){case 1:Object(i.Q)(this.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.dialogObj.show=!1});break;case 0:Object(i.i)(t).then(function(t){e.$message({type:"success",message:"新增成功!"}),e.$emit("reflash"),e.dialogObj.show=!1})}},removeFileMain:function(e){var t=this.form.goods_desc.img.findIndex(function(t){return t.name===e.name});this.form.goods_desc.img.splice(t,1)},uploadFileLesson:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(i._58)({file:e.file,type:"local"}).then(function(e){t.form.goods_desc.imgLesson=[{name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""}],t.$message({message:"上传成功",type:"success"})})},removeFileLesson:function(){this.form.goods_desc.imgLesson=[]},uploadFileMain:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(i._58)({file:e.file,type:"local"}).then(function(e){t.form.goods_desc.img.push({name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""}),t.$message({message:"上传成功",type:"success"})})},removeFileShareRef:function(){this.form.share_desc.refImg=[]},uploadFileMainShareRef:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(i._58)({file:e.file,type:"local"}).then(function(e){t.$message({message:"上传成功",type:"success"}),t.form.share_desc.refImg?t.form.share_desc.refImg[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.share_desc.refImg=[],t.form.share_desc.refImg[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},uploadFileMainShare:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(i._58)({file:e.file,type:"local"}).then(function(e){t.$message({message:"上传成功",type:"success"}),t.form.share_desc.img?t.form.share_desc.img[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.share_desc.img=[],t.form.share_desc.img[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},uploadFileMainService:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(i._58)({file:e.file,type:"local"}).then(function(e){t.$message({message:"上传成功",type:"success"}),t.form.desc.customer_service?t.form.desc.customer_service[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.desc.customer_service=[],t.form.desc.customer_service[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},uploadFileShare:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(i._58)({file:e.file,type:"local"}).then(function(e){t.$message({message:"上传成功",type:"success"}),t.form.share_desc.img?t.form.share_desc.img[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.share_desc.img=[],t.form.share_desc.img[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},initDialog:function(){var e=this;switch(this.dialogObj.type){case 0:this.loading=!1,this.form={name:"",goods_type:1,goods_desc:{desc:"",img:[]},course_id:"",course_type:0,watch_num:"",duration_num:0,original_price:"",current_price:"",is_real:0,is_auth_user:0,share_desc:{title:"",content:"",refImg:[],img:[]},desc:{detail:"",qa:"",customer_service:[]}},this.getLessonList();break;case 1:case 2:this.form={name:"",goods_type:1,goods_desc:{desc:"",img:[]},course_id:"",course_type:0,watch_num:"",duration_num:0,original_price:"",current_price:"",is_real:0,is_auth_user:0,share_desc:{title:"",content:"",refImg:[],img:[]},desc:{detail:"",qa:"",customer_service:[]}},Object(i._16)(this.dialogObj.id).then(function(t){e.loading=!1;var s=JSON.parse(t.share_desc);s.refImg||(s.refImg=[]),e.form={name:t.name,goods_type:t.goods_type,goods_desc:JSON.parse(t.goods_desc),course_id:t.course_id,course_type:t.course_type,watch_num:t.watch_num,duration_num:t.duration_num,original_price:t.original_price/100,current_price:t.current_price/100,is_real:t.is_real,is_auth_user:t.is_auth_user,share_desc:JSON.parse(t.share_desc),desc:JSON.parse(t.desc),invite_earnings:t.invite_earnings/100,is_auth_teacher:t.is_auth_teacher},e.getLessonList()});break;case 3:this.title="编辑",this.show=this.dialogObj.show,this.id=this.dialogObj.id,this.type=2}},changeLessonType:function(){this.getLessonList()},getLessonList:function(){var e=this;Object(i._18)({type:this.form.course_type}).then(function(t){e.lessonList=t.list})}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},r={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-dialog",{attrs:{title:e.dialogObj.title,center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[s("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px",disabled:2===e.dialogObj.type}},[s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"商品名称"}},[s("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"商品描述"}},[s("el-input",{model:{value:e.form.goods_desc.desc,callback:function(t){e.$set(e.form.goods_desc,"desc",t)},expression:"form.goods_desc.desc"}})],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"课程类型"}},[s("el-select",{attrs:{placeholder:"请选择"},on:{change:function(t){e.changeLessonType()}},model:{value:e.form.course_type,callback:function(t){e.$set(e.form,"course_type",t)},expression:"form.course_type"}},[s("el-option",{attrs:{label:"日课",value:1}}),e._v(" "),s("el-option",{attrs:{label:"月课",value:0}})],1)],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"课程"}},[s("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.course_id,callback:function(t){e.$set(e.form,"course_id",t)},expression:"form.course_id"}},e._l(e.lessonList,function(e){return s("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})}))],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"观看时长(节)"}},[s("el-input-number",{attrs:{label:"课时数"},model:{value:e.form.watch_num,callback:function(t){e.$set(e.form,"watch_num",t)},expression:"form.watch_num"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"续看时长(天)"}},[s("el-input-number",{attrs:{label:"看课天数"},model:{value:e.form.duration_num,callback:function(t){e.$set(e.form,"duration_num",t)},expression:"form.duration_num"}})],1)],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"课程封面(750*600)"}},[s("el-upload",{staticClass:"upload-demo",attrs:{"list-type":"picture-card",action:"/api/public/upload","http-request":e.uploadFileLesson,"on-remove":e.removeFileLesson,limit:1,"file-list":e.form.goods_desc.imgLesson}},[s("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),s("el-form-item",{attrs:{label:"主图(750*600)"}},[s("el-upload",{staticClass:"upload-demo",attrs:{"list-type":"picture-card",action:"/api/public/upload","http-request":e.uploadFileMain,"on-remove":e.removeFileMain,"file-list":e.form.goods_desc.img}},[s("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),s("el-form-item",{attrs:{label:"客服(200*200)"}},[s("el-upload",{staticClass:"upload-demo",class:e.form.desc.customer_service&&e.form.desc.customer_service.length>0?"uploadService":"",attrs:{"list-type":"picture-card",action:"/api/public/upload",limit:1,"http-request":e.uploadFileMainService,"file-list":e.form.desc.customer_service}},[s("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"商品类型"}},[s("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.goods_type,callback:function(t){e.$set(e.form,"goods_type",t)},expression:"form.goods_type"}},[s("el-option",{attrs:{label:"普通商品",value:1}}),e._v(" "),s("el-option",{attrs:{label:"团购商品",value:2}})],1)],1)],1)],1),e._v(" "),1===e.form.goods_type?s("el-form-item",{attrs:{label:"推荐奖金(元)"}},[s("el-input-number",{attrs:{label:"推荐奖金"},model:{value:e.form.invite_earnings,callback:function(t){e.$set(e.form,"invite_earnings",t)},expression:"form.invite_earnings"}})],1):e._e(),e._v(" "),s("el-form-item",{attrs:{label:"是否配置实物"}},[s("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_real,callback:function(t){e.$set(e.form,"is_real",t)},expression:"form.is_real"}}),e._v(" "),s("span",{staticStyle:{"font-size":"12px"}},[e._v("打开后提示用户填写具体住址")])],1),e._v(" "),1===e.form.goods_type?s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"是否允许用户推广","label-width":"200"}},[s("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_auth_user,callback:function(t){e.$set(e.form,"is_auth_user",t)},expression:"form.is_auth_user"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"是否允许老师推广","label-width":"200"}},[s("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_auth_teacher,callback:function(t){e.$set(e.form,"is_auth_teacher",t)},expression:"form.is_auth_teacher"}})],1)],1)],1):e._e(),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:1===e.form.goods_type?"原价(元)":"单买价格(元)"}},[s("el-input-number",{attrs:{label:"原价"},model:{value:e.form.original_price,callback:function(t){e.$set(e.form,"original_price",t)},expression:"form.original_price"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:1===e.form.goods_type?"现价(元)":"拼团价格(元)"}},[s("el-input-number",{attrs:{label:"现价"},model:{value:e.form.current_price,callback:function(t){e.$set(e.form,"current_price",t)},expression:"form.current_price"}})],1)],1)],1),e._v(" "),2===e.form.goods_type?s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"成团人数(人)"}},[s("el-input-number",{attrs:{label:"成团人数"},model:{value:e.form.desc.group_number,callback:function(t){e.$set(e.form.desc,"group_number",t)},expression:"form.desc.group_number"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"团购失效时间(小时)","label-width":"136"}},[s("el-input-number",{attrs:{label:"团购失效时间"},model:{value:e.form.desc.group_continue,callback:function(t){e.$set(e.form.desc,"group_continue",t)},expression:"form.desc.group_continue"}})],1)],1)],1):e._e(),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"分享标题"}},[s("el-input",{model:{value:e.form.share_desc.title,callback:function(t){e.$set(e.form.share_desc,"title",t)},expression:"form.share_desc.title"}})],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"分享内容"}},[s("el-input",{model:{value:e.form.share_desc.content,callback:function(t){e.$set(e.form.share_desc,"content",t)},expression:"form.share_desc.content"}})],1)],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"分享主图(300*300)"}},[s("el-upload",{attrs:{"list-type":"picture-card",action:"/api/public/upload",limit:1,"file-list":e.form.share_desc.img,"http-request":e.uploadFileMainShare}},[s("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),s("el-form-item",{attrs:{label:"分享海报"}},[s("el-upload",{attrs:{"list-type":"picture-card",action:"/api/public/upload",limit:1,"file-list":e.form.share_desc.refImg,"http-request":e.uploadFileMainShareRef}},[s("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"商品详情"}},[s("el-input",{attrs:{type:"textarea",rows:25},model:{value:e.form.desc.detail,callback:function(t){e.$set(e.form.desc,"detail",t)},expression:"form.desc.detail"}})],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"购买须知"}},[s("el-input",{attrs:{type:"textarea",rows:25},model:{value:e.form.desc.qa,callback:function(t){e.$set(e.form.desc,"qa",t)},expression:"form.desc.qa"}})],1)],1)],1)],1),e._v(" "),2!==e.dialogObj.type?s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1):e._e()],1)])},staticRenderFns:[]};var n=s("VU/8")(a,r,!1,function(e){s("vmiN")},"data-v-003bb4fe",null).exports,c={name:"index",data:function(){return{searchFrom:{name:""},userList:[],total:0,nowPage:1,limit:10,chooseDialog:{show:!1,title:"",id:"",form:{value:"",list:[]},type:0},dialogObj:{type:0,show:!1,title:"",id:""},classList:[]}},components:{page:l.a,dialogCom:n},filters:{isOrNot:function(e){return o.h[e]},goodsType:function(e){return o.e[e]},lessonType:function(e){return o.i[e]},goodsStatus:function(e){return o.d[e]}},mounted:function(){this.getUser(),this.getClassList()},methods:{onPageChange:function(e){this.nowPage=e,this.getUser()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getUser()},copyShop:function(e){var t=this;this.$confirm("此操作将复制该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.s)(e.id).then(function(e){t.$message({type:"success",message:"复制成功!"})}),t.getUser()})},copyUrl:function(e){var t="https://wechat.changchangenglish.com/#/buyDetail?shopId="+e,s=document.createElement("input");s.value=t,document.body.appendChild(s),s.select(),document.execCommand("Copy"),this.$message({message:"已成功复制到剪切板",type:"success"}),s.remove()},dialogSub:function(){var e=this;switch(this.chooseDialog.type){case 0:Object(i.o)(this.chooseDialog.id,this.chooseDialog.form.value).then(function(t){e.$message({message:"绑定成功",type:"success"}),e.chooseDialog.show=!1}),this.getUser();break;case 1:var t={conflict_goods_ids:this.chooseDialog.form.list.toString()};Object(i.r)(this.chooseDialog.id,t).then(function(t){e.$message({message:"设置成功",type:"success"}),e.chooseDialog.show=!1,e.getUser()})}},getUser:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.name&&(t.name=this.searchFrom.name),this.searchFrom.course_id&&(t.course_id=this.searchFrom.course_id),this.searchFrom.status&&(t.status=this.searchFrom.status),this.searchFrom.current_price&&(t.current_price=100*this.searchFrom.current_price),Object(i._17)(t).then(function(t){t.list.forEach(function(e){""===e.conflict_goods_ids?e.conflict_goods_ids=[]:e.conflict_goods_ids=e.conflict_goods_ids.split(",")}),e.userList=t.list,e.total=t.total})},edit:function(e){this.dialogObj={type:1,title:"编辑商品",show:!0,id:e.id}},add:function(){this.dialogObj={type:0,title:"添加商品",show:!0}},detail:function(e){this.dialogObj.id=e.id,this.dialogObj.type=2,this.dialogObj.title="查看商品",this.dialogObj.show=!0},onDel:function(e){var t=this;this.$confirm("此操作将删除该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.H)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"})}),t.getUser()})},onUp:function(e){var t=this;this.$confirm("此操作将上架该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i._53)(e.id).then(function(e){t.$message({type:"success",message:"操作成功!"}),t.getUser()})})},onDown:function(e){var t=this;this.$confirm("此操作将下架该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.J)(e.id).then(function(e){t.$message({type:"success",message:"操作成功!"}),t.getUser()})})},changeShow:function(e){this.dialogObj.show=e},bindOther:function(e){this.chooseDialog={show:!0,title:"绑定商品",id:e.id,form:{value:"",list:[]},type:0}},conflict:function(e){this.chooseDialog={show:!0,title:"冲突商品",id:e.id,form:{value:"",list:e.conflict_goods_ids},type:1}},getClassList:function(){var e=this;Object(i._18)({limit:2e3,page:1}).then(function(t){e.classList=t.list})}}},u={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"user"},[s("el-form",{ref:"searchFrom",staticClass:"search-form",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[s("el-form-item",{attrs:{label:"商品名称"}},[s("el-input",{model:{value:e.searchFrom.name,callback:function(t){e.$set(e.searchFrom,"name",t)},expression:"searchFrom.name"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"课程"}},[s("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getUser},model:{value:e.searchFrom.course_id,callback:function(t){e.$set(e.searchFrom,"course_id",t)},expression:"searchFrom.course_id"}},[s("el-option",{attrs:{value:"",label:"请选择"}}),e._v(" "),e._l(e.classList,function(e,t){return s("el-option",{key:t,attrs:{label:e.title,value:e.id}})})],2)],1),e._v(" "),s("el-form-item",{attrs:{label:"商品状态"}},[s("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getUser},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},[s("el-option",{attrs:{value:"",label:"请选择"}}),e._v(" "),s("el-option",{attrs:{value:"0",label:"编辑中"}}),e._v(" "),s("el-option",{attrs:{value:"1",label:"上架"}}),e._v(" "),s("el-option",{attrs:{value:"2",label:"下架"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"商品现价/团购价","label-width":"120px"}},[s("el-input-number",{model:{value:e.searchFrom.current_price,callback:function(t){e.$set(e.searchFrom,"current_price",t)},expression:"searchFrom.current_price"}})],1),e._v(" "),s("el-form-item",[s("div",{staticClass:"search-btn-block"},[s("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-search"},on:{click:e.getUser}},[e._v("搜索")])],1)])],1),e._v(" "),s("div",{staticClass:"new-block"},[e.$store.state.readonly?e._e():s("el-button",{attrs:{type:"success",plain:""},on:{click:e.add}},[e._v("添加商品")])],1),e._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.userList}},[s("el-table-column",{attrs:{prop:"name",label:"名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("router-link",{attrs:{to:{name:"periods",query:{goods_id:t.row.id}}}},[e._v("\n "+e._s(t.row.name)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"商品类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("goodsType")(t.row.goods_type))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"商品原价/直购价"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.original_price/100)+"元\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"商品现价/团购价"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.current_price/100)+"元\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"course_title",label:"课程名称"}}),e._v(" "),s("el-table-column",{attrs:{label:"课程类别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("lessonType")(t.row.course_type))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"是否有实物"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("isOrNot")(t.row.is_real))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("goodsStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{width:"60",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-popover",{attrs:{placement:"top",width:"600"}},[s("div",{staticStyle:{"text-align":"center"}},[s("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(s){e.detail(t.row)}}},[e._v("\n 查看详情\n ")]),e._v(" "),s("el-button",{attrs:{size:"mini",plain:""},on:{click:function(s){e.copyUrl(t.row.id)}}},[e._v("\n 复制链接\n ")]),e._v(" "),e.$store.state.readonly?e._e():[2===t.row.status||0===t.row.status?s("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(s){e.onUp(t.row)}}},[e._v("\n 上架\n ")]):e._e(),e._v(" "),1===t.row.status?s("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(s){e.onDown(t.row)}}},[e._v("\n 下架\n ")]):e._e(),e._v(" "),s("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(s){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),s("el-button",{attrs:{size:"mini",plain:"",type:"success"},on:{click:function(s){e.copyShop(t.row)}}},[e._v("\n 复制商品\n ")]),e._v(" "),2===t.row.status?s("el-button",{attrs:{size:"mini",plain:""},on:{click:function(s){e.bindOther(t.row)}}},[e._v("\n 绑定商品\n ")]):e._e(),e._v(" "),s("el-button",{attrs:{size:"mini",plain:""},on:{click:function(s){e.conflict(t.row)}}},[e._v("\n 冲突商品\n ")]),e._v(" "),e.$store.state.deletePermission?s("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(s){e.onDel(t.row)}}},[e._v("\n 删除\n ")]):e._e()]],2),e._v(" "),s("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),s("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),s("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.getUser}}),e._v(" "),s("el-dialog",{attrs:{title:e.chooseDialog.title,visible:e.chooseDialog.show,width:"30%"},on:{"update:visible":function(t){e.$set(e.chooseDialog,"show",t)}}},[s("el-form",{ref:"form",attrs:{"label-width":"80px"}},[0===e.chooseDialog.type?s("el-form-item",{attrs:{label:"绑定商品"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.chooseDialog.form.value,callback:function(t){e.$set(e.chooseDialog.form,"value",t)},expression:"chooseDialog.form.value"}},e._l(e.userList,function(e){return s("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e(),e._v(" "),1===e.chooseDialog.type?s("el-form-item",{attrs:{label:"冲突商品"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",multiple:""},model:{value:e.chooseDialog.form.list,callback:function(t){e.$set(e.chooseDialog.form,"list",t)},expression:"chooseDialog.form.list"}},e._l(e.userList,function(e){return s("el-option",{key:e.id,attrs:{label:e.name,value:e.id.toString()}})}))],1):e._e()],1),e._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.chooseDialog.show=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogSub()}}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var m=s("VU/8")(c,u,!1,function(e){s("K6A+")},"data-v-5f536b82",null);t.default=m.exports},"K6A+":function(e,t){},vmiN:function(e,t){}});
\ No newline at end of file
webpackJsonp([28],{"3CW6":function(t,e){},F5pf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s,n=a("CCn6");function o(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var l={name:"putForward",data:function(){return{nowPage:1,total:0,limit:10,search:{key:"",status:0},liStatus:[{label:"全部",status:""},{label:"申请中",status:0},{label:"提现成功",status:1},{label:"提现失败",status:2}],tableData:[],showDialog:!1,showDesc:!1,dialogTitle:"审核",nowObj:{id:"",status:1,reason:"",desc:""},page:{current:1,pageSize:100,total:0}}},components:{page:a("kmJW").a},filters:{moneyYuan:function(t){return(t/100).toFixed(2)+"元"},filterStatus:function(t){var e="";return 0===t?e="审核中":1===t?e="提现成功":2===t&&(e="提现失败"),e}},mounted:function(){this.getList()},methods:(s={onPageChange:function(t){this.nowPage=t},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getList()},getList:function(){var t=this,e={limit:this.limit,page:this.nowPage};Object(n._40)(e).then(function(e){t.tableData=e.list,t.total=e.total})},onSearch:function(){this.page.current=1,this.getList()},checkMoney:function(t){this.nowObj.id=t,this.showDesc=!1,this.showDialog=!0},addDesc:function(t,e){this.nowObj.id=t,this.nowObj.desc=e,this.showDesc=!0,this.showDialog=!0}},o(s,"onPageChange",function(t){this.page.current=t,this.getList()}),o(s,"doCallback",function(){this.nowObj.id="",this.nowObj.status=1,this.nowObj.reason="",this.nowObj.desc="",this.page.current=1,this.showDialog=!1,this.getList(),this.$message({message:"提交成功",type:"success"})}),o(s,"onSave",function(t){var e=this;if(t){var a={desc:this.nowObj.desc};if(""===a.desc||null==a.desc)return this.$message.error("请填写备注"),!1;Object(n.S)(this.nowObj.id,"withdraw",a).then(function(t){e.doCallback()})}else{var s={reason:this.nowObj.reason,status:this.nowObj.status};if((""===s.reason||null==s.reason)&&2===s.status)return this.$message.error("请填写失败理由"),!1;s.reason="",Object(n._60)(this.nowObj.id,s).then(function(t){e.doCallback()})}}),s)},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"putForward"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.search,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"关键字"}},[a("el-input",{attrs:{placeholder:"用户名/手机号"},model:{value:t.search.key,callback:function(e){t.$set(t.search,"key",e)},expression:"search.key"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"订单状态"}},[a("el-select",{attrs:{placeholder:"用户名/手机/课程名称"},on:{change:t.onSearch},model:{value:t.search.status,callback:function(e){t.$set(t.search,"status",e)},expression:"search.status"}},t._l(t.liStatus,function(t){return a("el-option",{key:t.status,attrs:{label:t.label,value:t.status}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")])],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},[a("el-table-column",{attrs:{prop:"username",label:"用户名"}}),t._v(" "),a("el-table-column",{attrs:{prop:"mobile",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{label:"已获得总额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.getSumMoney))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"已提金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.alreadyMoney))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"可提余额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.resMoney))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.money))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:{status:!0,red:2===e.row.status,green:1===e.row.status}},[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"同意提现时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pay_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),t.$store.state.readonly?t._e():a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.checkMoney(e.row.id,e.row.desc)}}},[t._v("\n 审核\n ")]):t._e(),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.addDesc(e.row.id,e.row.desc)}}},[t._v("\n 添加备注\n ")])]}}])})],1),t._v(" "),a("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}}),t._v(" "),t.showDialog?a("el-dialog",{attrs:{title:t.dialogTitle,visible:t.showDialog},on:{"update:visible":function(e){t.showDialog=e}}},[a("el-form",{ref:"saveuser",attrs:{model:t.nowObj,"label-width":"70px"}},[t.showDesc?t._e():a("el-form-item",{attrs:{label:"订单状态"}},[[a("el-radio-group",{model:{value:t.nowObj.status,callback:function(e){t.$set(t.nowObj,"status",e)},expression:"nowObj.status"}},[a("el-radio",{attrs:{label:1}},[t._v("提现成功")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("提现失败")])],1)]],2),t._v(" "),2!==t.nowObj.status||t.showDesc?t._e():a("el-form-item",{attrs:{label:"失败理由"}},[a("el-input",{attrs:{type:"textarea",rows:"3","auto-complete":"off"},model:{value:t.nowObj.reason,callback:function(e){t.$set(t.nowObj,"reason",e)},expression:"nowObj.reason"}})],1),t._v(" "),t.showDesc?a("el-form-item",{attrs:{label:"备注信息"}},[a("el-input",{attrs:{type:"textarea",rows:"3","auto-complete":"off"},model:{value:t.nowObj.desc,callback:function(e){t.$set(t.nowObj,"desc",e)},expression:"nowObj.desc"}})],1):t._e()],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.onSave(t.showDesc)}}},[t._v("保 存")]),t._v(" "),a("el-button",{on:{click:function(e){t.showDialog=!1}}},[t._v("取 消")])],1)],1):t._e()],1)},staticRenderFns:[]};var i=a("VU/8")(l,r,!1,function(t){a("3CW6")},"data-v-5f592212",null);e.default=i.exports}});
\ No newline at end of file
webpackJsonp([29],{hLMI:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("kmJW"),s=a("sf/l"),i=a("CCn6"),l={name:"index",components:{page:r.a},data:function(){return{total:0,nowPage:1,limit:10,searchFrom:{source:""},tableData:[]}},created:function(){this.initPage()},methods:{initPage:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.time&&(t.time=this.searchFrom.time),this.searchFrom.source&&(t.source=this.searchFrom.source),this.searchFrom.time&&this.searchFrom.time.length>0&&(t.date_start=s.a.dateFmt(this.searchFrom.time[0],"yyyy-MM-dd hh:mm:ss"),t.date_end=s.a.dateFmt(this.searchFrom.time[1],"yyyy-MM-dd hh:mm:ss")),Object(i.Z)(t).then(function(t){e.tableData=t.list,e.total=t.total})},onPageChange:function(e){this.nowPage=e,this.initPage()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.initPage()}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"index"},[a("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{lg:10,sm:24,md:24}},[a("el-form-item",{attrs:{label:"购买时间"}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},model:{value:e.searchFrom.time,callback:function(t){e.$set(e.searchFrom,"time",t)},expression:"searchFrom.time"}})],1)],1),e._v(" "),a("el-col",{attrs:{lg:4,sm:24,md:12}},[a("el-form-item",{attrs:{label:"来源"}},[a("el-input",{attrs:{placeholder:"名称",size:"small"},model:{value:e.searchFrom.source,callback:function(t){e.$set(e.searchFrom,"source",t)},expression:"searchFrom.source"}})],1)],1),e._v(" "),a("el-col",{attrs:{lg:4,sm:24,md:12}},[a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:"",size:"small"},on:{click:e.initPage}},[e._v("\n 搜索\n ")])],1)],1)],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"user_name",label:"宝贝名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"create_at",label:"添加时间"}}),e._v(" "),a("el-table-column",{attrs:{prop:"source",label:"来源"}})],1),e._v(" "),a("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var n=a("VU/8")(l,o,!1,function(e){a("yF5K")},"data-v-5052be2a",null);t.default=n.exports},yF5K:function(e,t){}}); webpackJsonp([28],{hLMI:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("kmJW"),s=a("sf/l"),i=a("CCn6"),l={name:"index",components:{page:r.a},data:function(){return{total:0,nowPage:1,limit:10,searchFrom:{source:""},tableData:[]}},created:function(){this.initPage()},methods:{initPage:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.time&&(t.time=this.searchFrom.time),this.searchFrom.source&&(t.source=this.searchFrom.source),this.searchFrom.time&&this.searchFrom.time.length>0&&(t.date_start=s.a.dateFmt(this.searchFrom.time[0],"yyyy-MM-dd hh:mm:ss"),t.date_end=s.a.dateFmt(this.searchFrom.time[1],"yyyy-MM-dd hh:mm:ss")),Object(i.Z)(t).then(function(t){e.tableData=t.list,e.total=t.total})},onPageChange:function(e){this.nowPage=e,this.initPage()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.initPage()}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"index"},[a("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{lg:10,sm:24,md:24}},[a("el-form-item",{attrs:{label:"购买时间"}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},model:{value:e.searchFrom.time,callback:function(t){e.$set(e.searchFrom,"time",t)},expression:"searchFrom.time"}})],1)],1),e._v(" "),a("el-col",{attrs:{lg:4,sm:24,md:12}},[a("el-form-item",{attrs:{label:"来源"}},[a("el-input",{attrs:{placeholder:"名称",size:"small"},model:{value:e.searchFrom.source,callback:function(t){e.$set(e.searchFrom,"source",t)},expression:"searchFrom.source"}})],1)],1),e._v(" "),a("el-col",{attrs:{lg:4,sm:24,md:12}},[a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:"",size:"small"},on:{click:e.initPage}},[e._v("\n 搜索\n ")])],1)],1)],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"user_name",label:"宝贝名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"create_at",label:"添加时间"}}),e._v(" "),a("el-table-column",{attrs:{prop:"source",label:"来源"}})],1),e._v(" "),a("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var n=a("VU/8")(l,o,!1,function(e){a("yF5K")},"data-v-5052be2a",null);t.default=n.exports},yF5K:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([30],{EFea:function(e,t){},aTXs:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o("CCn6"),a={data:function(){return{nowPage:1,total:0,menuList:[],plist:[],dialog:{title:"新增菜单",show:!1,rules:{name:[{required:!0,message:"请填写菜单名称",trigger:"change"}],cover:[{required:!0,message:"请填写菜单code",trigger:"change"}]},form:{id:"",name:"",cover:"",pid:0,type:2}}}},created:function(){this.getList()},methods:{getList:function(){var e=this;Object(i._21)().then(function(t){t&&(e.menuList=[],e.plist=[],t.forEach(function(t){e.menuList.push(t),e.plist.push(t),t.children&&t.children.forEach(function(t){e.menuList.push(t)})}))})},edit:function(e){this.dialog.show=!0,this.dialog.form.id=e.id,this.dialog.title="编辑菜单",this.dialog.form.name=e.name,this.dialog.form.cover=e.cover,this.dialog.form.pid=e.pid},add:function(){this.dialog.show=!0,this.dialog.form.id="",this.dialog.title="新增菜单",this.dialog.form.name="",this.dialog.form.pid=0,this.dialog.form.cover=""},del:function(e){var t=this;this.$confirm("此操作将删除该菜单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.B)(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._55)(o.form.id,a).then(function(){e.$message({type:"success",message:"修改成功!"}),o.show=!1,e.getList()})}else{var l={name:o.form.name,cover:o.form.cover,pid:o.form.pid};Object(i._48)(l).then(function(){e.$message({type:"success",message:"添加成功!"}),o.show=!1,e.getList()})}}})}}},l={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"menu"},[o("div",{staticClass:"head clear-both"},[e.$store.state.readonly?e._e():o("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增菜单")])],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.menuList}},[o("el-table-column",{attrs:{prop:"name",label:"菜单名称"}}),e._v(" "),o("el-table-column",{attrs:{prop:"cover",label:"菜单Code"}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),o("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"30%"},on:{"update:visible":function(t){e.$set(e.dialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{rules:e.dialog.rules,model:e.dialog.form,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"菜单名称",prop:"name"}},[o("el-input",{model:{value:e.dialog.form.name,callback:function(t){e.$set(e.dialog.form,"name",t)},expression:"dialog.form.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"菜单Code",prop:"cover"}},[o("el-input",{model:{value:e.dialog.form.cover,callback:function(t){e.$set(e.dialog.form,"cover",t)},expression:"dialog.form.cover"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"上级菜单",prop:"cover"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.dialog.form.pid,callback:function(t){e.$set(e.dialog.form,"pid",t)},expression:"dialog.form.pid"}},[o("el-option",{attrs:{label:"无",value:0}}),e._v(" "),e._l(e.plist,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})],2)],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var s=o("VU/8")(a,l,!1,function(e){o("EFea")},"data-v-40740e0e",null);t.default=s.exports}}); webpackJsonp([29],{EFea:function(e,t){},aTXs:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o("CCn6"),a={data:function(){return{nowPage:1,total:0,menuList:[],plist:[],dialog:{title:"新增菜单",show:!1,rules:{name:[{required:!0,message:"请填写菜单名称",trigger:"change"}],cover:[{required:!0,message:"请填写菜单code",trigger:"change"}]},form:{id:"",name:"",cover:"",pid:0,type:2}}}},created:function(){this.getList()},methods:{getList:function(){var e=this;Object(i._21)().then(function(t){t&&(e.menuList=[],e.plist=[],t.forEach(function(t){e.menuList.push(t),e.plist.push(t),t.children&&t.children.forEach(function(t){e.menuList.push(t)})}))})},edit:function(e){this.dialog.show=!0,this.dialog.form.id=e.id,this.dialog.title="编辑菜单",this.dialog.form.name=e.name,this.dialog.form.cover=e.cover,this.dialog.form.pid=e.pid},add:function(){this.dialog.show=!0,this.dialog.form.id="",this.dialog.title="新增菜单",this.dialog.form.name="",this.dialog.form.pid=0,this.dialog.form.cover=""},del:function(e){var t=this;this.$confirm("此操作将删除该菜单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.B)(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._55)(o.form.id,a).then(function(){e.$message({type:"success",message:"修改成功!"}),o.show=!1,e.getList()})}else{var l={name:o.form.name,cover:o.form.cover,pid:o.form.pid};Object(i._48)(l).then(function(){e.$message({type:"success",message:"添加成功!"}),o.show=!1,e.getList()})}}})}}},l={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"menu"},[o("div",{staticClass:"head clear-both"},[e.$store.state.readonly?e._e():o("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增菜单")])],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.menuList}},[o("el-table-column",{attrs:{prop:"name",label:"菜单名称"}}),e._v(" "),o("el-table-column",{attrs:{prop:"cover",label:"菜单Code"}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),o("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"30%"},on:{"update:visible":function(t){e.$set(e.dialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{rules:e.dialog.rules,model:e.dialog.form,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"菜单名称",prop:"name"}},[o("el-input",{model:{value:e.dialog.form.name,callback:function(t){e.$set(e.dialog.form,"name",t)},expression:"dialog.form.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"菜单Code",prop:"cover"}},[o("el-input",{model:{value:e.dialog.form.cover,callback:function(t){e.$set(e.dialog.form,"cover",t)},expression:"dialog.form.cover"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"上级菜单",prop:"cover"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.dialog.form.pid,callback:function(t){e.$set(e.dialog.form,"pid",t)},expression:"dialog.form.pid"}},[o("el-option",{attrs:{label:"无",value:0}}),e._v(" "),e._l(e.plist,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})],2)],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var s=o("VU/8")(a,l,!1,function(e){o("EFea")},"data-v-40740e0e",null);t.default=s.exports}});
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([31],{iPJD:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i("CCn6"),l={name:"upload",data:function(){return{fileList:[]}},methods:{uploadFileVideo1Banner:function(e){var t=this;Object(n._58)({file:e.file,type:"local"}).then(function(e){e.url="https://cdn.singsingenglish.com/"+e.url,t.fileList.push(e)})}}},a={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-upload",{staticClass:"upload-demo",attrs:{action:"/api/public/upload","http-request":e.uploadFileVideo1Banner,"list-type":"picture-card",multiple:""}}),e._v(" "),i("pre",[e._v(" <p>\n ")]),e._v(" "),e._l(e.fileList,function(t){return i("pre",[e._v(' <img src="'+e._s(t.url)+'" style="display:block">\n ')])}),e._v(" "),i("pre",[e._v(" </p>\n ")])],2)},staticRenderFns:[]};var r=i("VU/8")(l,a,!1,function(e){i("wi9J")},"data-v-3a2ff3b1",null);t.default=r.exports},wi9J:function(e,t){}}); webpackJsonp([30],{iPJD:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i("CCn6"),l={name:"upload",data:function(){return{fileList:[]}},methods:{uploadFileVideo1Banner:function(e){var t=this;Object(n._58)({file:e.file,type:"local"}).then(function(e){e.url="https://cdn.singsingenglish.com/"+e.url,t.fileList.push(e)})}}},a={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-upload",{staticClass:"upload-demo",attrs:{action:"/api/public/upload","http-request":e.uploadFileVideo1Banner,"list-type":"picture-card",multiple:""}}),e._v(" "),i("pre",[e._v(" <p>\n ")]),e._v(" "),e._l(e.fileList,function(t){return i("pre",[e._v(' <img src="'+e._s(t.url)+'" style="display:block">\n ')])}),e._v(" "),i("pre",[e._v(" </p>\n ")])],2)},staticRenderFns:[]};var r=i("VU/8")(l,a,!1,function(e){i("wi9J")},"data-v-3a2ff3b1",null);t.default=r.exports},wi9J:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([32],{s3qc:function(e,t){},"s7i+":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("CCn6"),s={name:"index",data:function(){return{goodsList:[],headList:[],tableData:[],searchFrom:{priceList:[],dateValue:[]}}},mounted:function(){this.defaultTime(),this.initPage()},methods:{initPage:function(){var e=this;Object(r._17)({limit:99999}).then(function(t){t.list.forEach(function(t){e.searchFrom.priceList.push(t.id)}),e.goodsList=t.list,e.searchPage()})},searchPage:function(){var e=this;if(this.searchFrom.dateValue.length<2)this.$message.error("请先选择起止日期");else{var t={start_at:this.searchFrom.dateValue[0],end_at:this.searchFrom.dateValue[1],goods_ids:this.searchFrom.priceList.toString()};Object(r._45)(t).then(function(t){if(t.length>0){var a=t[0];for(var r in e.tableData=t,e.headList=[],a)"cur_date"===r?e.headList.push("时间"):"register_num"===r?e.headList.push("注册数"):"total_money"===r?e.headList.push("总金额"):e.headList.push(r)}})}},defaultTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();r<10&&(r="0"+r);var s=t+"-"+a+"-01",n=t+"-"+a+"-"+r;this.searchFrom.dateValue=[s,n]}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"orderCount"},[a("el-form",{ref:"searchFrom",attrs:{inline:"",model:e.searchFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"商品"}},[a("el-select",{staticStyle:{width:"600px"},attrs:{"collapse-tags":"",multiple:"",filterable:"",placeholder:"请选择"},on:{change:e.searchPage},model:{value:e.searchFrom.priceList,callback:function(t){e.$set(e.searchFrom,"priceList",t)},expression:"searchFrom.priceList"}},e._l(e.goodsList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchPage},model:{value:e.searchFrom.dateValue,callback:function(t){e.$set(e.searchFrom,"dateValue",t)},expression:"searchFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},e._l(e.headList,function(t){return a("el-table-column",{key:t,attrs:{label:t},scopedSlots:e._u([{key:"default",fn:function(r){return["时间"===t?a("span",[e._v("\n "+e._s(r.row.cur_date)+"\n ")]):e._e(),e._v(" "),"注册数"===t?a("span",[e._v("\n "+e._s(r.row.register_num)+"\n ")]):e._e(),e._v(" "),"总金额"===t?a("span",[e._v("\n "+e._s(r.row.total_money)+"\n ")]):e._e(),e._v(" "),"时间"!==t&&"注册数"!==t&&"总金额"!==t?a("span",[e._v("\n "+e._s(r.row[t])+"\n ")]):e._e()]}}])})}))],1)},staticRenderFns:[]};var i=a("VU/8")(s,n,!1,function(e){a("s3qc")},"data-v-2eff3588",null);t.default=i.exports}}); webpackJsonp([31],{s3qc:function(e,t){},"s7i+":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("CCn6"),s={name:"index",data:function(){return{goodsList:[],headList:[],tableData:[],searchFrom:{priceList:[],dateValue:[]}}},mounted:function(){this.defaultTime(),this.initPage()},methods:{initPage:function(){var e=this;Object(r._17)({limit:99999}).then(function(t){t.list.forEach(function(t){e.searchFrom.priceList.push(t.id)}),e.goodsList=t.list,e.searchPage()})},searchPage:function(){var e=this;if(this.searchFrom.dateValue.length<2)this.$message.error("请先选择起止日期");else{var t={start_at:this.searchFrom.dateValue[0],end_at:this.searchFrom.dateValue[1],goods_ids:this.searchFrom.priceList.toString()};Object(r._45)(t).then(function(t){if(t.length>0){var a=t[0];for(var r in e.tableData=t,e.headList=[],a)"cur_date"===r?e.headList.push("时间"):"register_num"===r?e.headList.push("注册数"):"total_money"===r?e.headList.push("总金额"):e.headList.push(r)}})}},defaultTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();r<10&&(r="0"+r);var s=t+"-"+a+"-01",n=t+"-"+a+"-"+r;this.searchFrom.dateValue=[s,n]}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"orderCount"},[a("el-form",{ref:"searchFrom",attrs:{inline:"",model:e.searchFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"商品"}},[a("el-select",{staticStyle:{width:"600px"},attrs:{"collapse-tags":"",multiple:"",filterable:"",placeholder:"请选择"},on:{change:e.searchPage},model:{value:e.searchFrom.priceList,callback:function(t){e.$set(e.searchFrom,"priceList",t)},expression:"searchFrom.priceList"}},e._l(e.goodsList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchPage},model:{value:e.searchFrom.dateValue,callback:function(t){e.$set(e.searchFrom,"dateValue",t)},expression:"searchFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},e._l(e.headList,function(t){return a("el-table-column",{key:t,attrs:{label:t},scopedSlots:e._u([{key:"default",fn:function(r){return["时间"===t?a("span",[e._v("\n "+e._s(r.row.cur_date)+"\n ")]):e._e(),e._v(" "),"注册数"===t?a("span",[e._v("\n "+e._s(r.row.register_num)+"\n ")]):e._e(),e._v(" "),"总金额"===t?a("span",[e._v("\n "+e._s(r.row.total_money)+"\n ")]):e._e(),e._v(" "),"时间"!==t&&"注册数"!==t&&"总金额"!==t?a("span",[e._v("\n "+e._s(r.row[t])+"\n ")]):e._e()]}}])})}))],1)},staticRenderFns:[]};var i=a("VU/8")(s,n,!1,function(e){a("s3qc")},"data-v-2eff3588",null);t.default=i.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([33],{Dq6T:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("CCn6"),l={name:"index",data:function(){return{searchFrom:{watchTime:[]},tableData:[],tableHead:[]}},methods:{defaultTime:function(){var t=new Date,e=t.getFullYear(),a=t.getMonth()+1;a<10&&(a="0"+a);var r=t.getDate();r<10&&(r="0"+r);var l=e+"-"+a+"-01",s=e+"-"+a+"-"+r;this.searchFrom.watchTime=[l,s]},getList:function(){var t=this,e={};this.searchFrom.watchTime&&this.searchFrom.watchTime.length>0&&(e.start_at=this.searchFrom.watchTime[0],e.end_at=this.searchFrom.watchTime[1]),Object(r._39)(e).then(function(e){t.tableHead=e[0],t.tableData=e.slice(1)})}},mounted:function(){this.defaultTime(),this.getList()}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"index"},[a("el-form",{ref:"searchFrom",attrs:{model:t.searchFrom,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"时间"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","value-format":"yyyy-MM-dd","end-placeholder":"结束日期"},model:{value:t.searchFrom.watchTime,callback:function(e){t.$set(t.searchFrom,"watchTime",e)},expression:"searchFrom.watchTime"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:6,offset:6}},[a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:t.getList}},[t._v("搜索")])],1)],1)],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},t._l(t.tableHead,function(e,r){return a("el-table-column",{key:e,attrs:{label:e},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row[r])+"\n ")]}}])})}))],1)},staticRenderFns:[]};var n=a("VU/8")(l,s,!1,function(t){a("Ek/o")},"data-v-2e96baba",null);e.default=n.exports},"Ek/o":function(t,e){}}); webpackJsonp([32],{Dq6T:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("CCn6"),l={name:"index",data:function(){return{searchFrom:{watchTime:[]},tableData:[],tableHead:[]}},methods:{defaultTime:function(){var t=new Date,e=t.getFullYear(),a=t.getMonth()+1;a<10&&(a="0"+a);var r=t.getDate();r<10&&(r="0"+r);var l=e+"-"+a+"-01",s=e+"-"+a+"-"+r;this.searchFrom.watchTime=[l,s]},getList:function(){var t=this,e={};this.searchFrom.watchTime&&this.searchFrom.watchTime.length>0&&(e.start_at=this.searchFrom.watchTime[0],e.end_at=this.searchFrom.watchTime[1]),Object(r._39)(e).then(function(e){t.tableHead=e[0],t.tableData=e.slice(1)})}},mounted:function(){this.defaultTime(),this.getList()}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"index"},[a("el-form",{ref:"searchFrom",attrs:{model:t.searchFrom,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"时间"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","value-format":"yyyy-MM-dd","end-placeholder":"结束日期"},model:{value:t.searchFrom.watchTime,callback:function(e){t.$set(t.searchFrom,"watchTime",e)},expression:"searchFrom.watchTime"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:6,offset:6}},[a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:t.getList}},[t._v("搜索")])],1)],1)],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},t._l(t.tableHead,function(e,r){return a("el-table-column",{key:e,attrs:{label:e},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row[r])+"\n ")]}}])})}))],1)},staticRenderFns:[]};var n=a("VU/8")(l,s,!1,function(t){a("Ek/o")},"data-v-2e96baba",null);e.default=n.exports},"Ek/o":function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([34],{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}}); webpackJsonp([33],{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 \ No newline at end of file
webpackJsonp([35],{"+jTk":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("CCn6"),s=o("+TkF"),i=o("kmJW"),l=o("NC6I"),r=o.n(l),n={name:"admin",components:{page:i.a},data:function(){var e=this;return{nowPage:1,total:0,limit:10,adminList:[],searchFrom:{user_name:"",status:""},dialog:{dialogType:0,title:"新增账号",show:!1,select:[{code:0,value:s.a[0]},{code:1,value:s.a[1]}],rules:{username:[{validator:function(t,o,a){""===o&&0===e.dialog.dialogType?a(new Error("请输入账号")):a()},trigger:"blur"}],password:[{validator:function(t,o,a){""!==o||0!==e.dialog.dialogType&&2!==e.dialog.dialogType?(""===e.dialog.form.surePassword||0!==e.dialog.dialogType&&2!==e.dialog.dialogType||e.$refs.form.validateField("surePassword"),a()):a(new Error("请输入密码"))},trigger:"blur"}],surePassword:[{validator:function(t,o,a){0===e.dialog.dialogType||2===e.dialog.dialogType?""===o?a(new Error("请再次输入密码")):o!==e.dialog.form.password?a(new Error("两次输入密码不一致!")):a():a()},trigger:"blur"}],role_id:[{validator:function(t,o,a){0===e.dialog.dialogType||1===e.dialog.dialogType?""===o&&a(new Error("请输入角色")):a()},trigger:"blur"}],desc:[{validator:function(t,o,a){0===e.dialog.dialogType||1===e.dialog.dialogType?""===o&&a(new Error("请输入简述")):a()},trigger:"blur"}]},form:{id:"",username:"",password:"",surePassword:"",role_id:"",status:0,desc:""}},roleList:[]}},filters:{adminStatus:function(e){return s.a[e]}},created:function(){this.getList(),this.getRoleList()},methods:{getRoleList:function(){var e=this;Object(a._32)({page:1,limit:100}).then(function(t){t&&(e.roleList=t.list)})},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.user_name&&(t.user_name=this.searchFrom.user_name),""!==this.searchFrom.status&&(t.status=this.searchFrom.status),Object(a.X)(t).then(function(t){e.adminList=t.list,e.total=Number(t.total),e.$store.commit("mainCanShow")})},editPW:function(e){this.dialog.form.id=e.id,this.dialog.dialogType=2,this.dialog.title="修改密码",this.dialog.form.password="",this.dialog.form.surePassword="",this.dialog.show=!0},edit:function(e){this.dialog.show=!0,this.dialog.dialogType=1,this.dialog.form.id=e.id,this.dialog.title="编辑",this.dialog.form.username=e.user_name,this.dialog.form.password="",this.dialog.form.status=e.status,this.dialog.form.role_id=e.role_id,this.dialog.form.desc=e.desc},add:function(){this.dialog.show=!0,this.dialog.dialogType=0,this.dialog.form.id="",this.dialog.title="新增",this.dialog.form.username="",this.dialog.form.status=0,this.dialog.form.password="",this.dialog.form.role_id="",this.dialog.form.desc=""},del:function(e){var t=this;this.$confirm("此操作将删除该账号?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.u)(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.L)(t.form.id,o).then(function(){e.$message({type:"success",message:"修改成功!"}),t.show=!1,e.getList()})}else if(0===t.dialogType){var s={role_id:t.form.role_id,desc:t.form.desc,passwd:r()(t.form.password),username:t.form.username};Object(a.a)(s).then(function(){e.$message({type:"success",message:"添加成功!"}),t.show=!1,e.getList()})}else if(2===t.dialogType){var i={passwd_new:r()(t.form.password)};Object(a.T)(t.form.id,i).then(function(){e.$message({type:"success",message:"修改成功!"}),t.show=!1,e.getList()})}}}},d={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"admin"},[o("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px"}},[o("el-row",[o("el-col",{attrs:{span:4}},[o("el-form-item",{attrs:{label:"用户名"}},[o("el-input",{model:{value:e.searchFrom.user_name,callback:function(t){e.$set(e.searchFrom,"user_name",t)},expression:"searchFrom.user_name"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:4}},[o("el-form-item",{attrs:{label:"状态"}},[o("el-select",{attrs:{placeholder:"请选择用户等级"},on:{change:e.getList},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},[o("el-option",{attrs:{label:"全部",value:""}}),e._v(" "),o("el-option",{attrs:{label:"启用",value:0}}),e._v(" "),o("el-option",{attrs:{label:"冻结",value:1}})],1)],1)],1),e._v(" "),o("el-col",{attrs:{span:4}},[o("el-form-item",[o("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")])],1)],1),e._v(" "),o("el-col",{attrs:{span:4,offset:8}},[e.$store.state.readonly?e._e():o("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增角色")])],1)],1)],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.adminList}},[o("el-table-column",{attrs:{prop:"id",label:"账号ID"}}),e._v(" "),o("el-table-column",{attrs:{prop:"user_name",label:"用户名"}}),e._v(" "),o("el-table-column",{attrs:{prop:"role_name",label:"角色"}}),e._v(" "),o("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("adminStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),o("el-table-column",{attrs:{prop:"last_login_at",label:"最后登陆时间"}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-popover",{attrs:{placement:"top",width:"280"}},[o("div",{staticStyle:{"text-align":"center"}},[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),o("el-button",{attrs:{size:"mini",type:"warning",plain:""},on:{click:function(o){e.editPW(t.row)}}},[e._v("\n 修改密码\n ")]),e._v(" "),e.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()],1),e._v(" "),o("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),o("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),o("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"30%"},on:{"update:visible":function(t){e.$set(e.dialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{rules:e.dialog.rules,model:e.dialog.form,"label-width":"80px"}},[0===e.dialog.dialogType?o("el-form-item",{attrs:{label:"账号",prop:"username"}},[o("el-input",{model:{value:e.dialog.form.username,callback:function(t){e.$set(e.dialog.form,"username",t)},expression:"dialog.form.username"}})],1):e._e(),e._v(" "),2===e.dialog.dialogType||0===e.dialog.dialogType?o("el-form-item",{attrs:{label:"密码",prop:"password"}},[o("el-input",{attrs:{type:"password"},model:{value:e.dialog.form.password,callback:function(t){e.$set(e.dialog.form,"password",t)},expression:"dialog.form.password"}})],1):e._e(),e._v(" "),2===e.dialog.dialogType||0===e.dialog.dialogType?o("el-form-item",{attrs:{label:"确认密码",prop:"surePassword"}},[o("el-input",{attrs:{type:"password"},model:{value:e.dialog.form.surePassword,callback:function(t){e.$set(e.dialog.form,"surePassword",t)},expression:"dialog.form.surePassword"}})],1):e._e(),e._v(" "),2!==e.dialog.dialogType?o("el-form-item",{attrs:{label:"角色",prop:"role_id"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.dialog.form.role_id,callback:function(t){e.$set(e.dialog.form,"role_id",t)},expression:"dialog.form.role_id"}},e._l(e.roleList,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e(),e._v(" "),2!==e.dialog.dialogType?o("el-form-item",{attrs:{label:"简述",prop:"desc"}},[o("el-input",{model:{value:e.dialog.form.desc,callback:function(t){e.$set(e.dialog.form,"desc",t)},expression:"dialog.form.desc"}})],1):e._e(),e._v(" "),1===e.dialog.dialogType?o("el-form-item",{attrs:{label:"状态",prop:"status"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.dialog.form.status,callback:function(t){e.$set(e.dialog.form,"status",t)},expression:"dialog.form.status"}},e._l(e.dialog.select,function(e){return o("el-option",{key:e.code,attrs:{label:e.value,value:e.code}})}))],1):e._e()],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.onSub}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var c=o("VU/8")(n,d,!1,function(e){o("QH0x")},"data-v-245b4734",null);t.default=c.exports},QH0x:function(e,t){}}); webpackJsonp([34],{"+jTk":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("CCn6"),s=o("+TkF"),i=o("kmJW"),l=o("NC6I"),r=o.n(l),n={name:"admin",components:{page:i.a},data:function(){var e=this;return{nowPage:1,total:0,limit:10,adminList:[],searchFrom:{user_name:"",status:""},dialog:{dialogType:0,title:"新增账号",show:!1,select:[{code:0,value:s.a[0]},{code:1,value:s.a[1]}],rules:{username:[{validator:function(t,o,a){""===o&&0===e.dialog.dialogType?a(new Error("请输入账号")):a()},trigger:"blur"}],password:[{validator:function(t,o,a){""!==o||0!==e.dialog.dialogType&&2!==e.dialog.dialogType?(""===e.dialog.form.surePassword||0!==e.dialog.dialogType&&2!==e.dialog.dialogType||e.$refs.form.validateField("surePassword"),a()):a(new Error("请输入密码"))},trigger:"blur"}],surePassword:[{validator:function(t,o,a){0===e.dialog.dialogType||2===e.dialog.dialogType?""===o?a(new Error("请再次输入密码")):o!==e.dialog.form.password?a(new Error("两次输入密码不一致!")):a():a()},trigger:"blur"}],role_id:[{validator:function(t,o,a){0===e.dialog.dialogType||1===e.dialog.dialogType?""===o&&a(new Error("请输入角色")):a()},trigger:"blur"}],desc:[{validator:function(t,o,a){0===e.dialog.dialogType||1===e.dialog.dialogType?""===o&&a(new Error("请输入简述")):a()},trigger:"blur"}]},form:{id:"",username:"",password:"",surePassword:"",role_id:"",status:0,desc:""}},roleList:[]}},filters:{adminStatus:function(e){return s.a[e]}},created:function(){this.getList(),this.getRoleList()},methods:{getRoleList:function(){var e=this;Object(a._32)({page:1,limit:100}).then(function(t){t&&(e.roleList=t.list)})},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.user_name&&(t.user_name=this.searchFrom.user_name),""!==this.searchFrom.status&&(t.status=this.searchFrom.status),Object(a.X)(t).then(function(t){e.adminList=t.list,e.total=Number(t.total),e.$store.commit("mainCanShow")})},editPW:function(e){this.dialog.form.id=e.id,this.dialog.dialogType=2,this.dialog.title="修改密码",this.dialog.form.password="",this.dialog.form.surePassword="",this.dialog.show=!0},edit:function(e){this.dialog.show=!0,this.dialog.dialogType=1,this.dialog.form.id=e.id,this.dialog.title="编辑",this.dialog.form.username=e.user_name,this.dialog.form.password="",this.dialog.form.status=e.status,this.dialog.form.role_id=e.role_id,this.dialog.form.desc=e.desc},add:function(){this.dialog.show=!0,this.dialog.dialogType=0,this.dialog.form.id="",this.dialog.title="新增",this.dialog.form.username="",this.dialog.form.status=0,this.dialog.form.password="",this.dialog.form.role_id="",this.dialog.form.desc=""},del:function(e){var t=this;this.$confirm("此操作将删除该账号?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.u)(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.L)(t.form.id,o).then(function(){e.$message({type:"success",message:"修改成功!"}),t.show=!1,e.getList()})}else if(0===t.dialogType){var s={role_id:t.form.role_id,desc:t.form.desc,passwd:r()(t.form.password),username:t.form.username};Object(a.a)(s).then(function(){e.$message({type:"success",message:"添加成功!"}),t.show=!1,e.getList()})}else if(2===t.dialogType){var i={passwd_new:r()(t.form.password)};Object(a.T)(t.form.id,i).then(function(){e.$message({type:"success",message:"修改成功!"}),t.show=!1,e.getList()})}}}},d={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"admin"},[o("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px"}},[o("el-row",[o("el-col",{attrs:{span:4}},[o("el-form-item",{attrs:{label:"用户名"}},[o("el-input",{model:{value:e.searchFrom.user_name,callback:function(t){e.$set(e.searchFrom,"user_name",t)},expression:"searchFrom.user_name"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:4}},[o("el-form-item",{attrs:{label:"状态"}},[o("el-select",{attrs:{placeholder:"请选择用户等级"},on:{change:e.getList},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},[o("el-option",{attrs:{label:"全部",value:""}}),e._v(" "),o("el-option",{attrs:{label:"启用",value:0}}),e._v(" "),o("el-option",{attrs:{label:"冻结",value:1}})],1)],1)],1),e._v(" "),o("el-col",{attrs:{span:4}},[o("el-form-item",[o("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")])],1)],1),e._v(" "),o("el-col",{attrs:{span:4,offset:8}},[e.$store.state.readonly?e._e():o("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增角色")])],1)],1)],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.adminList}},[o("el-table-column",{attrs:{prop:"id",label:"账号ID"}}),e._v(" "),o("el-table-column",{attrs:{prop:"user_name",label:"用户名"}}),e._v(" "),o("el-table-column",{attrs:{prop:"role_name",label:"角色"}}),e._v(" "),o("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("adminStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),o("el-table-column",{attrs:{prop:"last_login_at",label:"最后登陆时间"}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-popover",{attrs:{placement:"top",width:"280"}},[o("div",{staticStyle:{"text-align":"center"}},[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),o("el-button",{attrs:{size:"mini",type:"warning",plain:""},on:{click:function(o){e.editPW(t.row)}}},[e._v("\n 修改密码\n ")]),e._v(" "),e.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()],1),e._v(" "),o("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),o("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),o("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"30%"},on:{"update:visible":function(t){e.$set(e.dialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{rules:e.dialog.rules,model:e.dialog.form,"label-width":"80px"}},[0===e.dialog.dialogType?o("el-form-item",{attrs:{label:"账号",prop:"username"}},[o("el-input",{model:{value:e.dialog.form.username,callback:function(t){e.$set(e.dialog.form,"username",t)},expression:"dialog.form.username"}})],1):e._e(),e._v(" "),2===e.dialog.dialogType||0===e.dialog.dialogType?o("el-form-item",{attrs:{label:"密码",prop:"password"}},[o("el-input",{attrs:{type:"password"},model:{value:e.dialog.form.password,callback:function(t){e.$set(e.dialog.form,"password",t)},expression:"dialog.form.password"}})],1):e._e(),e._v(" "),2===e.dialog.dialogType||0===e.dialog.dialogType?o("el-form-item",{attrs:{label:"确认密码",prop:"surePassword"}},[o("el-input",{attrs:{type:"password"},model:{value:e.dialog.form.surePassword,callback:function(t){e.$set(e.dialog.form,"surePassword",t)},expression:"dialog.form.surePassword"}})],1):e._e(),e._v(" "),2!==e.dialog.dialogType?o("el-form-item",{attrs:{label:"角色",prop:"role_id"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.dialog.form.role_id,callback:function(t){e.$set(e.dialog.form,"role_id",t)},expression:"dialog.form.role_id"}},e._l(e.roleList,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e(),e._v(" "),2!==e.dialog.dialogType?o("el-form-item",{attrs:{label:"简述",prop:"desc"}},[o("el-input",{model:{value:e.dialog.form.desc,callback:function(t){e.$set(e.dialog.form,"desc",t)},expression:"dialog.form.desc"}})],1):e._e(),e._v(" "),1===e.dialog.dialogType?o("el-form-item",{attrs:{label:"状态",prop:"status"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.dialog.form.status,callback:function(t){e.$set(e.dialog.form,"status",t)},expression:"dialog.form.status"}},e._l(e.dialog.select,function(e){return o("el-option",{key:e.code,attrs:{label:e.value,value:e.code}})}))],1):e._e()],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.onSub}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var c=o("VU/8")(n,d,!1,function(e){o("QH0x")},"data-v-245b4734",null);t.default=c.exports},QH0x:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([36],{Vt1u:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("CCn6"),a={components:{page:n("kmJW").a},data:function(){return{nowPage:1,total:0,limit:10,roleList:[],dialog:{title:"新增角色",show:!1,select:[],chooseed:[],rules:{name:[{required:!0,message:"请填写角色名称",trigger:"change"}]},form:{name:"",menu_ids:[],id:""}}}},created:function(){this.getList(),this.getMenuList()},methods:{getMenuList:function(){var e=this;Object(o._21)().then(function(t){t&&(t.forEach(function(e){e.children&&e.children.forEach(function(t){t.readonly=!1,t.delete=!1,"订单列表"===e.name&&(t.refund=!1)})}),e.dialog.select=t)})},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};Object(o._32)(t).then(function(t){t&&(e.roleList=t.list,e.total=t.total)})},edit:function(e){var t=this;this.dialog.form.id=e.id,this.dialog.title="编辑角色",Object(o._21)().then(function(n){n&&(n.forEach(function(e){e.children&&e.children.forEach(function(t){t.readonly=!1,t.delete=!1,"订单列表"===e.name&&(t.refund=!1)})}),t.dialog.select=n,Object(o._31)(e.id).then(function(e){t.dialog.form.name=e.name,t.dialog.form.menu_ids=JSON.parse(e.menu_ids),t.dialog.chooseed=[],t.dialog.form.menu_ids.forEach(function(e){t.dialog.chooseed.push(e.id),t.dialog.select.forEach(function(t){t.children&&t.children.forEach(function(t){t.id===e.id&&(t.readonly=!!e.readonly,t.delete=!!e.delete,"订单列表"===e.name&&(t.refund=!!e.refund))})})}),t.dialog.show=!0,t.$nextTick(function(){this.$refs.tree.setCheckedKeys(this.dialog.chooseed)})}))})},add:function(){this.dialog.show=!0,this.dialog.form.id="",this.dialog.title="新增菜单",this.dialog.form.name="",this.dialog.form.menu_ids=[],this.getMenuList()},del:function(e){var t=this;this.$confirm("此操作将删除该角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.D)(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 n=[];e.$refs.tree.getCheckedNodes().forEach(function(e){var t=void 0;!1!==e.readonly&&!0!==e.readonly||(t={id:e.id,cover:e.cover,readonly:e.readonly}),!1!==e.delete&&!0!==e.delete||(t.delete=e.delete),!1!==e.refund&&!0!==e.refund||(t.refund=e.refund),t&&n.push(t)});var a=e.dialog;if(a.form.id){var i={name:a.form.name,menu_ids:JSON.stringify(n)};Object(o._57)(a.form.id,i).then(function(){e.$message({type:"success",message:"修改成功!"}),a.show=!1,e.getList()})}else{var l={name:a.form.name,menu_ids:JSON.stringify(n)};Object(o._50)(l).then(function(){e.$message({type:"success",message:"添加成功!"}),a.show=!1,e.getList()})}}})}}},i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"role"},[n("div",{staticClass:"head clear-both"},[e.$store.state.readonly?e._e():n("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增角色")])],1),e._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.roleList}},[n("el-table-column",{attrs:{prop:"id",label:"角色ID"}}),e._v(" "),n("el-table-column",{attrs:{prop:"name",label:"角色名称"}}),e._v(" "),n("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),e._v(" "),e.$store.state.readonly?e._e():n("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$store.state.readonly?e._e():n("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(n){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission&&!e.$store.state.readonly?n("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(n){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),n("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),n("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"40%"},on:{"update:visible":function(t){e.$set(e.dialog,"show",t)}}},[n("el-form",{ref:"form",attrs:{rules:e.dialog.rules,model:e.dialog.form,"label-width":"100px"}},[n("el-form-item",{attrs:{label:"角色名称",prop:"name"}},[n("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(" "),n("el-form-item",{attrs:{label:"菜单选项"}},[n("div",{staticClass:"custom-tree-container"},[n("el-tree",{ref:"tree",attrs:{data:e.dialog.select,"show-checkbox":"","node-key":"id","default-checked-keys":e.dialog.chooseed,"default-expand-all":"","expand-on-click-node":!1,props:{children:"children",label:"name",value:!1}},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.node,a=t.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[e._v(e._s(o.label))]),e._v(" "),0!==a.pid?n("span",["订单列表"===a.name?n("el-checkbox",{model:{value:a.refund,callback:function(t){e.$set(a,"refund",t)},expression:"data.refund"}},[e._v("退款")]):e._e(),e._v(" "),n("el-checkbox",{model:{value:a.readonly,callback:function(t){e.$set(a,"readonly",t)},expression:"data.readonly"}},[e._v("只读")]),e._v(" "),n("el-checkbox",{model:{value:a.delete,callback:function(t){e.$set(a,"delete",t)},expression:"data.delete"}},[e._v("删除")])],1):e._e()])}}])})],1)])],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var l=n("VU/8")(a,i,!1,function(e){n("sqwI")},"data-v-043f09ed",null);t.default=l.exports},sqwI:function(e,t){}}); webpackJsonp([35],{Vt1u:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("CCn6"),a={components:{page:n("kmJW").a},data:function(){return{nowPage:1,total:0,limit:10,roleList:[],dialog:{title:"新增角色",show:!1,select:[],chooseed:[],rules:{name:[{required:!0,message:"请填写角色名称",trigger:"change"}]},form:{name:"",menu_ids:[],id:""}}}},created:function(){this.getList(),this.getMenuList()},methods:{getMenuList:function(){var e=this;Object(o._21)().then(function(t){t&&(t.forEach(function(e){e.children&&e.children.forEach(function(t){t.readonly=!1,t.delete=!1,"订单列表"===e.name&&(t.refund=!1)})}),e.dialog.select=t)})},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};Object(o._32)(t).then(function(t){t&&(e.roleList=t.list,e.total=t.total)})},edit:function(e){var t=this;this.dialog.form.id=e.id,this.dialog.title="编辑角色",Object(o._21)().then(function(n){n&&(n.forEach(function(e){e.children&&e.children.forEach(function(t){t.readonly=!1,t.delete=!1,"订单列表"===e.name&&(t.refund=!1)})}),t.dialog.select=n,Object(o._31)(e.id).then(function(e){t.dialog.form.name=e.name,t.dialog.form.menu_ids=JSON.parse(e.menu_ids),t.dialog.chooseed=[],t.dialog.form.menu_ids.forEach(function(e){t.dialog.chooseed.push(e.id),t.dialog.select.forEach(function(t){t.children&&t.children.forEach(function(t){t.id===e.id&&(t.readonly=!!e.readonly,t.delete=!!e.delete,"订单列表"===e.name&&(t.refund=!!e.refund))})})}),t.dialog.show=!0,t.$nextTick(function(){this.$refs.tree.setCheckedKeys(this.dialog.chooseed)})}))})},add:function(){this.dialog.show=!0,this.dialog.form.id="",this.dialog.title="新增菜单",this.dialog.form.name="",this.dialog.form.menu_ids=[],this.getMenuList()},del:function(e){var t=this;this.$confirm("此操作将删除该角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.D)(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 n=[];e.$refs.tree.getCheckedNodes().forEach(function(e){var t=void 0;!1!==e.readonly&&!0!==e.readonly||(t={id:e.id,cover:e.cover,readonly:e.readonly}),!1!==e.delete&&!0!==e.delete||(t.delete=e.delete),!1!==e.refund&&!0!==e.refund||(t.refund=e.refund),t&&n.push(t)});var a=e.dialog;if(a.form.id){var i={name:a.form.name,menu_ids:JSON.stringify(n)};Object(o._57)(a.form.id,i).then(function(){e.$message({type:"success",message:"修改成功!"}),a.show=!1,e.getList()})}else{var l={name:a.form.name,menu_ids:JSON.stringify(n)};Object(o._50)(l).then(function(){e.$message({type:"success",message:"添加成功!"}),a.show=!1,e.getList()})}}})}}},i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"role"},[n("div",{staticClass:"head clear-both"},[e.$store.state.readonly?e._e():n("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增角色")])],1),e._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.roleList}},[n("el-table-column",{attrs:{prop:"id",label:"角色ID"}}),e._v(" "),n("el-table-column",{attrs:{prop:"name",label:"角色名称"}}),e._v(" "),n("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),e._v(" "),e.$store.state.readonly?e._e():n("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$store.state.readonly?e._e():n("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(n){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission&&!e.$store.state.readonly?n("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(n){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),n("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),n("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"40%"},on:{"update:visible":function(t){e.$set(e.dialog,"show",t)}}},[n("el-form",{ref:"form",attrs:{rules:e.dialog.rules,model:e.dialog.form,"label-width":"100px"}},[n("el-form-item",{attrs:{label:"角色名称",prop:"name"}},[n("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(" "),n("el-form-item",{attrs:{label:"菜单选项"}},[n("div",{staticClass:"custom-tree-container"},[n("el-tree",{ref:"tree",attrs:{data:e.dialog.select,"show-checkbox":"","node-key":"id","default-checked-keys":e.dialog.chooseed,"default-expand-all":"","expand-on-click-node":!1,props:{children:"children",label:"name",value:!1}},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.node,a=t.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[e._v(e._s(o.label))]),e._v(" "),0!==a.pid?n("span",["订单列表"===a.name?n("el-checkbox",{model:{value:a.refund,callback:function(t){e.$set(a,"refund",t)},expression:"data.refund"}},[e._v("退款")]):e._e(),e._v(" "),n("el-checkbox",{model:{value:a.readonly,callback:function(t){e.$set(a,"readonly",t)},expression:"data.readonly"}},[e._v("只读")]),e._v(" "),n("el-checkbox",{model:{value:a.delete,callback:function(t){e.$set(a,"delete",t)},expression:"data.delete"}},[e._v("删除")])],1):e._e()])}}])})],1)])],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var l=n("VU/8")(a,i,!1,function(e){n("sqwI")},"data-v-043f09ed",null);t.default=l.exports},sqwI:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([36],{C1HI:function(t,e){},F5pf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s,n=a("CCn6");function o(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var l={name:"putForward",data:function(){return{nowPage:1,total:0,limit:10,search:{key:"",status:1},liStatus:[{label:"全部",status:""},{label:"申请中",status:0},{label:"提现成功",status:1},{label:"提现失败",status:2}],tableData:[],showDialog:!1,showDesc:!1,dialogTitle:"审核",nowObj:{id:"",status:1,reason:"",desc:""},page:{current:1,pageSize:100,total:0}}},components:{page:a("kmJW").a},filters:{moneyYuan:function(t){return(t/100).toFixed(2)+"元"},filterStatus:function(t){var e="";return 0===t?e="审核中":1===t?e="提现成功":2===t&&(e="提现失败"),e}},mounted:function(){this.getList()},methods:(s={onPageChange:function(t){this.nowPage=t},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getList()},getList:function(){var t=this,e={limit:this.limit,page:this.nowPage};Object(n._40)(e).then(function(e){t.tableData=e.list,t.total=e.total})},onSearch:function(){this.page.current=1,this.getList()},checkMoney:function(t){this.nowObj.id=t,this.showDesc=!1,this.showDialog=!0},addDesc:function(t,e){this.nowObj.id=t,this.nowObj.desc=e,this.showDesc=!0,this.showDialog=!0}},o(s,"onPageChange",function(t){this.page.current=t,this.getList()}),o(s,"doCallback",function(){this.nowObj.id="",this.nowObj.status=1,this.nowObj.reason="",this.nowObj.desc="",this.page.current=1,this.showDialog=!1,this.getList(),this.$message({message:"提交成功",type:"success"})}),o(s,"onSave",function(t){var e=this;if(t){var a={desc:this.nowObj.desc};if(""===a.desc||null==a.desc)return this.$message.error("请填写备注"),!1;Object(n.S)(this.nowObj.id,"withdraw",a).then(function(t){e.doCallback()})}else{var s={reason:this.nowObj.reason,status:this.nowObj.status};if((""===s.reason||null==s.reason)&&2===s.status)return this.$message.error("请填写失败理由"),!1;s.reason="",Object(n._60)(this.nowObj.id,s).then(function(t){e.doCallback()})}}),s)},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"putForward"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.search,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"关键字"}},[a("el-input",{attrs:{placeholder:"用户名/手机号"},model:{value:t.search.key,callback:function(e){t.$set(t.search,"key",e)},expression:"search.key"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"订单状态"}},[a("el-select",{attrs:{placeholder:"用户名/手机/课程名称"},on:{change:t.onSearch},model:{value:t.search.status,callback:function(e){t.$set(t.search,"status",e)},expression:"search.status"}},t._l(t.liStatus,function(t){return a("el-option",{key:t.status,attrs:{label:t.label,value:t.status}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")])],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},[a("el-table-column",{attrs:{prop:"username",label:"用户名"}}),t._v(" "),a("el-table-column",{attrs:{prop:"mobile",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{label:"已获得总额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.getSumMoney))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"已提金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.alreadyMoney))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"可提余额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.resMoney))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.money))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:{status:!0,red:2===e.row.status,green:1===e.row.status}},[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"同意提现时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pay_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),t.$store.state.readonly?t._e():a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.checkMoney(e.row.id,e.row.desc)}}},[t._v("\n 审核\n ")]):t._e(),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.addDesc(e.row.id,e.row.desc)}}},[t._v("\n 添加备注\n ")])]}}])})],1),t._v(" "),a("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}}),t._v(" "),t.showDialog?a("el-dialog",{attrs:{title:t.dialogTitle,visible:t.showDialog},on:{"update:visible":function(e){t.showDialog=e}}},[a("el-form",{ref:"saveuser",attrs:{model:t.nowObj,"label-width":"70px"}},[t.showDesc?t._e():a("el-form-item",{attrs:{label:"订单状态"}},[[a("el-radio-group",{model:{value:t.nowObj.status,callback:function(e){t.$set(t.nowObj,"status",e)},expression:"nowObj.status"}},[a("el-radio",{attrs:{label:1}},[t._v("提现成功")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("提现失败")])],1)]],2),t._v(" "),2!==t.nowObj.status||t.showDesc?t._e():a("el-form-item",{attrs:{label:"失败理由"}},[a("el-input",{attrs:{type:"textarea",rows:"3","auto-complete":"off"},model:{value:t.nowObj.reason,callback:function(e){t.$set(t.nowObj,"reason",e)},expression:"nowObj.reason"}})],1),t._v(" "),t.showDesc?a("el-form-item",{attrs:{label:"备注信息"}},[a("el-input",{attrs:{type:"textarea",rows:"3","auto-complete":"off"},model:{value:t.nowObj.desc,callback:function(e){t.$set(t.nowObj,"desc",e)},expression:"nowObj.desc"}})],1):t._e()],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.onSave(t.showDesc)}}},[t._v("保 存")]),t._v(" "),a("el-button",{on:{click:function(e){t.showDialog=!1}}},[t._v("取 消")])],1)],1):t._e()],1)},staticRenderFns:[]};var i=a("VU/8")(l,r,!1,function(t){a("C1HI")},"data-v-02f49345",null);e.default=i.exports}});
\ No newline at end of file
webpackJsonp([38],{IcnI:function(e,n,t){"use strict";var o=t("7+uW"),a=t("NYxO"),r=t("zSLJ"),i={setToken:function(e,n){e.token=n,r.a.set("cc_token",n)},setUserName:function(e,n){e.userName=n,r.a.set("cc_user_name",n)},setPermission:function(e,n){e.progressList=n,localStorage.setItem("permission",JSON.stringify(n))},setMenu:function(e,n){e.menuList=n},readonly:function(e,n){e.readonly=n},deletePermission:function(e,n){e.deletePermission=n},mainCanShow:function(e){e.mainLoad=!1},mainUnShow:function(e){e.mainLoad=!0},changeParentRouter:function(e,n){e.menuList.find(function(e){return e.name===n.name}).routerName=n.to.name},progress:function(e,n){switch(n.type){case"new":e.progressList.push({num:0,id:n.id});break;case"change":e.progressList.find(function(e){return e.id===n.id}).num=n.num;break;case"delete":e.progressList.find(function(e){return e.id===n.id})}}};o.default.use(a.a);n.a=new a.a.Store({state:{show:!1,userName:"",token:"",orderRefund:!1,permission:!1,readonly:!0,deletePermission:!1,mainLoad:!0,menuList:[],menuType:!1,nowTab:"first",progressList:[],openedTab:[{value:"首页",routerName:"first",name:"first",delNo:!0,path:"/index"}]},mutations:i,actions:{setToken:function(e,n){(0,e.commit)("setToken",n)},setUserName:function(e,n){(0,e.commit)("setUserName",n)},setProgress:function(e,n){(0,e.commit)("progress",n)},setPermission:function(e,n){(0,e.commit)("setPermission",n)},setMenu:function(e,n){(0,e.commit)("setMenu",n)},readonly:function(e,n){(0,e.commit)("readonly",n)},deletePermission:function(e,n){(0,e.commit)("deletePermission",n)}}})},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t("7+uW"),a=[{name:"",value:"教研管理",icon:"icon-material",list:[{value:"教材列表",routerName:"resources",path:"/resources",cover:"1-1",router:{path:"/resources",name:"resources",component:function(e){return Promise.all([t.e(0),t.e(2)]).then(function(){var n=[t("z5EG")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"商品课程",icon:"icon-shangpin1",list:[{value:"课程列表",routerName:"lesson",path:"/lesson",cover:"2-1",router:{path:"/lesson",name:"lesson",component:function(e){return Promise.all([t.e(0),t.e(5)]).then(function(){var n=[t("AbSL")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"商品列表",routerName:"shop",path:"/shop",cover:"4-1",router:{path:"/shop",name:"shop",component:function(e){return Promise.all([t.e(0),t.e(24)]).then(function(){var n=[t("1djJ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"期数管理",icon:"icon-kecheng",list:[{value:"期数列表",routerName:"periods",path:"/periods",cover:"2-2",router:{path:"/periods",name:"periods",component:function(e){return Promise.all([t.e(0),t.e(16)]).then(function(){var n=[t("ayGs")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"班级列表",routerName:"class",path:"/class",cover:"2-3",router:{path:"/class",name:"class",component:function(e){return Promise.all([t.e(0),t.e(11)]).then(function(){var n=[t("OX9A")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"不上课日期",routerName:"noLesson",path:"/noLesson",cover:"2-4",router:{path:"/noLesson",name:"noLesson",component:function(e){return Promise.all([t.e(0),t.e(21)]).then(function(){var n=[t("sg/1")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"人员管理",icon:"icon-laoshi",list:[{value:"教师列表",routerName:"teacher",path:"/teacher",cover:"3-1",router:{path:"/teacher",name:"teacher",component:function(e){return Promise.all([t.e(0),t.e(13)]).then(function(){var n=[t("Y0Vi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"用户列表",routerName:"user",path:"/user",cover:"3-2",router:{path:"/user",name:"user",component:function(e){return Promise.all([t.e(0),t.e(8)]).then(function(){var n=[t("jFLA")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"订单管理",icon:"icon-dingdan",list:[{value:"订单列表",routerName:"order",path:"/order",cover:"5-1",router:{path:"/order",name:"order",component:function(e){return Promise.all([t.e(0),t.e(3)]).then(function(){var n=[t("2qmY")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"退款列表",routerName:"refund",path:"/refund",cover:"5-2",router:{path:"/refund",name:"refund",component:function(e){return Promise.all([t.e(0),t.e(25)]).then(function(){var n=[t("89rD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"提现列表",routerName:"putForward",path:"/putForward",cover:"5-3",router:{path:"/putForward",name:"putForward",component:function(e){return Promise.all([t.e(0),t.e(28)]).then(function(){var n=[t("F5pf")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"发货管理",routerName:"consignment",path:"/consignment",cover:"5-4",router:{path:"/consignment",name:"consignment",component:function(e){return t.e(34).then(function(){var n=[t("usUK")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"订单统计",routerName:"orderCount",path:"/orderCount",cover:"5-5",router:{path:"/orderCount",name:"orderCount",component:function(e){return Promise.all([t.e(0),t.e(32)]).then(function(){var n=[t("s7i+")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"实物管理",icon:"icon-shu",list:[{value:"单品列表",routerName:"single",path:"/single",cover:"6-1",router:{path:"/single",name:"single",component:function(e){return Promise.all([t.e(0),t.e(10)]).then(function(){var n=[t("B31M")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"盒子列表",routerName:"box",path:"/box",cover:"6-2",router:{path:"/box",name:"box",component:function(e){return Promise.all([t.e(0),t.e(9)]).then(function(){var n=[t("+vCD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"公众号",icon:"icon-ai-weixin",list:[{value:"自动回复",routerName:"focusReply",path:"/focusReply",cover:"7-1",router:{path:"/focusReply",name:"focusReply",component:function(e){return Promise.all([t.e(0),t.e(15)]).then(function(){var n=[t("CK6D")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"关键词回复",routerName:"autoReply",path:"/autoReply",cover:"7-2",router:{path:"/autoReply",name:"autoReply",component:function(e){return Promise.all([t.e(0),t.e(12)]).then(function(){var n=[t("65NY")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"公众号菜单",routerName:"weChat",path:"/weChat",cover:"7-3",router:{path:"/weChat",name:"weChat",component:function(e){return Promise.all([t.e(0),t.e(17)]).then(function(){var n=[t("q5av")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"素材管理",routerName:"weChatResource",path:"/weChatResource",cover:"7-4",router:{path:"/weChatResource",name:"weChatResource",component:function(e){return Promise.all([t.e(0),t.e(22)]).then(function(){var n=[t("Xhqp")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"Banner管理",routerName:"banner",path:"/banner",cover:"7-5",router:{path:"/banner",name:"banner",component:function(e){return Promise.all([t.e(0),t.e(20)]).then(function(){var n=[t("CGL6")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"二维码管理",routerName:"qrcode",path:"/qrcode",cover:"7-6",router:{path:"/qrcode",name:"qrcode",component:function(e){return Promise.all([t.e(0),t.e(7)]).then(function(){var n=[t("lNiQ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"群发助手",routerName:"groupSend",path:"/groupSend",cover:"7-7",router:{path:"/groupSend",name:"groupSend",component:function(e){return Promise.all([t.e(0),t.e(27)]).then(function(){var n=[t("oerw")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"关注取关统计",routerName:"watchCount",path:"/watchCount",cover:"7-8",router:{path:"/watchCount",name:"watchCount",component:function(e){return Promise.all([t.e(0),t.e(33)]).then(function(){var n=[t("Dq6T")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"系统管理",icon:"icon-shezhi",list:[{value:"账号管理",routerName:"admin",path:"/admin",cover:"8-1",router:{path:"/admin",name:"admin",component:function(e){return Promise.all([t.e(0),t.e(35)]).then(function(){var n=[t("+jTk")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"角色管理",routerName:"role",path:"/role",cover:"8-2",router:{path:"/role",name:"role",component:function(e){return Promise.all([t.e(0),t.e(36)]).then(function(){var n=[t("Vt1u")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"菜单管理",routerName:"menu",path:"/menu",cover:"8-3",router:{path:"/menu",name:"menu",component:function(e){return Promise.all([t.e(0),t.e(30)]).then(function(){var n=[t("aTXs")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"系统配置",routerName:"sysConfig",path:"/sysConfig",cover:"8-4",router:{path:"/sysConfig",name:"sysConfig",component:function(e){return Promise.all([t.e(0),t.e(23)]).then(function(){var n=[t("gaNG")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"操作日志",routerName:"adminLog",path:"/adminLog",cover:"8-5",router:{path:"/adminLog",name:"adminLog",component:function(e){return Promise.all([t.e(0),t.e(26)]).then(function(){var n=[t("WZgi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]}],r={name:"App",data:function(){return{}},mounted:function(){var e=this;if(window.location.href.indexOf("login")<0){var n=this.$store.state.progressList,o=[];this.$router.options.routes[0].children=[];var r=n.find(function(e){return"5-1"===e.cover});r&&r.refund&&(this.$store.state.orderRefund=!0);var i={path:"/userDetail/:id",name:"userDetail",component:function(e){return Promise.all([t.e(0),t.e(14)]).then(function(){var n=[t("9PRC")];e.apply(null,n)}.bind(this)).catch(t.oe)}},u={path:"/teacher/:id",name:"teacherDetail",component:function(e){return Promise.all([t.e(0),t.e(18)]).then(function(){var n=[t("hFUZ")];e.apply(null,n)}.bind(this)).catch(t.oe)}};a.forEach(function(t){var a=!1,r=[];t.list.forEach(function(t){var o=n.find(function(e){return e.cover===t.cover});o&&(t.router.meta={},t.router.meta.readonly=o.readonly,t.router.meta.delete=!!o.delete,r.push(t),"3-1"===o.cover&&(u.meta={},u.meta.readonly=o.readonly,u.meta.delete=!!o.delete,e.$router.options.routes[0].children.push(u)),"3-2"===o.cover&&(i.meta={},i.meta.readonly=o.readonly,i.meta.delete=!!o.delete,e.$router.options.routes[0].children.push(i)),e.$router.options.routes[0].children.push(t.router),a=!0)}),a&&(t.list=r,o.push(t))}),this.$router.addRoutes([this.$router.options.routes[0]]),this.$store.dispatch("setMenu",o)}}},i={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},staticRenderFns:[]};var u=t("VU/8")(r,i,!1,function(e){t("mx6z")},null,null).exports,c=t("YaEn"),s=t("zL8q"),l=t.n(s),p=(t("tvR6"),t("IcnI"));o.default.use(l.a),o.default.config.productionTip=!1,new o.default({el:"#app",store:p.a,router:c.a,components:{App:u},template:"<App/>"})},YaEn:function(e,n,t){"use strict";var o=t("7+uW"),a=t("IcnI"),r=t("/ocq"),i=t("zSLJ");o.default.use(r.a);var u=new r.a({routes:[{path:"/",name:"index",component:function(e){return Promise.all([t.e(0),t.e(6)]).then(function(){var n=[t("jHcp")];e.apply(null,n)}.bind(this)).catch(t.oe)},redirect:{name:"first"},children:[{path:"",name:"first",component:function(e){return t.e(4).then(function(){var n=[t("sJm1")];e.apply(null,n)}.bind(this)).catch(t.oe)}}]},{path:"/login",name:"login",component:function(e){return Promise.all([t.e(0),t.e(19)]).then(function(){var n=[t("0HId")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}},{path:"/outManager",name:"outManager",component:function(e){return Promise.all([t.e(0),t.e(29)]).then(function(){var n=[t("hLMI")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}},{path:"/preview/:id",name:"preview",component:function(e){return Promise.all([t.e(1),t.e(0)]).then(function(){var n=[t("pjYA")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{}},{path:"/upload",name:"upload",component:function(e){return Promise.all([t.e(0),t.e(31)]).then(function(){var n=[t("iPJD")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}}]});u.beforeEach(function(e,n,t){if(a.a.commit("mainCanShow"),i.a.get("cc_token")&&(a.a.dispatch("setToken",i.a.get("cc_token")),a.a.dispatch("setPermission",JSON.parse(localStorage.getItem("permission"))),null!==i.a.get("cc_user_name")&&a.a.dispatch("setUserName",i.a.get("cc_user_name"))),a.a.state.nowTab=e.name,e.matched.length>1&&"first"!==e.name){for(var o=void 0,r=0;r<a.a.state.menuList.length;r++)for(var u=a.a.state.menuList[r],c=0;c<u.list.length;c++){var s=u.list[c];s.path===e.path&&(o=s)}a.a.state.openedTab.indexOf(o)<0&&a.a.state.openedTab.push(o)}if(e.meta.readonly?a.a.dispatch("readonly",!0):a.a.dispatch("readonly",!1),"userDetail"===e.name){var l=JSON.parse(localStorage.getItem("permission")).find(function(e){return"3-2"===e.cover}).readonly;a.a.dispatch("readonly",l)}e.meta.delete?a.a.dispatch("deletePermission",!0):a.a.dispatch("deletePermission",!1),e.matched.some(function(e){return!0!==e.meta.skip_auth})&&!a.a.state.token?t({path:"/login"}):t()}),u.onError(function(e){var n=e.message.match(/Loading chunk (\d)+ failed/g),t=u.history.pending.fullPath;n&&u.replace(t)}),n.a=u},mx6z:function(e,n){},tvR6:function(e,n){},zSLJ:function(e,n,t){"use strict";n.a={set:function(e,n,t){var o=new Date;o.setTime(o.getTime()+864e5*t),window.document.cookie=e+"="+n+";path=/;expires="+o.toGMTString()},get:function(e){var n=window.document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return n?n[2]:null},delete:function(e){this.set(e,"",-1)}}}},["NHnr"]); webpackJsonp([38],{IcnI:function(e,n,t){"use strict";var o=t("7+uW"),a=t("NYxO"),r=t("zSLJ"),i={setToken:function(e,n){e.token=n,r.a.set("cc_token",n)},setUserName:function(e,n){e.userName=n,r.a.set("cc_user_name",n)},setPermission:function(e,n){e.progressList=n,localStorage.setItem("permission",JSON.stringify(n))},setMenu:function(e,n){e.menuList=n},readonly:function(e,n){e.readonly=n},deletePermission:function(e,n){e.deletePermission=n},mainCanShow:function(e){e.mainLoad=!1},mainUnShow:function(e){e.mainLoad=!0},changeParentRouter:function(e,n){e.menuList.find(function(e){return e.name===n.name}).routerName=n.to.name},progress:function(e,n){switch(n.type){case"new":e.progressList.push({num:0,id:n.id});break;case"change":e.progressList.find(function(e){return e.id===n.id}).num=n.num;break;case"delete":e.progressList.find(function(e){return e.id===n.id})}}};o.default.use(a.a);n.a=new a.a.Store({state:{show:!1,userName:"",token:"",orderRefund:!1,permission:!1,readonly:!0,deletePermission:!1,mainLoad:!0,menuList:[],menuType:!1,nowTab:"first",progressList:[],openedTab:[{value:"首页",routerName:"first",name:"first",delNo:!0,path:"/index"}]},mutations:i,actions:{setToken:function(e,n){(0,e.commit)("setToken",n)},setUserName:function(e,n){(0,e.commit)("setUserName",n)},setProgress:function(e,n){(0,e.commit)("progress",n)},setPermission:function(e,n){(0,e.commit)("setPermission",n)},setMenu:function(e,n){(0,e.commit)("setMenu",n)},readonly:function(e,n){(0,e.commit)("readonly",n)},deletePermission:function(e,n){(0,e.commit)("deletePermission",n)}}})},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t("7+uW"),a=[{name:"",value:"教研管理",icon:"icon-material",list:[{value:"教材列表",routerName:"resources",path:"/resources",cover:"1-1",router:{path:"/resources",name:"resources",component:function(e){return Promise.all([t.e(0),t.e(2)]).then(function(){var n=[t("z5EG")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"商品课程",icon:"icon-shangpin1",list:[{value:"课程列表",routerName:"lesson",path:"/lesson",cover:"2-1",router:{path:"/lesson",name:"lesson",component:function(e){return Promise.all([t.e(0),t.e(5)]).then(function(){var n=[t("AbSL")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"商品列表",routerName:"shop",path:"/shop",cover:"4-1",router:{path:"/shop",name:"shop",component:function(e){return Promise.all([t.e(0),t.e(25)]).then(function(){var n=[t("1djJ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"期数管理",icon:"icon-kecheng",list:[{value:"期数列表",routerName:"periods",path:"/periods",cover:"2-2",router:{path:"/periods",name:"periods",component:function(e){return Promise.all([t.e(0),t.e(16)]).then(function(){var n=[t("ayGs")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"班级列表",routerName:"class",path:"/class",cover:"2-3",router:{path:"/class",name:"class",component:function(e){return Promise.all([t.e(0),t.e(11)]).then(function(){var n=[t("OX9A")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"不上课日期",routerName:"noLesson",path:"/noLesson",cover:"2-4",router:{path:"/noLesson",name:"noLesson",component:function(e){return Promise.all([t.e(0),t.e(22)]).then(function(){var n=[t("sg/1")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"人员管理",icon:"icon-laoshi",list:[{value:"教师列表",routerName:"teacher",path:"/teacher",cover:"3-1",router:{path:"/teacher",name:"teacher",component:function(e){return Promise.all([t.e(0),t.e(13)]).then(function(){var n=[t("Y0Vi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"用户列表",routerName:"user",path:"/user",cover:"3-2",router:{path:"/user",name:"user",component:function(e){return Promise.all([t.e(0),t.e(8)]).then(function(){var n=[t("jFLA")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"订单管理",icon:"icon-dingdan",list:[{value:"订单列表",routerName:"order",path:"/order",cover:"5-1",router:{path:"/order",name:"order",component:function(e){return Promise.all([t.e(0),t.e(3)]).then(function(){var n=[t("2qmY")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"退款列表",routerName:"refund",path:"/refund",cover:"5-2",router:{path:"/refund",name:"refund",component:function(e){return Promise.all([t.e(0),t.e(21)]).then(function(){var n=[t("89rD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"提现列表",routerName:"putForward",path:"/putForward",cover:"5-3",router:{path:"/putForward",name:"putForward",component:function(e){return Promise.all([t.e(0),t.e(36)]).then(function(){var n=[t("F5pf")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"发货管理",routerName:"consignment",path:"/consignment",cover:"5-4",router:{path:"/consignment",name:"consignment",component:function(e){return t.e(33).then(function(){var n=[t("usUK")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"订单统计",routerName:"orderCount",path:"/orderCount",cover:"5-5",router:{path:"/orderCount",name:"orderCount",component:function(e){return Promise.all([t.e(0),t.e(31)]).then(function(){var n=[t("s7i+")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"实物管理",icon:"icon-shu",list:[{value:"单品列表",routerName:"single",path:"/single",cover:"6-1",router:{path:"/single",name:"single",component:function(e){return Promise.all([t.e(0),t.e(10)]).then(function(){var n=[t("B31M")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"盒子列表",routerName:"box",path:"/box",cover:"6-2",router:{path:"/box",name:"box",component:function(e){return Promise.all([t.e(0),t.e(9)]).then(function(){var n=[t("+vCD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"公众号",icon:"icon-ai-weixin",list:[{value:"自动回复",routerName:"focusReply",path:"/focusReply",cover:"7-1",router:{path:"/focusReply",name:"focusReply",component:function(e){return Promise.all([t.e(0),t.e(15)]).then(function(){var n=[t("CK6D")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"关键词回复",routerName:"autoReply",path:"/autoReply",cover:"7-2",router:{path:"/autoReply",name:"autoReply",component:function(e){return Promise.all([t.e(0),t.e(12)]).then(function(){var n=[t("65NY")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"公众号菜单",routerName:"weChat",path:"/weChat",cover:"7-3",router:{path:"/weChat",name:"weChat",component:function(e){return Promise.all([t.e(0),t.e(17)]).then(function(){var n=[t("q5av")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"素材管理",routerName:"weChatResource",path:"/weChatResource",cover:"7-4",router:{path:"/weChatResource",name:"weChatResource",component:function(e){return Promise.all([t.e(0),t.e(23)]).then(function(){var n=[t("Xhqp")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"Banner管理",routerName:"banner",path:"/banner",cover:"7-5",router:{path:"/banner",name:"banner",component:function(e){return Promise.all([t.e(0),t.e(20)]).then(function(){var n=[t("CGL6")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"二维码管理",routerName:"qrcode",path:"/qrcode",cover:"7-6",router:{path:"/qrcode",name:"qrcode",component:function(e){return Promise.all([t.e(0),t.e(7)]).then(function(){var n=[t("lNiQ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"群发助手",routerName:"groupSend",path:"/groupSend",cover:"7-7",router:{path:"/groupSend",name:"groupSend",component:function(e){return Promise.all([t.e(0),t.e(27)]).then(function(){var n=[t("oerw")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"关注取关统计",routerName:"watchCount",path:"/watchCount",cover:"7-8",router:{path:"/watchCount",name:"watchCount",component:function(e){return Promise.all([t.e(0),t.e(32)]).then(function(){var n=[t("Dq6T")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"系统管理",icon:"icon-shezhi",list:[{value:"账号管理",routerName:"admin",path:"/admin",cover:"8-1",router:{path:"/admin",name:"admin",component:function(e){return Promise.all([t.e(0),t.e(34)]).then(function(){var n=[t("+jTk")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"角色管理",routerName:"role",path:"/role",cover:"8-2",router:{path:"/role",name:"role",component:function(e){return Promise.all([t.e(0),t.e(35)]).then(function(){var n=[t("Vt1u")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"菜单管理",routerName:"menu",path:"/menu",cover:"8-3",router:{path:"/menu",name:"menu",component:function(e){return Promise.all([t.e(0),t.e(29)]).then(function(){var n=[t("aTXs")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"系统配置",routerName:"sysConfig",path:"/sysConfig",cover:"8-4",router:{path:"/sysConfig",name:"sysConfig",component:function(e){return Promise.all([t.e(0),t.e(24)]).then(function(){var n=[t("gaNG")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"操作日志",routerName:"adminLog",path:"/adminLog",cover:"8-5",router:{path:"/adminLog",name:"adminLog",component:function(e){return Promise.all([t.e(0),t.e(26)]).then(function(){var n=[t("WZgi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]}],r={name:"App",data:function(){return{}},mounted:function(){var e=this;if(window.location.href.indexOf("login")<0){var n=this.$store.state.progressList,o=[];this.$router.options.routes[0].children=[];var r=n.find(function(e){return"5-1"===e.cover});r&&r.refund&&(this.$store.state.orderRefund=!0);var i={path:"/userDetail/:id",name:"userDetail",component:function(e){return Promise.all([t.e(0),t.e(14)]).then(function(){var n=[t("9PRC")];e.apply(null,n)}.bind(this)).catch(t.oe)}},u={path:"/teacher/:id",name:"teacherDetail",component:function(e){return Promise.all([t.e(0),t.e(18)]).then(function(){var n=[t("hFUZ")];e.apply(null,n)}.bind(this)).catch(t.oe)}};a.forEach(function(t){var a=!1,r=[];t.list.forEach(function(t){var o=n.find(function(e){return e.cover===t.cover});o&&(t.router.meta={},t.router.meta.readonly=o.readonly,t.router.meta.delete=!!o.delete,r.push(t),"3-1"===o.cover&&(u.meta={},u.meta.readonly=o.readonly,u.meta.delete=!!o.delete,e.$router.options.routes[0].children.push(u)),"3-2"===o.cover&&(i.meta={},i.meta.readonly=o.readonly,i.meta.delete=!!o.delete,e.$router.options.routes[0].children.push(i)),e.$router.options.routes[0].children.push(t.router),a=!0)}),a&&(t.list=r,o.push(t))}),this.$router.addRoutes([this.$router.options.routes[0]]),this.$store.dispatch("setMenu",o)}}},i={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},staticRenderFns:[]};var u=t("VU/8")(r,i,!1,function(e){t("mx6z")},null,null).exports,c=t("YaEn"),s=t("zL8q"),l=t.n(s),p=(t("tvR6"),t("IcnI"));o.default.use(l.a),o.default.config.productionTip=!1,new o.default({el:"#app",store:p.a,router:c.a,components:{App:u},template:"<App/>"})},YaEn:function(e,n,t){"use strict";var o=t("7+uW"),a=t("IcnI"),r=t("/ocq"),i=t("zSLJ");o.default.use(r.a);var u=new r.a({routes:[{path:"/",name:"index",component:function(e){return Promise.all([t.e(0),t.e(6)]).then(function(){var n=[t("jHcp")];e.apply(null,n)}.bind(this)).catch(t.oe)},redirect:{name:"first"},children:[{path:"",name:"first",component:function(e){return t.e(4).then(function(){var n=[t("sJm1")];e.apply(null,n)}.bind(this)).catch(t.oe)}}]},{path:"/login",name:"login",component:function(e){return Promise.all([t.e(0),t.e(19)]).then(function(){var n=[t("0HId")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}},{path:"/outManager",name:"outManager",component:function(e){return Promise.all([t.e(0),t.e(28)]).then(function(){var n=[t("hLMI")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}},{path:"/preview/:id",name:"preview",component:function(e){return Promise.all([t.e(1),t.e(0)]).then(function(){var n=[t("pjYA")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{}},{path:"/upload",name:"upload",component:function(e){return Promise.all([t.e(0),t.e(30)]).then(function(){var n=[t("iPJD")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}}]});u.beforeEach(function(e,n,t){if(a.a.commit("mainCanShow"),i.a.get("cc_token")&&(a.a.dispatch("setToken",i.a.get("cc_token")),a.a.dispatch("setPermission",JSON.parse(localStorage.getItem("permission"))),null!==i.a.get("cc_user_name")&&a.a.dispatch("setUserName",i.a.get("cc_user_name"))),a.a.state.nowTab=e.name,e.matched.length>1&&"first"!==e.name){for(var o=void 0,r=0;r<a.a.state.menuList.length;r++)for(var u=a.a.state.menuList[r],c=0;c<u.list.length;c++){var s=u.list[c];s.path===e.path&&(o=s)}a.a.state.openedTab.indexOf(o)<0&&a.a.state.openedTab.push(o)}if(e.meta.readonly?a.a.dispatch("readonly",!0):a.a.dispatch("readonly",!1),"userDetail"===e.name){var l=JSON.parse(localStorage.getItem("permission")).find(function(e){return"3-2"===e.cover}).readonly;a.a.dispatch("readonly",l)}e.meta.delete?a.a.dispatch("deletePermission",!0):a.a.dispatch("deletePermission",!1),e.matched.some(function(e){return!0!==e.meta.skip_auth})&&!a.a.state.token?t({path:"/login"}):t()}),u.onError(function(e){var n=e.message.match(/Loading chunk (\d)+ failed/g),t=u.history.pending.fullPath;n&&u.replace(t)}),n.a=u},mx6z:function(e,n){},tvR6:function(e,n){},zSLJ:function(e,n,t){"use strict";n.a={set:function(e,n,t){var o=new Date;o.setTime(o.getTime()+864e5*t),window.document.cookie=e+"="+n+";path=/;expires="+o.toGMTString()},get:function(e){var n=window.document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return n?n[2]:null},delete:function(e){this.set(e,"",-1)}}}},["NHnr"]);
\ No newline at end of file \ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,r,t){for(var o,d,b,i=0,u=[];i<c.length;i++)d=c[i],f[d]&&u.push(f[d][0]),f[d]=0;for(o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);for(a&&a(c,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)b=n(n.s=t[i]);return b};var c={},f={39:0};function n(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,n),f.l=!0,f.exports}n.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,n){a=f[e]=[c,n]});a[2]=c;var r=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,n.nc&&t.setAttribute("nonce",n.nc),t.src=n.p+"static/js/"+e+"."+{0:"bab30801142165feed18",1:"f98a3a075ba9d55a9d22",2:"50cff5bce39f61c7d839",3:"bce1d738102f98e95a32",4:"f7de107bf23fce922b15",5:"414d7fc44d6445ac39f8",6:"ad94b8f1ea4c3ed83503",7:"d8d6721326f79880eb4e",8:"b6984c4558657c5de318",9:"bf67b8fd9896e9b1caaf",10:"db7dac749a718d28a9d5",11:"763202fa905a29a8d6de",12:"33b952cc64b80ac01be1",13:"a3119050ce4ea8191982",14:"9e83a790cbef2c3573e6",15:"f32e93be6b7fee85031f",16:"6c4839f0f6c00da9129c",17:"d82fe20f937e4ecae454",18:"6a6289fee06d4ff38480",19:"36e10db78048c8d01cc4",20:"8fa56e2f48017ee89910",21:"b6657bc81c8fd8a91c15",22:"3ec8ac155a26307cac59",23:"596ec0d8b06bd333e030",24:"8be8e58ca56cda436a14",25:"e514bda059989b453caf",26:"334a501cf22b43b053be",27:"bedce1cba2e3aeee4e56",28:"d5f9fdfaf1f4e061e76a",29:"00bcc14b5f0e43d70e24",30:"702146059bbfbcda7465",31:"af40988705ba5642efad",32:"990611f9ae982d26b170",33:"8d9f2464a40f09af60da",34:"f9f01215217e5535a581",35:"9b6b38b29f206fd0af7c",36:"668a983b5374cbb669d7"}[e]+".js";var o=setTimeout(d,12e4);function d(){t.onerror=t.onload=null,clearTimeout(o);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return t.onerror=t.onload=d,r.appendChild(t),c},n.m=e,n.c=c,n.d=function(e,a,c){n.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},n.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(a,"a",a),a},n.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},n.p="/",n.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,r,t){for(var d,o,b,i=0,u=[];i<a.length;i++)o=a[i],f[o]&&u.push(f[o][0]),f[o]=0;for(d in r)Object.prototype.hasOwnProperty.call(r,d)&&(e[d]=r[d]);for(c&&c(a,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)b=n(n.s=t[i]);return b};var a={},f={39:0};function n(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,n),f.l=!0,f.exports}n.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,n){c=f[e]=[a,n]});c[2]=a;var r=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,n.nc&&t.setAttribute("nonce",n.nc),t.src=n.p+"static/js/"+e+"."+{0:"bab30801142165feed18",1:"f98a3a075ba9d55a9d22",2:"50cff5bce39f61c7d839",3:"fdc948f97c5c1c9f3cf8",4:"f7de107bf23fce922b15",5:"414d7fc44d6445ac39f8",6:"ad94b8f1ea4c3ed83503",7:"d8d6721326f79880eb4e",8:"b6984c4558657c5de318",9:"bf67b8fd9896e9b1caaf",10:"db7dac749a718d28a9d5",11:"763202fa905a29a8d6de",12:"33b952cc64b80ac01be1",13:"a3119050ce4ea8191982",14:"9e83a790cbef2c3573e6",15:"f32e93be6b7fee85031f",16:"6c4839f0f6c00da9129c",17:"d82fe20f937e4ecae454",18:"6a6289fee06d4ff38480",19:"36e10db78048c8d01cc4",20:"8fa56e2f48017ee89910",21:"47f2deb767baa83c48c3",22:"3e156346a191d3c5d037",23:"99a21eec6d6ecd2c71b8",24:"f62daac923554369a440",25:"42c0c1073f5d412db1ed",26:"334a501cf22b43b053be",27:"bedce1cba2e3aeee4e56",28:"63f8532c7371d2e794f0",29:"44fd0b7ba1ce56d1b636",30:"26c8cdcca5e508e55740",31:"04c9f5d4840ae3246a0d",32:"4e45a27cffec17f47137",33:"ba873198d73abbeede3d",34:"8e82e17774dbd94c6b74",35:"67c637b6f2f4d9599bfd",36:"49cdb1af7d65390e55cc"}[e]+".js";var d=setTimeout(o,12e4);function o(){t.onerror=t.onload=null,clearTimeout(d);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return t.onerror=t.onload=o,r.appendChild(t),a},n.m=e,n.c=a,n.d=function(e,c,a){n.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="/",n.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
...@@ -31,17 +31,16 @@ ...@@ -31,17 +31,16 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="6">
<el-form-item label="来源" class="test"> <el-form-item label="来源" class="test">
<el-select v-model="searchFrom.invite_type" placeholder="来源类型" @change="onInviteTypeChange" @clear="searchFrom.invite_id=''" clearable> <el-input v-model="searchFrom.invite_type " :placeholder="inviteSearchPlaceholder">
<el-option <template slot="prepend">CC -</template>
v-for="item in inviteTypeOption" </el-input>
:key="item.id" </el-form-item>
:label="item.value" </el-col>
:value="item.id"> <el-col :span="6">
</el-option> <el-form-item label="推广人ID">
</el-select> <el-input v-model="searchFrom.invite_id" :placeholder="inviteSearchPlaceholder"></el-input>
<el-input v-if="parseInt(searchFrom.invite_type) >= 0" v-model="searchFrom.invite_id" :placeholder="inviteSearchPlaceholder"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
...@@ -142,16 +141,26 @@ ...@@ -142,16 +141,26 @@
prop="goods_name" prop="goods_name"
label="商品名称"> label="商品名称">
</el-table-column> </el-table-column>
<el-table-column
width="50"
prop="invite_type"
label="来源">
</el-table-column>
<el-table-column
width="80"
prop="invite_id"
label="推广人ID">
</el-table-column>
<el-table-column <el-table-column
label="付款状态" label="付款状态"
width="100"> width="80">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.status|status}} {{scope.row.status|status}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="实付金额" label="实付金额"
width="100"> width="80">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.money|moneytFilter}} {{scope.row.money|moneytFilter}}
</template> </template>
...@@ -523,7 +532,4 @@ ...@@ -523,7 +532,4 @@
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
} }
.test>div> .el-input {
width: 30%;
}
</style> </style>
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
limit: 10, limit: 10,
search:{ search:{
key:'', key:'',
status:0 status:1
}, },
liStatus:[ liStatus:[
{ {
......
...@@ -175,12 +175,12 @@ ...@@ -175,12 +175,12 @@
}) })
}, },
onPageChange(val){ onPageChange(val){
this.nowPage = val this.nowPage = val;
this.getRefundList() this.getRefundList()
}, },
onSizeChange(val){ onSizeChange(val){
this.nowPage = 1 this.nowPage = 1;
this.limit = val this.limit = val;
this.getRefundList() this.getRefundList()
}, },
getRefundList(){ getRefundList(){
......
...@@ -189,6 +189,16 @@ ...@@ -189,6 +189,16 @@
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
<el-form-item label="分享海报">
<el-upload
list-type="picture-card"
action="/api/public/upload"
:limit="1"
:file-list="form.share_desc.refImg"
:http-request="uploadFileMainShareRef">
<i class="el-icon-plus"></i>
</el-upload>
</el-form-item>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="商品详情"> <el-form-item label="商品详情">
...@@ -243,7 +253,8 @@ ...@@ -243,7 +253,8 @@
share_desc:{ share_desc:{
title:'', title:'',
content:'', content:'',
img:[] img:[],
refImg:[]
}, },
desc:{ desc:{
detail:"", detail:"",
...@@ -256,9 +267,11 @@ ...@@ -256,9 +267,11 @@
}, },
methods:{ methods:{
sub(){ sub(){
console.log(this.form)
let _json = JSON.parse(JSON.stringify(this.form)+''); let _json = JSON.parse(JSON.stringify(this.form)+'');
_json.original_price = (_json.original_price*100).toFixed(0); _json.original_price = (_json.original_price*100).toFixed(0);
_json.current_price = (_json.current_price*100).toFixed(0); _json.current_price = (_json.current_price*100).toFixed(0);
_json.invite_earnings = (_json.invite_earnings*100).toFixed(0);
_json.goods_desc = JSON.stringify(_json.goods_desc); _json.goods_desc = JSON.stringify(_json.goods_desc);
_json.desc = JSON.stringify(_json.desc); _json.desc = JSON.stringify(_json.desc);
_json.share_desc = JSON.stringify(_json.share_desc); _json.share_desc = JSON.stringify(_json.share_desc);
...@@ -308,6 +321,7 @@ ...@@ -308,6 +321,7 @@
removeFileLesson(){ removeFileLesson(){
this.form.goods_desc.imgLesson=[] this.form.goods_desc.imgLesson=[]
}, },
uploadFileMain(a){ uploadFileMain(a){
this.$store.dispatch('setProgress',{type:'new',id:a.file.uid}); this.$store.dispatch('setProgress',{type:'new',id:a.file.uid});
this.fileUid = a.file.uid; this.fileUid = a.file.uid;
...@@ -319,6 +333,25 @@ ...@@ -319,6 +333,25 @@
}); });
}) })
}, },
removeFileShareRef(){
this.form.share_desc.refImg=[]
},
uploadFileMainShareRef(a){
this.$store.dispatch('setProgress',{type:'new',id:a.file.uid});
this.fileUid = a.file.uid;
uploadFileApi({file:a.file,type:'local'}).then(res=>{
this.$message({
message: '上传成功',
type: 'success'
});
if(this.form.share_desc.refImg){
this.form.share_desc.refImg[0] = {name:res.url,url:process.env.IMAGE_URL_HEAD + res.url,title:'',lable:''}
}else{
this.form.share_desc.refImg=[];
this.form.share_desc.refImg[0] = {name:res.url,url:process.env.IMAGE_URL_HEAD + res.url,title:'',lable:''}
}
})
},
uploadFileMainShare(a){ uploadFileMainShare(a){
this.$store.dispatch('setProgress',{type:'new',id:a.file.uid}); this.$store.dispatch('setProgress',{type:'new',id:a.file.uid});
this.fileUid = a.file.uid; this.fileUid = a.file.uid;
...@@ -333,7 +366,6 @@ ...@@ -333,7 +366,6 @@
this.form.share_desc.img=[]; this.form.share_desc.img=[];
this.form.share_desc.img[0] = {name:res.url,url:process.env.IMAGE_URL_HEAD + res.url,title:'',lable:''} this.form.share_desc.img[0] = {name:res.url,url:process.env.IMAGE_URL_HEAD + res.url,title:'',lable:''}
} }
}) })
}, },
uploadFileMainService(a){ uploadFileMainService(a){
...@@ -390,6 +422,7 @@ ...@@ -390,6 +422,7 @@
share_desc:{ share_desc:{
title:'', title:'',
content:'', content:'',
refImg:[],
img:[] img:[]
}, },
desc:{ desc:{
...@@ -401,8 +434,39 @@ ...@@ -401,8 +434,39 @@
this.getLessonList(); this.getLessonList();
break; break;
case 1: case 2: case 1: case 2:
this.form={
name:'',
goods_type:1,
goods_desc:{
desc:"",
img:[]
},
course_id :'',
course_type:0,
watch_num:'',
duration_num:0,
original_price:'',
current_price:'',
is_real:0,
is_auth_user:0,
share_desc:{
title:'',
content:'',
refImg:[],
img:[]
},
desc:{
detail:"",
qa:"",
customer_service:[]
}
}
getGoodsDetailApi(this.dialogObj.id).then(res=>{ getGoodsDetailApi(this.dialogObj.id).then(res=>{
this.loading = false; this.loading = false;
let share_desc = JSON.parse(res.share_desc);
if(!share_desc.refImg){
share_desc.refImg = []
}
this.form={ this.form={
name:res.name, name:res.name,
goods_type:res.goods_type, goods_type:res.goods_type,
...@@ -413,11 +477,12 @@ ...@@ -413,11 +477,12 @@
duration_num:res.duration_num, duration_num:res.duration_num,
original_price:res.original_price/100, original_price:res.original_price/100,
current_price:res.current_price/100, current_price:res.current_price/100,
is_real:res.is_real, is_real:res.is_real,
is_auth_user:res.is_auth_user, is_auth_user:res.is_auth_user,
share_desc:JSON.parse(res.share_desc), share_desc:JSON.parse(res.share_desc),
desc:JSON.parse(res.desc), desc:JSON.parse(res.desc),
invite_earnings: res.invite_earnings, invite_earnings: res.invite_earnings/100,
is_auth_teacher: res.is_auth_teacher is_auth_teacher: res.is_auth_teacher
}; };
this.getLessonList() this.getLessonList()
...@@ -438,7 +503,6 @@ ...@@ -438,7 +503,6 @@
// }); // });
break break
} }
}, },
changeLessonType(){ changeLessonType(){
this.getLessonList() this.getLessonList()
......
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