814

parent c0bb4e35
<!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.11.1/theme-chalk/index.css><title>唱唱启蒙-后台</title></head><body><script src=https://lib.baomitu.com/vue/2.5.17/vue.js></script><script src=https://lib.baomitu.com/vuex/3.0.1/vuex.min.js></script><script src=https://lib.baomitu.com/axios/0.18.0/axios.min.js></script><script src=https://lib.baomitu.com/element-ui/2.11.1/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.f65bbf04a81d309f7ecc.js></script><script type=text/javascript src=/static/js/vendor.e17f712b043f8cffc82a.js></script><script type=text/javascript src=/static/js/app.48d3b40842e2ec606eff.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.11.1/theme-chalk/index.css><title>唱唱启蒙-后台</title></head><body><script src=https://lib.baomitu.com/vue/2.5.17/vue.js></script><script src=https://lib.baomitu.com/vuex/3.0.1/vuex.min.js></script><script src=https://lib.baomitu.com/axios/0.18.0/axios.min.js></script><script src=https://lib.baomitu.com/element-ui/2.11.1/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.679cbe61245840d42345.js></script><script type=text/javascript src=/static/js/vendor.e17f712b043f8cffc82a.js></script><script type=text/javascript src=/static/js/app.26d3f70b300463e08311.js></script></body><script>let el = document.getElementsByTagName("script");
el.onerror = function(a,b,c){
console.log('error:',a,b,c);
};
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
webpackJsonp([68],{"6f06":function(e,t,a){var r=a("dBL8");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("0a77a854",r,!1,{})},dBL8:function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.searchFrom[data-v-1517799c] {\n /*position: absolute;\n top: 20px;*/\n}\n.el-table[data-v-1517799c] {\n /*margin-top: 130px;*/\n}\n[data-v-1517799c] .el-table--enable-row-hover .el-table__body tr:hover > td {\n background-color: #fff;\n}\n[data-v-1517799c] .el-table .warning-row {\n background: oldlace;\n}\n[data-v-1517799c] .el-progress-bar__inner {\n max-width: 100% !important;\n}\n.el-main .content .router-block .child-view[data-v-1517799c] {\n /*height: 100vh;*/\n}\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/conversionList/marketEnrollmentConversionList.vue"],names:[],mappings:";AACA;EACE;cACY;CACb;AACD;EACE,sBAAsB;CACvB;AACD;EACE,uBAAuB;CACxB;AACD;EACE,oBAAoB;CACrB;AACD;EACE,2BAA2B;CAC5B;AACD;EACE,kBAAkB;CACnB",file:"marketEnrollmentConversionList.vue",sourcesContent:["\n.searchFrom[data-v-1517799c] {\n /*position: absolute;\n top: 20px;*/\n}\n.el-table[data-v-1517799c] {\n /*margin-top: 130px;*/\n}\n[data-v-1517799c] .el-table--enable-row-hover .el-table__body tr:hover > td {\n background-color: #fff;\n}\n[data-v-1517799c] .el-table .warning-row {\n background: oldlace;\n}\n[data-v-1517799c] .el-progress-bar__inner {\n max-width: 100% !important;\n}\n.el-main .content .router-block .child-view[data-v-1517799c] {\n /*height: 100vh;*/\n}\n"],sourceRoot:""}])},lWjU:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("CCn6"),i={name:"index",data:function(){var e=this;return{updateTime:"",list:[],dateList:[],propertyList:["title","start_at","total_join_num","total_max_join_num","total_target_join_num","complete_rate","target_diff","wait_join_num","other_wait_join_num"],searchFrom:{payTime:[],start_at:"",end_at:"",invite_type:"",invite_name:"",watch_num:"",periods_id:"",squad:"",teacher_id:"",periods_title:""},periods_id:"",periodList:[],total:0,today:{text:"今天",onClick:function(){e.searchFrom.payTime=[e.formatTime(new Date)+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFrom.payTime=[t+" 00:00:00",t+" 23:59:59"]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFrom.payTime=[t+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},last7Day:{text:"过去7天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-6048e5));e.searchFrom.payTime=[t+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},watchList:[{id:0,title:5},{id:1,title:6},{id:2,title:10},{id:3,title:20}]}},methods:{periodName:function(e){var t="";return e.goods_id&&(t+="【"+e.goods_id+"】"),e.periods_title&&(t+=""+e.periods_title),e.watch_num?t+=e.watch_num+"课时<br>":t+="<br>",e.start_at&&(t+="("+e.start_at.slice(5).replace("-","")+")"),(e.has_watch_num||0==e.has_watch_num)&&(t+="-d"+e.has_watch_num),t},selectChange:function(e){this.searchFrom.watch_num=this.watchList[e].title,this.getList()},onPeriodChange:function(e){var t="";t=e.length>1?e.join(","):e[0],this.periods_id=t,console.log(t)},getPeriodsOtherList:function(){var e=this;Object(r._79)({limit:1e3,page:1,max_watch_num:20}).then(function(t){t.list.forEach(function(e){e.label="【"+e.goods_id+"】"+e.title+e.watch_num+"课时("+e.start_at.slice(5).replace("-","")+")-d"+e.has_watch_num}),e.periodList=t.list})},getList:function(){var e=this;this.list=[],this.dateList=[];var t={};this.searchFrom.invite_type&&(t.invite_type=this.searchFrom.invite_type),this.searchFrom.sort_value&&(t.sort_value=this.searchFrom.sort_value,t.sort_key=this.searchFrom.sort_key),this.searchFrom.squad&&(t.squad=this.searchFrom.squad),this.searchFrom.watch_num&&(t.watch_num=this.searchFrom.watch_num),this.periods_id&&(t.periods_ids=this.periods_id),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(this.searchFrom.payTime[0]&&this.searchFrom.payTime[0].length>0&&(this.searchFrom.start_at=this.searchFrom.payTime[0],t.start_at=this.searchFrom.start_at),this.searchFrom.payTime[1]&&this.searchFrom.payTime[1].length>0&&(this.searchFrom.end_at=this.searchFrom.payTime[1],t.end_at=this.searchFrom.end_at)),Object(r._67)(t).then(function(t){e.list=t,t[0].date&&t[0].date.forEach(function(t){e.dateList.push(t.cur_date)})})},tableRowClassName:function(e){e.row;return 0===e.rowIndex?"warning-row":""},arraySpanMethod:function(e){},getUpdateTime:function(){var e=this;Object(r._118)().then(function(t){t.time&&(e.updateTime=t.time)})}},created:function(){this.getList(),this.getPeriodsOtherList(),this.getUpdateTime()}},n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"padding-top":"20px"}},[a("el-form",{ref:"searchFrom",staticClass:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[a("el-form-item",{attrs:{label:"进量日期"}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","value-format":"yyyy-MM-dd HH:mm:ss","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"default-time":["00:00:00","23:59:59"]},on:{change:e.getList},model:{value:e.searchFrom.payTime,callback:function(t){e.$set(e.searchFrom,"payTime",t)},expression:"searchFrom.payTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商品课时数"}},[a("el-select",{staticStyle:{width:"150px"},attrs:{filterable:"",placeholder:"请选择",clearable:""},on:{change:e.selectChange},model:{value:e.searchFrom.watch_num,callback:function(t){e.$set(e.searchFrom,"watch_num",t)},expression:"searchFrom.watch_num"}},e._l(e.watchList,function(e,t){return a("el-option",{key:t,attrs:{label:e.title,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"渠道code"}},[a("el-input",{staticStyle:{width:"110px"},model:{value:e.searchFrom.invite_type,callback:function(t){e.$set(e.searchFrom,"invite_type",t)},expression:"searchFrom.invite_type"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"期数名称",prop:"periods_title"}},[a("el-select",{staticStyle:{width:"480px"},attrs:{"popper-class":"refresh-select-multi width-480",placeholder:"请选择",multiple:"",clearable:"",filterable:""},on:{change:e.onPeriodChange},model:{value:e.searchFrom.periods_id,callback:function(t){e.$set(e.searchFrom,"periods_id",t)},expression:"searchFrom.periods_id"}},e._l(e.periodList,function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})}))],1),e._v(" "),a("el-form-item",[a("div",{staticClass:"flexRow"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")])],1)])],1),e._v(" "),a("div",{staticClass:"update-time"},[e._v("最近更新时间:"+e._s(e.updateTime?e.updateTime:"-"))]),e._v(" "),a("el-table",{attrs:{border:"",align:"center","header-cell-style":{background:"#5f5f5f",color:"#fff"},data:e.list,size:"mini","row-class-name":e.tableRowClassName,"span-method":e.arraySpanMethod}},[a("el-table-column",{attrs:{align:"center",fixed:"",label:"期数名称",width:"120px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{domProps:{innerHTML:e._s(e.periodName(t.row))}})]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"is_other","min-width":"160",align:"left",fixed:"",label:"渠道信息"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 来源:"+e._s(0==t.row.is_other?"内部":"外部")),a("br"),e._v("\n 类别:"+e._s(t.row.invite_type_name)),a("br"),e._v("\n 名称:"+e._s(t.row.invite_name)),a("br"),e._v("\n 类型:"+e._s(t.row.invite_type)+"\n ")]}}])}),e._v(" "),e._l(e.dateList,function(t,r){return a("el-table-column",{key:r,attrs:{align:"center",label:t}},[a("el-table-column",{attrs:{align:"center","min-width":"60px",prop:"wait_join_num",label:"班级人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.date[r].sum_class_num))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center","min-width":"60px",label:"好友数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.date[r].sum_friend_num))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center","min-width":"60px",prop:"wait_join_num",label:"好友率"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.date[r].friend_num_except_class_num)+"%")]}}])})],1)})],2)],1)};n._withStripped=!0;var o={render:n,staticRenderFns:[]},s=o;var l=!1;var c=a("VU/8")(i,s,!1,function(e){l||a("6f06")},"data-v-1517799c",null);c.options.__file="src\\components\\conversionList\\marketEnrollmentConversionList.vue";t.default=c.exports}});
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(a&&a(c,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var c={},f={73:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"bb9c73b269e32912d4f9",1:"2e662c3669ee86bf9f96",2:"aaf67bba437922eee62d",3:"8ea6fdcfd8f46913476a",4:"16b223d5652398e52691",5:"9bc1cb6928f4d8a76d84",6:"642e1e7bd32162f3466f",7:"f2bcdd0454c0ef02a67f",8:"ea75e758386b24475a68",9:"7ff64e20489dbd6ef591",10:"e84121479d160a906b96",11:"ea003377a45110fb8533",12:"9d5d20ebc6e7c9c4d16d",13:"5846f7712ac30dcea2c9",14:"4263541ccf2f3c383d44",15:"e28be0c804d03b4b1772",16:"cb2d55614d0bbca15441",17:"091228f0725776097583",18:"b154c417f09a47fa818d",19:"1e9f66a0d124bb915224",20:"64fc5ea1ff8059e5e194",21:"ae135f845d1a2399c64e",22:"6c612139d971526327bb",23:"e93c6feb862a38b62b33",24:"293d5ebaf6d436b09f25",25:"2cc8f85527653dd2ea8a",26:"54499cd1b2e4136c3322",27:"cbd1f14ea8459cdc523f",28:"27e0be14db0b302f2b18",29:"f6f2b79af6173afde29f",30:"37d3ff7c8f46c888c00f",31:"a8b24c9276375d6e8841",32:"e0a6595be2d74995a950",33:"f5c013df00eed62a4dca",34:"e853c96815a6e97497d6",35:"42cd2ab7093f20f22b8d",36:"3a5e579e09e3dadae0df",37:"1e422ea84dc78ce45d88",38:"a109e74c89849c1009c9",39:"78aa12bff38f31a7418e",40:"7079c4a1c8249a2a1886",41:"1e28bdfe96b606d751a4",42:"0e33d8489572470ad249",43:"1fa1f433409ca9d799b0",44:"02a1e5d2c35a2112852e",45:"76412844b4c8d7397854",46:"8e8c9184a8151f4a6de2",47:"dbbe737e2b5cdf5120a5",48:"0a56b2e8cded7536605c",49:"2bef17ca92260964110f",50:"3845d6551721972a30c0",51:"9948210c0c42b3ca42b6",52:"e2d3302988e3216555a5",53:"3be3d0c6bd9f4be64506",54:"1685f8c534d136c9a18f",55:"aa82545f4fd5bbba4499",56:"38fadc7527cd386a22e2",57:"301eb97ac852c9ac1e72",58:"a02fa31df751466c1c66",59:"04bb4bde128d457015af",60:"cdbff1265bf71982ba8f",61:"9feac9375d4c1cd84431",62:"68b458d68c66dc7e0f3a",63:"07dab85e0749d929647f",64:"803d196ea9bfb44a9d7a",65:"1a25ee4f3b00aba1e025",66:"665af2c3f174bcb04e93",67:"57863445ab51e8844fdf",68:"4e84e9f482535849d31a",69:"833df54c151d34d09cd0",70:"315688773d1677e814e8"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="/",d.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.11.1/theme-chalk/index.css><title>唱唱启蒙-后台</title><link href=/static/css/app.a07172990cce61b48688d81fc1d0f9e1.css rel=stylesheet></head><body><script src=https://cdn.bootcss.com/vue/2.5.17/vue.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.11.1/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.924fba2d1660545c120f.js></script><script type=text/javascript src=/static/js/vendor.237bf7c34b305d463b3a.js></script><script type=text/javascript src=/static/js/app.fa5982b0ded84f2d4def.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.11.1/theme-chalk/index.css><title>唱唱启蒙-后台</title><link href=/static/css/app.0c4231e9ef1a4af6ab1e9720958c4cfb.css rel=stylesheet></head><body><script src=https://lib.baomitu.com/vue/2.5.17/vue.js></script><script src=https://lib.baomitu.com/vuex/3.0.1/vuex.min.js></script><script src=https://lib.baomitu.com/axios/0.18.0/axios.min.js></script><script src=https://lib.baomitu.com/element-ui/2.11.1/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.6be93f31549d5445c81b.js></script><script type=text/javascript src=/static/js/vendor.237bf7c34b305d463b3a.js></script><script type=text/javascript src=/static/js/app.7caa46035a6eb801894b.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.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
webpackJsonp([21],{B31M:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("CCn6"),i=a("kmJW"),o={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,uploadShow:!0,type:0,title:"",form:{name:"",num:0,cover:""},imageList:[],rules:{},inputVisible:!1,inputValue:"",teacherDetail:{}}},methods:{handleClose:function(e){this.form.category_name.splice(this.form.category_name.indexOf(e),1)},showInput:function(){var e=this;this.inputVisible=!0,this.$nextTick(function(t){e.$refs.saveTagInput.$refs.input.focus()})},handleInputConfirm:function(){var e=this.inputValue;e&&this.form.category_name.push(e),this.inputVisible=!1,this.inputValue=""},sub:function(){var e=this;switch(this.dialogObj.type){case 0:this.$refs.form.validate(function(t){if(t){e.imageList.length>0&&(e.form.cover=e.imageList[0].name);var a=e.form;a.category_name=a.category_name.join(","),Object(n.o)(a).then(function(){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.show=!1})}});break;case 1:this.$refs.form.validate(function(t){if(t){e.imageList.length>0&&(e.form.cover=e.imageList[0].name);var a=e.form;a.category_name=a.category_name.join(","),Object(n._21)(e.id,a).then(function(){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.show=!1})}})}},handleAvatarSuccess:function(e){this.imageList=[{name:e.data.url,url:"https://cdn.singsingenglish.com/"+e.data.url}]},beforeAvatarUpload:function(){this.uploadShow=!1},uploadFile:function(e){var t=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(n._194)({file:e.file,type:"local"}).then(function(e){t.imageList=[{name:e.url,url:"https://cdn.singsingenglish.com/"+e.url}],t.loading=!1,t.$message({type:"success",message:"上传成功!"})}).catch(function(){t.loading=!1})},handleRemove:function(){this.uploadShow=!0},initDialog:function(){var e=this;switch(this.dialogObj.type){case 0:this.title="新增单品",this.show=this.dialogObj.show,this.type=0,this.imageList=[],this.form={name:"",num:0,cover:"",category_name:[]},this.uploadShow=!0,this.loading=!1;break;case 1:this.title="编辑",this.show=this.dialogObj.show,this.id=this.dialogObj.id,this.type=1,Object(n._91)(this.dialogObj.id).then(function(t){e.loading=!1,e.form={name:t.name,num:t.num,cover:t.cover,category_name:t.category_name?t.category_name.split(","):[]},e.form.cover&&""!==e.form.cover?(e.imageList=[{name:t.cover,url:"https://cdn.singsingenglish.com/"+t.cover}],e.uploadShow=!1):(e.imageList=[],e.uploadShow=!0)})}}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.title,center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("el-form",{ref:"form",attrs:{model:e.form}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("单品名称")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"规则:主题名+单品名"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("库存数量")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",[a("el-input-number",{model:{value:e.form.num,callback:function(t){e.$set(e.form,"num",t)},expression:"form.num"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("标签")])]),e._v(" "),a("el-col",{attrs:{span:20}},[a("el-form-item",[e._l(e.form.category_name,function(t,n){return a("el-tag",{key:n,attrs:{closable:"","disable-transitions":!1},on:{close:function(a){e.handleClose(t)}}},[e._v("\n "+e._s(t)+"\n ")])}),e._v(" "),e.inputVisible?a("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:e.handleInputConfirm},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleInputConfirm(t):null}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:e.showInput}},[e._v("+ 新增")])],2)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("封面图片")])]),e._v(" "),a("el-col",{attrs:{span:20}},[a("div",{staticClass:"upload-block"},[a("el-upload",{class:{disabled:!e.uploadShow},attrs:{action:"/api/public/upload/zone","http-request":e.uploadFile,"before-upload":e.beforeAvatarUpload,"list-type":"picture-card","file-list":e.imageList,"on-success":e.handleAvatarSuccess,"on-remove":e.handleRemove}},[a("i",{staticClass:"el-icon-plus"})])],1)])],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)])},staticRenderFns:[]};var l=a("VU/8")(o,s,!1,function(e){a("EQY0"),a("vgm/")},"data-v-6feb975c",null).exports,r={name:"index",components:{page:i.a,dialogCom:l},data:function(){return{total:0,nowPage:1,limit:10,searchFrom:{name:""},tableData:[],dialogObj:{type:0,show:!1,id:""}}},created:function(){this.initPage()},methods:{initPage:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.name&&(t.name=this.searchFrom.name),this.searchFrom.category_name&&(t.category_name=this.searchFrom.category_name),Object(n._92)(t).then(function(t){e.tableData=t.list,e.total=t.total})},onPageChange:function(e){this.nowPage=e,this.initPage()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.initPage()},changeShow:function(){},delthat:function(e){var t=this;this.$confirm("此操作将删除该单品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n.S)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"})}),t.initPage()})},onAdd:function(){this.dialogObj={type:0,show:!0}},edit:function(e){this.dialogObj={type:1,show:!0,id:e.id}}}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"single"},[a("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"分类名称"}},[a("el-input",{attrs:{placeholder:"名称",size:"small"},model:{value:e.searchFrom.category_name,callback:function(t){e.$set(e.searchFrom,"category_name",t)},expression:"searchFrom.category_name"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"单品名称"}},[a("el-input",{attrs:{placeholder:"名称",size:"small"},model:{value:e.searchFrom.name,callback:function(t){e.$set(e.searchFrom,"name",t)},expression:"searchFrom.name"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:"",size:"small"},on:{click:e.initPage}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-col",{attrs:{span:4,offset:8}},[a("el-form-item",[e.$store.state.readonly?e._e():a("el-button",{attrs:{type:"success",plain:"",size:"small"},on:{click:e.onAdd}},[e._v("\n 添加单品\n ")])],1)],1)],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,"default-sort":{prop:"num",order:"descending"}}},[a("el-table-column",{attrs:{prop:"id",label:"id"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"category_name",label:"分类"}}),e._v(" "),a("el-table-column",{attrs:{prop:"num",sortable:"",label:"库存"}}),e._v(" "),e.$store.state.readonly?e._e():a("el-table-column",{attrs:{width:"200",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(a){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission?a("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(a){e.delthat(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),a("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),a("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.initPage}})],1)},staticRenderFns:[]};var m=a("VU/8")(r,c,!1,function(e){a("JTBX")},"data-v-d3a26312",null);t.default=m.exports},EQY0:function(e,t){},JTBX:function(e,t){},"vgm/":function(e,t){}});
\ No newline at end of file
webpackJsonp([22],{"1tX3":function(e,t){},E6Zo:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("CCn6"),s=o("+TkF"),a={name:"entrance",props:["entranceObj"],data:function(){return{goodsList:[],periodsList:[],goods_id:null,activeName:"first",searchFrom:{key:"goods_receive_course",desc:"商品",value:""},searchFrom2:{key:"periods_receive_course",desc:"期数",value:""},selectedGoods:[],link1:"https://w.url.cn/s/A45jJYk",link2:"https://w.url.cn/s/AJi1QsS"}},mounted:function(){},filters:{filterGoods:function(e){return"["+s.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}},methods:{initPage:function(){var e=this;Object(n._51)({key:this.searchFrom.key}).then(function(t){t.list&&t.list.length>0?e.searchFrom.value=t.list[0].value:e.searchFrom.value=""}),Object(n._51)({key:this.searchFrom2.key}).then(function(t){t.list&&t.list.length>0||(e.searchFrom2.value=""),e.searchFrom2.value=""})},getGoodsList:function(){var e=this;Object(n._60)({limit:200,page:1}).then(function(t){e.goodsList=t.list})},getUser:function(e){var t=this;""!=e.value?this.$confirm("此操作将设置系统指定配置为商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var o={value:e.value,desc:e.desc,key:e.key};Object(n._154)(o).then(function(e){t.$message({type:"success",message:"设置成功!"})})}):this.$message({type:"error",message:"请设置选择项!"})},changePeriods:function(e){e.length>1&&(this.searchFrom2.value=String(e[1]))},handleItemChange:function(e){var t=this;Object(n._76)({goods_id:e[0]}).then(function(o){o.list.forEach(function(e){e.name=e.title}),t.periodsList.find(function(t){return t.id===e[0]}).children=o.list})},getPeriodsList:function(){var e=this;Object(n._60)({page:1,limit:100,goods_type:"1,2"}).then(function(t){t.list.forEach(function(e){e.name="["+s.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name,e.children=[]}),e.periodsList=t.list})},copyUrl:function(e){var t=e,o=document.createElement("input");o.value=t,document.body.appendChild(o),o.select(),console.log(o.value),document.execCommand("Copy"),this.$message({message:"已成功复制到剪切板",type:"success"}),o.remove()}},watch:{"entranceObj.show":function(e){e&&(this.initPage(),this.getGoodsList(),this.getPeriodsList())}}},i={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:e.entranceObj.title,visible:e.entranceObj.show,center:"",width:"800px"},on:{"update:visible":function(t){e.$set(e.entranceObj,"show",t)}}},[o("el-tabs",{staticStyle:{"line-height":"1"},attrs:{type:"card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[o("el-tab-pane",{attrs:{label:"商品名称",name:"first"}},[o("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"90px",inline:""}},[o("el-form-item",{attrs:{label:"商品名称"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.searchFrom.value,callback:function(t){e.$set(e.searchFrom,"value",t)},expression:"searchFrom.value"}},e._l(e.goodsList,function(t,n){return o("el-option",{key:n,attrs:{label:e._f("filterGoods")(t),value:String(t.id)}})}))],1),e._v(" "),o("el-form-item",[o("div",{staticClass:"search-btn-block"},[o("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.getUser(e.searchFrom)}}},[e._v("确定")]),e._v(" "),o("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.copyUrl(e.link1)}}},[e._v("复制链接")])],1)])],1)],1),e._v(" "),o("el-tab-pane",{attrs:{label:"期数名称",name:"second"}},[o("el-form",{attrs:{"label-width":"90px",inline:"",model:e.searchFrom2}},[o("el-form-item",{attrs:{label:"期数名称"}},[o("el-cascader",{attrs:{options:e.periodsList,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(" "),o("el-form-item",[o("div",{staticClass:"search-btn-block"},[o("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.getUser(e.searchFrom2)}}},[e._v("确定")]),e._v(" "),o("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.copyUrl(e.link2)}}},[e._v("复制链接")])],1)])],1)],1)],1)],1)},staticRenderFns:[]};var r={name:"notBuyClass",data:function(){return{nowPage:1,total:0,limit:10,configList:[],entranceObj:{title:"无需登录入口",show:!1},searchFrom:{user_id:"",goods_id:"",mobile:""},goodList:[]}},components:{entrance:o("VU/8")(a,i,!1,function(e){o("qN7I")},"data-v-7d1872ea",null).exports,page:o("kmJW").a},filters:{filterGoods:function(e){return"["+s.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}},mounted:function(){this.getList(),this.getGoodsOption()},methods:{periodName:function(e){var t="";return e.periods_name?(e.goods_id&&(t+="【"+e.goods_id+"】"),e.periods_name&&(t+=e.periods_name+"<br>"),e.watch_num&&(t+=e.watch_num+"课时"),e.start_at&&(t+="("+e.start_at.slice(5).replace("-","")+")"),(e.has_watch_num||0==e.has_watch_num)&&(t+="-d"+e.has_watch_num)):t="-",t},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.mobile&&(t.mobile=this.searchFrom.mobile),Object(n._45)(t).then(function(t){e.total=t.total,e.configList=t.list})},getGoodsOption:function(){var e=this;Object(n._60)({page:1,limit:100}).then(function(t){e.goodList=t.list})},editComment:function(e,t){var o=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t||""}).then(function(t){var s=t.value;o.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n._183)({desc:s},e).then(function(e){o.$message({type:"success",message:"编辑备注成功"}),o.getList()})})})},exportTable:function(){var e={};this.searchFrom.user_id&&(e.user_id=this.searchFrom.user_id),this.searchFrom.goods_id&&(e.goods_id=this.searchFrom.goods_id),this.searchFrom.mobile&&(e.mobile=this.searchFrom.mobile),this.searchFrom.nickname&&(e.nickname=this.searchFrom.nickname),Object(n._27)("/api/admin/user/receive/course/log/export",e,"扫码入课列表")}}},l={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"not_buy"},[o("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px",inline:"",size:"small"}},[o("el-form-item",{attrs:{label:"用户ID"}},[o("el-input",{staticStyle:{width:"80px"},on:{change:e.getList},model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"用户昵称"}},[o("el-input",{staticStyle:{width:"120px"},on:{change:e.getList},model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"手机号"}},[o("el-input",{on:{change:e.getList},model:{value:e.searchFrom.mobile,callback:function(t){e.$set(e.searchFrom,"mobile",t)},expression:"searchFrom.mobile"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"商品名称"}},[o("el-select",{attrs:{filterable:"",placeholder:"请选择",clearable:""},on:{change:e.getList},model:{value:e.searchFrom.goods_id,callback:function(t){e.$set(e.searchFrom,"goods_id",t)},expression:"searchFrom.goods_id"}},e._l(e.goodList,function(t,n){return o("el-option",{key:n,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")]),e._v(" "),e.$store.state.export?o("el-button",{attrs:{type:"primary",plain:""},on:{click:e.exportTable}},[e._v("导出")]):e._e(),e._v(" "),e.$store.state.readonly?e._e():o("el-button",{attrs:{plain:"",type:"success"},on:{click:function(t){e.entranceObj.show=!0}}},[e._v("无需登录入口")])],1)],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.configList,size:"small"}},[o("el-table-column",{attrs:{label:"用户ID",sortable:"",prop:"scope.row.user_id",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("img",{staticClass:"avatar",attrs:{src:t.row.avatar}}),e._v("\n "+e._s(t.row.nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"class_name",label:"班级名称"}}),e._v(" "),o("el-table-column",{attrs:{label:"期数名称",prop:"periods_name",width:"170px"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("div",{domProps:{innerHTML:e._s(e.periodName(t.row))}})]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"商品名称",prop:"goods_name"}}),e._v(" "),o("el-table-column",{attrs:{label:"手机号",prop:"mobile"}}),e._v(" "),o("el-table-column",{attrs:{prop:"created_at",label:"创建时间",sortable:""}}),e._v(" "),o("el-table-column",{attrs:{label:"备注",prop:"desc"}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{label:"操作",width:"220"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.editComment(t.row.id,t.row.desc)}}},[e._v("编辑备注")])]}}])})],1),e._v(" "),o("page",{attrs:{nowPage:e.nowPage,total:e.total},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),o("entrance",{attrs:{entranceObj:e.entranceObj}})],1)},staticRenderFns:[]};var c=o("VU/8")(r,l,!1,function(e){o("1tX3"),o("tDoJ")},"data-v-65f9542c",null);t.default=c.exports},qN7I:function(e,t){},tDoJ:function(e,t){}});
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
webpackJsonp([28],{"64IV":function(t,e){},HCZx:function(t,e){},Xhqp:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("CCn6"),a={name:"resource",data:function(){return{mediaList:[],nowPage:1,total:0,limit:5,loading:!1,type:"news",imageList:[],uploadParam:{type:"wechat",chunk:0,count:1},fileUid:null,showProgress:!1,typeText:{image:"图片",video:"视频",voice:"语音"}}},components:{page:i("kmJW").a},mounted:function(){this.getMediaList(this.type)},computed:{progress:function(){var t=this;return this.$store.state.progressList.find(function(e){return e.id===t.fileUid}).num<100?this.$store.state.progressList.find(function(e){return e.id===t.fileUid}).num:100}},methods:{getMediaType:function(t){this.type=t,this.nowPage=1,this.getMediaList(t)},onPageChange:function(t){this.nowPage=t,this.getMediaList(this.type)},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getMediaList(this.type)},getMediaList:function(t){var e=this,i={type:t,page:this.nowPage,limit:this.limit};this.loading=!0,Object(s._68)(i).then(function(i){e.loading=!1,e.type=t,e.mediaList=i.item,e.total=i.total_count,0===i.item.length&&e.$message({showClose:!0,message:"暂无数据"})}).catch(function(){e.loading=!1})},handleUploadSuccess:function(t){200===t.code&&(this.imageList=[{name:t.data.url,url:"https://cdn.singsingenglish.com/"+t.data.url}])},uploadFile:function(t){var e=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:t.file.uid}),this.fileUid=t.file.uid,this.showProgress=!0,Object(s._194)({file:t.file,type:"wechat"}).then(function(t){e.imageList=[{name:t.url,url:"https://cdn.singsingenglish.com/"+t.url}],e.getMediaList(e.type),e.loading=!1,e.showProgress=!1,e.$message({type:"success",message:"上传成功!"})}).catch(function(){e.loading=!1,e.showProgress=!1})}}},n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"media"},[i("h2",{staticClass:"media-title"},[t._v("素材管理")]),t._v(" "),i("div",[i("ul",{staticClass:"media-navs"},[i("li",{staticClass:"media-nav js_top",class:"news"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("news")}}},[t._m(0)]),t._v(" "),i("li",{staticClass:"media-nav js_top",class:"image"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("image")}}},[t._m(1)]),t._v(" "),i("li",{staticClass:"media-nav js_top",class:"voice"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("voice")}}},[t._m(2)]),t._v(" "),i("li",{staticClass:"media-nav js_top",class:"video"===t.type?"media-current-nav":"",on:{click:function(e){t.getMediaType("video")}}},[t._m(3)])]),t._v(" "),i("div",{staticClass:"media-panel"},[i("div",{staticClass:"media-panel-top flex-bt"},[i("div",{staticClass:"media-panel-top-left"},[t._v("\n "+t._s(t.typeText[t.type])+"(共"+t._s(t.total)+"条)\n ")]),t._v(" "),t.showProgress?i("div",{staticClass:"progress"},[i("el-progress",{attrs:{percentage:t.progress,status:"success"}})],1):t._e(),t._v(" "),"news"!==t.type?i("div",{staticClass:"media-panel-top-right"},[i("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:"/api/public/upload/zone","http-request":t.uploadFile,"show-file-list":!1,data:t.uploadParam}},[t.$store.state.readonly?t._e():i("el-button",{staticStyle:{order:"2"},attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")])],1)],1):t._e()]),t._v(" "),t.mediaList.length>0&&"news"===t.type?i("div",{staticClass:"d-start",staticStyle:{"margin-bottom":"20px"}},t._l(t.mediaList,function(e,s){return i("div",{key:s,staticClass:"news-media"},[i("el-card",{attrs:{"body-style":{padding:"0px"}}},t._l(e.content.news_item,function(s,a){return i("div",{staticStyle:{position:"relative"}},[1===e.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"digest"},[t._v(t._s(s.digest))]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):e.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===a?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"bottom-title"},[t._v(t._s(s.title))])]):i("div",{staticClass:"next-cover"},[i("span",{staticClass:"next-title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticClass:"next-img",attrs:{src:s.thumb_url}})]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t._e()])}))],1)})):t._e(),t._v(" "),t.mediaList.length>0&&"news"===t.type?i("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}}):t._e(),t._v(" "),t.mediaList.length>0&&"news"!==t.type?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(e){return["image"===t.type?i("a",{attrs:{href:e.row.url,target:"_blank"}},[i("img",{staticStyle:{width:"60px"},attrs:{src:e.row.url}})]):t._e(),t._v(" "),"video"===t.type&&e.row.info&&e.row.info.down_url?i("a",{attrs:{href:e.row.info.down_url,target:"_blank"}},[t._v("\n "+t._s(e.row.info.title)+"\n ")]):t._e(),t._v(" "),"voice"===t.type?i("audio",{attrs:{id:"myAudio",controls:""}},[i("source",{attrs:{src:e.row.url}}),t._v("\n Your browser does not support the audio element.\n ")]):t._e()]}}])})],1),t._v(" "),i("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1):t._e()],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("图文消息"),e("br")])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("图片"),e("br")])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("语音"),e("br")])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"javascript:void(0);"}},[this._v("视频"),e("br")])}]};var o=i("VU/8")(a,n,!1,function(t){i("HCZx"),i("64IV")},"data-v-ed7faddc",null);e.default=o.exports}});
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
webpackJsonp([58],{iPJD:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i("CCn6"),l={name:"upload",data:function(){return{fileList:[]}},methods:{uploadFileVideo1Banner:function(e){var t=this;Object(n._194)({file:e.file,type:"local"}).then(function(e){e.url="https://cdn.singsingenglish.com/"+e.url,t.fileList.push(e)})}}},a={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-upload",{staticClass:"upload-demo",attrs:{action:"/api/public/upload","http-request":e.uploadFileVideo1Banner,"list-type":"picture-card",multiple:""}}),e._v(" "),i("pre",[e._v(" <p>\n ")]),e._v(" "),e._l(e.fileList,function(t){return i("pre",[e._v(' <img src="'+e._s(t.url)+'" style="display:block">\n ')])}),e._v(" "),i("pre",[e._v(" </p>\n ")])],2)},staticRenderFns:[]};var r=i("VU/8")(l,a,!1,function(e){i("wi9J")},"data-v-3a2ff3b1",null);t.default=r.exports},wi9J:function(e,t){}});
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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