chunk-40a1.5a6774ab.js 8.1 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-40a1"],{"+h1d":function(t,e,a){"use strict";var s={components:{video_course:a("bmyc").a},props:{defaultActive:{type:String,default:""},slideName:{type:String,default:""},slideBottomName:{type:String,default:""},top_style:{type:String,default:""}},data:function(){return{search:{}}},mounted:function(){},methods:{}},r=(a("sxda"),a("KHd+")),i=Object(r.a)(s,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"all"},[a("video_course",{attrs:{defaultActive:t.defaultActive}}),t._v(" "),a("div",{staticStyle:{width:"calc(100% - 150px)"},attrs:{id:"app"}},[t._t("top-other"),t._v(" "),a("div",{staticClass:"top-pane",style:t.top_style},[a("div",{staticClass:"vue-main-title"},[a("div",{staticClass:"vue-main-title-left"}),t._v(" "),a("div",{staticClass:"vue-main-title-content"},[t._v(t._s(t.slideName))]),t._v(" "),t._t("top")],2),t._v(" "),a("div",{staticClass:"vue-search"},[t._t("content")],2)]),t._v(" "),t.slideBottomName?a("div",{staticClass:"table-pane"},[a("div",{staticClass:"vue-main-title"},[a("div",{staticClass:"vue-main-title-left"}),t._v(" "),a("div",{staticClass:"vue-main-title-content"},[t._v(t._s(t.slideBottomName))])]),t._v(" "),a("div",{staticClass:"vue-search"},[t._t("content-bottom")],2)]):t._e(),t._v(" "),t.slideBottomName?a("div",{staticClass:"vue-page"},[t._t("vue-page")],2):t._e(),t._v(" "),t._t("bottom-other")],2)],1)},[],!1,null,"121101e6",null);i.options.__file="slide_cpm.vue";e.a=i.exports},"3M4J":function(t,e,a){"use strict";function s(){for(var t=new Date,e=[],a=1;a<13;a++)for(var s=new Date(t.getFullYear(),a,0).getDate(),r=1;r<s+1;r++){var i=[];i[0]=r+"日",i[1]=a+"月",i[2]=0,e.push(i)}return e.length}function r(t){var e={};return t.reduce(function(t,a){return!e[a.id]&&(e[a.id]=t.push(a)),t},[])}a.d(e,"b",function(){return s}),a.d(e,"a",function(){return r})},"4Xko":function(t,e,a){},Cr0J:function(t,e,a){"use strict";a.r(e);var s=a("14Xm"),r=a.n(s),i=a("QbLZ"),n=a.n(i),c=a("D3Ub"),l=a.n(c),o=a("+h1d"),u=a("O7Sl"),m={components:{slide_cpm:o.a,time_card:u.a},data:function(){return{search:{courses_name:""},tableData:[],current_page:1,total:0,per_page:1}},mounted:function(){this.search.courses_name=this.$route.query.name,this.watchRecord(1)},methods:{watchRecord:function(t){var e=this;return l()(r.a.mark(function a(){var s,i,c,l;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,$http.pc_post("plugin/wechatVideoCourses/watchRecord",{search:n()({},e.search,{date:[e.$refs.time_card.times?parseInt(e.$refs.time_card.times[0]/1e3):"",e.$refs.time_card.times?parseInt(e.$refs.time_card.times[1]/1e3):""]}),page:t});case 2:s=a.sent,i=s.data,c=s.result,l=s.msg,c?(e.tableData=i.warch_record_list.data,e.total=i.warch_record_list.total,e.current_page=i.warch_record_list.current_page,e.per_page=i.warch_record_list.per_page):e.$message.error(l);case 7:case"end":return a.stop()}},a,e)}))()}}},d=(a("PjS9"),a("KHd+")),p=Object(d.a)(m,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"video-course"},[a("slide_cpm",{attrs:{defaultActive:"videoViewingRecord",slideName:"观看记录",slideBottomName:"记录列表"}},[a("template",{slot:"content"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"会员ID"},model:{value:t.search.member_id,callback:function(e){t.$set(t.search,"member_id",e)},expression:"search.member_id"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"会员昵称/姓名/手机号"},model:{value:t.search.keyword,callback:function(e){t.$set(t.search,"keyword",e)},expression:"search.keyword"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"课程名称"},model:{value:t.search.courses_name,callback:function(e){t.$set(t.search,"courses_name",e)},expression:"search.courses_name"}})],1),t._v(" "),a("time_card",{ref:"time_card",attrs:{days_of_last_year:"365"}}),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticClass:"width-btn",attrs:{type:"primary"},on:{click:function(e){t.watchRecord(1)}}},[t._v("搜索")])],1)],1)],1),t._v(" "),a("template",{slot:"content-bottom"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"id",label:"ID",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"时间",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"member_id",label:"会员ID",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"会员",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"member-box"},[a("img",{attrs:{src:e.row.member.avatar_image,alt:""}}),t._v(" "),a("div",{staticClass:"member-nickname"},[t._v(t._s(e.row.member.nickname))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"chat.group_name",label:"群名称",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"courses.name",label:"课程名称",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"duration",label:"观看时长",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"是否完播",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(1==e.row.status?"播完":"未播完"))])]}}])})],1)],1),t._v(" "),a("template",{slot:"vue-page"},[a("el-row",[a("el-col",{attrs:{align:"right"}},[a("el-pagination",{attrs:{layout:"prev, pager, next,jumper",total:t.total,"page-size":t.per_page,"current-page":t.current_page,background:""},on:{"current-change":t.watchRecord}})],1)],1)],1)],2)],1)},[],!1,null,"7f97e262",null);p.options.__file="viewing_record.vue";e.default=p.exports},E4ZW:function(t,e,a){},EzgT:function(t,e,a){},O7Sl:function(t,e,a){"use strict";var s=a("3M4J"),r={data:function(){return{times:[],timeType:0,days_of_last_year:365}},mounted:function(){this.days_of_last_year=Object(s.b)(),console.log(this.days_of_last_year,"days_of_last_year",Object(s.b)()),this.switchSearchTime(5)},methods:{pickerChangeFn:function(t){console.log(t,"eventevent"),t||(this.timeType=0)},getStartEndTime:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=864e5*t,a=new Date((new Date).setHours(0,0,0,0)).getTime(),s=new Date((new Date).setHours(23,59,59,999)).getTime(),r=s-e;return[parseInt(a-e),parseInt(t>1?s:r)]},switchSearchTime:function(t){var e=void 0;switch(t){case 1:e=this.getStartEndTime(0);break;case 2:e=this.getStartEndTime(1);break;case 3:e=this.getStartEndTime(7);break;case 4:e=this.getStartEndTime(30);break;case 5:e=this.getStartEndTime(this.days_of_last_year)}this.times=e,this.timeType==t?(this.timeType=0,this.times=[]):this.timeType=t}}},i=(a("aZbm"),a("KHd+")),n=Object(i.a)(r,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Header",{staticClass:"time-list"},[a("el-date-picker",{attrs:{"value-format":"timestamp",type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.pickerChangeFn},model:{value:t.times,callback:function(e){t.times=e},expression:"times"}}),t._v(" "),a("el-button",{class:1==t.timeType?"button-color left-gap":"active-colors left-gap",attrs:{type:"success",plain:""},on:{click:function(e){t.switchSearchTime(1)}}},[t._v("今")]),t._v(" "),a("el-button",{class:2==t.timeType?"button-color":"active-colors",attrs:{type:"success",plain:""},on:{click:function(e){t.switchSearchTime(2)}}},[t._v("昨")]),t._v(" "),a("el-button",{class:3==t.timeType?"button-color":"active-colors",attrs:{type:"success",plain:""},on:{click:function(e){t.switchSearchTime(3)}}},[t._v("近7天")]),t._v(" "),a("el-button",{class:4==t.timeType?"button-color":"active-colors",attrs:{type:"success",plain:""},on:{click:function(e){t.switchSearchTime(4)}}},[t._v("近30天")]),t._v(" "),a("el-button",{class:5==t.timeType?"button-color":"active-colors",attrs:{type:"success",plain:""},on:{click:function(e){t.switchSearchTime(5)}}},[t._v("近1年")])],1)},[],!1,null,"40c25990",null);n.options.__file="time_card.vue";e.a=n.exports},PjS9:function(t,e,a){"use strict";var s=a("4Xko");a.n(s).a},aZbm:function(t,e,a){"use strict";var s=a("EzgT");a.n(s).a},sxda:function(t,e,a){"use strict";var s=a("E4ZW");a.n(s).a}}]);