(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["activeDetail"],{"4f93":function(t,e,n){},"51c7":function(t,e,n){},"5a0c":function(t,e,n){!function(e,n){t.exports=n()}(0,function(){"use strict";var t="millisecond",e="second",n="minute",r="hour",i="day",s="week",a="month",u="quarter",o="year",c=/^(\d{4})-?(\d{1,2})?-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,v=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},p={s:l,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+l(r,2,"0")+":"+l(i,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,a),i=e-r<0,s=t.clone().add(n+(i?-1:1),a);return Number(-(n+(e-r)/(i?r-s:s-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return{M:a,y:o,w:s,d:i,D:"date",h:r,m:n,s:e,ms:t,Q:u}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},h="en",d={};d[h]=f;var m=function(t){return t instanceof $},_=function(t,e,n){var r;if(!t)return h;if("string"==typeof t)d[t]&&(r=t),e&&(d[t]=e,r=t);else{var i=t.name;d[i]=t,r=i}return!n&&r&&(h=r),r||!n&&h},y=function(t,e){if(m(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new $(n)},g=p;g.l=_,g.i=m,g.w=function(t,e){return y(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var $=function(){function l(t){this.$L=this.$L||_(t.locale,null,!0),this.parse(t)}var p=l.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(g.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(c);if(r){var i=r[2]-1||0;return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)}}return new Date(e)}(t),this.init()},p.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},p.$utils=function(){return g},p.isValid=function(){return!("Invalid Date"===this.$d.toString())},p.isSame=function(t,e){var n=y(t);return this.startOf(e)<=n&&n<=this.endOf(e)},p.isAfter=function(t,e){return y(t)0&&"MEMBER"!=t.vipGroup.giveCourseType?[n("h2",{staticClass:"van-block__title"},[t._v("赠送课程")]),n("div",{staticClass:"active-row"},[n("van-row",[n("van-col",{attrs:{span:"8"}},[t._v("课程类型")]),n("van-col",{attrs:{span:"16"}},[t._v(t._s(t._f("coursesType")(t.vipGroup.giveCourseType))+" ")]),"VIP"==t.vipGroup.giveCourseType?n("van-col",{attrs:{span:"8"}},[t._v("课程形式")]):t._e(),"VIP"==t.vipGroup.giveCourseType?n("van-col",{attrs:{span:"16"}},[t._v(t._s(t.vipGroup.giveCategoryName)+" ")]):t._e(),n("van-col",{attrs:{span:"8"}},[t._v("上课模式")]),"PRACTICE"==t.vipGroup.giveCourseType?n("van-col",{attrs:{span:"16"}},[t._v("线上 ")]):n("van-col",{attrs:{span:"16"}},[t._v(t._s(t._f("formatTeachModel")(t.vipGroup.giveTeachMode))+" ")]),n("van-col",{attrs:{span:"8"}},[t._v("单课时时长")]),n("van-col",{attrs:{span:"16"}},[t._v(t._s(t.vipGroup.giveSingleCourseTime)+"分钟")]),n("van-col",{attrs:{span:"8"}},[t._v("课时数")]),n("van-col",{attrs:{span:"16"}},[t._v(t._s(t.vipGroup.giveCourseNum)+"课时")])],1),n("van-cell",{staticClass:"teaching",attrs:{"is-link":"",clickable:!1},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n 剩余 "),n("span",{staticStyle:{color:"#01C1B5"}},[t._v("\n "+t._s("VIP"==t.vipGroup.giveCourseType?t.vipDetail.giveVipNum:null)+"\n "+t._s("PRACTICE"==t.vipGroup.giveCourseType?t.vipDetail.givePracticeNum:null)+"\n ")]),t._v(" 名学员未排课\n ")]},proxy:!0},{key:"default",fn:function(){return["VIP"==t.vipGroup.giveCourseType&&t.vipDetail.giveVipNum||"PRACTICE"==t.vipGroup.giveCourseType&&t.vipDetail.givePracticeNum?n("span",{staticStyle:{color:"#01C1B5"},on:{click:function(e){return t.onProgram("give")}}},[t._v("立即排课")]):n("span",{staticStyle:{color:"#c0c0c0"}},[t._v("立即排课")])]},proxy:!0}],null,!1,785294055)})],1)]:t._e()],2)},i=[],s=n("a34a"),a=n.n(s),u=n("ef13"),o=n("d678"),c=n("5a0c"),v=n.n(c);function l(t,e,n,r,i,s,a){try{var u=t[s](a),o=u.value}catch(c){return void n(c)}u.done?e(o):Promise.resolve(o).then(r,i)}function p(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(t){l(s,r,i,a,u,"next",t)}function u(t){l(s,r,i,a,u,"throw",t)}a(void 0)})}}var f={components:{MEmpty:o["a"]},data:function(){var t=this.$route.query;return{activityId:t.activityId,vipDetail:{},vipGroup:{}}},mounted:function(){document.title="活动详情",this.__init()},methods:{__init:function(){var t=p(a.a.mark(function t(){var e,n;return a.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(u["d"])({activityId:this.activityId});case 3:e=t.sent,this.vipDetail=e.data,n=e.data.vipGroupActivity,n.coursesStartTime=n.coursesStartTime?v()(n.coursesStartTime).format("YYYY-MM-DD"):null,n.coursesEndTime=n.coursesEndTime?v()(n.coursesEndTime).format("YYYY-MM-DD"):null,n.minCourseNum>0?n.minCourseNum!=n.maxCourseNum?n.avgCourseNum=n.minCourseNum+"课时 ~ "+n.maxCourseNum+"课时":n.avgCourseNum=n.maxCourseNum+"课时":n.avgCourseNum="自定义",this.vipGroup=n,t.next=14;break;case 12:t.prev=12,t.t0=t["catch"](0);case 14:case"end":return t.stop()}},t,this,[[0,12]])}));function e(){return t.apply(this,arguments)}return e}(),onProgram:function(t){this.$router.push({path:"/program",query:{activityId:this.activityId,type:t}})}},filters:{formatTeachModel:function(t){return-1===t?"线上,线下":0===t?"线上":1===t?"线下":void 0}}},h=f,d=(n("7cb7"),n("2877")),m=Object(d["a"])(h,r,i,!1,null,"6cd9fc48",null);e["default"]=m.exports},c063:function(t,e,n){"use strict";var r=n("51c7"),i=n.n(r);i.a},d678:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mempty",class:t.full?"full":null},[n("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),n("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},i=[],s={name:"mempty",props:{icon:String,msg:String,full:Boolean}},a=s,u=(n("c063"),n("2877")),o=Object(u["a"])(a,r,i,!1,null,"45d1a48f",null);e["a"]=o.exports},ef13:function(t,e,n){"use strict";n.d(e,"e",function(){return a}),n.d(e,"d",function(){return u}),n.d(e,"c",function(){return o}),n.d(e,"b",function(){return c}),n.d(e,"a",function(){return v});var r=n("2b7c"),i=n("981f").default,s="/api-teacher",a=function(t){return Object(r["a"])({url:"/vipGroupActivity/queryWaitCourseActivity",method:"get",params:t})},u=function(t){return Object(r["a"])({url:"/vipGroupActivity/getActivityWaitCourseStudentNum",method:"get",params:t})},o=function(t){return i({url:s+"/vipGroupActivity/getActivityStudentCanCourseNum",method:"get",params:t})},c=function(t){return Object(r["a"])({url:"/teacherVipGroup/createVipGroup",method:"post",data:t})},v=function(t){return Object(r["a"])({url:"/teacherPracticeGroup/createPracticeGroup",method:"post",data:t})}}}]);