1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["activeDetail"],{5430:function(t,e,r){},"5a0c":function(t,e,r){!function(e,r){t.exports=r()}(0,(function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",o="minute",a="hour",s="day",u="week",c="month",l="quarter",p="year",v="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,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,y={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("_")},m=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},g={s:m,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+m(n,2,"0")+":"+m(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,c),o=r-i<0,a=e.clone().add(n+(o?-1:1),c);return+(-(n+(r-i)/(o?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:p,w:u,d:s,D:v,h:a,m:o,s:i,ms:n,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},_="en",w={};w[_]=y;var $=function(t){return t instanceof b},C=function t(e,r,n){var i;if(!e)return _;if("string"==typeof e){var o=e.toLowerCase();w[o]&&(i=o),r&&(w[o]=r,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var s=e.name;w[s]=e,i=s}return!n&&i&&(_=i),i||!n&&_},S=function(t,e){if($(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new b(r)},T=g;T.l=C,T.i=$,T.w=function(t,e){return S(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function y(t){this.$L=C(t.locale,null,!0),this.parse(t)}var m=y.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(T.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(h);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.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()},m.$utils=function(){return T},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(t,e){var r=S(t);return this.startOf(e)<=r&&r<=this.endOf(e)},m.isAfter=function(t,e){return S(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<S(t)},m.$g=function(t,e,r){return T.u(t)?this[e]:this.set(r,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var r=this,n=!!T.u(e)||e,l=T.p(t),f=function(t,e){var i=T.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?i:i.endOf(s)},h=function(t,e){return T.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},d=this.$W,y=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(l){case p:return n?f(1,0):f(31,11);case c:return n?f(1,y):f(0,y+1);case u:var _=this.$locale().weekStart||0,w=(d<_?d+7:d)-_;return f(n?m-w:m+(6-w),y);case s:case v:return h(g+"Hours",0);case a:return h(g+"Minutes",1);case o:return h(g+"Seconds",2);case i:return h(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var r,u=T.p(t),l="set"+(this.$u?"UTC":""),f=(r={},r[s]=l+"Date",r[v]=l+"Date",r[c]=l+"Month",r[p]=l+"FullYear",r[a]=l+"Hours",r[o]=l+"Minutes",r[i]=l+"Seconds",r[n]=l+"Milliseconds",r)[u],h=u===s?this.$D+(e-this.$W):e;if(u===c||u===p){var d=this.clone().set(v,1);d.$d[f](h),d.init(),this.$d=d.set(v,Math.min(this.$D,d.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[T.p(t)]()},m.add=function(n,l){var v,f=this;n=Number(n);var h=T.p(l),d=function(t){var e=S(f);return T.w(e.date(e.date()+Math.round(t*n)),f)};if(h===c)return this.set(c,this.$M+n);if(h===p)return this.set(p,this.$y+n);if(h===s)return d(1);if(h===u)return d(7);var y=(v={},v[o]=e,v[a]=r,v[i]=t,v)[h]||1,m=this.$d.getTime()+n*y;return T.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||f;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=T.z(this),o=this.$H,a=this.$m,s=this.$M,u=r.weekdays,c=r.months,l=function(t,r,i,o){return t&&(t[r]||t(e,n))||i[r].slice(0,o)},p=function(t){return T.s(o%12||12,t,"0")},v=r.meridiem||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:T.s(s+1,2,"0"),MMM:l(r.monthsShort,s,c,3),MMMM:l(c,s),D:this.$D,DD:T.s(this.$D,2,"0"),d:String(this.$W),dd:l(r.weekdaysMin,this.$W,u,2),ddd:l(r.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(o),HH:T.s(o,2,"0"),h:p(1),hh:p(2),a:v(o,a,!0),A:v(o,a,!1),m:String(a),mm:T.s(a,2,"0"),s:String(this.$s),ss:T.s(this.$s,2,"0"),SSS:T.s(this.$ms,3,"0"),Z:i};return n.replace(d,(function(t,e){return e||h[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,v,f){var h,d=T.p(v),y=S(n),m=(y.utcOffset()-this.utcOffset())*e,g=this-y,_=T.m(this,y);return _=(h={},h[p]=_/12,h[c]=_,h[l]=_/3,h[u]=(g-m)/6048e5,h[s]=(g-m)/864e5,h[a]=g/r,h[o]=g/e,h[i]=g/t,h)[d]||g,f?_:T.a(_)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return w[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=C(t,e,!0);return n&&(r.$L=n),r},m.clone=function(){return T.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},y}(),M=b.prototype;return S.prototype=M,[["$ms",n],["$s",i],["$m",o],["$H",a],["$W",s],["$M",c],["$y",p],["$D",v]].forEach((function(t){M[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),S.extend=function(t,e){return t.$i||(t(e,b,S),t.$i=!0),S},S.locale=C,S.isDayjs=$,S.unix=function(t){return S(1e3*t)},S.en=w[_],S.Ls=w,S.p={},S}))},"821d":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"activeDetail"},[t.vipGroup.name?r("van-cell-group",{staticClass:"van-cell-group--inset"},[r("van-cell",{staticClass:"titleContent",attrs:{title:t.vipGroup.name,"title-class":"titleStyle","label-class":"labelStyle"},scopedSlots:t._u([{key:"label",fn:function(){return[r("p",[t._v(t._s(t.vipGroup.description))])]},proxy:!0}],null,!1,3621255433)})],1):t._e(),r("h2",{staticClass:"van-block__title"},[t._v("详细规则")]),r("van-row",{staticClass:"active-row"},[r("van-col",{attrs:{span:"10"}},[t._v("排课时间范围")]),t.vipGroup.coursesStartTime&&t.vipGroup.coursesEndTime?r("van-col",{attrs:{span:"14"}},[t._v(t._s(t.vipGroup.coursesStartTime)+" 至 "+t._s(t.vipGroup.coursesEndTime))]):r("van-col",{attrs:{span:"14"}},[t._v("--")]),r("van-col",{attrs:{span:"10"}},[t._v("是否扣减课程余额")]),r("van-col",{attrs:{span:"14"}},[t._v(t._s(t.vipGroup.payToBalance?"是":"否"))])],1),r("h2",{staticClass:"van-block__title"},[t._v("付费课程")]),r("div",{staticClass:"active-row"},[r("van-row",[r("van-col",{attrs:{span:"8"}},[t._v("课程类型")]),r("van-col",{attrs:{span:"16"}},[t._v(t._s(t._f("coursesType")(t.vipGroup.courseType))+" ")]),"VIP"==t.vipGroup.courseType?r("van-col",{attrs:{span:"8"}},[t._v("课程形式")]):t._e(),"VIP"==t.vipGroup.courseType?r("van-col",{attrs:{span:"16"}},[t._v(t._s(t.vipGroup.vipGroupCategoryNames)+" ")]):t._e(),r("van-col",{attrs:{span:"8"}},[t._v("上课模式")]),"PRACTICE"==t.vipGroup.courseType?r("van-col",{attrs:{span:"16"}},[t._v("线上 ")]):r("van-col",{attrs:{span:"16"}},[t._v(t._s(t._f("formatTeachModel")(t.vipGroup.giveTeachMode))+" ")]),r("van-col",{attrs:{span:"8"}},[t._v("单课时时长")]),r("van-col",{attrs:{span:"16"}},[t._v(t._s(t.vipGroup.singleCourseTime)+"分钟")]),r("van-col",{attrs:{span:"8"}},[t._v("课时数")]),r("van-col",{attrs:{span:"16"}},[t._v(t._s(t.vipGroup.avgCourseNum)+" ")])],1),r("van-cell",{staticClass:"teaching",attrs:{"is-link":"",clickable:!1},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n 剩余 "),r("span",{staticStyle:{color:"#01C1B5"}},[t._v("\n "+t._s("VIP"==t.vipGroup.courseType?t.vipDetail.vipNum:null)+"\n "+t._s("PRACTICE"==t.vipGroup.courseType?t.vipDetail.practiceNum:null)+"\n ")]),t._v(" 名学员未排课\n ")]},proxy:!0},{key:"default",fn:function(){return["VIP"==t.vipGroup.courseType&&t.vipDetail.vipNum||"PRACTICE"==t.vipGroup.courseType&&t.vipDetail.practiceNum?r("span",{staticStyle:{color:"#01C1B5"},on:{click:function(e){return t.onProgram("pay")}}},[t._v("立即排课")]):r("span",{staticStyle:{color:"#c0c0c0"}},[t._v("立即排课")])]},proxy:!0}])})],1),t.vipGroup.giveCourseType&&t.vipGroup.giveCourseNum>0&&"MEMBER"!=t.vipGroup.giveCourseType?[r("h2",{staticClass:"van-block__title"},[t._v("赠送课程")]),r("div",{staticClass:"active-row"},[r("van-row",[r("van-col",{attrs:{span:"8"}},[t._v("课程类型")]),r("van-col",{attrs:{span:"16"}},[t._v(t._s(t._f("coursesType")(t.vipGroup.giveCourseType))+" ")]),"VIP"==t.vipGroup.giveCourseType?r("van-col",{attrs:{span:"8"}},[t._v("课程形式")]):t._e(),"VIP"==t.vipGroup.giveCourseType?r("van-col",{attrs:{span:"16"}},[t._v(t._s(t.vipGroup.giveCategoryName)+" ")]):t._e(),r("van-col",{attrs:{span:"8"}},[t._v("上课模式")]),"PRACTICE"==t.vipGroup.giveCourseType?r("van-col",{attrs:{span:"16"}},[t._v("线上 ")]):r("van-col",{attrs:{span:"16"}},[t._v(t._s(t._f("formatTeachModel")(t.vipGroup.giveTeachMode))+" ")]),r("van-col",{attrs:{span:"8"}},[t._v("单课时时长")]),r("van-col",{attrs:{span:"16"}},[t._v(t._s(t.vipGroup.giveSingleCourseTime)+"分钟")]),r("van-col",{attrs:{span:"8"}},[t._v("课时数")]),r("van-col",{attrs:{span:"16"}},[t._v(t._s(t.vipGroup.giveCourseNum)+"课时")])],1),r("van-cell",{staticClass:"teaching",attrs:{"is-link":"",clickable:!1},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n 剩余 "),r("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?r("span",{staticStyle:{color:"#01C1B5"},on:{click:function(e){return t.onProgram("give")}}},[t._v("立即排课")]):r("span",{staticStyle:{color:"#c0c0c0"}},[t._v("立即排课")])]},proxy:!0}],null,!1,785294055)})],1)]:t._e()],2)},i=[],o=r("ef13"),a=r("d678"),s=r("5a0c"),u=r.n(s);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(D){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof f?e:f,o=Object.create(i.prototype),a=new b(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return G()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=C(a,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=p(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(D){return{type:"throw",arg:D}}}t.wrap=u;var v={};function f(){}function h(){}function d(){}var y={};s(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(M([])));g&&g!==e&&r.call(g,i)&&(y=g);var _=d.prototype=f.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function $(t,e){function n(i,o,a,s){var u=p(t[i],t,o);if("throw"!==u.type){var l=u.arg,v=l.value;return v&&"object"==c(v)&&r.call(v,"__await")?e.resolve(v.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(v).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function C(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var n=p(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,v;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function M(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:G}}function G(){return{value:void 0,done:!0}}return h.prototype=d,s(_,"constructor",d),s(d,"constructor",h),h.displayName=s(d,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,a,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},w($.prototype),s($.prototype,o,(function(){return this})),t.AsyncIterator=$,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new $(u(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(_),s(_,a,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=M,b.prototype={constructor:b,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:M(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),v}},t}function p(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void r(c)}s.done?e(u):Promise.resolve(u).then(n,i)}function v(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){p(o,n,i,a,s,"next",t)}function s(t){p(o,n,i,a,s,"throw",t)}a(void 0)}))}}var f={components:{MEmpty:a["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=v(l().mark((function t(){var e,r;return l().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(o["d"])({activityId:this.activityId});case 3:e=t.sent,this.vipDetail=e.data,r=e.data.vipGroupActivity,r.coursesStartTime=r.coursesStartTime?u()(r.coursesStartTime).format("YYYY-MM-DD"):null,r.coursesEndTime=r.coursesEndTime?u()(r.coursesEndTime).format("YYYY-MM-DD"):null,r.minCourseNum>0?r.minCourseNum!=r.maxCourseNum?r.avgCourseNum=r.minCourseNum+"课时 ~ "+r.maxCourseNum+"课时":r.avgCourseNum=r.maxCourseNum+"课时":r.avgCourseNum="自定义",this.vipGroup=r,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=(r("a834"),r("2877")),y=Object(d["a"])(h,n,i,!1,null,"97a963ae",null);e["default"]=y.exports},"852e":function(t,e,r){},a834:function(t,e,r){"use strict";r("5430")},bad8:function(t,e,r){"use strict";r("852e")},d678:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mempty",class:t.full?"full":null},[r("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),r("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},i=[],o={name:"mempty",props:{icon:String,msg:String,full:Boolean}},a=o,s=(r("bad8"),r("2877")),u=Object(s["a"])(a,n,i,!1,null,"31cc2a9d",null);e["a"]=u.exports},ef13:function(t,e,r){"use strict";r.d(e,"e",(function(){return a})),r.d(e,"d",(function(){return s})),r.d(e,"c",(function(){return u})),r.d(e,"b",(function(){return c})),r.d(e,"a",(function(){return l}));var n=r("2b7c"),i=r("981f").default,o="/api-teacher",a=function(t){return Object(n["a"])({url:"/vipGroupActivity/queryWaitCourseActivity",method:"get",params:t})},s=function(t){return Object(n["a"])({url:"/vipGroupActivity/getActivityWaitCourseStudentNum",method:"get",params:t})},u=function(t){return i({url:o+"/vipGroupActivity/getActivityStudentCanCourseNum",method:"get",params:t})},c=function(t){return Object(n["a"])({url:"/teacherVipGroup/createVipGroup",method:"post",data:t})},l=function(t){return Object(n["a"])({url:"/teacherPracticeGroup/createPracticeGroup",method:"post",data:t})}}}]);
|