71

parent 0592df74
<!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_x1rivf5f5.css><link rel=stylesheet href=https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css><title>唱唱启蒙-后台</title></head><body><script src=https://cdn.bootcss.com/vue/2.5.17/vue.min.js></script><script src=https://unpkg.com/vuex@3.0.1></script><script src=https://cdn.bootcss.com/axios/0.18.0/axios.min.js></script><script src=https://lib.baomitu.com/element-ui/2.7.2/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.d6180b372f3fdfbcf173.js></script><script type=text/javascript src=/static/js/vendor.c75c8ffdd44fcdb01df5.js></script><script type=text/javascript src=/static/js/app.34906f6c5b6497f69e87.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_x1rivf5f5.css><link rel=stylesheet href=https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css><title>唱唱启蒙-后台</title></head><body><script src=https://cdn.bootcss.com/vue/2.5.17/vue.min.js></script><script src=https://unpkg.com/vuex@3.0.1></script><script src=https://cdn.bootcss.com/axios/0.18.0/axios.min.js></script><script src=https://lib.baomitu.com/element-ui/2.7.2/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.49d0c23a938f2152360d.js></script><script type=text/javascript src=/static/js/vendor.c75c8ffdd44fcdb01df5.js></script><script type=text/javascript src=/static/js/app.34906f6c5b6497f69e87.js></script></body><script>let el = document.getElementsByTagName("script");
el.onerror = function(a,b,c){
console.log('error:',a,b,c);
};
......
webpackJsonp([25],{"+rlv":function(e,t,i){var n=i("r12b");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);i("rjj0")("10a3ec8d",n,!1,{})},Chh9:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.dialog-footer[data-v-be4e8ebe] {\n display: block;\n text-align: center;\n}\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/logistics/dialog.vue"],names:[],mappings:";AACA;EACE,eAAe;EACf,mBAAmB;CACpB",file:"dialog.vue",sourcesContent:["\n.dialog-footer[data-v-be4e8ebe] {\n display: block;\n text-align: center;\n}\n"],sourceRoot:""}])},Vj6a:function(e,t,i){var n=i("xPF6");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);i("rjj0")("10efc4f2",n,!1,{})},"eYh/":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i("kmJW"),o=i("NC6I"),s=i.n(o),r=i("CCn6"),a=i("P0f4"),l=i("xGts"),d={name:"dialogObj",props:["dialogObj"],data:function(){return{}},watch:{"dialogObj.show":{deep:!0,handler:function(){console.log(this.dialogObj)}}},methods:{handlerAddressChange:function(e){if(e.province&&e.city&&e.district){this.dialogObj.detail=e.detail,this.dialogObj.province=e.province,this.dialogObj.city=e.city,this.dialogObj.receive_mobile=e.mobile,this.dialogObj.receive_name=e.name;var t=l.a.filter(function(t){return t.value===e.province}),i=t[0].children.filter(function(t){return t.value===e.city}),n=i[0].children.filter(function(t){return t.value===e.district});this.dialogObj.province_name=t[0].label,this.dialogObj.city_name=i[0].label,this.dialogObj.district_name=n.length>0?n[0].label:i[0].children[0].label,this.dialogObj.district=n.length>0?n[0].value:i[0].children[0].value}},saveAddress:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t={province_id:e.dialogObj.province,province_name:e.dialogObj.province_name,city_id:e.dialogObj.city,city:e.dialogObj.city_name,area:e.dialogObj.district_name,area_id:e.dialogObj.district,address:e.dialogObj.detail,receive_name:e.dialogObj.receive_name,receive_mobile:e.dialogObj.receive_mobile};Object(r._9)(e.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功"}),e.dialogObj.show=!1,e.$emit("reflash")})})}},components:{vueAddress:a.a},mounted:function(){console.log(this.dialogObj)}},c=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"编辑收货地址",center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("vue-address",{attrs:{province:e.dialogObj.province,city:e.dialogObj.city,district:e.dialogObj.district,detail:e.dialogObj.detail,mobile:e.dialogObj.receive_mobile,name:e.dialogObj.receive_name},on:{change:e.handlerAddressChange}}),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.saveAddress}},[e._v("保 存")])],1)],1)};c._withStripped=!0;var m={render:c,staticRenderFns:[]},p=m;var u=!1;var h=i("VU/8")(d,p,!1,function(e){u||i("twqH")},"data-v-be4e8ebe",null);h.options.__file="src\\components\\logistics\\dialog.vue";var g=h.exports,f=i("+TkF"),b={name:"index",components:{page:n.a,addressDialog:g},data:function(){return{dialogObj:{show:!1},adressDialog:!1,searchFrom:{user_id:"",theme_id:"",periods_id:"",type:""},nowPage:1,total:0,limit:10,deliverList:[],selectedGoods:[],secGoods:[],periodsId:null,goods_id:null,goodsList:[],themeList:[],param_token:s()(JSON.stringify({sing:"singsingenglish21000"})),uploadHeader:{token:localStorage.getItem("cc_token")},logisticsType:[{value:"0",name:"当前待发货 "},{value:"1",name:"所有待发货 "},{value:"2",name:"所有已发货 "}]}},filters:{LogisticsStatusFil:function(e){return f.q[e]}},mounted:function(){this.init()},methods:{downLoad:function(){window.open("/static/待发货模板.xls")},handleClick:function(e){this.searchFrom.type=e.name,this.getList()},editAddress:function(e){console.log(e),this.dialogObj.detail=e.address,this.dialogObj.receive_mobile=e.receive_mobile,this.dialogObj.receive_name=e.receive_name,this.dialogObj.province_name="",this.dialogObj.city_name="",this.dialogObj.district_name="",this.dialogObj.id=e.id,this.dialogObj.show=!0},onUpdateAddress:function(){this.dialogObj.show=!1,this.getList()},fileSuccess:function(){this.$message({message:"提交成功,请稍后刷新",type:"success"}),this.getList()},init:function(){var e=this;this.getList();Object(r._96)({page:1,limit:100}).then(function(t){e.themeList=t.list}),Object(r._53)({page:1,limit:100,goods_type:"1,2"}).then(function(t){console.log(t),t.list.forEach(function(e){e.name="["+e.id+"]["+f.h[e.goods_type]+"]["+e.current_price/100+"元]"+e.name,e.children=[]}),e.goodsList=t.list})},exportTable:function(){var e={};this.searchFrom.user_id&&(e.user_id=this.searchFrom.user_id),this.searchFrom.theme_id&&(e.theme_id=this.searchFrom.theme_id),this.searchFrom.periods_id&&(e.periods_id=this.searchFrom.periods_id),Object(r._24)("/api/admin/order/deliver/list/export",e)},initQuery:function(){var e=this,t=this.$route.query;t&&t.goods_id&&t.periods_id?(this.goods_id=t.goods_id,this.selectedGoods=[parseInt(t.goods_id),parseInt(t.periods_id)],Object(r._68)({goods_id:this.selectedGoods[0],limit:100}).then(function(t){t.list.forEach(function(e){e.name=e.title}),e.goodsList.find(function(t){return t.id===e.selectedGoods[0]}).children=t.list;var i=e.goodsList.find(function(t){return t.id===e.selectedGoods[0]});e.periods=i.children.find(function(t){return t.id===e.selectedGoods[1]}),console.log(e.periods)})):Object(r._47)().then(function(t){console.log(t),t&&(e.goods_id=t.goods_id,e.selectedGoods=[parseInt(t.goods_id),parseInt(t.id)],Object(r._68)({goods_id:e.selectedGoods[0],limit:100}).then(function(t){t.list.forEach(function(e){e.name=e.title}),e.goodsList.find(function(t){return t.id===e.selectedGoods[0]}).children=t.list;var i=e.goodsList.find(function(t){return t.id===e.selectedGoods[0]});e.periods=i.children.find(function(t){return t.id===e.selectedGoods[1]}),e.teacher_id="",console.log(e.periods)}))}),console.log(this.goodsList)},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.theme_id&&(t.theme_id=this.searchFrom.theme_id),this.searchFrom.periods_id&&(t.periods_id=this.searchFrom.periods_id),this.searchFrom.type&&(t.type=this.searchFrom.type),Object(r._48)(t).then(function(t){e.deliverList=t.list,e.total=t.total,console.log(e.deliverList)})},reset:function(){this.searchFrom={user_id:"",theme_id:"",periods_id:"",type:""},this.getList()},changePeriods:function(e){if(e.length>1){this.goods_id=e[0];var t=this.goodsList.find(function(t){return t.id===e[0]});this.periods=t.children.find(function(t){return t.id===e[1]}),console.log(this.goodsList),console.log(this.periods),this.searchFrom.periods_id=this.periods.id}},handleItemChange:function(e){var t=this;Object(r._68)({goods_id:e[0],limit:100}).then(function(i){i.list.forEach(function(e){e.name=e.title}),t.goodsList.find(function(t){return t.id===e[0]}).children=i.list})}}},_=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sms"},[i("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px",inline:"",size:"small"}},[i("el-form-item",{attrs:{label:"用户ID"}},[i("el-input",{staticStyle:{width:"80px"},model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"期数"}},[i("el-cascader",{attrs:{options:e.goodsList,props:{value:"id",label:"name"}},on:{"active-item-change":e.handleItemChange,change:e.changePeriods},model:{value:e.selectedGoods,callback:function(t){e.selectedGoods=t},expression:"selectedGoods"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"主题"}},[i("el-select",{attrs:{filterable:"",placeholder:"请选择",clearable:""},model:{value:e.searchFrom.theme_id,callback:function(t){e.$set(e.searchFrom,"theme_id",t)},expression:"searchFrom.theme_id"}},e._l(e.themeList,function(e,t){return i("el-option",{key:t,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"success",plain:""},on:{click:e.reset}},[e._v("重置")]),e._v(" "),e.$store.state.readonly?e._e():i("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.downLoad()}}},[e._v("excel模板下载")]),e._v(" "),e.$store.state.export?i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.exportTable}},[e._v("导出当前待发货")]):e._e()],1),e._v(" "),e.$store.state.export?i("el-form-item",[i("el-upload",{attrs:{"show-file-list":!1,onSuccess:e.fileSuccess,headers:e.uploadHeader,data:{param_token:e.param_token},action:"/api/admin/order/deliver/list/import"}},[i("el-button",{attrs:{type:"success",plain:""}},[e._v("导入发货信息")])],1)],1):e._e()],1),e._v(" "),i("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.searchFrom.type,callback:function(t){e.$set(e.searchFrom,"type",t)},expression:"searchFrom.type"}},[i("el-tab-pane",{attrs:{label:"当前待发货",name:"0"}}),e._v(" "),i("el-tab-pane",{attrs:{label:"所有待发货",name:"1"}}),e._v(" "),i("el-tab-pane",{attrs:{label:"所有已发货",name:"2"}})],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.deliverList,size:"mini"}},[i("el-table-column",{attrs:{width:"220",className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v(" "+e._s(t.row.user_nickname)),i("br"),e._v("(ID:"+e._s(t.row.user_id)+")"),i("br"),e._v("手机:"+e._s(t.row.user_mobile)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"address",label:"收货地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.receive_name)),i("br"),e._v("\n "+e._s(t.row.receive_mobile)),i("br"),e._v("\n "+e._s(t.row.province_name)+e._s(t.row.city_name)+e._s(t.row.area_name)+e._s(t.row.address)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"periods_title",label:"期数名称"}}),e._v(" "),i("el-table-column",{attrs:{prop:"theme_name",label:"主题"}}),e._v(" "),i("el-table-column",{attrs:{prop:"deliver_start_at",label:"预计发货开始时间"}}),e._v(" "),i("el-table-column",{attrs:{prop:"deliver_end_at",label:"预计发货结束时间"}}),e._v(" "),i("el-table-column",{attrs:{prop:"deliver_at",label:"发货时间"}}),e._v(" "),i("el-table-column",{attrs:{prop:"status",label:"物流状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("LogisticsStatusFil")(t.row.status))),i("br"),e._v(" "),2==e.searchFrom.type?i("span",[e._v("名称:"+e._s(t.row.express_name)),i("br"),e._v("单号:"+e._s(t.row.express_no))]):e._e()]}}])}),e._v(" "),e.$store.state.readonly?e._e():i("el-table-column",{attrs:{width:"150",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{plain:"",type:"info",size:"mini"},on:{click:function(i){e.editAddress(t.row)}}},[e._v("\n 编辑收货地址\n ")])]}}])})],1),e._v(" "),i("page",{attrs:{nowPage:e.nowPage,total:e.total},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),i("address-dialog",{attrs:{dialogObj:e.dialogObj},on:{reflash:e.onUpdateAddress}})],1)};_._withStripped=!0;var v={render:_,staticRenderFns:[]},A=v;var x=!1;var w=i("VU/8")(b,A,!1,function(e){x||(i("Vj6a"),i("+rlv"))},"data-v-09341989",null);w.options.__file="src\\components\\logistics\\index.vue";t.default=w.exports},r12b:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.userInfo > div {\r\n display: -webkit-box;\r\n display: -ms-flexbox;\r\n display: flex;\r\n -webkit-box-orient: horizontal;\r\n -webkit-box-direction: normal;\r\n -ms-flex-flow: row nowrap;\r\n flex-flow: row nowrap;\r\n -webkit-box-pack: start;\r\n -ms-flex-pack: start;\r\n justify-content: flex-start;\r\n -webkit-box-align: center;\r\n -ms-flex-align: center;\r\n align-items: center;\n}\n.f-c > .cell {\r\n display: -webkit-box !important;\r\n display: -ms-flexbox !important;\r\n display: flex !important;\r\n -webkit-box-orient: horizontal;\r\n -webkit-box-direction: normal;\r\n -ms-flex-flow: row;\r\n flex-flow: row;\r\n -webkit-box-pack: start;\r\n -ms-flex-pack: start;\r\n justify-content: flex-start;\r\n -webkit-box-align: center;\r\n -ms-flex-align: center;\r\n align-items: center;\n}\r\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/logistics/index.vue"],names:[],mappings:";AACA;EACE,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;EACd,+BAA+B;EAC/B,8BAA8B;MAC1B,0BAA0B;UACtB,sBAAsB;EAC9B,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;CAC7B;AACD;EACE,gCAAgC;EAChC,gCAAgC;EAChC,yBAAyB;EACzB,+BAA+B;EAC/B,8BAA8B;MAC1B,mBAAmB;UACf,eAAe;EACvB,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;CAC7B",file:"index.vue",sourcesContent:["\n.userInfo > div {\r\n display: -webkit-box;\r\n display: -ms-flexbox;\r\n display: flex;\r\n -webkit-box-orient: horizontal;\r\n -webkit-box-direction: normal;\r\n -ms-flex-flow: row nowrap;\r\n flex-flow: row nowrap;\r\n -webkit-box-pack: start;\r\n -ms-flex-pack: start;\r\n justify-content: flex-start;\r\n -webkit-box-align: center;\r\n -ms-flex-align: center;\r\n align-items: center;\n}\n.f-c > .cell {\r\n display: -webkit-box !important;\r\n display: -ms-flexbox !important;\r\n display: flex !important;\r\n -webkit-box-orient: horizontal;\r\n -webkit-box-direction: normal;\r\n -ms-flex-flow: row;\r\n flex-flow: row;\r\n -webkit-box-pack: start;\r\n -ms-flex-pack: start;\r\n justify-content: flex-start;\r\n -webkit-box-align: center;\r\n -ms-flex-align: center;\r\n align-items: center;\n}\r\n"],sourceRoot:""}])},twqH:function(e,t,i){var n=i("Chh9");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);i("rjj0")("10fdec89",n,!1,{})},xPF6:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.sms[data-v-09341989] {\r\n padding: 20px 0;\n}\n.el-button+.el-button[data-v-09341989]{\r\n margin-left: 0;\r\n /* margin-top: 10px; */\n}\n.avatar[data-v-09341989] {\r\n width: 50px;\r\n min-width: 50px;\r\n margin-right: 10px;\r\n height: 50px;\r\n\r\n border-radius: 50%;\n}\r\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/logistics/index.vue"],names:[],mappings:";AACA;EACE,gBAAgB;CACjB;AACD;EACE,eAAe;EACf,uBAAuB;CACxB;AACD;EACE,YAAY;EACZ,gBAAgB;EAChB,mBAAmB;EACnB,aAAa;;EAEb,mBAAmB;CACpB",file:"index.vue",sourcesContent:["\n.sms[data-v-09341989] {\r\n padding: 20px 0;\n}\n.el-button+.el-button[data-v-09341989]{\r\n margin-left: 0;\r\n /* margin-top: 10px; */\n}\n.avatar[data-v-09341989] {\r\n width: 50px;\r\n min-width: 50px;\r\n margin-right: 10px;\r\n height: 50px;\r\n\r\n border-radius: 50%;\n}\r\n"],sourceRoot:""}])}});
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,d,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(c&&c(a,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var a={},f={60:0};function b(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,b),f.l=!0,f.exports}b.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,b){c=f[e]=[a,b]});c[2]=a;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"16eb7f8cbac8a689d499",1:"2c9ebf7b732aa3fdf3c2",2:"0761b60c669971a9a44a",3:"9a5b97380970b0933ae8",4:"48823e704707c0d69214",5:"1cdcbc229c82e6de28c8",6:"516ca6fbf14c27677f7c",7:"34f9c1a6c911a69ec382",8:"14de3ae9cd758d45251b",9:"f0289cec1e521b7d3cef",10:"de9f467d9b4a34f88d8b",11:"ea6cf614c2fd66d92483",12:"725edd0be61d5c1da2e3",13:"cb2f5287d7d7547dfa43",14:"9dd8c3471bb99c0a2b76",15:"8dcdb6aa54482b4481bd",16:"ec1eb5bdf3d5d8cfc587",17:"866854bdaa7ca71446ff",18:"4c7a513f0ce0c3621266",19:"2cc6119881abc20dfad2",20:"01e3a63dea996bea1f83",21:"5b9caa2fae623be9123e",22:"845c38458cc4eb58b34a",23:"1b0ae0527da127f428b4",24:"146f0f96eced0f23ce48",25:"7f8547db69ff4293c972",26:"4e4fe295227884864f16",27:"2879e58772a7b23ace75",28:"34063e45734c65d85595",29:"f9f42d473eabb576f23f",30:"84e334d877dbb87b9eb3",31:"b29b93be543a2fe65b17",32:"01fa2805877c6cbdf7af",33:"267c1a2242ebf9a028aa",34:"cfd2507442dd13e428cd",35:"65d3ab3b0202027fa637",36:"5011b2196b584b14826b",37:"e94f2bdac1d4a783d393",38:"6b9fabd2c071d6cdf54f",39:"aa7684a8b9f54f736cf2",40:"3e9a225da6813b2511eb",41:"f5cbc80a06389832a034",42:"2b22e6c6c95c4e96b9a0",43:"50825adcf2f817189dbe",44:"b5a76a7de5b7ae3c61f7",45:"253771485fb2b1ecb8dc",46:"be944d0abe4a9d1b4e10",47:"aa2b49f936dcc8774648",48:"8f6508ff229ef77496c1",49:"87fdb289e269eee51211",50:"82bb387148b6e4c12d0b",51:"f350310b3fb52ad6b1be",52:"0240e3bc0b518830e466",53:"515e0918fb090883dd7d",54:"dc7ad71bf0a1c7a9e137",55:"8e5b3dce840d40858ac5",56:"d59bc249a4c16f386f8a",57:"051980f34375d0b68fcd"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),a},b.m=e,b.c=a,b.d=function(e,c,a){b.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},b.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(c,"a",c),c},b.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},b.p="/",b.oe=function(e){throw console.error(e),e}}([]);
\ 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_x1rivf5f5.css><link rel=stylesheet href=https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css><title>唱唱启蒙-后台</title><link href=/static/css/app.8dd6a9a64a28a6b6bef171c87a755dac.css rel=stylesheet></head><body><script src=https://cdn.bootcss.com/vue/2.5.17/vue.min.js></script><script src=https://unpkg.com/vuex@3.0.1></script><script src=https://cdn.bootcss.com/axios/0.18.0/axios.min.js></script><script src=https://lib.baomitu.com/element-ui/2.7.2/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.28a22d2dd60b879a795b.js></script><script type=text/javascript src=/static/js/vendor.6c7b37f6719c90d0cedf.js></script><script type=text/javascript src=/static/js/app.b369af2de00610da082f.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_x1rivf5f5.css><link rel=stylesheet href=https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css><title>唱唱启蒙-后台</title><link href=/static/css/app.f62dec0804edfe17eab68b4c36a41cfc.css rel=stylesheet></head><body><script src=https://cdn.bootcss.com/vue/2.5.17/vue.min.js></script><script src=https://unpkg.com/vuex@3.0.1></script><script src=https://cdn.bootcss.com/axios/0.18.0/axios.min.js></script><script src=https://lib.baomitu.com/element-ui/2.7.2/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.4c6f54a50851ad3a1f40.js></script><script type=text/javascript src=/static/js/vendor.6c7b37f6719c90d0cedf.js></script><script type=text/javascript src=/static/js/app.37d6342163cc0c7bad2a.js></script></body><script>let el = document.getElementsByTagName("script");
el.onerror = function(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.
webpackJsonp([10],{Jr0G:function(e,t){},KooV:function(e,t){},b4Gx:function(e,t){},cAYZ:function(e,t){},haDh:function(e,t){},oerw:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i("CCn6"),a=i("kmJW"),o=i("C+jy");i("sf/l"),i("5eDb");var n={name:"tinymce1",props:["lookData1"],data:function(){return{userDialogParams:{total:0,limit:5,nowPage:1,show:!1},userList:[],searchUserFrom:{},handSecUser:[]}},activated:function(){this.show=!0},created:function(){},components:{page:a.a},methods:{getUser:function(){var e=this,t={page:this.userDialogParams.nowPage,limit:this.userDialogParams.limit};this.searchUserFrom.userId&&(t.user_id=this.searchUserFrom.userId),this.searchUserFrom.nickName&&(t.nickname=this.searchUserFrom.nickName),this.searchUserFrom.mobile&&(t.mobile=this.searchUserFrom.mobile),Object(s._99)(t).then(function(t){e.userList=t.list,e.userDialogParams.total=t.total})},onUserPageChange:function(e){this.userDialogParams.nowPage=e,this.getUser()},onUserSizeChange:function(e){this.userDialogParams.nowPage=1,this.userDialogParams.limit=e,this.getUser()},handleSelectionChange:function(e,t){this.multipleSelection=e;for(var i=0;i<this.handSecUser.length;i++)if(t.user_id==this.handSecUser[i].user_id)return;this.handSecUser.push(t)},handleSelectionAll:function(e){if(0==this.handSecUser.length)this.handSecUser=[].concat(function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}(e));else for(var t=this.handSecUser.length,i=0;i<e.length;i++)for(var s=0;s<=t&&e[i].user_id!=this.handSecUser[s].user_id;s++)if(s==t-1){this.handSecUser.push(e[i]);break}},userdel:function(e){for(var t=0;t<this.handSecUser.length;t++)e.user_id==this.handSecUser[t].user_id&&this.handSecUser.splice(t,1)},onSelectUser:function(){this.userDialogParams.show=!0,this.getUser()},onConfirm:function(){this.$emit("userConfirm",this.handSecUser),console.log(this.handSecUser)}}},l={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{},[i("el-dialog",{attrs:{visible:e.userDialogParams.show,width:"70%","append-to-body":""},on:{"update:visible":function(t){e.$set(e.userDialogParams,"show",t)}}},[i("div",{staticClass:"secTitle"},[e._v("手动选择用户")]),e._v(" "),i("el-form",{attrs:{"label-width":"90px"}},[i("el-row",[i("el-col",{attrs:{span:3}},[i("el-form-item",[i("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:e.getUser}},[e._v("搜索")])],1)],1),e._v(" "),i("el-col",{attrs:{span:7}},[i("el-form-item",{attrs:{label:"ID"}},[i("el-input",{model:{value:e.searchUserFrom.userId,callback:function(t){e.$set(e.searchUserFrom,"userId",t)},expression:"searchUserFrom.userId"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:7}},[i("el-form-item",{attrs:{label:"昵称"}},[i("el-input",{model:{value:e.searchUserFrom.nickName,callback:function(t){e.$set(e.searchUserFrom,"nickName",t)},expression:"searchUserFrom.nickName"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:7}},[i("el-form-item",{attrs:{label:"电话"}},[i("el-input",{model:{value:e.searchUserFrom.mobile,callback:function(t){e.$set(e.searchUserFrom,"mobile",t)},expression:"searchUserFrom.mobile"}})],1)],1)],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.userDialogParams.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.onConfirm}},[e._v("确 定")])],1),e._v(" "),i("div",{staticClass:"tableBox"},[i("div",{staticClass:"item"},[i("p",[e._v("筛选列表")]),e._v(" "),i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.userList},on:{select:e.handleSelectionChange,"select-all":e.handleSelectionAll}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticStyle:{"margin-right":"5px",width:"50px",height:"50px","border-radius":"50px"},attrs:{src:t.row.avatar}}),e._v(e._s(t.row.nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1)],1),e._v(" "),i("div",{staticClass:"item"},[i("p",[e._v("已选中列表")]),e._v(" "),i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.handSecUser}},[i("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticStyle:{"margin-right":"5px",width:"50px",height:"50px","border-radius":"50px"},attrs:{src:t.row.avatar}}),e._v(e._s(t.row.nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"mobile",label:"手机号"}}),e._v(" "),e.$store.state.readonly?e._e():i("el-table-column",{attrs:{label:"操作",width:"148",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(i){e.userdel(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1)],1)]),e._v(" "),i("page",{attrs:{total:e.userDialogParams.total,limit:e.userDialogParams.limit},on:{pageChange:e.onUserPageChange,sizeChange:e.onUserSizeChange}})],1)],1)},staticRenderFns:[]};var r=i("VU/8")(n,l,!1,function(e){i("Jr0G")},"data-v-7c919e4a",null).exports,c=i("+TkF");var d={name:"tinymce1",props:["lookData1"],data:function(){return{goodList:[],goodSearchFrom:{status:"1"},secGoods:[],goodsDialogParams:{show:!1}}},created:function(){},filters:{filterGoods:function(e){return"["+e.id+"]["+c.h[e.goods_type]+"]【"+e.current_price/100+"元】"+e.name},isOrNot:function(e){return c.o[e]},goodsType:function(e){return c.h[e]},lessonType:function(e){return c.p[e]},goodsStatus:function(e){return c.g[e]}},components:{page:a.a},methods:{getGoods:function(){var e=this,t={limit:"100",page:this.nowPage};this.goodSearchFrom.status&&"-1"!==this.goodSearchFrom.status&&(t.status=this.goodSearchFrom.status),console.log(613),Object(s._53)(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.goodList=t.list})},goodsSelectionChange:function(e,t){this.multipleSelection=e;for(var i=0;i<this.secGoods.length;i++)if(t.id==this.secGoods[i].id)return;this.secGoods.push(t),console.log(t)},goodsSelectionAll:function(e){if(0==this.secGoods.length)this.secGoods=[].concat(function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}(e));else for(var t=this.secGoods.length,i=0;i<e.length;i++)for(var s=0;s<=t&&e[i].id!=this.secGoods[s].id;s++)if(s==t-1){this.secGoods.push(e[i]);break}},goodsdel:function(e){for(var t=0;t<this.secGoods.length;t++)e.id==this.secGoods[t].id&&this.secGoods.splice(t,1)},onSelectGood:function(){this.goodsDialogParams.show=!0,this.getGoods()},onGoodsConfirm:function(){this.$emit("goodConfirm",this.secGoods),console.log(this.secGoods)}}},m={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{},[i("el-dialog",{attrs:{visible:e.goodsDialogParams.show,width:"90%","append-to-body":""},on:{"update:visible":function(t){e.$set(e.goodsDialogParams,"show",t)}}},[i("div",{staticClass:"secTitle"},[e._v("选择商品")]),e._v(" "),i("div",{staticClass:"tableBox"},[i("div",{staticClass:"item"},[i("p",[e._v("筛选列表")]),e._v(" "),i("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":function(t){e.getGoods()}},model:{value:e.goodSearchFrom.status,callback:function(t){e.$set(e.goodSearchFrom,"status",t)},expression:"goodSearchFrom.status"}},[i("el-tab-pane",{attrs:{label:"上架",name:"1"}}),e._v(" "),i("el-tab-pane",{attrs:{label:"下架",name:"2"}}),e._v(" "),i("el-tab-pane",{attrs:{label:"全部",name:"-1"}})],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{size:"small",data:e.goodList,fixed:""},on:{select:e.goodsSelectionChange,"select-all":e.goodsSelectionAll}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{prop:"name",label:"名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{attrs:{to:{name:"periods",query:{goods_id:t.row.id}}}},[e._v("\n "+e._s(t.row.name)+"\n ")])]}}])}),e._v(" "),i("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(" "),i("el-table-column",{attrs:{prop:"course_title",label:"课程名称"}}),e._v(" "),i("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(" "),i("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 ")]}}])})],1)],1),e._v(" "),i("div",{staticClass:"item"},[i("p",[e._v("选中列表")]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{size:"small",data:e.secGoods,fixed:""}},[i("el-table-column",{attrs:{prop:"name",label:"名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{attrs:{to:{name:"periods",query:{goods_id:t.row.id}}}},[e._v("\n "+e._s(t.row.name)+"\n ")])]}}])}),e._v(" "),e.$store.state.readonly?e._e():i("el-table-column",{attrs:{label:"操作",width:"148",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(i){e.goodsdel(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1)],1)]),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.goodsDialogParams.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.onGoodsConfirm}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var u=i("VU/8")(d,m,!1,function(e){i("b4Gx")},"data-v-55827b7a",null).exports;var h={name:"tinymce1",props:["lookData1"],data:function(){return{periodsDialogParams:{show:!1},secPeriods:[],goodsId:null,lessonId:null,lessonList:[],goodList:[],periodList:[],periodStartTime:null,periodTitle:null,course_type:"1",nowPage:1,total:0,limit:10}},created:function(){},components:{page:a.a},filters:{filterGoods:function(e){return"["+e.id+"]["+c.h[e.goods_type]+"]【"+e.current_price/100+"元】"+e.name},isOrNot:function(e){return c.o[e]},goodsType:function(e){return c.h[e]},lessonType:function(e){return c.p[e]},goodsStatus:function(e){return c.g[e]},typeFilter:function(e){if(e)return"text"===e?"文本":"image"===e?"图片":"video"===e?"视频":"news"===e?"图文":void 0},typeListFilter:function(e){return e?1===e?"48时内关注但未购课用户":2===e?"有体验课但没有正式课用户":3===e?"未试听用户":4===e?"指定用户手机号":void 0:""}},methods:{getLessonOption:function(){var e=this;Object(s._56)({page:1,limit:100}).then(function(t){e.lessonList=t.list})},getGoods:function(){var e=this,t={limit:"100",page:this.nowPage};console.log(613),Object(s._53)(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.goodList=t.list})},onPeriodsPageChange:function(e){this.nowPage=e,this.onPeriodsSearch()},onPeriodsSizeChange:function(e){this.limit=e,this.nowPage=1,this.onPeriodsSearch()},onPeriodsSearch:function(){var e=this,t={limit:this.limit,page:this.nowPage};"-1"!==this.course_type&&(t.course_type=this.course_type),this.periodTitle&&(t.title=this.periodTitle),this.goodsId&&(t.goods_id=this.goodsId),this.lessonId&&(t.course_id=this.lessonId),this.periodStartTime&&this.periodStartTime.length>0&&(t.start_start_at=CommonJs.dateFmt(this.periodStartTime[0],"yyyy-MM-dd"),t.start_end_at=CommonJs.dateFmt(this.periodStartTime[1],"yyyy-MM-dd")),this.startAt&&(t.start_at=this.startAt),Object(s._68)(t).then(function(t){t.list.forEach(function(e){e.arrive_course_rate=0,e.watch_course_rate=0,e.over_course_rate=0,e.work_rate=0,e.over_work_rate=0,e.clock_rate=0,e.over_clock_rate=0,e.transform_rate=0}),e.periodList=t.list,e.total=t.total})},periodsSelectionChange:function(e,t){this.multipleSelection=e;for(var i=0;i<this.secPeriods.length;i++)if(t.id==this.secPeriods[i].id)return;this.secPeriods.push(t)},periodSelectionAll:function(e){if(0==this.secPeriods.length)this.secPeriods=[].concat(function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}(e));else for(var t=this.secPeriods.length,i=0;i<e.length;i++)for(var s=0;s<=t&&e[i].id!=this.secPeriods[s].id;s++)if(s==t-1){this.secPeriods.push(e[i]);break}},perioddel:function(e){for(var t=0;t<this.secPeriods.length;t++)e.id==this.secPeriods[t].id&&this.secPeriods.splice(t,1);console.log(this.secPeriods)},onSelectPeriods:function(){this.getLessonOption(),this.onPeriodsSearch(),this.getGoods(),this.periodsDialogParams.show=!0},onPeriodsConfirm:function(){this.$emit("periodConfirm",this.secPeriods),console.log(this.secPeriods)}}},p={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{},[i("el-dialog",{attrs:{visible:e.periodsDialogParams.show,width:"90%","append-to-body":""},on:{"update:visible":function(t){e.$set(e.periodsDialogParams,"show",t)}}},[i("div",{staticClass:"secTitle"},[e._v("选择期数")]),e._v(" "),i("div",{staticClass:"form-block"},[i("el-form",{attrs:{"label-width":"85px",inline:"",size:"small"}},[i("el-form-item",{attrs:{label:"期数标题"}},[i("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"请输入内容",clearable:""},model:{value:e.periodTitle,callback:function(t){e.periodTitle=t},expression:"periodTitle"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"商品名称"}},[i("el-select",{staticStyle:{width:"150px"},attrs:{placeholder:"请选择",clearable:""},on:{change:e.onPeriodsSearch},model:{value:e.goodsId,callback:function(t){e.goodsId=t},expression:"goodsId"}},e._l(e.goodList,function(t,s){return i("el-option",{key:s,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"课程名称"}},[i("el-select",{staticStyle:{width:"150px"},attrs:{placeholder:"请选择",clearable:""},on:{change:e.onPeriodsSearch},model:{value:e.lessonId,callback:function(t){e.lessonId=t},expression:"lessonId"}},e._l(e.lessonList,function(e,t){return i("el-option",{key:t,attrs:{label:e.title,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"开始时间"}},[i("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},on:{change:e.onPeriodsSearch},model:{value:e.periodStartTime,callback:function(t){e.periodStartTime=t},expression:"periodStartTime"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.onPeriodsSearch}},[e._v("查询")])],1)],1)],1),e._v(" "),i("div",{staticClass:"tableBox"},[i("div",{staticClass:"item"},[i("p",[e._v("筛选列表")]),e._v(" "),i("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.onPeriodsSearch},model:{value:e.course_type,callback:function(t){e.course_type=t},expression:"course_type"}},[i("el-tab-pane",{attrs:{label:"日课",name:"1"}}),e._v(" "),i("el-tab-pane",{attrs:{label:"月课",name:"0"}}),e._v(" "),i("el-tab-pane",{attrs:{label:"全部",name:"-1"}})],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{size:"mini",data:e.periodList,fixed:""},on:{select:e.periodsSelectionChange,"select-all":e.periodSelectionAll}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{label:"期数标题"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{attrs:{to:{name:"class",query:{goods_id:t.row.goods_id,periods_id:t.row.id}}}},[e._v("\n "+e._s(t.row.title)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),e._v(" "),i("el-table-column",{attrs:{prop:"start_at",label:"起止时间",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.start_at)+"\n "),i("br"),e._v("\n "+e._s(t.row.over_at?t.row.over_at:"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"created_at",label:"创建时间",sortable:""}})],1)],1),e._v(" "),i("div",{staticClass:"item"},[i("p",[e._v("选中列表")]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{size:"mini",data:e.secPeriods,fixed:""}},[i("el-table-column",{attrs:{label:"期数标题"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{attrs:{to:{name:"class",query:{goods_id:t.row.goods_id,periods_id:t.row.id}}}},[e._v("\n "+e._s(t.row.title)+"\n ")])]}}])}),e._v(" "),e.$store.state.readonly?e._e():i("el-table-column",{attrs:{label:"操作",width:"148",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(i){e.perioddel(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1)],1)]),e._v(" "),i("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPeriodsPageChange,sizeChange:e.onPeriodsSizeChange}}),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.periodsDialogParams.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.onPeriodsConfirm}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var g=i("VU/8")(h,p,!1,function(e){i("cAYZ")},"data-v-67b62f85",null).exports;function v(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var f={name:"index",components:{page:a.a,page2:a.a,pageImage:a.a,emotion:o.a,userDialog:r,goodDialog:u,periodsDialog:g},data:function(){var e;return v(e={nowPageNum:1,templateIndex:"",checksex:[],sex:[{name:"保密",code:"0"},{name:"男",code:"1"},{name:"女",code:"2"}],province:["上海","云南","内蒙古","北京","台湾","吉林","四川","天津","宁夏","安徽","山东","山西","广东","广西","新疆","江苏","江西","河北","河南","浙江","海南","湖北","湖南","澳门","甘肃","福建","西藏","贵州","辽宁","重庆","陕西","青海","香港","黑龙江"],limitAuto:["1000","2000","3000","自定义"],limitAutoModal:"",limitAutoInput:"",secProvince:[],checkAll:!1,isIndeterminate:!1,sendReviewDialog:!1,sendReviewId:"",handSecUserIds:"",handSecUserShow:[],secGoods_ids:"",secGoodsShow:[],secPeriods_ids:"",secPeriodsShow:[],course_type:"1",radio1:1,radio2:1,radio3:1,nowPage:1,total:0,limit:10,mediaPage:{nowPage:1,total:0,limit:5},show:!1,loading:!1,activeName:"text",list:[],content:"",uploadShow:!0,imageList:[],fileList:[],imageContent:"",videoContent:"",searchFrom:{type:1,is_test:!1},tableData:[],fileUid:null,searchUserFrom:{},multipleSelection:[],showEmotion:!1,showMedia:!1,showImage:!1,showVideo:!1,mediaList:[],mediaImageList:[],mediaVideoList:[],mediaImagePage:{nowPage:1,total:0,limit:5},mediaVideoPage:{nowPage:1,total:0,limit:5}},"imageContent",null),v(e,"videoContent",null),v(e,"newsContent",null),v(e,"template_list",[]),v(e,"arrData",[]),v(e,"doubleArr",[]),v(e,"postTemplate",{}),v(e,"templateDialog",!1),v(e,"keyword",[]),v(e,"templateTitle",""),e},filters:{filterGoods:function(e){return"["+e.id+"]["+c.h[e.goods_type]+"]【"+e.current_price/100+"元】"+e.name},isOrNot:function(e){return c.o[e]},typeFilter:function(e){if(e)return"text"===e?"文本":"image"===e?"图片":"video"===e?"视频":"news"===e?"图文":void 0},typeListFilter:function(e){return e?1===e?"48时内关注但未购课用户":2===e?"有体验课但没有正式课用户":3===e?"未试听用户":4===e?"指定用户手机号":void 0:""}},methods:{sendTemplate:function(){var e=this;this.postTemplate.type=this.radio1,this.postTemplate.page=this.nowPageNum,this.limitAutoInput?this.postTemplate.limit=this.limitAutoInput:this.limitAutoModal&&(this.postTemplate.limit=this.limitAutoModal);var t="";if(3==this.postTemplate.type){if(!this.handSecUserIds)return void this.$message({type:"error",message:"请选择用户!"});this.postTemplate.ids=this.handSecUserIds}if(2==this.postTemplate.type&&(this.postTemplate.fans_type=this.radio2,3==this.postTemplate.fans_type))if(this.postTemplate.course_type=this.radio3,2==this.postTemplate.course_type){if(!this.secGoods_ids)return void this.$message({type:"error",message:"请选择商品!"});this.postTemplate.ids=this.secGoods_ids}else if(3==this.postTemplate.course_type){if(!this.secPeriods_ids)return void this.$message({type:"error",message:"请选择期数!"});this.postTemplate.ids=this.secPeriods_ids}console.log(this.keyword),this.postTemplate.url?this.postTemplate.first?this.postTemplate.remark?(this.keyword.forEach(function(t,i){var s="keyword"+(i+1);e.postTemplate[s]=t}),Object(s._148)({}).then(function(i){console.log("json",e.postTemplate),e.getMsgCount(e.postTemplate).then(function(i){t=3!=e.postTemplate.type?i:e.handSecUserShow.length,e.$confirm("你将发送给"+t+"位用户","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s._130)(e.postTemplate).then(function(t){e.$message({message:t,type:"success"}),e.templateDialog=!1,e.clearData(),e.getMsgList()})}).catch(function(){e.$message({type:"info",message:"已取消发送"})})})}),console.log(this.postTemplate)):this.$message({message:"请填写模板尾部数据!"}):this.$message({message:"请填写模板头部数据!"}):this.$message({message:"请填写链接!"})},templateFn:function(e,t){var i=this;this.templateIndex=e,console.log(t),this.templateTitle=t.title,this.templateDialog=!0,this.postTemplate={},this.postTemplate.template_id=t.template_id,this.arrData=t.content.split("\n"),this.doubleArr=[],this.keyword=[],this.arrData.forEach(function(e,t){t>0&&t<i.arrData.length-1&&i.doubleArr.push(i.arrData[t].split(":"))})},handleCheckAllChange:function(e){var t=this;console.log(e),e?this.sex.forEach(function(e){t.checksex.push(e.code)}):this.checksex=[],console.log(this.checksex),this.isIndeterminate=!1},sexChange:function(e){var t=e.length;this.checkAll=t===this.sex.length,this.isIndeterminate=t>0&&t<this.sex.length},updateFans:function(){var e=this;Object(s._148)({}).then(function(t){e.$message({type:"success",message:"同步成功!"})})},getMsgCount:function(e){return new Promise(function(t,i){var a={};a.type=e.type,e.limit&&(a.limit=e.limit),e.page&&(a.page=e.page),e.fans_type&&(a.fans_type=e.fans_type),e.course_type&&(a.course_type=e.course_type),e.ids&&(a.ids=e.ids),e.province&&(a.province=e.province),e.sex&&(a.sex=e.sex),Object(s._62)(a).then(function(e){console.log(e),t(e)})})},radio1change:function(){this.$refs.userDialog.onSelectUser()},radio2change:function(e){},radio3change:function(){2==this.radio3?this.$refs.goodDialog.onSelectGood():3==this.radio3&&this.$refs.periodsDialog.onSelectPeriods(),console.log(this.radio3)},handleClick:function(e){var t=this;this.activeName=e.name,"template"==e.name&&(Object(s._95)().then(function(e){t.template_list=e.template_list,console.log(e)}),console.log("template"))},handleRemove:function(){this.uploadShow=!0,this.imageList=[],this.imageContent=""},handleRemoveVideo:function(){this.videoContent="",this.fileList=[]},beforeAvatarUpload:function(){this.uploadShow=!1},handleAvatarSuccess:function(e){this.imageList=[{name:e.data.url,url:"https://cdn.singsingenglish.com/"+e.data.url}]},uploadFile:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),Object(s._158)({file:e.file,type:"wechat"}).then(function(e){t.imageContent={content:e.media_id,url:e.url},t.imageList=[{name:e.media_id,url:e.url}],t.$message({type:"success",message:"上传成功!"})}).catch(function(){t.$message({type:"error",message:"上传失败!"})})},uploadVideo:function(e){var t=this;Object(s._158)({file:e.file,type:"wechat"}).then(function(i){t.uploadVideoFile(e,i)}).catch(function(){t.$message({type:"error",message:"上传失败!"})})},uploadVideoFile:function(e,t){var i=this;this.fileUid=e.file.uid,this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),Object(s._158)({file:e.file,type:"local"}).then(function(s){i.videoContent={content:t.media_id,url:"https://cdn.singsingenglish.com/"+s.url},i.fileList=[{name:s.name,url:"https://cdn.singsingenglish.com/"+s.url}],i.loading=!1,i.$message({type:"success",message:"上传成功!"}),i.$store.dispatch("setProgress",{type:"delete",id:e.file.uid}),i.fileUid=null}).catch(function(){i.loading=!1,i.$message({type:"error",message:"上传失败!"})})},sendReview:function(){var e=this,t={};t.test_id=this.sendReviewId;var i={};if(i.type=this.activeName,"text"===this.activeName){if(!this.content)return void this.$message({type:"error",message:"请输入文本!"});i.content=this.content}else if("image"===this.activeName){if(!this.imageContent)return void this.$message({type:"error",message:"请上传图片!"});i.content=this.imageContent.content,i.url=this.imageContent.url}else if("video"===this.activeName){if(!this.videoContent)return void this.$message({type:"error",message:"请上传视频!"});i.content=this.videoContent.content,i.url=this.videoContent.url}else"news"===this.activeName&&(this.newsContent&&this.newsContent.media_id?i.content=this.newsContent.media_id:this.$message({type:"error",message:"请选择图文!"}));t.content=JSON.stringify(i),Object(s._129)(t).then(function(t){e.$message({message:t,type:"success"}),e.sendReviewDialog=!1,e.clearData(),e.getMsgList()})},send:function(){var e=this,t={};t.type=this.radio1,t.page=this.nowPageNum,this.limitAutoInput?t.limit=this.limitAutoInput:this.limitAutoModal&&(t.limit=this.limitAutoModal);var i="";if(3==t.type){if(!this.handSecUserIds)return void this.$message({type:"error",message:"请选择用户!"});t.ids=this.handSecUserIds}if(2==t.type&&(t.fans_type=this.radio2,3==t.fans_type))if(t.course_type=this.radio3,2==t.course_type){if(!this.secGoods_ids)return void this.$message({type:"error",message:"请选择商品!"});t.ids=this.secGoods_ids}else if(3==t.course_type){if(!this.secPeriods_ids)return void this.$message({type:"error",message:"请选择期数!"});t.ids=this.secPeriods_ids}var a={};if(a.type=this.activeName,"text"===this.activeName){if(!this.content)return void this.$message({type:"error",message:"请输入文本!"});a.content=this.content}else if("image"===this.activeName){if(!this.imageContent)return void this.$message({type:"error",message:"请上传图片!"});a.content=this.imageContent.content,a.url=this.imageContent.url}else if("video"===this.activeName){if(!this.videoContent)return void this.$message({type:"error",message:"请上传视频!"});a.content=this.videoContent.content,a.url=this.videoContent.url}else"news"===this.activeName&&(this.newsContent&&this.newsContent.media_id?a.content=this.newsContent.media_id:this.$message({type:"error",message:"请选择图文!"}));this.checksex&&(t.sex=this.checksex.join(",")),this.secProvince&&(t.province=this.secProvince.join(",")),console.log(this.secProvince),console.log(t.province),t.content=JSON.stringify(a),t.is_test=this.searchFrom.is_test?2:1,Object(s._148)({}).then(function(a){console.log("json",t),e.getMsgCount(t).then(function(a){i=3!=t.type?a:e.handSecUserShow.length,e.$confirm("你将发送给"+i+"位用户","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s._129)(t).then(function(t){e.$message({message:t,type:"success"}),e.show=!1,e.clearData(),e.getMsgList()})}).catch(function(){e.$message({type:"info",message:"已取消发送"})})})})},clearData:function(){this.content="",this.videoContent=null,this.imageContent=null,this.newsContent=null,this.activeName,this.searchFrom={},this.fileList=[],this.imageList=[]},getMsgList:function(){var e=this,t={limit:this.limit,page:this.nowPage};Object(s._63)(t).then(function(t){e.tableData=t.list,e.total=t.total})},onMediaPageChange:function(e){this.mediaPage.nowPage=e,this.getMediaList()},onMediaSizeChange:function(){this.mediaPage.nowPage=1,this.mediaPage.limit=val,this.getMediaList()},onImagePageChange:function(e){this.mediaImagePage.nowPage=e,this.getMediaList()},onImageSizeChange:function(e){this.mediaImagePage.nowPage=1,this.mediaImagePage.limit=e,this.getMediaList()},onVideoPageChange:function(e){this.mediaVideoPage.nowPage=e,this.getMediaList()},onVideoSizeChange:function(e){this.mediaVideoPage.nowPage=1,this.mediaVideoPage.limit=e,this.getMediaList()},onPageChange:function(e){this.nowPage=e,this.getMsgList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getMsgList()},periodsConfirm:function(e){var t=e;if(0===t.length)this.$message({type:"error",message:"请选择期数!"});else{var i=[];t.forEach(function(e){i.push(e.id)});var s=i,a=this.dedupe(s);this.secPeriods_ids=a.join(","),this.$refs.periodsDialog.periodsDialogParams.show=!1,this.secPeriodsShow=e}},goodConfirm:function(e){var t=e;if(0===t.length)this.$message({type:"error",message:"请选择商品!"});else{var i=[];t.forEach(function(e){i.push(e.id)});var s=i,a=this.dedupe(s);this.secGoods_ids=a.join(","),console.log(this.secGoods_ids),this.secGoodsShow=e,this.$refs.goodDialog.goodsDialogParams.show=!1}},userConfirm:function(e){var t=e;if(0===t.length)this.$message({type:"error",message:"请选择用户!"});else{var i=[];t.forEach(function(e){i.push(e.user_id)});var s=i,a=this.dedupe(s);this.handSecUserIds=a.join(","),this.handSecUserShow=e,console.log(a),this.$refs.userDialog.userDialogParams.show=!1}},dedupe:function(e){return Array.from(new Set(e))},stringToInt:function(e){var t=e||[];return t=t.map(function(e){return parseInt(e,10)})},emotion:function(e){var t=e.replace(/\//gi,"");return'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'+["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"].indexOf(t)+'.gif" align="middle">'},handleEmotion:function(e){this.content+=e},onChooseMedia:function(e){console.log("onChooseMedia",e),"image"===this.type?(this.imageContent={content:e.media_id,url:e.url},this.imageList=[{name:e.media_id,url:e.url}],this.showImage=!1):"video"===this.type?(this.videoContent={content:e.media_id,url:e.info.down_url},this.fileList=[{name:e.info.title,url:e.info.url}],this.showVideo=!1):"news"===this.type&&(this.newsContent=e,this.showMedia=!1)},getMediaList:function(){var e=this,t=this.activeName,i={type:t,page:this.mediaPage.nowPage,limit:this.mediaPage.limit};"image"===t?(i.page=this.mediaImagePage.nowPage,i.limit=this.mediaImagePage.limit,this.showImage=!0):"video"===t?(i.page=this.mediaVideoPage.nowPage,i.limit=this.mediaVideoPage.limit,this.showVideo=!0):"news"===t&&(i.page=this.mediaPage.nowPage,i.limit=this.mediaPage.limit,this.showMedia=!0),this.loading=!0,Object(s._60)(i).then(function(i){e.loading=!1,e.type=t,e.mediaList=i.item,e.mediaPage.total=i.total_count,"image"===t?(e.mediaImageList=i.item,e.mediaImagePage.total=i.total_count):"video"===t?(e.mediaVideoList=i.item,e.mediaVideoPage.total=i.total_count):"news"===t&&(e.mediaList=i.item,e.mediaPage.total=i.total_count),0===e.total&&e.$message({showClose:!0,message:"暂无数据"})}).catch(function(){e.loading=!1})},defaultTime:function(){var e=(new Date).getTime(),t=e-1728e5;this.searchFrom.time=[new Date(t),new Date(e)]}},mounted:function(){this.getMsgList(),this.defaultTime()},computed:{progress:function(){var e=this;return this.$store.state.progressList.find(function(t){return t.id===e.fileUid}).num<100?this.$store.state.progressList.find(function(t){return t.id===e.fileUid}).num:100}}},_={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"index"},[i("el-tabs",{attrs:{type:"border-card"}},[i("el-tab-pane",{attrs:{label:"编辑内容"}},[i("div",{staticClass:"box"},[i("div",{staticClass:"radio"},[i("div",{staticClass:"radio_title"},[e._v("选择发送范围 :")]),e._v(" "),i("el-radio-group",{model:{value:e.radio1,callback:function(t){e.radio1=t},expression:"radio1"}},[i("el-radio",{attrs:{label:1}},[e._v("全部粉丝")]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v("按条件筛选")]),e._v(" "),i("el-radio",{attrs:{label:3}},[e._v("手动选择粉丝")])],1)],1),e._v(" "),3==e.radio1?i("div",{staticClass:"secUinput"},[i("div",[i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.radio1change}},[e._v("编辑用户")])],1),e._v("已选用户ID:\n "),i("el-table",{staticStyle:{width:"70%"},attrs:{data:e.handSecUserShow,border:""}},[i("el-table-column",{attrs:{prop:"nickname",label:"用户名称"}}),e._v(" "),i("el-table-column",{attrs:{prop:"user_id",label:"用户Id"}})],1)],1):e._e(),e._v(" "),2==e.radio1?i("div",[i("div",{staticClass:"radio_title"},[e._v("选择用户性别 :")]),e._v(" "),i("el-checkbox",{staticStyle:{"margin-bottom":"10px"},attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")]),e._v(" "),i("el-checkbox-group",{on:{change:e.sexChange},model:{value:e.checksex,callback:function(t){e.checksex=t},expression:"checksex"}},e._l(e.sex,function(t){return i("el-checkbox",{key:t.code,attrs:{label:t.code}},[e._v(e._s(t.name))])})),e._v(" "),i("div",{staticClass:"radio_title"},[e._v("选择地区 :")]),e._v(" "),i("el-select",{staticStyle:{width:"300px"},attrs:{placeholder:"请选择",multiple:"",clearable:"",filterable:""},model:{value:e.secProvince,callback:function(t){e.secProvince=t},expression:"secProvince"}},e._l(e.province,function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})}))],1):e._e(),e._v(" "),2==e.radio1?i("div",{staticClass:"radio"},[i("div",{staticClass:"radio_title"},[e._v("选择用户类型 :")]),e._v(" "),i("el-radio-group",{on:{change:e.radio2change},model:{value:e.radio2,callback:function(t){e.radio2=t},expression:"radio2"}},[i("el-radio",{attrs:{label:1}},[e._v("无手机号用户")]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v("有手机号但无课用户")]),e._v(" "),i("el-radio",{attrs:{label:4}},[e._v("有手机号有自化课")]),e._v(" "),i("el-radio",{attrs:{label:3}},[e._v("有课用户")])],1)],1):e._e(),e._v(" "),2==e.radio1?i("div",[i("div",{staticClass:"radio_title"},[e._v("页码 :"),i("el-pagination",{attrs:{background:"",layout:"prev, pager, next","current-page":e.nowPageNum,total:1e3},on:{"update:currentPage":function(t){e.nowPageNum=t}}})],1),e._v(" "),i("div",[i("span",[e._v("数量:")]),e._v(" "),i("el-select",{staticStyle:{width:"300px"},attrs:{placeholder:"请选择",clearable:"",filterable:""},model:{value:e.limitAutoModal,callback:function(t){e.limitAutoModal=t},expression:"limitAutoModal"}},e._l(e.limitAuto,function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),e._v(" "),"自定义"==e.limitAutoModal?i("el-input",{staticStyle:{width:"300px"},attrs:{type:"text",placeholder:"请输入数量"},model:{value:e.limitAutoInput,callback:function(t){e.limitAutoInput=t},expression:"limitAutoInput"}}):e._e()],1)]):e._e(),e._v(" "),3==e.radio2&&2==e.radio1?i("div",{staticClass:"radio"},[i("div",{staticClass:"radio_title"},[e._v("选择课程类型 :")]),e._v(" "),i("el-radio-group",{model:{value:e.radio3,callback:function(t){e.radio3=t},expression:"radio3"}},[i("el-radio",{attrs:{label:1}},[e._v("所有有课用户")]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v("根据商品选择用户")]),e._v(" "),i("el-radio",{attrs:{label:3}},[e._v("根据期数选择用户")])],1)],1):e._e(),e._v(" "),3==e.radio2&&2==e.radio1&&2==e.radio3?i("div",{staticClass:"secUinput"},[i("div",[i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.radio3change}},[e._v("编辑商品")])],1),e._v("已选商品:\n "),i("el-table",{staticStyle:{width:"30%"},attrs:{data:e.secGoodsShow,border:""}},[i("el-table-column",{attrs:{prop:"name",label:"商品名称"}})],1)],1):e._e(),e._v(" "),3==e.radio2&&2==e.radio1&&3==e.radio3?i("div",{staticClass:"secUinput"},[i("div",[i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.radio3change}},[e._v("编辑期数")])],1),e._v("已选期数:\n "),i("el-table",{staticStyle:{width:"30%"},attrs:{data:e.secPeriodsShow,border:""}},[i("el-table-column",{attrs:{prop:"title",label:"期数标题"}})],1)],1):e._e()]),e._v(" "),i("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"文本",name:"text"}},[i("div",{staticClass:"inner-edit_area"},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"请输入内容"},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1),e._v(" "),i("div",{staticStyle:{float:"right","margin-right":"15px"}},[i("el-popover",{attrs:{placement:"bottom-end",width:"400",offset:10,trigger:"hover"},model:{value:e.showEmotion,callback:function(t){e.showEmotion=t},expression:"showEmotion"}},[i("div",[i("emotion",{attrs:{height:200},on:{emotion:e.handleEmotion}})],1),e._v(" "),i("el-button",{attrs:{slot:"reference",type:"text"},on:{click:function(t){e.showEmotion=!e.showEmotion}},slot:"reference"},[i("span",{staticClass:"icon_emotion emotion_switch"})])],1)],1)]),e._v(" "),i("el-tab-pane",{attrs:{label:"图片",name:"image"}},[i("div",{staticClass:"flex-start"},[i("div",[i("el-upload",{attrs:{action:"/api/public/upload/zone","http-request":e.uploadFile,"before-upload":e.beforeAvatarUpload,"list-type":"picture-card","file-list":e.imageList,"on-success":e.handleAvatarSuccess,"on-remove":e.handleRemove,limit:1}},[i("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),i("div",{staticClass:"display-b",staticStyle:{"margin-left":"10px"}},[i("div",{staticClass:"choose_item",staticStyle:{color:"#888"},on:{click:function(t){e.getMediaList()}}},[i("i",{staticClass:"el-icon-plus",staticStyle:{color:"#8c939d"}}),e._v("从素材库中选择\n ")])])]),e._v(" "),e.showImage&&e.mediaImageList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.mediaImageList},on:{"row-click":e.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),e._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),e._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("a",{attrs:{href:e.row.url}},[i("img",{staticStyle:{width:"60px"},attrs:{src:e.row.url}})])]}}])})],1),e._v(" "),i("page-image",{attrs:{total:e.mediaImagePage.total,limit:e.mediaImagePage.limit},on:{pageChange:e.onImagePageChange,sizeChange:e.onImageSizeChange},model:{value:e.mediaImagePage.nowPage,callback:function(t){e.$set(e.mediaImagePage,"nowPage",t)},expression:"mediaImagePage.nowPage"}})],1):e._e()]),e._v(" "),i("el-tab-pane",{attrs:{label:"视频",name:"video"}},[i("div",{staticClass:"flex-start"},[i("el-upload",{staticClass:"upload-video",attrs:{action:"/api/public/upload/zone","http-request":e.uploadVideo,"file-list":e.fileList,"on-remove":e.handleRemoveVideo,limit:1}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.fileUid&&e.progress<99}},[e._v("点击上传")]),e._v(" "),i("div",{staticStyle:{width:"300px"}},[e.fileUid?i("el-progress",{attrs:{percentage:e.progress}}):e._e()],1)],1),e._v(" "),i("div",{staticClass:"display-b"},[i("div",{staticClass:"choose_item",staticStyle:{color:"#888"},on:{click:function(t){e.getMediaList()}}},[i("i",{staticClass:"el-icon-plus",staticStyle:{color:"#8c939d"}}),e._v("从素材库中选择\n ")])])],1),e._v(" "),e.showVideo&&e.mediaVideoList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.mediaVideoList},on:{"row-click":e.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),e._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),e._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.info&&t.row.info.down_url?i("a",{attrs:{href:t.row.info.down_url,target:"_blank"}},[e._v(e._s(t.row.info.title))]):e._e()]}}])})],1)],1):e._e()]),e._v(" "),i("el-tab-pane",{attrs:{label:"图文",name:"news"}},[e.newsContent&&e.newsContent.content&&e.newsContent.content.news_item?i("div",[i("div",{staticClass:"news-media",staticStyle:{display:"inline-block"}},[i("el-card",{attrs:{"body-style":{padding:"0px"}}},e._l(e.newsContent.content.news_item,function(t,s){return i("div",{staticStyle:{position:"relative"}},[1===e.newsContent.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[e._v(e._s(t.title))]),e._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:t.thumb_url}}),e._v(" "),i("div",{staticClass:"digest"},[e._v(e._s(t.digest))]),e._v(" "),i("a",{staticClass:"preview",attrs:{href:t.url,target:"_blank"}},[e._v("预览文章")])]):e.newsContent.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===s?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:t.thumb_url}}),e._v(" "),i("div",{staticClass:"bottom-title"},[e._v(e._s(t.title))])]):i("div",{staticClass:"next-cover clear-both"},[i("span",{staticClass:"next-title"},[e._v(e._s(t.title))]),e._v(" "),i("img",{staticClass:"next-img",attrs:{src:t.thumb_url}})]),e._v(" "),i("a",{staticClass:"preview",attrs:{href:t.url,target:"_blank"}},[e._v("预览文章")])]):e._e()])}))],1),e._v(" "),i("i",{staticClass:"el-icon-delete",staticStyle:{display:"inline-block"},on:{click:function(t){e.newsContent=""}}})]):e._e(),e._v(" "),i("div",{staticClass:"display-b"},[i("div",{staticClass:"choose_item",staticStyle:{color:"#888"},on:{click:function(t){e.getMediaList()}}},[i("i",{staticClass:"el-icon-plus",staticStyle:{color:"#8c939d"}}),e._v("从素材库中选择\n ")])]),e._v(" "),e.showMedia&&e.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.mediaList},on:{"row-click":e.onChooseMedia}},[i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),e._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.content&&t.row.content.news_item?i("div",{staticClass:"news-media",staticStyle:{display:"inline-block",width:"200px"}},e._l(t.row.content.news_item,function(s,a){return i("div",{staticStyle:{position:"relative"}},[1===t.row.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[e._v(e._s(s.title))]),e._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),e._v(" "),i("div",{staticClass:"digest"},[e._v(e._s(s.digest))]),e._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[e._v("预览文章")])]):t.row.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===a?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),e._v(" "),i("div",{staticClass:"bottom-title"},[e._v(e._s(s.title))])]):i("div",{staticClass:"next-cover clear-both"},[i("span",{staticClass:"next-title"},[e._v(e._s(s.title))]),e._v(" "),i("img",{staticClass:"next-img",attrs:{src:s.thumb_url}})]),e._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[e._v("预览文章")])]):e._e()])})):e._e()]}}])})],1),e._v(" "),i("page2",{attrs:{total:e.total,limit:e.mediaPage.limit},on:{pageChange:e.onMediaPageChange,sizeChange:e.onMediaSizeChange},model:{value:e.mediaPage.nowPage,callback:function(t){e.$set(e.mediaPage,"nowPage",t)},expression:"mediaPage.nowPage"}})],1):e._e()]),e._v(" "),i("el-tab-pane",{attrs:{label:"模板消息",name:"template"}},[i("div",{staticClass:"templatebox"},e._l(e.template_list,function(t,s){return i("div",{key:s,class:{templateitem:!0,activity:e.templateIndex==s},on:{click:function(i){e.templateFn(s,t)}}},[i("div",[e._v("\n 标题:"+e._s(t.title)+"\n ")]),e._v(" "),i("div",{domProps:{innerHTML:e._s(t.example.replace(/\n/g,"</br>"))}})])}))])],1),e._v(" "),"template"!=e.activeName?i("div",{staticClass:"b-title"},[i("el-button",{staticStyle:{float:"right","margin-bottom":"10px"},attrs:{type:"primary",plain:""},on:{click:function(t){e.send()}}},[e._v("立即群发")]),e._v(" "),i("el-button",{staticStyle:{float:"right",margin:"0 40px 10px 0"},attrs:{type:"info",plain:""},on:{click:function(t){e.sendReviewDialog=!0}}},[e._v("预览发送")])],1):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"发送记录"}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[i("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-table",{attrs:{border:!1,data:[JSON.parse(t.row.content)]}},[i("el-table-column",{attrs:{label:"类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("typeFilter")(t.row.type)))]}}])}),e._v(" "),"text"!==JSON.parse(t.row.content).type?i("el-table-column",{attrs:{prop:"media_id",label:"media_id"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.content))]}}])}):e._e(),e._v(" "),i("el-table-column",{attrs:{prop:"url",label:"内容"},scopedSlots:e._u([{key:"default",fn:function(t){return["text"===t.row.type?i("div",[i("span",{domProps:{innerHTML:e._s(t.row.content.replace(/\/[\u4E00-\u9FA5]{1,3}/gi,e.emotion))}})]):"image"===t.row.type?i("div",[i("img",{staticStyle:{width:"80px"},attrs:{src:t.row.url}})]):"video"===t.row.type?i("div",[i("a",{attrs:{href:t.row.url,target:"_blank"}},[e._v("点击查看视频")])]):e._e()]}}])})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"send_id",label:"消息ID"}}),e._v(" "),i("el-table-column",{attrs:{label:"消息类型",prop:"condition"}}),e._v(" "),i("el-table-column",{attrs:{label:"状态",prop:"status"}}),e._v(" "),i("el-table-column",{attrs:{prop:"send_num",label:"预计发送"}}),e._v(" "),i("el-table-column",{attrs:{prop:"arrive_num",label:"已发送"}}),e._v(" "),i("el-table-column",{attrs:{prop:"failed_num",label:"发送失败"}},[i("template",{slot:"header"},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"用户设置拒收的过滤,用户接收已超4条的过滤",placement:"top-start"}},[i("el-button",[e._v("发送失败")])],1)],1)],2),e._v(" "),i("el-table-column",{attrs:{prop:"created_at",label:"发送时间"}})],1),e._v(" "),i("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)],1),e._v(" "),i("el-dialog",{attrs:{visible:e.sendReviewDialog,width:"30%",center:"","append-to-body":""},on:{"update:visible":function(t){e.sendReviewDialog=t}}},[i("div",{staticClass:"secTitle"},[e._v("预览发送")]),e._v(" "),e._v("\n 请填写用户id\n "),i("el-input",{staticStyle:{width:"110px"},model:{value:e.sendReviewId,callback:function(t){e.sendReviewId=t},expression:"sendReviewId"}}),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.sendReviewDialog=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.sendReview}},[e._v("确 定")])],1)],1),e._v(" "),i("el-dialog",{attrs:{visible:e.templateDialog,width:"50%",center:"","append-to-body":""},on:{"update:visible":function(t){e.templateDialog=t}}},[i("div",{staticClass:"secTitle"},[e._v(e._s(e.templateTitle))]),e._v(" "),i("div",{staticClass:"flex"},[i("el-form",{ref:"form",attrs:{model:e.none,"label-width":"120px"}},[i("el-form-item",{attrs:{label:"链接"}},[i("el-input",{staticStyle:{width:"220px"},model:{value:e.postTemplate.url,callback:function(t){e.$set(e.postTemplate,"url",t)},expression:"postTemplate.url"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"模板头部数据"}},[i("el-input",{staticStyle:{width:"220px"},attrs:{type:"textarea"},model:{value:e.postTemplate.first,callback:function(t){e.$set(e.postTemplate,"first",t)},expression:"postTemplate.first"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"模板尾部数据"}},[i("el-input",{staticStyle:{width:"220px"},attrs:{type:"textarea"},model:{value:e.postTemplate.remark,callback:function(t){e.$set(e.postTemplate,"remark",t)},expression:"postTemplate.remark"}})],1),e._v(" "),e._l(e.doubleArr,function(t,s){return i("el-form-item",{key:s,attrs:{label:t[0]}},[i("el-input",{staticStyle:{width:"220px"},model:{value:e.keyword[s],callback:function(t){e.$set(e.keyword,s,t)},expression:"keyword[index]"}})],1)})],2),e._v(" "),i("div",{staticClass:"templatebox"},[i("div",{class:{templateitem:!0}},[i("div"),e._v(" "),i("div",[e._v("\n 链接:"+e._s(e.postTemplate.url)+"\n ")]),e._v(" "),i("div",[e._v("\n 模板头部数据:"+e._s(e.postTemplate.first)+"\n ")]),e._v(" "),i("div",[e._v("\n 模板尾部数据:"+e._s(e.postTemplate.remark)+"\n ")]),e._v(" "),e._l(e.doubleArr,function(t,s){return i("div",[e._v("\n "+e._s(t[0])+":"+e._s(e.keyword[s])+"\n ")])})],2)])],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.templateDialog=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.sendTemplate}},[e._v("发 送")])],1)]),e._v(" "),i("periodsDialog",{ref:"periodsDialog",on:{periodConfirm:e.periodsConfirm}}),e._v(" "),i("goodDialog",{ref:"goodDialog",on:{goodConfirm:e.goodConfirm}}),e._v(" "),i("userDialog",{ref:"userDialog",on:{userConfirm:e.userConfirm}})],1)},staticRenderFns:[]};var b=i("VU/8")(f,_,!1,function(e){i("KooV"),i("haDh")},"data-v-1a3f7654",null);t.default=b.exports}});
\ No newline at end of file
webpackJsonp([24],{E8bx:function(e,t){},"eYh/":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i("kmJW"),s=i("NC6I"),a=i.n(s),n=i("CCn6"),r=i("P0f4"),l=i("xGts"),d={name:"dialogObj",props:["dialogObj"],data:function(){return{}},watch:{"dialogObj.show":{deep:!0,handler:function(){console.log(this.dialogObj)}}},methods:{handlerAddressChange:function(e){if(e.province&&e.city&&e.district){this.dialogObj.detail=e.detail,this.dialogObj.province=e.province,this.dialogObj.city=e.city,this.dialogObj.receive_mobile=e.mobile,this.dialogObj.receive_name=e.name;var t=l.a.filter(function(t){return t.value===e.province}),i=t[0].children.filter(function(t){return t.value===e.city}),o=i[0].children.filter(function(t){return t.value===e.district});this.dialogObj.province_name=t[0].label,this.dialogObj.city_name=i[0].label,this.dialogObj.district_name=o.length>0?o[0].label:i[0].children[0].label,this.dialogObj.district=o.length>0?o[0].value:i[0].children[0].value}},saveAddress:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t={province_id:e.dialogObj.province,province_name:e.dialogObj.province_name,city_id:e.dialogObj.city,city:e.dialogObj.city_name,area:e.dialogObj.district_name,area_id:e.dialogObj.district,address:e.dialogObj.detail,receive_name:e.dialogObj.receive_name,receive_mobile:e.dialogObj.receive_mobile};Object(n._9)(e.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功"}),e.dialogObj.show=!1,e.$emit("reflash")})})}},components:{vueAddress:r.a},mounted:function(){console.log(this.dialogObj)}},c={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"编辑收货地址",center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("vue-address",{attrs:{province:e.dialogObj.province,city:e.dialogObj.city,district:e.dialogObj.district,detail:e.dialogObj.detail,mobile:e.dialogObj.receive_mobile,name:e.dialogObj.receive_name},on:{change:e.handlerAddressChange}}),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.saveAddress}},[e._v("保 存")])],1)],1)},staticRenderFns:[]};var h=i("VU/8")(d,c,!1,function(e){i("kQXt")},"data-v-9d2fec0c",null).exports,u=i("+TkF"),_={name:"index",components:{page:o.a,addressDialog:h},data:function(){return{dialogObj:{show:!1},adressDialog:!1,searchFrom:{user_id:"",theme_id:"",periods_id:"",type:""},nowPage:1,total:0,limit:10,deliverList:[],selectedGoods:[],secGoods:[],periodsId:null,goods_id:null,goodsList:[],themeList:[],param_token:a()(JSON.stringify({sing:"singsingenglish21000"})),uploadHeader:{token:localStorage.getItem("cc_token")},logisticsType:[{value:"0",name:"当前待发货 "},{value:"1",name:"所有待发货 "},{value:"2",name:"所有已发货 "}]}},filters:{LogisticsStatusFil:function(e){return u.q[e]}},mounted:function(){this.init()},methods:{downLoad:function(){window.open("/static/待发货模板.xls")},handleClick:function(e){this.searchFrom.type=e.name,this.getList()},editAddress:function(e){console.log(e),this.dialogObj.detail=e.address,this.dialogObj.receive_mobile=e.receive_mobile,this.dialogObj.receive_name=e.receive_name,this.dialogObj.province_name="",this.dialogObj.city_name="",this.dialogObj.district_name="",this.dialogObj.id=e.id,this.dialogObj.show=!0},onUpdateAddress:function(){this.dialogObj.show=!1,this.getList()},fileSuccess:function(){this.$message({message:"提交成功,请稍后刷新",type:"success"}),this.getList()},init:function(){var e=this;this.getList();Object(n._96)({page:1,limit:100}).then(function(t){e.themeList=t.list}),Object(n._53)({page:1,limit:100,goods_type:"1,2"}).then(function(t){console.log(t),t.list.forEach(function(e){e.name="["+e.id+"]["+u.h[e.goods_type]+"]["+e.current_price/100+"元]"+e.name,e.children=[]}),e.goodsList=t.list})},exportTable:function(){var e={};this.searchFrom.user_id&&(e.user_id=this.searchFrom.user_id),this.searchFrom.theme_id&&(e.theme_id=this.searchFrom.theme_id),this.searchFrom.periods_id&&(e.periods_id=this.searchFrom.periods_id),Object(n._24)("/api/admin/order/deliver/list/export",e)},initQuery:function(){var e=this,t=this.$route.query;t&&t.goods_id&&t.periods_id?(this.goods_id=t.goods_id,this.selectedGoods=[parseInt(t.goods_id),parseInt(t.periods_id)],Object(n._68)({goods_id:this.selectedGoods[0],limit:100}).then(function(t){t.list.forEach(function(e){e.name=e.title}),e.goodsList.find(function(t){return t.id===e.selectedGoods[0]}).children=t.list;var i=e.goodsList.find(function(t){return t.id===e.selectedGoods[0]});e.periods=i.children.find(function(t){return t.id===e.selectedGoods[1]}),console.log(e.periods)})):Object(n._47)().then(function(t){console.log(t),t&&(e.goods_id=t.goods_id,e.selectedGoods=[parseInt(t.goods_id),parseInt(t.id)],Object(n._68)({goods_id:e.selectedGoods[0],limit:100}).then(function(t){t.list.forEach(function(e){e.name=e.title}),e.goodsList.find(function(t){return t.id===e.selectedGoods[0]}).children=t.list;var i=e.goodsList.find(function(t){return t.id===e.selectedGoods[0]});e.periods=i.children.find(function(t){return t.id===e.selectedGoods[1]}),e.teacher_id="",console.log(e.periods)}))}),console.log(this.goodsList)},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.theme_id&&(t.theme_id=this.searchFrom.theme_id),this.searchFrom.periods_id&&(t.periods_id=this.searchFrom.periods_id),this.searchFrom.type&&(t.type=this.searchFrom.type),Object(n._48)(t).then(function(t){e.deliverList=t.list,e.total=t.total,console.log(e.deliverList)})},reset:function(){this.searchFrom={user_id:"",theme_id:"",periods_id:"",type:""},this.getList()},changePeriods:function(e){if(e.length>1){this.goods_id=e[0];var t=this.goodsList.find(function(t){return t.id===e[0]});this.periods=t.children.find(function(t){return t.id===e[1]}),console.log(this.goodsList),console.log(this.periods),this.searchFrom.periods_id=this.periods.id}},handleItemChange:function(e){var t=this;Object(n._68)({goods_id:e[0],limit:100}).then(function(i){i.list.forEach(function(e){e.name=e.title}),t.goodsList.find(function(t){return t.id===e[0]}).children=i.list})}}},m={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sms"},[i("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px",inline:"",size:"small"}},[i("el-form-item",{attrs:{label:"用户ID"}},[i("el-input",{staticStyle:{width:"80px"},model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"期数"}},[i("el-cascader",{attrs:{options:e.goodsList,props:{value:"id",label:"name"}},on:{"active-item-change":e.handleItemChange,change:e.changePeriods},model:{value:e.selectedGoods,callback:function(t){e.selectedGoods=t},expression:"selectedGoods"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"主题"}},[i("el-select",{attrs:{filterable:"",placeholder:"请选择",clearable:""},model:{value:e.searchFrom.theme_id,callback:function(t){e.$set(e.searchFrom,"theme_id",t)},expression:"searchFrom.theme_id"}},e._l(e.themeList,function(e,t){return i("el-option",{key:t,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"success",plain:""},on:{click:e.reset}},[e._v("重置")]),e._v(" "),e.$store.state.readonly?e._e():i("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.downLoad()}}},[e._v("excel模板下载")]),e._v(" "),e.$store.state.export?i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.exportTable}},[e._v("导出当前待发货")]):e._e()],1),e._v(" "),e.$store.state.export?i("el-form-item",[i("el-upload",{attrs:{"show-file-list":!1,onSuccess:e.fileSuccess,headers:e.uploadHeader,data:{param_token:e.param_token},action:"/api/admin/order/deliver/list/import"}},[i("el-button",{attrs:{type:"success",plain:""}},[e._v("导入发货信息")])],1)],1):e._e()],1),e._v(" "),i("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.searchFrom.type,callback:function(t){e.$set(e.searchFrom,"type",t)},expression:"searchFrom.type"}},[i("el-tab-pane",{attrs:{label:"当前待发货",name:"0"}}),e._v(" "),i("el-tab-pane",{attrs:{label:"所有待发货",name:"1"}}),e._v(" "),i("el-tab-pane",{attrs:{label:"所有已发货",name:"2"}})],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.deliverList,size:"mini"}},[i("el-table-column",{attrs:{width:"220",className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v(" "+e._s(t.row.user_nickname)),i("br"),e._v("(ID:"+e._s(t.row.user_id)+")"),i("br"),e._v("手机:"+e._s(t.row.user_mobile)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"address",label:"收货地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.receive_name)),i("br"),e._v("\n "+e._s(t.row.receive_mobile)),i("br"),e._v("\n "+e._s(t.row.province_name)+e._s(t.row.city_name)+e._s(t.row.area_name)+e._s(t.row.address)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"periods_title",label:"期数名称"}}),e._v(" "),i("el-table-column",{attrs:{prop:"theme_name",label:"主题"}}),e._v(" "),i("el-table-column",{attrs:{prop:"deliver_start_at",label:"预计发货开始时间"}}),e._v(" "),i("el-table-column",{attrs:{prop:"deliver_end_at",label:"预计发货结束时间"}}),e._v(" "),i("el-table-column",{attrs:{prop:"deliver_at",label:"发货时间"}}),e._v(" "),i("el-table-column",{attrs:{prop:"status",label:"物流状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("LogisticsStatusFil")(t.row.status))),i("br"),e._v(" "),2==e.searchFrom.type?i("span",[e._v("名称:"+e._s(t.row.express_name)),i("br"),e._v("单号:"+e._s(t.row.express_no))]):e._e()]}}])}),e._v(" "),e.$store.state.readonly?e._e():i("el-table-column",{attrs:{width:"150",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{plain:"",type:"info",size:"mini"},on:{click:function(i){e.editAddress(t.row)}}},[e._v("\n 编辑收货地址\n ")])]}}])})],1),e._v(" "),i("page",{attrs:{nowPage:e.nowPage,total:e.total},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),i("address-dialog",{attrs:{dialogObj:e.dialogObj},on:{reflash:e.onUpdateAddress}})],1)},staticRenderFns:[]};var p=i("VU/8")(_,m,!1,function(e){i("E8bx"),i("pzlp")},"data-v-32cdb23b",null);t.default=p.exports},kQXt:function(e,t){},pzlp:function(e,t){}});
\ No newline at end of file
webpackJsonp([25],{"0gIA":function(e,t){},Fmgy:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("CCn6"),o={props:["dialogObj"],data:function(){return{nowPage:1,total:0,limit:10,classList:[]}},components:{page:a("kmJW").a},methods:{onPageChange:function(e){this.nowPage=e,this.classListOption()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.classListOption()},classListOption:function(){var e=this;void 0==this.dialogObj.timeValue[0]&&(this.dialogObj.timeValue[0]=""),void 0==this.dialogObj.timeValue[1]&&(this.dialogObj.timeValue[1]="");var t={page:this.nowPage,limit:this.limit,start_at:this.dialogObj.timeValue[0],end_at:this.dialogObj.timeValue[1]};Object(r._90)(t,this.dialogObj.teacher_id).then(function(t){e.classList=t.list,e.total=t.total})}},watch:{"dialogObj.show":function(e){e&&this.classListOption()}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.dialogObj.title,visible:e.dialogObj.show},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.classList}},[a("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("img",{staticClass:"avatar",attrs:{src:t.row.avatar}}),e._v(" "+e._s(t.row.nickname)),a("br"),e._v("(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"交易订单号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"商品名字"}}),e._v(" "),a("el-table-column",{attrs:{prop:"money",label:"金额(元)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"pay_at",label:"支付时间"}})],1),e._v(" "),a("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var s={name:"index",data:function(){var e=this;return{activeName:"first",firstList:[],secondList:[],searchFirstFrom:{dateValue:[],squad:"11"},today:{text:"今天",onClick:function(){e.searchFirstFrom.dateValue=[e.formatTime(new Date),e.formatTime(new Date)],e.searchSecondFrom.dateValue=[e.formatTime(new Date),e.formatTime(new Date)]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFirstFrom.dateValue=[t,t],e.searchSecondFrom.dateValue=[t,t]}},last7Day:{text:"过去7天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-6048e5));e.searchFirstFrom.dateValue=[t,e.formatTime(new Date)],e.searchSecondFrom.dateValue=[t,e.formatTime(new Date)]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFirstFrom.dateValue=[t,e.formatTime(new Date)],e.searchSecondFrom.dateValue=[t,e.formatTime(new Date)]}},searchSecondFrom:{dateValue:[],squad:"11"},dialogObj:{show:!1,title:"售卖课程",teacher_id:"",timeValue:[]}}},components:{classDialog:a("VU/8")(o,l,!1,function(e){a("jAlk"),a("0gIA")},"data-v-43828d16",null).exports},mounted:function(){this.defaultTime(),this.searchFirstPage()},methods:{sortMoney:function(e,t){return Number(e.total_money)-Number(t.total_money)},handleClick:function(e){"first"===e.name?this.searchFirstPage():this.searchSecondPage()},searchFirstPage:function(){var e=this,t={};this.searchFirstFrom.dateValue&&(t={start_at:this.searchFirstFrom.dateValue[0],end_at:this.searchFirstFrom.dateValue[1]},11!=this.searchFirstFrom.squad&&(t.squad=this.searchFirstFrom.squad)),Object(r._94)(t).then(function(t){e.firstList=t})},searchSecondPage:function(){var e=this,t={};this.searchSecondFrom.dateValue&&(t={start_at:this.searchSecondFrom.dateValue[0],end_at:this.searchSecondFrom.dateValue[1]},11!=this.searchSecondFrom.squad&&(t.squad=this.searchSecondFrom.squad)),Object(r._91)(t).then(function(t){e.secondList=t})},formatTime:function(e){var t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();return r<10&&(r="0"+r),t+"-"+a+"-"+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 o=t+"-"+a+"-01",l=t+"-"+a+"-"+r;this.searchFirstFrom.dateValue=[o,l],this.searchSecondFrom.dateValue=[o,l]},nameClick:function(e,t){this.dialogObj.teacher_id=e.tid,this.dialogObj.timeValue=void 0!=t?t:[e.cur_date,e.cur_date],this.dialogObj.show=!0}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("h2",{staticClass:"title"},[e._v("班主任业绩排行")]),e._v(" "),a("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"业绩总排行",name:"first"}},[a("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.searchFirstPage},model:{value:e.searchFirstFrom.squad,callback:function(t){e.$set(e.searchFirstFrom,"squad",t)},expression:"searchFirstFrom.squad"}},[a("el-tab-pane",{key:"",attrs:{label:"总排行",name:"11"}}),e._v(" "),e._l(10,function(e){return a("el-tab-pane",{key:e,attrs:{label:"T"+e,name:e.toString()}})})],2),e._v(" "),a("el-form",{ref:"searchFirstFrom",attrs:{inline:"",model:e.searchFirstFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchFirstPage},model:{value:e.searchFirstFrom.dateValue,callback:function(t){e.$set(e.searchFirstFrom,"dateValue",t)},expression:"searchFirstFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchFirstPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.firstList}},[a("el-table-column",{attrs:{label:"班主任姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.nameClick(t.row,e.searchFirstFrom.dateValue)}}},[e._v("\n "+e._s(t.row.teacher_name)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"total_money",label:"销售额","sort-method":e.sortMoney,sortable:!0}}),e._v(" "),a("el-table-column",{attrs:{prop:"three_month",label:"季课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"one_year",label:"年课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"two_year",label:"2年课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"one_to_two",label:"续课",sortable:""}})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"业绩按天排行",name:"second"}},[a("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.searchSecondPage},model:{value:e.searchSecondFrom.squad,callback:function(t){e.$set(e.searchSecondFrom,"squad",t)},expression:"searchSecondFrom.squad"}},[a("el-tab-pane",{key:"",attrs:{label:"总排行",name:"11"}}),e._v(" "),e._l(10,function(e){return a("el-tab-pane",{key:e,attrs:{label:"T"+e,name:e.toString()}})})],2),e._v(" "),a("el-form",{ref:"searchSecondFrom",attrs:{inline:"",model:e.searchSecondFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","value-format":"yyyy-MM-dd","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"range-separator":"至",shortcuts:[],"start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchSecondPage},model:{value:e.searchSecondFrom.dateValue,callback:function(t){e.$set(e.searchSecondFrom,"dateValue",t)},expression:"searchSecondFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchSecondPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.secondList}},[a("el-table-column",{attrs:{prop:"cur_date",label:"时间",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{label:"班主任姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.nameClick(t.row)}}},[e._v("\n "+e._s(t.row.teacher_name)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"total_money",label:"销售额","sort-method":e.sortMoney,sortable:!0}}),e._v(" "),a("el-table-column",{attrs:{prop:"three_month",label:"季课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"one_year",label:"年课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"two_year",label:"2年课",sortable:""}})],1)],1)],1),e._v(" "),a("class-dialog",{attrs:{dialogObj:e.dialogObj}})],1)},staticRenderFns:[]};var i=a("VU/8")(s,n,!1,function(e){a("ROW/")},"data-v-288fe03d",null);t.default=i.exports},"ROW/":function(e,t){},jAlk:function(e,t){}});
\ No newline at end of file
webpackJsonp([59],{IcnI:function(e,t,n){"use strict";var a=n("NYxO"),o=n("lRwf"),r=n.n(o),i=n("zSLJ"),u={setToken:function(e,t){e.token=t,i.a.set("cc_token",t)},setUserName:function(e,t){e.userName=t,i.a.set("cc_user_name",t)},setPermission:function(e,t){e.progressList=t,localStorage.setItem("permission",JSON.stringify(t))},setMenu:function(e,t){e.menuList=t},readonly:function(e,t){e.readonly=t},deletePermission:function(e,t){e.deletePermission=t},distribution:function(e,t){e.distribution=t},classManage:function(e,t){e.classManage=t},classManageUnlimited:function(e,t){e.classManageUnlimited=t},classTakeUnlimited:function(e,t){e.classTakeUnlimited=t},promoter:function(e,t){e.promoter=t},mainCanShow:function(e){e.mainLoad=!1},mainUnShow:function(e){e.mainLoad=!0},changeParentRouter:function(e,t){e.menuList.find(function(e){return e.name===t.name}).routerName=t.to.name},progress:function(e,t){switch(t.type){case"new":e.progressList.push({num:0,id:t.id});break;case"change":e.progressList.find(function(e){return e.id===t.id}).num=t.num;break;case"delete":e.progressList.find(function(e){return e.id===t.id})}}};r.a.use(a.a);t.a=new a.a.Store({state:{show:!1,userName:"",token:"",export:!1,orderRefund:!1,permission:!1,readonly:!0,deletePermission:!1,distribution:!1,classManage:!1,classManageUnlimited:!1,classTakeUnlimited:!1,promoter:!1,mainLoad:!0,menuList:[],menuType:!1,nowTab:"first",progressList:[],openedTab:[{value:"首页",routerName:"first",name:"first",delNo:!0,path:"/index"}]},mutations:u,actions:{setToken:function(e,t){(0,e.commit)("setToken",t)},setUserName:function(e,t){(0,e.commit)("setUserName",t)},setProgress:function(e,t){(0,e.commit)("progress",t)},setPermission:function(e,t){(0,e.commit)("setPermission",t)},setMenu:function(e,t){(0,e.commit)("setMenu",t)},readonly:function(e,t){(0,e.commit)("readonly",t)},deletePermission:function(e,t){(0,e.commit)("deletePermission",t)},distribution:function(e,t){(0,e.commit)("distribution",t)},classManage:function(e,t){(0,e.commit)("classManage",t)},classManageUnlimited:function(e,t){(0,e.commit)("classManageUnlimited",t)},classTakeUnlimited:function(e,t){(0,e.commit)("classTakeUnlimited",t)},promoter:function(e,t){(0,e.commit)("promoter",t)}}})},NAsj:function(e,t){},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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([n.e(0),n.e(1)]).then(function(){var t=[n("z5EG")];e.apply(null,t)}.bind(this)).catch(n.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([n.e(0),n.e(9)]).then(function(){var t=[n("AbSL")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"商品列表",routerName:"shop",path:"/shop",cover:"4-1",router:{path:"/shop",name:"shop",component:function(e){return Promise.all([n.e(0),n.e(13)]).then(function(){var t=[n("1djJ")];e.apply(null,t)}.bind(this)).catch(n.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([n.e(0),n.e(26)]).then(function(){var t=[n("ayGs")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"班级列表",routerName:"class",path:"/class",cover:"2-3",router:{path:"/class",name:"class",component:function(e){return Promise.all([n.e(0),n.e(15)]).then(function(){var t=[n("OX9A")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"市场招生统计",routerName:"marketStatistics",path:"/marketStatistics",cover:"2-5",router:{path:"/marketStatistics",name:"marketStatistics",component:function(e){return Promise.all([n.e(0),n.e(55)]).then(function(){var t=[n("SKyX")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"不上课日期",routerName:"noLesson",path:"/noLesson",cover:"2-4",router:{path:"/noLesson",name:"noLesson",component:function(e){return Promise.all([n.e(0),n.e(34)]).then(function(){var t=[n("sg/1")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"自化课列表",routerName:"autoClass",path:"/autoClass",cover:"2-6",router:{path:"/autoClass",name:"autoClass",component:function(e){return Promise.all([n.e(0),n.e(29)]).then(function(){var t=[n("f9Sx")];e.apply(null,t)}.bind(this)).catch(n.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([n.e(0),n.e(2)]).then(function(){var t=[n("Y0Vi")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"月课订单列表",routerName:"monthOrder",path:"/monthOrder",cover:"5-10",router:{path:"/monthOrder",name:"monthOrder",component:function(e){return Promise.all([n.e(0),n.e(4)]).then(function(){var t=[n("xdzM")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"月课订单统计",routerName:"monthOrderCount",path:"/monthOrderCount",cover:"5-12",router:{path:"/monthOrderCount",name:"monthOrderCount",component:function(e){return Promise.all([n.e(0),n.e(45)]).then(function(){var t=[n("v/LD")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"退款列表",routerName:"refund",path:"/refund",cover:"5-2",router:{path:"/refund",name:"refund",component:function(e){return Promise.all([n.e(0),n.e(40)]).then(function(){var t=[n("89rD")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"业绩排行",routerName:"achievement",path:"/achievement",cover:"5-7",router:{path:"/achievement",name:"achievement",component:function(e){return Promise.all([n.e(0),n.e(25)]).then(function(){var t=[n("Fmgy")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"话术列表",routerName:"talkingSkill",path:"/talkingSkill",cover:"11-6",router:{path:"/talkingSkill",name:"talkingSkill",component:function(e){return Promise.all([n.e(0),n.e(23)]).then(function(){var t=[n("CUAv")];e.apply(null,t)}.bind(this)).catch(n.oe)}}}]},{name:"",value:"用户管理",icon:"icon-laoshi",list:[{value:"用户列表",routerName:"user",path:"/user",cover:"3-2",router:{path:"/user",name:"user",component:function(e){return Promise.all([n.e(0),n.e(5)]).then(function(){var t=[n("jFLA")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"老系统用户列表",routerName:"oldUser",path:"/oldUser",cover:"3-3",router:{path:"/oldUser",name:"oldUser",component:function(e){return Promise.all([n.e(0),n.e(39)]).then(function(){var t=[n("K2yr")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"用户积分列表",routerName:"integral",path:"/integral",cover:"3-4",router:{path:"/integral",name:"integral",component:function(e){return Promise.all([n.e(0),n.e(12)]).then(function(){var t=[n("NDyu")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"绑定子账号列表",routerName:"subList",path:"/subList",cover:"3-5",router:{path:"/subList",name:"subList",component:function(e){return Promise.all([n.e(0),n.e(35)]).then(function(){var t=[n("L5jB")];e.apply(null,t)}.bind(this)).catch(n.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([n.e(0),n.e(8)]).then(function(){var t=[n("2qmY")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"提现列表",routerName:"putForward",path:"/putForward",cover:"5-3",router:{path:"/putForward",name:"putForward",component:function(e){return Promise.all([n.e(0),n.e(41)]).then(function(){var t=[n("F5pf")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"发货管理",routerName:"consignment",path:"/consignment",cover:"5-4",router:{path:"/consignment",name:"consignment",component:function(e){return n.e(51).then(function(){var t=[n("usUK")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"订单统计",routerName:"orderCount",path:"/orderCount",cover:"5-5",router:{path:"/orderCount",name:"orderCount",component:function(e){return Promise.all([n.e(0),n.e(49)]).then(function(){var t=[n("s7i+")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"日课订单统计",routerName:"dayOrderCount",path:"/dayOrderCount",cover:"5-11",router:{path:"/dayOrderCount",name:"dayOrderCount",component:function(e){return Promise.all([n.e(0),n.e(44)]).then(function(){var t=[n("mjLz")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"优惠券列表",routerName:"coupon",path:"/coupon",cover:"5-6",router:{path:"/coupon",name:"coupon",component:function(e){return Promise.all([n.e(0),n.e(37)]).then(function(){var t=[n("WvRy")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"扫码入课列表",routerName:"notBuyClass",path:"/notBuyClass",cover:"5-8",router:{path:"/notBuyClass",name:"notBuyClass",component:function(e){return Promise.all([n.e(0),n.e(22)]).then(function(){var t=[n("E6Zo")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"外部订单列表",routerName:"yunji",path:"/yunji",cover:"5-9",router:{path:"/yunji",name:"yunji",component:function(e){return Promise.all([n.e(0),n.e(14)]).then(function(){var t=[n("69L+")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"兑换码管理",routerName:"exchange",path:"/exchange",cover:"5-13",router:{path:"/exchange",name:"exchange",component:function(e){return Promise.all([n.e(0),n.e(11)]).then(function(){var t=[n("CvLZ")];e.apply(null,t)}.bind(this)).catch(n.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([n.e(0),n.e(21)]).then(function(){var t=[n("B31M")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"盒子列表",routerName:"box",path:"/box",cover:"6-2",router:{path:"/box",name:"box",component:function(e){return Promise.all([n.e(0),n.e(17)]).then(function(){var t=[n("+vCD")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"待发货列表",routerName:"logistics",path:"/logistics",cover:"6-3",router:{path:"/logistics",name:"logistics",component:function(e){return Promise.all([n.e(0),n.e(24)]).then(function(){var t=[n("eYh/")];e.apply(null,t)}.bind(this)).catch(n.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([n.e(0),n.e(19)]).then(function(){var t=[n("CK6D")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"关键词回复",routerName:"autoReply",path:"/autoReply",cover:"7-2",router:{path:"/autoReply",name:"autoReply",component:function(e){return Promise.all([n.e(0),n.e(20)]).then(function(){var t=[n("65NY")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"公众号菜单",routerName:"weChat",path:"/weChat",cover:"7-3",router:{path:"/weChat",name:"weChat",component:function(e){return Promise.all([n.e(0),n.e(27)]).then(function(){var t=[n("q5av")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"素材管理",routerName:"weChatResource",path:"/weChatResource",cover:"7-4",router:{path:"/weChatResource",name:"weChatResource",component:function(e){return Promise.all([n.e(0),n.e(28)]).then(function(){var t=[n("Xhqp")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"二维码管理",routerName:"qrcode",path:"/qrcode",cover:"7-6",router:{path:"/qrcode",name:"qrcode",component:function(e){return Promise.all([n.e(0),n.e(16)]).then(function(){var t=[n("lNiQ")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"群发助手",routerName:"groupSend",path:"/groupSend",cover:"7-7",router:{path:"/groupSend",name:"groupSend",component:function(e){return Promise.all([n.e(0),n.e(10)]).then(function(){var t=[n("oerw")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"关注取关统计",routerName:"watchCount",path:"/watchCount",cover:"7-8",router:{path:"/watchCount",name:"watchCount",component:function(e){return Promise.all([n.e(0),n.e(53)]).then(function(){var t=[n("Dq6T")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"微信统计",routerName:"weChatStatistics",path:"/weChatStatistics",cover:"7-10",router:{path:"/weChatStatistics",name:"weChatStatistics",component:function(e){return Promise.all([n.e(0),n.e(56)]).then(function(){var t=[n("5t3x")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"测试",routerName:"test",path:"/test",cover:"7-11",router:{path:"/test",name:"test",component:function(e){return Promise.all([n.e(0),n.e(32)]).then(function(){var t=[n("9ZSL")];e.apply(null,t)}.bind(this)).catch(n.oe)}}}]},{name:"",value:"系统管理",icon:"icon-xitongquanxian",list:[{value:"首页管理",routerName:"banner",path:"/banner",cover:"7-5",router:{path:"/banner",name:"banner",component:function(e){return Promise.all([n.e(0),n.e(36)]).then(function(){var t=[n("CGL6")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"外部投放管理",routerName:"externalLaunch",path:"/externalLaunch",cover:"7-9",router:{path:"/externalLaunch",name:"externalLaunch",component:function(e){return Promise.all([n.e(0),n.e(46)]).then(function(){var t=[n("NrkQ")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"来源码管理",routerName:"sourceManage",path:"/sourceManage",cover:"10-1",router:{path:"/sourceManage",name:"sourceManage",component:function(e){return Promise.all([n.e(0),n.e(38)]).then(function(){var t=[n("/ubI")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"短信发送记录",routerName:"smsRecord",path:"/smsRecord",cover:"10-2",router:{path:"/smsRecord",name:"smsRecord",component:function(e){return Promise.all([n.e(0),n.e(30)]).then(function(){var t=[n("qjS+")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"系统配置",routerName:"config",path:"/config",cover:"10-3",router:{path:"/config",name:"config",component:function(e){return Promise.all([n.e(0),n.e(50)]).then(function(){var t=[n("TPCG")];e.apply(null,t)}.bind(this)).catch(n.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([n.e(0),n.e(43)]).then(function(){var t=[n("+jTk")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"角色管理",routerName:"role",path:"/role",cover:"8-2",router:{path:"/role",name:"role",component:function(e){return Promise.all([n.e(0),n.e(47)]).then(function(){var t=[n("Vt1u")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"菜单管理",routerName:"menu",path:"/menu",cover:"8-3",router:{path:"/menu",name:"menu",component:function(e){return Promise.all([n.e(0),n.e(57)]).then(function(){var t=[n("aTXs")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"系统配置",routerName:"sysConfig",path:"/sysConfig",cover:"8-4",router:{path:"/sysConfig",name:"sysConfig",component:function(e){return Promise.all([n.e(0),n.e(33)]).then(function(){var t=[n("gaNG")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"操作日志",routerName:"adminLog",path:"/adminLog",cover:"8-5",router:{path:"/adminLog",name:"adminLog",component:function(e){return Promise.all([n.e(0),n.e(42)]).then(function(){var t=[n("WZgi")];e.apply(null,t)}.bind(this)).catch(n.oe)}}}]}],o={name:"App",data:function(){return{}},mounted:function(){var e=this;if(window.location.href.indexOf("login")<0){var t=this.$store.state.progressList;console.log(this.$store.state);var o=[];this.$router.options.routes[0].children=[];var r={path:"/userDetail/:id",name:"userDetail",component:function(e){return Promise.all([n.e(0),n.e(18)]).then(function(){var t=[n("9PRC")];e.apply(null,t)}.bind(this)).catch(n.oe)}},i={path:"/teacher/:id",name:"teacherDetail",component:function(e){return Promise.all([n.e(0),n.e(6)]).then(function(){var t=[n("hFUZ")];e.apply(null,t)}.bind(this)).catch(n.oe)}};a.forEach(function(n){var a=!1,u=[];n.list.forEach(function(n){var o=t.find(function(e){return e.cover===n.cover});o&&(n.router.meta={},n.router.meta.readonly=!!o.readonly,n.router.meta.delete=!!o.delete,n.router.meta.export=!!o.export,n.router.meta.refund=!!o.refund,n.router.meta.distribution=!!o.distribution,n.router.meta.classManage=!!o.classManage,n.router.meta.classManageUnlimited=!!o.classManageUnlimited,n.router.meta.classTakeUnlimited=!!o.classTakeUnlimited,n.router.meta.promoter=!!o.promoter,u.push(n),"3-1"===o.cover&&(i.meta={},i.meta.readonly=o.readonly,i.meta.delete=!!o.delete,e.$router.options.routes[0].children.push(i)),"3-2"===o.cover&&(r.meta={},r.meta.readonly=o.readonly,r.meta.delete=!!o.delete,e.$router.options.routes[0].children.push(r)),e.$router.options.routes[0].children.push(n.router),a=!0)}),a&&(n.list=u,o.push(n))}),this.$router.addRoutes([this.$router.options.routes[0]]),this.$store.dispatch("setMenu",o)}}},r={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},staticRenderFns:[]};var i=n("VU/8")(o,r,!1,function(e){n("NAsj")},null,null).exports,u=n("lRwf"),c=n.n(u),l=n("YaEn"),s=n("IcnI"),m=n("zL8q"),p=n.n(m);c.a.use(p.a),c.a.config.productionTip=!1,new c.a({el:"#app",store:s.a,router:l.a,components:{App:i},template:"<App/>"})},OMN4:function(e,t){e.exports=axios},YaEn:function(e,t,n){"use strict";var a=n("IcnI"),o=n("/ocq"),r=n("zSLJ"),i=new o.a({routes:[{path:"/",name:"index",component:function(e){return Promise.all([n.e(0),n.e(7)]).then(function(){var t=[n("jHcp")];e.apply(null,t)}.bind(this)).catch(n.oe)},redirect:{name:"first"},children:[{path:"",name:"first",component:function(e){return n.e(31).then(function(){var t=[n("sJm1")];e.apply(null,t)}.bind(this)).catch(n.oe)}}]},{path:"/login",name:"login",component:function(e){return Promise.all([n.e(0),n.e(54)]).then(function(){var t=[n("0HId")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{skip_auth:!0}},{path:"/outManager",name:"outManager",component:function(e){return Promise.all([n.e(0),n.e(52)]).then(function(){var t=[n("hLMI")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{skip_auth:!0}},{path:"/upload",name:"upload",component:function(e){return Promise.all([n.e(0),n.e(48)]).then(function(){var t=[n("iPJD")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{skip_auth:!0}},{path:"/newLesson",name:"newLesson",component:function(e){return Promise.all([n.e(0),n.e(3)]).then(function(){var t=[n("4t0V")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{skip_auth:!0}}]});i.beforeEach(function(e,t,n){if(a.a.commit("mainCanShow"),r.a.get("cc_token")&&(a.a.dispatch("setToken",r.a.get("cc_token")),a.a.dispatch("setPermission",JSON.parse(localStorage.getItem("permission"))),null!==r.a.get("cc_user_name")&&a.a.dispatch("setUserName",r.a.get("cc_user_name"))),a.a.state.nowTab=e.name,e.matched.length>1&&"first"!==e.name){for(var o=void 0,i=0;i<a.a.state.menuList.length;i++)for(var u=a.a.state.menuList[i],c=0;c<u.list.length;c++){var l=u.list[c];l.path===e.path&&(o=l)}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),a.a.state.orderRefund=e.meta.refund,a.a.state.export=e.meta.export,a.a.state.distribution=e.meta.distribution,a.a.state.classManage=e.meta.classManage,a.a.dispatch("promoter",e.meta.promoter),a.a.dispatch("classManageUnlimited",e.meta.classManageUnlimited),a.a.dispatch("classTakeUnlimited",e.meta.classTakeUnlimited),console.log(e.meta),"userDetail"===e.name){var s=JSON.parse(localStorage.getItem("permission")).find(function(e){return"3-2"===e.cover}).readonly;a.a.dispatch("readonly",s)}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?n({path:"/login"}):n()}),i.onError(function(e){var t=e.message.match(/Loading chunk (\d)+ failed/g),n=i.history.pending.fullPath;t&&i.replace(n)}),t.a=i},lRwf:function(e,t){e.exports=Vue},zSLJ:function(e,t,n){"use strict";t.a={set:function(e,t,n){var a=new Date;a.setTime(a.getTime()+864e5*n),window.document.cookie=e+"="+t+";path=/;expires="+a.toGMTString()},get:function(e){var t=window.document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:null},delete:function(e){this.set(e,"",-1)}}}},["NHnr"]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,n,r){for(var b,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(b in n)Object.prototype.hasOwnProperty.call(n,b)&&(e[b]=n[b]);for(c&&c(a,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)o=d(d.s=r[i]);return o};var a={},f={60:0};function d(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,d),f.l=!0,f.exports}d.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,d){c=f[e]=[a,d]});c[2]=a;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,d.nc&&r.setAttribute("nonce",d.nc),r.src=d.p+"static/js/"+e+"."+{0:"262ecb73acbedc7533b0",1:"b8e5331031e01864d65f",2:"05a670317b7dff2583b9",3:"df0826e3351375c85529",4:"aeeed77630734d507e6e",5:"3d9e9094f35e338c540a",6:"8d24e9971ffa8724a323",7:"ed3c1942cef2802bae1d",8:"bd2e2c080b809c224393",9:"1c2efcf3a6cfc5f3ad97",10:"2eeaebf748561362878b",11:"98ed69caf10bd0c3cfcd",12:"e634e5e26b59fabd9f5f",13:"78cd5be61872baa2b73c",14:"7a8310c3d15a714e46d8",15:"0032a095537271d95981",16:"15568340ae04b5c99c82",17:"5ffc4ce2c5d397092e8b",18:"ca234a799d9463e208e7",19:"0687599418430c0ab3f7",20:"0558f307061e46d1ebe3",21:"e2ce688fd277c30364fd",22:"dce5d2940eddec53c055",23:"248972529830343ba26f",24:"e8f21c400e13bbcca8f7",25:"9f9d7b1ade1b34b2f026",26:"0d0f09a02c9ae5a16393",27:"ee8fdecc7f80b8a9ed08",28:"f98a85f738bf86c63049",29:"defcc01082a674fce525",30:"476d545d95a065b69174",31:"1c3f1b652018be655519",32:"5a933bab26c4a7538997",33:"a29a70d43b565c75dc46",34:"65c89b3e611fc30e7a54",35:"99217e2972f76c871a5d",36:"1c55a2a930bea5787af3",37:"7cb7929bf51683204a33",38:"4ac6372a4b07e4eff5f6",39:"600e8b82cb50d2421250",40:"607e9a0285a932b1c3bb",41:"b91c192dbdff22b114bc",42:"12e184780a6a857f6424",43:"8888ceefaf81e3f7453c",44:"06567fa6cb55e796db2a",45:"54636759192256345af0",46:"26fb3d09e806dead6ca0",47:"d0c994c1982b0ce639bf",48:"fd47c1d5992d31ddb426",49:"777dad24bac29f01cc9e",50:"57f1b6a3137b764dbac8",51:"e36985c8d3748e66e45c",52:"255ee5ec778af3e735ff",53:"6f03f454ccebcd97c1f7",54:"52f4e30246b4e7f3007f",55:"669cc2f27e13da22a06f",56:"47e6fa3599cd14b51190",57:"581c17a00778e234e53f"}[e]+".js";var b=setTimeout(t,12e4);function t(){r.onerror=r.onload=null,clearTimeout(b);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return r.onerror=r.onload=t,n.appendChild(r),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="/",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -812,7 +812,6 @@ export default {
resolve(res);
});
});
},
radio1change() {
this.$refs.userDialog.onSelectUser();
......
......@@ -89,7 +89,7 @@
<el-table-column prop="status" label="物流状态">
<template slot-scope="scope">
{{scope.row.status|LogisticsStatusFil}}<br>
<span v-if="searchFrom.type==2">快递信息:{{express_name}}{{express_no}}</span>
<span v-if="searchFrom.type==2">名称:{{scope.row.express_name}}<br>单号:{{scope.row.express_no}}</span>
</template>
</el-table-column>
<el-table-column width="150" label="操作" v-if="!$store.state.readonly" fixed="right">
......
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