1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["activeDetail"],{5430:function(t,e,r){},"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)},o=[],i=r("ef13"),a=r("d678"),c=r("5a0c"),u=r.n(c);function s(t){return s="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},s(t)}function p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(N){c=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof f?e:f,i=Object.create(o.prototype),a=new x(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=G(a,r);if(c){if(c===v)continue;return c}}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=l(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),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=u;var v={};function f(){}function h(){}function y(){}var d={};c(d,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(E([])));g&&g!==e&&r.call(g,o)&&(d=g);var _=y.prototype=f.prototype=Object.create(d);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var p=u.arg,v=p.value;return v&&"object"==s(v)&&r.call(v,"__await")?e.resolve(v.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(v).then((function(t){p.value=t,a(p)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function G(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,G(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=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,v;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function b(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 x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function E(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=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 i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=y,c(_,"constructor",y),c(y,"constructor",h),h.displayName=c(y,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,y):(t.__proto__=y,c(t,a,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},w(C.prototype),c(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new C(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(_),c(_,a,"Generator"),c(_,o,(function(){return this})),c(_,"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=E,x.prototype={constructor:x,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 o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.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 o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),v}},t}function l(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(s){return void r(s)}c.done?e(u):Promise.resolve(u).then(n,o)}function v(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){l(i,n,o,a,c,"next",t)}function c(t){l(i,n,o,a,c,"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(p().mark((function t(){var e,r;return p().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(i["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,y=(r("a834"),r("2877")),d=Object(y["a"])(h,n,o,!1,null,"97a963ae",null);e["default"]=d.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:"暂无内容"))])])},o=[],i={name:"mempty",props:{icon:String,msg:String,full:Boolean}},a=i,c=(r("bad8"),r("2877")),u=Object(c["a"])(a,n,o,!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 c})),r.d(e,"c",(function(){return u})),r.d(e,"b",(function(){return s})),r.d(e,"a",(function(){return p}));var n=r("2b7c"),o=r("981f").default,i="/api-teacher",a=function(t){return Object(n["a"])({url:"/vipGroupActivity/queryWaitCourseActivity",method:"get",params:t})},c=function(t){return Object(n["a"])({url:"/vipGroupActivity/getActivityWaitCourseStudentNum",method:"get",params:t})},u=function(t){return o({url:i+"/vipGroupActivity/getActivityStudentCanCourseNum",method:"get",params:t})},s=function(t){return Object(n["a"])({url:"/teacherVipGroup/createVipGroup",method:"post",data:t})},p=function(t){return Object(n["a"])({url:"/teacherPracticeGroup/createPracticeGroup",method:"post",data:t})}}}]);
|