1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ClassDetail"],{"22f6":function(t,e,a){},3354:function(t,e,a){},5115:function(t,e,a){"use strict";var n=a("3354"),r=a.n(n);r.a},"5a3f":function(t,e,a){t.exports=a.p+"img/icon_teacher.de517191.png"},"6e6e":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mheader"},[a("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[a("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),a("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),a("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},r=[],s={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},methods:{goBack:function(){var t=this.backUrl;"function"==typeof t.callBack?t.callBack():t.path?this.$router.push({path:t.path,query:t.params}):history.go(-1)}}},i=s,o=(a("5115"),a("2877")),u=Object(o["a"])(i,n,r,!1,null,"61d0e2e4",null);e["a"]=u.exports},7293:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"classdetail"},[n("MHeader",{attrs:{isBack:!1}}),n("div",{staticClass:"header van-hairline--bottom"},[n("h3",[t._v(t._s(t.dataInfo.groupName))]),n("p",[t._v(t._s(t._f("getMonthDay")(t.dataInfo.courseStartDate))+"—"+t._s(t._f("getMonthDay")(t.dataInfo.courseEndDate)))])]),n("div",{staticClass:"teahcerInfo van-hairline--bottom"},[n("div",{staticClass:"logo"},[t.dataInfo.avatar?n("img",{attrs:{src:t.dataInfo.avatar,alt:""}}):n("img",{attrs:{src:a("5a3f"),alt:""}})]),n("div",{staticClass:"info"},[n("p",{staticClass:"name van-ellipsis"},[t._v(t._s(t.dataInfo.teacherName))]),n("p",{staticClass:"memo van-multi-ellipsis--l2"},[t._v("简介:"+t._s(t.dataInfo.introduction))]),n("p",{staticClass:"times"},[t._v("授课次数:"+t._s(t.dataInfo.lectureNum?t.dataInfo.lectureNum:0)+"次")])])]),n("div",{staticClass:"classdetails"},[n("h3",[t._v("课时安排")]),n("p",{staticClass:"detail"},[n("i",{staticClass:"books"}),n("span",[t._v("总计:"+t._s(t.dataInfo.totalClassesTimes)+"节")])]),n("div",{staticClass:"detaillist"},t._l(t.courseList,function(e,a){return n("div",{key:a,staticClass:"detailitem"},[n("span",{staticClass:"time"},[t._v("第"+t._s(++a)+"节")]),n("i",{staticClass:"icon_prossess"}),n("span",{staticClass:"content"},[t._v(t._s(t._f("getMonthDay")(e.classDate))+" "+t._s(t._f("getHourMinute")(e.startClassTime))+"-"+t._s(t._f("getHourMinute")(e.endClassTime))+" "+t._s("FINISH"==e.status?"(已结束)":""))])])}),0)]),n("div",{staticClass:"pay_btn",on:{click:t.onJoin}},[t._v("确认加入")])],1)},r=[],s=a("6e6e"),i=a("ff51"),o=a("b562"),u={name:"classdetail",components:{MHeader:s["a"]},data:function(){return{dataInfo:{},courseList:[]}},mounted:function(){var t=this.$route.query;t.Authorization&&(localStorage.setItem("Authorization",decodeURI(t.Authorization)),localStorage.setItem("userInfo",decodeURI(t.Authorization))),Object(i["b"])().android||Object(i["b"])().iPhone?document.title="课堂详情":this.headerStatus=!0,this.__init()},methods:{__init:function(){var t=this,e=this.$route.query;this.$toast.loading({duration:0,message:"加载中...",forbidClick:!0,loadingType:"spinner"}),Object(o["e"])({groupId:e.groupId}).then(function(a){var n=a.data;t.$toast.clear(),200==n.code?n.data&&(t.dataInfo=n.data,t.courseList=n.data.courseSchedules):403==n.code?t.$router.push({path:"/appLogin",query:{groupId:e.groupId}}):t.$toast(n.msg)})},onJoin:function(){var t=this,e=this.$route.query;this.$dialog.confirm({message:"确定加入课程?"}).then(function(){t.$toast.loading({duration:0,message:"加载中...",forbidClick:!0,loadingType:"spinner"}),Object(o["b"])({courseGroupId:e.groupId}).then(function(e){var a=e.data;t.$toast.clear(),200==a.code?t.$dialog.alert({message:"恭喜您已完成课程报名,<br />请关注课程时间,准时上课。"}).then(function(){t.checkUrl()?window.location.href="https://mstuonline.dayaedu.com/#/transfer":window.location.href="http://mstudev.dayaedu.com/#/transfer"}):302==a.code?(t.onSubmitStatus=!0,t.$dialog.alert({title:"课程冲突",message:a.msg,messageAlign:"left"}).then(function(){})):t.$toast(a.msg)})}).catch(function(){})},checkUrl:function(){var t=window.location.href;return!!/mteaonline/gi.test(t)}},filters:{getMonthDay:function(t){var e=t||new Date;"string"==typeof e&&(e=new Date(t.replace(/-/gi,"/")));var a=Object(i["e"])(e.getMonth()+1),n=Object(i["e"])(e.getDate());return a+"月"+n+"日"},getHourMinute:function(t){var e=t||new Date;"string"==typeof e&&(e=new Date(t.replace(/-/gi,"/")));var a=Object(i["e"])(e.getHours()),n=Object(i["e"])(e.getMinutes());return a+":"+n}}},c=u,d=(a("81f8"),a("2877")),l=Object(d["a"])(c,n,r,!1,null,"e93d33e2",null);e["default"]=l.exports},"81f8":function(t,e,a){"use strict";var n=a("22f6"),r=a.n(n);r.a},b562:function(t,e,a){"use strict";a.d(e,"s",function(){return o}),a.d(e,"m",function(){return u}),a.d(e,"n",function(){return c}),a.d(e,"r",function(){return d}),a.d(e,"e",function(){return f}),a.d(e,"b",function(){return h}),a.d(e,"c",function(){return m}),a.d(e,"o",function(){return p}),a.d(e,"j",function(){return g}),a.d(e,"g",function(){return b}),a.d(e,"h",function(){return I}),a.d(e,"p",function(){return v}),a.d(e,"q",function(){return _}),a.d(e,"l",function(){return w}),a.d(e,"d",function(){return y}),a.d(e,"i",function(){return C}),a.d(e,"f",function(){return k}),a.d(e,"a",function(){return $}),a.d(e,"k",function(){return l});var n=a("4328"),r=a.n(n),s=a("981f").default,i="/api-teacher",o=function(t){return s({url:"/api-auth/usernameLogin",method:"post",data:r.a.stringify(t)})},u=function(t){return s({url:"/api-student/code/sendSms",method:"post",data:r.a.stringify(t)})},c=function(t){return s({url:"/api-auth/smsLogin",method:"post",data:r.a.stringify(t)})},d=function(t){return s({url:"/api-auth/user/setPassword",method:"post",data:r.a.stringify(t)})},l=function(t){return s({url:"/api-auth/user/noAuth/queryUserByPhone",method:"get",params:t})},f=function(t){return s({url:"/api-student/courseGroup/getGroupDetail",method:"get",params:t})},h=function(t){return s({url:"/api-student/courseGroup/buyCourseGroup",method:"post",data:r.a.stringify(t)})},m=function(t){return s({url:i+"/courseGroup/createCourseGroup",method:"post",data:t})},p=function(t){return s({url:i+"/sysTenantAccount/get",method:"get",params:t})},g=function(t){return s({url:i+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:t})},v=function(t){return s({url:i+"/teacherCourseSchedule/teacherCourseMinutes",method:"get",params:t})},_=function(t){return s({url:i+"/tenantEntryActivities/queryPage",method:"get",params:t})},y=function(t){return s({url:i+"/tenantPaymentOrder/createOrder",method:"post",data:r.a.stringify(t)})},C=function(t){return s({url:i+"/teacherOrder/queryByOrderNo",method:"get",params:t})},b=function(t){return s({url:"/api-cms/helpCenterCatalog/list",method:"get",params:t})},I=function(t){return s({url:"/api-cms/helpCenterContent/list",method:"get",params:t})},w=function(t){return s({url:"/api-auth/queryUserInfo",method:"get",params:t})},k=function(t){return s({url:i+"/courseReview/getStuAndTeaReview",method:"get",params:t})},$=function(t){return s({url:i+"/courseReview/batchAdd",method:"post",data:t})}}}]);
|