Commit 1a103ece authored by IvyXia123's avatar IvyXia123

fff

parent 648bc58c
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"><meta name=screen-orientation content=portrait><meta name=x5-orientation content=portrait><title>唱唱启蒙英语</title><link rel=stylesheet href=https://at.alicdn.com/t/font_822651_g9r2j7kybxu.css><style>*{
-webkit-overflow-scrolling:touch;
}</style><link href=https://static-cdn.changchangenglish.com/new-sing/static/css/app.13cb3ef026b5cb8513185fd288a33997.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/manifest.21a73b0bb799dcf92dec.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/vendor.2a119e1fa4193f8d323b.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/app.7cb4e9d9d6a1ddf1e407.js></script></body></html>
\ No newline at end of file
}</style><link href=https://static-cdn.changchangenglish.com/new-sing/static/css/app.5c6abf3287666486bab77880d0dca287.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/manifest.c2528b044211ad5d5855.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/vendor.2a119e1fa4193f8d323b.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/app.7cb4e9d9d6a1ddf1e407.js></script></body></html>
\ No newline at end of file
webpackJsonp([8],{"+4G6":function(t,s,e){"use strict";var i=e("RfZZ"),n=e("AA6R"),o=e.n(n),a=e("o69Z"),r=e("rhik"),c=e("CsZI"),l=e("+2ln"),u=e("pIDD"),p=e("qYlo"),d=Object(a.h)("actionsheet"),h=d[0],_=d[1];function g(t,s,e,i){var n=s.title,a=s.cancelText,c=function(){Object(r.a)(i,"input",!1),Object(r.a)(i,"cancel")};return t(p.a,o()([{class:_(),attrs:{value:s.value,position:"bottom",overlay:s.overlay,lazyRender:s.lazyRender,getContainer:s.getContainer,closeOnClickOverlay:s.closeOnClickOverlay},on:{input:function(t){Object(r.a)(i,"input",t)}}},Object(r.b)(i)]),[n?t("div",{class:[_("header"),"van-hairline--top-bottom"]},[n,t(l.a,{attrs:{name:"close"},class:_("close"),on:{click:c}})]):s.actions.map(function(s,e){return t("div",{class:[_("item",{disabled:s.disabled||s.loading}),s.className,"van-hairline--top"],on:{click:function(t){t.stopPropagation(),s.disabled||s.loading||(s.callback&&s.callback(s),Object(r.a)(i,"select",s,e))}}},[s.loading?t(u.a,{class:_("loading"),attrs:{size:"20px"}}):[t("span",{class:_("name")},[s.name]),s.subname&&t("span",{class:_("subname")},[s.subname])]])}),e.default&&t("div",{class:_("content")},[e.default()]),a&&t("div",{class:_("cancel"),on:{click:c}},[a])])}g.props=Object(i.a)({},c.a.props,{title:String,actions:Array,cancelText:String,overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}}),s.a=h(g)},"+wl/":function(t,s,e){t.exports=e.p+"static/img/nextUnit.f575be1.png"},"064q":function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAALVBMVEVHcEzm5ubl5eXo6Ojl5eXn5+fk5OTk5OTn5+fm5ubm5ubu7u7p6ens7Ozi4uK0qOZPAAAAC3RSTlMA/u5GimDaGA14ujRrE5cAAAGMSURBVCjPlZK/S8NQEMeDNdZuPiviEIqKqEMJcVA3EcFVWnDu0k1Uiu4i4uImuHQSJ0cH1/CGVN0ug1U7+HJD+ge8v8G7JC/VZvKGUj65H9/v3bOs/8dWu8im3WGnACe13i3AM63XCvBAx3PjrOxq0esUWsYQjDe90gLC9TF4rx2A13GVMSD2L//AClVjBL+bljf3YidExJW7TMD54aOrOZECRO1of5v2oDliB0KFIQRCx7ptUZYWIgCqVpQaiJoeWqfMnIRJDCMAEPNWi6xARP2UkhKpAwRVy2YryKN9n2eRsIZltWgwFyvf51QM30iSzV5Q+kkQjjwWukO6lZ8F4kuivsTCMyrx3Us9bbDFFCqsZtZLS2B64rNnFtIEk4kf+ZaaVJ/Br9ElR/Azh08GSvzOoSsMlP188ZqgYu/kx5ypxFAqXqiMvPxqyYHSHTXy18FwcMJfInPQKYYDzz6GMFIPGZyg1zGgMrsOCIsZvIhFL2lVqQMs5I9rtpv+u6kHM2b6atdIvl6+pd8frsIfkLbTcagAAAAASUVORK5CYII="},"1Uto":function(t,s,e){t.exports=e.p+"static/img/mok4.4ffec77.png"},"3QU7":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});e("eqfM");var i=e("/QYm"),n=e("mvHQ"),o=e.n(n),a=e("bOdI"),r=e.n(a),c=(e("zH3V"),e("+4G6")),l=e("CCn6"),u=e("QkSs"),p=e.n(u),d=e("064q"),h=e.n(d),_=e("e2Pt"),g=e.n(_),m=e("1Uto"),v=e.n(m),y=(e("v2ns"),e("7QTg")),f=e("2oJL"),A=e("3xxH"),C=e.n(A),L=e("+wl/"),w=e.n(L),I=e("wQkO"),b=e.n(I),k=e("C5QI"),S=e.n(k),D={name:"mapDefault",components:r()({swiper:y.swiper,swiperSlide:y.swiperSlide,bottomTab:f.a},c.a.name,c.a),data:function(){var t=this;return{zhong:S.a,actions:[],secActions:{},adVisible:!1,actionsheetShow:!1,star_act:p.a,star_def:h.a,shopType:this.$route.query.course_type,diaBGI:g.a,mok4:v.a,goodsID:"",themeName:"",course_id:"",push_time:"",course_name:"",nextUnitUrl:w.a,parent_category_id:this.$route.query.parent_category_id,unitList:[],more:!1,errorURL:C.a,popupVisible:!1,lessonList:[],lesson:"",classID:"",noLesson:!1,hpLessonList:[],thisLesson:null,btn_kechegn:b.a,swiperOption:{width:.25*window.innerWidth,on:{slideChangeTransitionStart:function(){this.activeIndex>=t.swiper.slides.length-4&&t.more&&t.swiper.slidePrev()},resize:function(){this.params.width=.25*window.innerWidth,this.update(!0)}},pagination:{el:".swiper-pagination"}},swiperOption2:{slidesPerView:5,navigation:{nextEl:".banner-right",prevEl:".banner-left"},on:{slideChangeTransitionStart:function(){this.activeIndex==t.swiper2.slides.length-5&&t.more&&t.swiper2.slidePrev()}},pagination:{el:".swiper-pagination"}},swiperOptionLesson:{slidesPerView:"auto",spaceBetween:20},userCourse:{},teacher_alias:!1,teacher_qr:""}},created:function(){this.initPage()},filters:{substr10:function(t){return t.substr(0,10)}},computed:{swiper:function(){return 0==this.shopType?this.$refs.mySwiper.swiper:""},swiper2:function(){return 0==this.shopType?this.$refs.mySwiper2.swiper:""},swiperLesson:function(){return this.$refs.mySwiperLesson.swiper},splitContent:function(){var t=[];return this.thisLesson.content.tips.title1_content&&(t=this.thisLesson.content.tips.title1_content.split("\n")),t}},methods:{initPage:function(){var t=this;sessionStorage.setItem("frist",!0),this.$route.query.periods_id?Object(l.n)(this.$route.query.periods_id).then(function(s){localStorage.setItem("userCourse",""),t.userCourse=t.$common.deepCopy(s),localStorage.setItem("userCourse",o()(s)),t.setCourse()}):localStorage.getItem("userCourse")?(this.userCourse=JSON.parse(localStorage.getItem("userCourse")),this.setCourse()):Object(l.n)().then(function(s){localStorage.setItem("userCourse",""),t.userCourse=t.$common.deepCopy(s),localStorage.setItem("userCourse",o()(s)),t.setCourse()}),this.userCourse.teacher_alias&&1==this.userCourse.teacher_alias.substr(0,1)&&(this.teacher_alias=!0,this.teacher_qr=this.userCourse.teacher_qr)},adControl:function(){if(-1==document.cookie.indexOf("myad=1")){var t=new Date;t.setHours(t.getHours()+24),document.cookie="myad=1;expires="+t.toGMTString(),this.adVisible=!0}},onSelect:function(t){var s=this;this.actionsheetShow=!1,this.shopType=t.course_type,"x"==t.id?this.$router.replace({name:"secMap",query:{}}):(this.secActions=t,this.shopType=t.course_type,this.actions.forEach(function(t){t.className="",t.id==s.secActions.id&&(t.className="activit")}),t.is_start_course?0==this.secActions.course_type?this.getUnitList():this.getLessonList():(this.userCourse=t,this.unitList=[],this.lessonList=[],document.documentElement.scrollTop=0,document.body.scrollTop=0))},findUnit:function(t){return this.unitList.find(function(s){return s.category_id==t})},dateParse:function(t){var s;return s=t.indexOf("-")>-1?t.split("-"):t.indexOf("/")>-1?t.split("/"):t.split("."),new Date(s[0],s[1]-1,s[2])},dateCompare:function(t){var s=(new Date).getTime(),e=t.getTime();return e>s?1:e==s?0:-1},goDetail:function(){if(this.$sa.track("StartCourse",{elementID:this.thisLesson.id.toString(),dayModule:this.thisLesson.domTitle.slice(0,9),weekName:this.thisLesson.domTitle.slice(10,this.thisLesson.domTitle.length),elementName:this.thisLesson.domTitle.slice(0,9)+"-"+this.thisLesson.domTitle.slice(10,this.thisLesson.domTitle.length),themeID:this.parent_category_id,themeName:this.themeName,goodsID:this.goodsID,classID:this.classID,is_view_today:!!(new Date).setHours(0,0,0,0)===new Date(this.push_time).setHours(0,0,0,0)}),this.thisLesson.content.tips){var t={periods_id:this.secActions.id,category_id:this.thisLesson.categoryId,elementId:this.thisLesson.id,course_type:this.shopType,parent_category_id:this.parent_category_id},s=JSON.parse(o()(this.thisLesson));s.push_time=this.push_time,s.themeID=this.parent_category_id,s.themeName=this.themeName,s.goodsID=this.goodsID,s.classID=this.classID,s.nowTime=Date.parse(new Date),s.course_title=this.secActions.course_title,localStorage.setItem("lessonDetail",o()(s)),this.$router.push({name:"newLesson",query:t})}else{var e={periods_id:this.secActions.id,category_id:this.thisLesson.categoryId,parent_category_id:this.parent_category_id,element_id:this.thisLesson.id,course_type:this.shopType,type:"1"};this.$router.push({name:"lesson",query:e})}},changeCateGory:function(t,s,e){e==this.swiper.activeIndex&&0!=this.swiper.activeIndex?this.swiper.slideTo(this.swiper.activeIndex-1,800,!1):e>this.swiper.activeIndex+2&&e!=this.unitList.length-1&&this.swiper.slideTo(this.swiper.activeIndex+1,800,!1),this.themeName=t.category_name.toString(),this.$sa.track("selectCategory",{themeID:t.category_id.toString(),themeName:t.category_name.toString(),courseID:this.course_id.toString(),goodsID:this.goodsID,classID:this.classID}),s||(this.parent_category_id=t.category_id,this.$router.push({name:"map",query:{periods_id:this.secActions.id,course_type:this.shopType,parent_category_id:this.parent_category_id}}),this.getLessonList(!0))},showDia:function(t,s){var e=this;alert(111),"0000-00-00"!==t.push_time?(alert(222),Object(l.v)(this.secActions.id,t.id,t.ele_id).then(function(i){i.content=JSON.parse(i.content),e.thisLesson=i,e.thisLesson.id=t.ele_id.toString(),e.thisLesson.categoryId=t.id,e.thisLesson.domTitle=t.name,e.thisLesson.day=s,e.thisLesson.star_num=t.star_num;var n={periods_id:e.secActions.id,category_id:e.thisLesson.categoryId,elementId:e.thisLesson.id,course_type:e.shopType,parent_category_id:e.parent_category_id};e.$store.dispatch("setClassQuery",n),sessionStorage.setItem("classQuery",o()(n)),e.popupVisible=!0,e.push_time=t.push_time,e.$sa.track("selectElement",{elementID:t.ele_id.toString(),dayModule:t.name.slice(0,9),weekName:t.name.slice(10,t.name.length),elementName:t.name.slice(0,9)+"-"+t.name.slice(10,t.name.length),themeID:e.parent_category_id.toString(),themeName:e.parent_category_id.toString(),goodsID:e.goodsID,classID:e.classID,courseID:e.course_id.toString()})})):Object(i.a)("课程还未开始哦")},getUnitList:function(){var t=this;Object(l.o)(this.secActions.id).then(function(s){t.unitList=[],s.forEach(function(s){1!==s.status&&2!==s.status||(t.unitList.push(s),2===s.status&&(t.parent_category_id=s.category_id))}),t.$route.query.parent_category_id&&1!=s.length&&(t.parent_category_id=t.$route.query.parent_category_id),t.getLessonList(),s.find(function(t){return 0===t.status})&&(t.more=!0),t.$nextTick(function(){var s=null,e=null;t.unitList.forEach(function(i,n){i.category_id==t.parent_category_id&&(setTimeout(function(){t.themeName=i.category_name,t.$sa.track("selectCategory",{themeID:i.category_id.toString(),themeName:i.category_name.toString(),courseID:t.course_id.toString(),goodsID:t.goodsID,classID:t.classID})},1e3),s=n>=3?n-3:0,e=n>=4?n-4:0)}),t.$refs.mySwiper.swiper.slideTo(s,800,!1),t.$refs.mySwiper2.swiper.slideTo(e,800,!1)})})},getLessonList:function(t){var s=this;Object(l.w)(this.secActions.id+"/v2",{category_id:this.parent_category_id}).then(function(e){s.course_id!==e.periods_info.course_id&&(s.course_id=e.periods_info.course_id,s.course_name=e.periods_info.title,s.goodsID=e.periods_info.goods_id,s.classID=e.periods_info.class_id,s.$sa.track("EnterCourse",{goodsID:e.periods_info.goods_id,classID:e.periods_info.class_id})),s.lessonList=[],s.hpLessonList=[],s.noLesson=!!e.list.length<1;for(var i=[],n=0,o=0;o<e.list.length;o++)"0000-00-00"!==e.list[o].push_time&&n++,e.list[o].name.indexOf("Day1")>-1&&i.length>0?(s.lessonList.push(i),(i=[]).push(e.list[o])):(i.push(e.list[o]),o==e.list.length-1&&s.lessonList.push(i)),e.list[o].dayText="DAY "+i.length,s.hpLessonList.push(e.list[o]);t?(s.scroll_to(0),s.swiperLesson.slideTo(0)):s.$nextTick(function(){if(n!==s.hpLessonList.length?s.swiperLesson.slideTo(n-1):s.$route.query.category_id,s.$route.query.category_id){var t=document.getElementsByClassName("cid"+s.$route.query.category_id);if(t.length>0&&"none"!==t[0].style.display){s.scroll_to(t[0].offsetTop);var e=null,i=0;s.lessonList.forEach(function(t){t.forEach(function(t,n){t.id==s.$route.query.category_id&&(e=t,i=n+1)})}),s.showDia(e,i)}}else s.$route.query.back_id?setTimeout(function(){var t=document.getElementsByClassName("cid"+s.$route.query.back_id);t.length>0&&"none"!==t[0].style.display&&s.scroll_to(t[0].offsetTop)},300):setTimeout(function(){var t=document.getElementsByClassName("money");t.length>0&&0!==t[0].offsetLeft&&s.scroll_to(t[0].offsetParent.offsetTop)},300)})})},scroll_to:function(t){for(var s=t-200,e=function(t){var e=document.documentElement.scrollTop|document.body.scrollTop,i=e-s;setTimeout(function(){document.documentElement.scrollTop=e-i/30*t,document.body.scrollTop=e-i/30*t},10*t)},i=0;i<30;i++)e(i)},setCourse:function(){var t=this;if(this.userCourse.automation_id&&this.userCourse.automation_id.length>0){var s={name:"VIP高效体验营",id:"x"};this.actions.push(s),i.a.clear()}this.userCourse.periods_list?(this.userCourse.periods_list.forEach(function(s){s.name=s.course_title,t.actions.push(s),t.$route.query.item?t.secActions=t.$route.query.item:null!=t.userCourse.start_periods_id&&0==t.userCourse.start_periods_id?t.secActions=t.userCourse.periods_list[0]:null!=t.userCourse.start_periods_id&&s.id==t.userCourse.start_periods_id&&(t.secActions=s)}),i.a.clear()):this.$router.replace({name:"secMap",query:{}}),this.actions.forEach(function(s){s.className="",s.id==t.secActions.id&&(s.className="activit")}),this.shopType=this.secActions.course_type,this.secActions.is_start_course&&(0==this.secActions.course_type?this.getUnitList():this.getLessonList())},timerClick:function(){alert(999)}}},x={render:function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("van-actionsheet",{attrs:{actions:t.actions},on:{select:t.onSelect},model:{value:t.actionsheetShow,callback:function(s){t.actionsheetShow=s},expression:"actionsheetShow"}}),t._v(" "),e("div",{staticClass:"unit-block"},[e("div",{staticClass:"course_title",on:{click:function(s){t.actionsheetShow=!0}}},[t._v(t._s(t.secActions.name)+" "),e("i",{staticClass:"iconfont icon-below-s"})]),t._v(" "),0==t.shopType&&t.unitList.length>0?e("swiper",{ref:"mySwiper",staticClass:"banner",attrs:{options:t.swiperOption}},[t._l(t.unitList,function(s,i){return e("swiper-slide",{key:i},[e("div",{staticClass:"line"}),t._v(" "),e("div",{class:{"unit-li":!0,active:s.category_id==t.parent_category_id},on:{click:function(e){t.changeCateGory(s,s.category_id==t.parent_category_id,i)}}},[e("div",[e("img",{attrs:{src:s.category_cover}})]),t._v("\n "+t._s(s.category_name)+"\n ")])])}),t._v(" "),t.more?e("swiper-slide",[e("div",{staticClass:"line"}),t._v(" "),e("div",{staticClass:"unit-li"},[e("div",[e("img",{attrs:{src:t.nextUnitUrl}})]),t._v(" "),e("span",{staticStyle:{color:"#cccccc"}},[t._v("敬请期待")])])]):t._e(),t._v(" "),t._l(3-t.unitList.length>0?3-t.unitList.length:0,function(t){return e("swiper-slide",{key:10*t},[e("div",{staticClass:"unit-li"},[e("div")])])})],2):t._e(),t._v(" "),0==t.shopType?e("swiper",{ref:"mySwiper2",staticClass:"banner2",attrs:{options:t.swiperOption2}},[t._l(t.unitList,function(s,i){return e("swiper-slide",{key:i},[e("div",{staticClass:"line"}),t._v(" "),e("div",{class:{"unit-li":!0,active:s.category_id==t.parent_category_id},on:{click:function(e){t.changeCateGory(s,s.category_id==t.parent_category_id)}}},[e("img",{attrs:{src:s.category_cover}}),t._v(" "),e("div",[t._v(t._s(s.category_name))])])])}),t._v(" "),t.more?e("swiper-slide",[e("div",{staticClass:"line"}),t._v(" "),e("div",{staticClass:"unit-li"},[e("div",[e("img",{attrs:{src:t.nextUnitUrl}})]),t._v(" "),e("span",{staticStyle:{color:"#cccccc"}},[t._v("敬请期待")])])]):t._e(),t._v(" "),t._l(6-t.unitList.length>0?6-t.unitList.length:0,function(t){return e("swiper-slide",{key:10*t},[e("div",{staticClass:"unit-li"},[e("div")])])})],2):t._e()],1),t._v(" "),t.secActions.is_start_course?e("div",{class:{"lesson-block":0==t.shopType,"lesson-block nounit":1==t.shopType}},[t.noLesson?e("div",{staticClass:"noLesson"},[e("img",{attrs:{src:t.errorURL}}),t._v(" "),e("div",[t._v("\n 暂无课程\n ")])]):t._e(),t._v(" "),t._l(t.lessonList,function(s,i){return e("div",{staticClass:"card-block"},[e("img",{attrs:{src:s[0].cover+"?imageslim"}}),t._v(" "),t._l(s,function(n,o){return e("div",{class:"card-li cid"+n.id,on:{click:function(s){t.showDia(n,o+1)}}},[e("div",{staticClass:"text-block"},[e("div",{staticClass:"title"},[t._v("\n "+t._s(t._f("substr10")(n.name))+"\n ")]),t._v(" "),e("div",{staticClass:"tips"},["0000-00-00"!==n.push_time?e("span",[t._v(" 开课时间:"+t._s(n.push_time))]):t._e(),t._v(" "),"0000-00-00"===n.push_time?e("span",[t._v("课程还未开始哦")]):t._e()])]),t._v(" "),"0000-00-00"!==n.push_time?e("div",{staticClass:"star-block"},[t._l(n.star_num,function(s){return e("img",{staticClass:"star-img",attrs:{src:t.star_act}})}),t._v(" "),t._l(3-n.star_num,function(s){return e("img",{staticClass:"star-img",attrs:{src:t.star_def}})})],2):t._e(),t._v(" "),e("div",{staticClass:"icon-block"},[e("i",{class:{map:!0,right:i!==n.length-1&&"0000-00-00"!==n.push_time,money:"0000-00-00"!==n.push_time&&(s[o+1]&&"0000-00-00"===s[o+1].push_time||o===s.length-1&&t.lessonList[i+1]&&"0000-00-00"===t.lessonList[i+1][0].push_time||(0==t.shopType&&t.findUnit(t.parent_category_id)&&2===t.findUnit(t.parent_category_id).status||1==t.shopType)&&o===s.length-1&&i==t.lessonList.length-1),clock:"0000-00-00"===n.push_time}})])])})],2)})],2):t._e(),t._v(" "),t.lessonList.length>0?e("div",{staticClass:"lesson-block-hp"},[e("swiper",{ref:"mySwiperLesson",staticClass:"lesson-sw",attrs:{options:t.swiperOptionLesson}},t._l(t.hpLessonList,function(s,i){return e("swiper-slide",{key:i,staticStyle:{width:"50vh"}},[e("div",{staticClass:"lesson-content-hp",on:{click:function(e){t.showDia(s)}}},["0000-00-00"===s.push_time?e("div",{staticClass:"clock-hp"},[t._v("\n 等待开课\n ")]):t._e(),t._v(" "),e("div",{staticClass:"lesson-day-hp"},[t._v(t._s(s.dayText))]),t._v(" "),e("div",{staticClass:"lesson-img-hp"},[e("img",{attrs:{src:s.cover}})]),t._v(" "),e("div",{staticClass:"lesson-name-hp"},[t._v("\n "+t._s(s.sub_title)+"\n ")]),t._v(" "),e("div",{staticClass:"star-block"},[t._l(s.star_num,function(s){return e("img",{staticClass:"star-img",attrs:{src:t.star_act}})}),t._v(" "),t._l(3-s.star_num,function(s){return e("img",{staticClass:"star-img",attrs:{src:t.star_def}})})],2),t._v(" "),"0000-00-00"!==s.push_time&&(t.hpLessonList[i+1]&&"0000-00-00"===t.hpLessonList[i+1].push_time||(0==t.shopType&&t.findUnit(t.parent_category_id)&&2===t.findUnit(t.parent_category_id).status||1==t.shopType)&&i===t.hpLessonList.length-1)?e("i",{staticClass:"map money"}):t._e()])])}))],1):t._e(),t._v(" "),t.secActions.is_start_course||t.teacher_alias?t._e():e("div",{staticClass:"unStart"},[e("img",{attrs:{src:t.mok4,alt:""}}),t._v(" "),e("p",[t._v("您的课程尚未开始")]),t._v(" "),e("div",[t._v("课程开始时间:"+t._s(t.secActions.start_at))])]),t._v(" "),!t.secActions.is_start_course&&t.teacher_alias?e("div",{staticClass:"unStartTeacher"},[e("p",[t._v("您的课程尚未开始")]),t._v(" "),e("div",{staticClass:"container"},[e("img",{attrs:{src:t.teacher_qr,alt:""}}),t._v(" "),e("p",[t._v("请扫码添加班主任")]),t._v(" "),e("p",[t._v("以便及时获取课程相关服务")])]),t._v(" "),e("div",{staticClass:"date"},[t._v("课程开始时间:"+t._s(t.secActions.start_at))])]):t._e(),t._v(" "),e("van-popup",{model:{value:t.popupVisible,callback:function(s){t.popupVisible=s},expression:"popupVisible"}},[t.thisLesson?e("div",{staticClass:"popup-block"},[e("i",{staticClass:"map close",on:{click:function(s){t.popupVisible=!1}}}),t._v(" "),e("div",{staticClass:"header",style:{backgroundImage:"url("+t.diaBGI+")"}},[e("div",{staticClass:"title"},[t._v("\n "+t._s(t.thisLesson.title)+"\n ")]),t._v(" "),t.thisLesson.content.tips?e("div",{staticClass:"tips"},[t._v("\n "+t._s(t.thisLesson.content.tips.content)+"\n ")]):t._e(),t._v(" "),t.thisLesson.content.tips?t._e():e("div",{staticClass:"tips"},[t._v("\n DAY "+t._s(t.thisLesson.day)+"\n ")])]),t._v(" "),t.thisLesson.content.tips?e("div",{staticClass:"content"},[e("div",{staticClass:"tips-title"},[t._v(t._s(t.thisLesson.content.tips.title1))]),t._v(" "),e("div",{staticClass:"title-content"},[e("ul",t._l(t.splitContent,function(s){return e("li",{staticStyle:{"text-align":"center"}},[t._v(t._s(s))])}))]),t._v(" "),e("div",{staticClass:"tips-title"},[t._v(t._s(t.thisLesson.content.tips.title2))]),t._v(" "),e("div",{staticClass:"title-content"},[t._v(t._s(t.thisLesson.content.tips.title2_content))])]):t._e(),t._v(" "),t.thisLesson.content.tips?t._e():e("div",{staticClass:"content"},[e("div",{staticStyle:{color:"#cccccc",padding:"21.3333vw 0","font-size":"5.3333vw"}},[t._v("快去开始课程吧!")])]),t._v(" "),e("div",[e("i",{staticClass:"goLesson",on:{click:function(s){t.goDetail()}}},[e("img",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.btn_kechegn,alt:""}})])])]):t._e()]),t._v(" "),e("bottom-tab")],1)},staticRenderFns:[]};var T=e("VU/8")(D,x,!1,function(t){e("z4Vk")},"data-v-e2a418ae",null);s.default=T.exports},"7YDQ":function(t,s){},C5QI:function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAFgElEQVRYR72ZW6hUVRjHf9/MdDS1zCCpHiwIijIjECWj45nxEhFJmbnHS96CtCR9qV4sjIR8qacUU4NMy8vso6koEWHOHo2MTChEwUIqHyoM0uxonuPMfLH22XvOnvttH/fbzF7rW7/97e/y32sJFa74Fh0qI9iqyuMRZfnhpOysNC7s/6akdG5e2CDCl9rDImeJXC1dQ0r/MLAMZy/KE+49wXEsSdSCG39Ah424zFgR7gNuV+Emd6ryL/CnKmd6hnPqxAy5UstO3NY0Stxb9wsuM7MUugi4DBZyEsFKz5bPShfq3KN3RLPMV5gBPCLQUQtGoQ/4VuBALsb2o7Pkj9LxiW59VvPYQLQadAG4Eiyw2EnKp0HDk20dF1FWITyHEmspLIQsyu68sPaIJSeDNuIpfR74uBq0C9wI7CRbbx2qrM3DiwKREtBe4LgqpyPCbypc8kLi5rxylwgPABOAIcF5CvkIfHhVWHXMkr/9e7WgpRHYhK1deWWHwJ2BBa8h7EPY1qt8dcyS/2p5e5KtNw4RpqIsRHkGuMEfr/B7RJiXtiRTD1oS3ZrSPJY3MFcaBl22vizwvv/6Pa9s1Q7WODPl11LIybv0fony4F/K/tOWmLgt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UVORK5CYII="},e2Pt:function(t,s,e){t.exports=e.p+"static/img/diaBG.5949dd1.png"},wQkO:function(t,s,e){t.exports=e.p+"static/img/btn_kechegn.ded8a66.png"},z4Vk:function(t,s){},zH3V:function(t,s,e){"use strict";var i=e("nsZj"),n=(e.n(i),e("hW8u")),o=(e.n(n),e("7YDQ"));e.n(o)}});
\ No newline at end of file
webpackJsonp([8],{"+4G6":function(t,s,e){"use strict";var i=e("RfZZ"),n=e("AA6R"),o=e.n(n),a=e("o69Z"),r=e("rhik"),c=e("CsZI"),l=e("+2ln"),u=e("pIDD"),p=e("qYlo"),d=Object(a.h)("actionsheet"),h=d[0],_=d[1];function g(t,s,e,i){var n=s.title,a=s.cancelText,c=function(){Object(r.a)(i,"input",!1),Object(r.a)(i,"cancel")};return t(p.a,o()([{class:_(),attrs:{value:s.value,position:"bottom",overlay:s.overlay,lazyRender:s.lazyRender,getContainer:s.getContainer,closeOnClickOverlay:s.closeOnClickOverlay},on:{input:function(t){Object(r.a)(i,"input",t)}}},Object(r.b)(i)]),[n?t("div",{class:[_("header"),"van-hairline--top-bottom"]},[n,t(l.a,{attrs:{name:"close"},class:_("close"),on:{click:c}})]):s.actions.map(function(s,e){return t("div",{class:[_("item",{disabled:s.disabled||s.loading}),s.className,"van-hairline--top"],on:{click:function(t){t.stopPropagation(),s.disabled||s.loading||(s.callback&&s.callback(s),Object(r.a)(i,"select",s,e))}}},[s.loading?t(u.a,{class:_("loading"),attrs:{size:"20px"}}):[t("span",{class:_("name")},[s.name]),s.subname&&t("span",{class:_("subname")},[s.subname])]])}),e.default&&t("div",{class:_("content")},[e.default()]),a&&t("div",{class:_("cancel"),on:{click:c}},[a])])}g.props=Object(i.a)({},c.a.props,{title:String,actions:Array,cancelText:String,overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}}),s.a=h(g)},"+wl/":function(t,s,e){t.exports=e.p+"static/img/nextUnit.f575be1.png"},"064q":function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAALVBMVEVHcEzm5ubl5eXo6Ojl5eXn5+fk5OTk5OTn5+fm5ubm5ubu7u7p6ens7Ozi4uK0qOZPAAAAC3RSTlMA/u5GimDaGA14ujRrE5cAAAGMSURBVCjPlZK/S8NQEMeDNdZuPiviEIqKqEMJcVA3EcFVWnDu0k1Uiu4i4uImuHQSJ0cH1/CGVN0ug1U7+HJD+ge8v8G7JC/VZvKGUj65H9/v3bOs/8dWu8im3WGnACe13i3AM63XCvBAx3PjrOxq0esUWsYQjDe90gLC9TF4rx2A13GVMSD2L//AClVjBL+bljf3YidExJW7TMD54aOrOZECRO1of5v2oDliB0KFIQRCx7ptUZYWIgCqVpQaiJoeWqfMnIRJDCMAEPNWi6xARP2UkhKpAwRVy2YryKN9n2eRsIZltWgwFyvf51QM30iSzV5Q+kkQjjwWukO6lZ8F4kuivsTCMyrx3Us9bbDFFCqsZtZLS2B64rNnFtIEk4kf+ZaaVJ/Br9ElR/Azh08GSvzOoSsMlP188ZqgYu/kx5ypxFAqXqiMvPxqyYHSHTXy18FwcMJfInPQKYYDzz6GMFIPGZyg1zGgMrsOCIsZvIhFL2lVqQMs5I9rtpv+u6kHM2b6atdIvl6+pd8frsIfkLbTcagAAAAASUVORK5CYII="},"1Uto":function(t,s,e){t.exports=e.p+"static/img/mok4.4ffec77.png"},"3QU7":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("mvHQ"),n=e.n(i),o=(e("eqfM"),e("/QYm")),a=e("bOdI"),r=e.n(a),c=(e("zH3V"),e("+4G6")),l=e("CCn6"),u=e("QkSs"),p=e.n(u),d=e("064q"),h=e.n(d),_=e("e2Pt"),g=e.n(_),m=e("1Uto"),v=e.n(m),y=(e("v2ns"),e("7QTg")),f=e("2oJL"),A=e("3xxH"),C=e.n(A),L=e("+wl/"),w=e.n(L),I=e("wQkO"),b=e.n(I),k=e("C5QI"),S=e.n(k),D={name:"mapDefault",components:r()({swiper:y.swiper,swiperSlide:y.swiperSlide,bottomTab:f.a},c.a.name,c.a),data:function(){var t=this;return{zhong:S.a,actions:[],secActions:{},adVisible:!1,actionsheetShow:!1,star_act:p.a,star_def:h.a,shopType:this.$route.query.course_type,diaBGI:g.a,mok4:v.a,goodsID:"",themeName:"",course_id:"",push_time:"",course_name:"",nextUnitUrl:w.a,parent_category_id:this.$route.query.parent_category_id,unitList:[],more:!1,errorURL:C.a,popupVisible:!1,lessonList:[],lesson:"",classID:"",noLesson:!1,hpLessonList:[],thisLesson:null,btn_kechegn:b.a,swiperOption:{width:.25*window.innerWidth,on:{slideChangeTransitionStart:function(){this.activeIndex>=t.swiper.slides.length-4&&t.more&&t.swiper.slidePrev()},resize:function(){this.params.width=.25*window.innerWidth,this.update(!0)}},pagination:{el:".swiper-pagination"}},swiperOption2:{slidesPerView:5,navigation:{nextEl:".banner-right",prevEl:".banner-left"},on:{slideChangeTransitionStart:function(){this.activeIndex==t.swiper2.slides.length-5&&t.more&&t.swiper2.slidePrev()}},pagination:{el:".swiper-pagination"}},swiperOptionLesson:{slidesPerView:"auto",spaceBetween:20},userCourse:{},teacher_alias:!1,teacher_qr:""}},created:function(){this.initPage()},filters:{substr10:function(t){return t.substr(0,10)}},computed:{swiper:function(){return 0==this.shopType?this.$refs.mySwiper.swiper:""},swiper2:function(){return 0==this.shopType?this.$refs.mySwiper2.swiper:""},swiperLesson:function(){return this.$refs.mySwiperLesson.swiper},splitContent:function(){var t=[];return this.thisLesson.content.tips.title1_content&&(t=this.thisLesson.content.tips.title1_content.split("\n")),t}},methods:{initPage:function(){var t=this;sessionStorage.setItem("frist",!0),o.a.loading({mask:!0,message:""}),this.$route.query.periods_id?Object(l.n)(this.$route.query.periods_id).then(function(s){localStorage.setItem("userCourse",""),t.userCourse=t.$common.deepCopy(s),localStorage.setItem("userCourse",n()(s)),t.setCourse()}):localStorage.getItem("userCourse")?(this.userCourse=JSON.parse(localStorage.getItem("userCourse")),this.setCourse()):Object(l.n)().then(function(s){localStorage.setItem("userCourse",""),t.userCourse=t.$common.deepCopy(s),localStorage.setItem("userCourse",n()(s)),t.setCourse()}),this.userCourse.teacher_alias&&1==this.userCourse.teacher_alias.substr(0,1)&&(this.teacher_alias=!0,this.teacher_qr=this.userCourse.teacher_qr)},adControl:function(){if(-1==document.cookie.indexOf("myad=1")){var t=new Date;t.setHours(t.getHours()+24),document.cookie="myad=1;expires="+t.toGMTString(),this.adVisible=!0}},onSelect:function(t){var s=this;this.actionsheetShow=!1,this.shopType=t.course_type,"x"==t.id?this.$router.replace({name:"secMap",query:{}}):(this.secActions=t,this.shopType=t.course_type,this.actions.forEach(function(t){t.className="",t.id==s.secActions.id&&(t.className="activit")}),t.is_start_course?0==this.secActions.course_type?this.getUnitList():this.getLessonList():(this.userCourse=t,this.unitList=[],this.lessonList=[],document.documentElement.scrollTop=0,document.body.scrollTop=0))},findUnit:function(t){return this.unitList.find(function(s){return s.category_id==t})},dateParse:function(t){var s;return s=t.indexOf("-")>-1?t.split("-"):t.indexOf("/")>-1?t.split("/"):t.split("."),new Date(s[0],s[1]-1,s[2])},dateCompare:function(t){var s=(new Date).getTime(),e=t.getTime();return e>s?1:e==s?0:-1},goDetail:function(){if(this.$sa.track("StartCourse",{elementID:this.thisLesson.id.toString(),dayModule:this.thisLesson.domTitle.slice(0,9),weekName:this.thisLesson.domTitle.slice(10,this.thisLesson.domTitle.length),elementName:this.thisLesson.domTitle.slice(0,9)+"-"+this.thisLesson.domTitle.slice(10,this.thisLesson.domTitle.length),themeID:this.parent_category_id,themeName:this.themeName,goodsID:this.goodsID,classID:this.classID,is_view_today:!!(new Date).setHours(0,0,0,0)===new Date(this.push_time).setHours(0,0,0,0)}),this.thisLesson.content.tips){var t={periods_id:this.secActions.id,category_id:this.thisLesson.categoryId,elementId:this.thisLesson.id,course_type:this.shopType,parent_category_id:this.parent_category_id},s=JSON.parse(n()(this.thisLesson));s.push_time=this.push_time,s.themeID=this.parent_category_id,s.themeName=this.themeName,s.goodsID=this.goodsID,s.classID=this.classID,s.nowTime=Date.parse(new Date),s.course_title=this.secActions.course_title,localStorage.setItem("lessonDetail",n()(s)),this.$router.push({name:"newLesson",query:t})}else{var e={periods_id:this.secActions.id,category_id:this.thisLesson.categoryId,parent_category_id:this.parent_category_id,element_id:this.thisLesson.id,course_type:this.shopType,type:"1"};this.$router.push({name:"lesson",query:e})}},changeCateGory:function(t,s,e){e==this.swiper.activeIndex&&0!=this.swiper.activeIndex?this.swiper.slideTo(this.swiper.activeIndex-1,800,!1):e>this.swiper.activeIndex+2&&e!=this.unitList.length-1&&this.swiper.slideTo(this.swiper.activeIndex+1,800,!1),this.themeName=t.category_name.toString(),this.$sa.track("selectCategory",{themeID:t.category_id.toString(),themeName:t.category_name.toString(),courseID:this.course_id.toString(),goodsID:this.goodsID,classID:this.classID}),s||(this.parent_category_id=t.category_id,this.$router.push({name:"map",query:{periods_id:this.secActions.id,course_type:this.shopType,parent_category_id:this.parent_category_id}}),this.getLessonList(!0))},showDia:function(t,s){var e=this;"0000-00-00"!==t.push_time?Object(l.v)(this.secActions.id,t.id,t.ele_id).then(function(i){i.content=JSON.parse(i.content),e.thisLesson=i,e.thisLesson.id=t.ele_id.toString(),e.thisLesson.categoryId=t.id,e.thisLesson.domTitle=t.name,e.thisLesson.day=s,e.thisLesson.star_num=t.star_num;var o={periods_id:e.secActions.id,category_id:e.thisLesson.categoryId,elementId:e.thisLesson.id,course_type:e.shopType,parent_category_id:e.parent_category_id};e.$store.dispatch("setClassQuery",o),sessionStorage.setItem("classQuery",n()(o)),e.popupVisible=!0,e.push_time=t.push_time,e.$sa.track("selectElement",{elementID:t.ele_id.toString(),dayModule:t.name.slice(0,9),weekName:t.name.slice(10,t.name.length),elementName:t.name.slice(0,9)+"-"+t.name.slice(10,t.name.length),themeID:e.parent_category_id.toString(),themeName:e.parent_category_id.toString(),goodsID:e.goodsID,classID:e.classID,courseID:e.course_id.toString()})}):Object(o.a)("课程还未开始哦")},getUnitList:function(){var t=this;Object(l.o)(this.secActions.id).then(function(s){t.unitList=[],s.forEach(function(s){1!==s.status&&2!==s.status||(t.unitList.push(s),2===s.status&&(t.parent_category_id=s.category_id))}),t.$route.query.parent_category_id&&1!=s.length&&(t.parent_category_id=t.$route.query.parent_category_id),t.getLessonList(),s.find(function(t){return 0===t.status})&&(t.more=!0),t.$nextTick(function(){var s=null,e=null;t.unitList.forEach(function(i,n){i.category_id==t.parent_category_id&&(setTimeout(function(){t.themeName=i.category_name,t.$sa.track("selectCategory",{themeID:i.category_id.toString(),themeName:i.category_name.toString(),courseID:t.course_id.toString(),goodsID:t.goodsID,classID:t.classID})},1e3),s=n>=3?n-3:0,e=n>=4?n-4:0)}),t.$refs.mySwiper.swiper.slideTo(s,800,!1),t.$refs.mySwiper2.swiper.slideTo(e,800,!1)})})},getLessonList:function(t){var s=this;Object(l.w)(this.secActions.id+"/v2",{category_id:this.parent_category_id}).then(function(e){s.course_id!==e.periods_info.course_id&&(s.course_id=e.periods_info.course_id,s.course_name=e.periods_info.title,s.goodsID=e.periods_info.goods_id,s.classID=e.periods_info.class_id,s.$sa.track("EnterCourse",{goodsID:e.periods_info.goods_id,classID:e.periods_info.class_id})),s.lessonList=[],s.hpLessonList=[],s.noLesson=!!e.list.length<1;for(var i=[],n=0,o=0;o<e.list.length;o++)"0000-00-00"!==e.list[o].push_time&&n++,e.list[o].name.indexOf("Day1")>-1&&i.length>0?(s.lessonList.push(i),(i=[]).push(e.list[o])):(i.push(e.list[o]),o==e.list.length-1&&s.lessonList.push(i)),e.list[o].dayText="DAY "+i.length,s.hpLessonList.push(e.list[o]);t?(s.scroll_to(0),s.swiperLesson.slideTo(0)):s.$nextTick(function(){if(n!==s.hpLessonList.length?s.swiperLesson.slideTo(n-1):s.$route.query.category_id,s.$route.query.category_id){var t=document.getElementsByClassName("cid"+s.$route.query.category_id);if(t.length>0&&"none"!==t[0].style.display){s.scroll_to(t[0].offsetTop);var e=null,i=0;s.lessonList.forEach(function(t){t.forEach(function(t,n){t.id==s.$route.query.category_id&&(e=t,i=n+1)})}),s.showDia(e,i)}}else s.$route.query.back_id?setTimeout(function(){var t=document.getElementsByClassName("cid"+s.$route.query.back_id);t.length>0&&"none"!==t[0].style.display&&s.scroll_to(t[0].offsetTop)},300):setTimeout(function(){var t=document.getElementsByClassName("money");t.length>0&&0!==t[0].offsetLeft&&s.scroll_to(t[0].offsetParent.offsetTop)},300)})})},scroll_to:function(t){for(var s=t-200,e=function(t){var e=document.documentElement.scrollTop|document.body.scrollTop,i=e-s;setTimeout(function(){document.documentElement.scrollTop=e-i/30*t,document.body.scrollTop=e-i/30*t},10*t)},i=0;i<30;i++)e(i)},setCourse:function(){var t=this;if(this.userCourse.automation_id&&this.userCourse.automation_id.length>0){var s={name:"VIP高效体验营",id:"x"};this.actions.push(s),o.a.clear()}this.userCourse.periods_list?(this.userCourse.periods_list.forEach(function(s){s.name=s.course_title,t.actions.push(s),t.$route.query.item?t.secActions=t.$route.query.item:null!=t.userCourse.start_periods_id&&0==t.userCourse.start_periods_id?t.secActions=t.userCourse.periods_list[0]:null!=t.userCourse.start_periods_id&&s.id==t.userCourse.start_periods_id&&(t.secActions=s)}),o.a.clear()):this.$router.replace({name:"secMap",query:{}}),this.actions.forEach(function(s){s.className="",s.id==t.secActions.id&&(s.className="activit")}),this.shopType=this.secActions.course_type,this.secActions.is_start_course&&(0==this.secActions.course_type?this.getUnitList():this.getLessonList())},timerClick:function(){alert(999)}}},x={render:function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("van-actionsheet",{attrs:{actions:t.actions},on:{select:t.onSelect},model:{value:t.actionsheetShow,callback:function(s){t.actionsheetShow=s},expression:"actionsheetShow"}}),t._v(" "),e("div",{staticClass:"unit-block"},[e("div",{staticClass:"course_title",on:{click:function(s){t.actionsheetShow=!0}}},[t._v(t._s(t.secActions.name)+" "),e("i",{staticClass:"iconfont icon-below-s"})]),t._v(" "),0==t.shopType&&t.unitList.length>0?e("swiper",{ref:"mySwiper",staticClass:"banner",attrs:{options:t.swiperOption}},[t._l(t.unitList,function(s,i){return e("swiper-slide",{key:i},[e("div",{staticClass:"line"}),t._v(" "),e("div",{class:{"unit-li":!0,active:s.category_id==t.parent_category_id},on:{click:function(e){t.changeCateGory(s,s.category_id==t.parent_category_id,i)}}},[e("div",[e("img",{attrs:{src:s.category_cover}})]),t._v("\n "+t._s(s.category_name)+"\n ")])])}),t._v(" "),t.more?e("swiper-slide",[e("div",{staticClass:"line"}),t._v(" "),e("div",{staticClass:"unit-li"},[e("div",[e("img",{attrs:{src:t.nextUnitUrl}})]),t._v(" "),e("span",{staticStyle:{color:"#cccccc"}},[t._v("敬请期待")])])]):t._e(),t._v(" "),t._l(3-t.unitList.length>0?3-t.unitList.length:0,function(t){return e("swiper-slide",{key:10*t},[e("div",{staticClass:"unit-li"},[e("div")])])})],2):t._e(),t._v(" "),0==t.shopType?e("swiper",{ref:"mySwiper2",staticClass:"banner2",attrs:{options:t.swiperOption2}},[t._l(t.unitList,function(s,i){return e("swiper-slide",{key:i},[e("div",{staticClass:"line"}),t._v(" "),e("div",{class:{"unit-li":!0,active:s.category_id==t.parent_category_id},on:{click:function(e){t.changeCateGory(s,s.category_id==t.parent_category_id)}}},[e("img",{attrs:{src:s.category_cover}}),t._v(" "),e("div",[t._v(t._s(s.category_name))])])])}),t._v(" "),t.more?e("swiper-slide",[e("div",{staticClass:"line"}),t._v(" "),e("div",{staticClass:"unit-li"},[e("div",[e("img",{attrs:{src:t.nextUnitUrl}})]),t._v(" "),e("span",{staticStyle:{color:"#cccccc"}},[t._v("敬请期待")])])]):t._e(),t._v(" "),t._l(6-t.unitList.length>0?6-t.unitList.length:0,function(t){return e("swiper-slide",{key:10*t},[e("div",{staticClass:"unit-li"},[e("div")])])})],2):t._e()],1),t._v(" "),t.secActions.is_start_course?e("div",{class:{"lesson-block":0==t.shopType,"lesson-block nounit":1==t.shopType}},[t.noLesson?e("div",{staticClass:"noLesson"},[e("img",{attrs:{src:t.errorURL}}),t._v(" "),e("div",[t._v("\n 暂无课程\n ")])]):t._e(),t._v(" "),t._l(t.lessonList,function(s,i){return e("div",{staticClass:"card-block"},[e("img",{attrs:{src:s[0].cover+"?imageslim"}}),t._v(" "),t._l(s,function(n,o){return e("div",{class:"card-li cid"+n.id,on:{click:function(s){t.showDia(n,o+1)}}},[e("div",{staticClass:"text-block"},[e("div",{staticClass:"title"},[t._v("\n "+t._s(t._f("substr10")(n.name))+"\n ")]),t._v(" "),e("div",{staticClass:"tips"},["0000-00-00"!==n.push_time?e("span",[t._v(" 开课时间:"+t._s(n.push_time))]):t._e(),t._v(" "),"0000-00-00"===n.push_time?e("span",[t._v("课程还未开始哦")]):t._e()])]),t._v(" "),"0000-00-00"!==n.push_time?e("div",{staticClass:"star-block"},[t._l(n.star_num,function(s){return e("img",{staticClass:"star-img",attrs:{src:t.star_act}})}),t._v(" "),t._l(3-n.star_num,function(s){return e("img",{staticClass:"star-img",attrs:{src:t.star_def}})})],2):t._e(),t._v(" "),e("div",{staticClass:"icon-block"},[e("i",{class:{map:!0,right:i!==n.length-1&&"0000-00-00"!==n.push_time,money:"0000-00-00"!==n.push_time&&(s[o+1]&&"0000-00-00"===s[o+1].push_time||o===s.length-1&&t.lessonList[i+1]&&"0000-00-00"===t.lessonList[i+1][0].push_time||(0==t.shopType&&t.findUnit(t.parent_category_id)&&2===t.findUnit(t.parent_category_id).status||1==t.shopType)&&o===s.length-1&&i==t.lessonList.length-1),clock:"0000-00-00"===n.push_time}})])])})],2)})],2):t._e(),t._v(" "),t.lessonList.length>0?e("div",{staticClass:"lesson-block-hp"},[e("swiper",{ref:"mySwiperLesson",staticClass:"lesson-sw",attrs:{options:t.swiperOptionLesson}},t._l(t.hpLessonList,function(s,i){return e("swiper-slide",{key:i,staticStyle:{width:"50vh"}},[e("div",{staticClass:"lesson-content-hp",on:{click:function(e){t.showDia(s)}}},["0000-00-00"===s.push_time?e("div",{staticClass:"clock-hp"},[t._v("\n 等待开课\n ")]):t._e(),t._v(" "),e("div",{staticClass:"lesson-day-hp"},[t._v(t._s(s.dayText))]),t._v(" "),e("div",{staticClass:"lesson-img-hp"},[e("img",{attrs:{src:s.cover}})]),t._v(" "),e("div",{staticClass:"lesson-name-hp"},[t._v("\n "+t._s(s.sub_title)+"\n ")]),t._v(" "),e("div",{staticClass:"star-block"},[t._l(s.star_num,function(s){return e("img",{staticClass:"star-img",attrs:{src:t.star_act}})}),t._v(" "),t._l(3-s.star_num,function(s){return e("img",{staticClass:"star-img",attrs:{src:t.star_def}})})],2),t._v(" "),"0000-00-00"!==s.push_time&&(t.hpLessonList[i+1]&&"0000-00-00"===t.hpLessonList[i+1].push_time||(0==t.shopType&&t.findUnit(t.parent_category_id)&&2===t.findUnit(t.parent_category_id).status||1==t.shopType)&&i===t.hpLessonList.length-1)?e("i",{staticClass:"map money"}):t._e()])])}))],1):t._e(),t._v(" "),t.secActions.is_start_course||t.teacher_alias?t._e():e("div",{staticClass:"unStart"},[e("img",{attrs:{src:t.mok4,alt:""}}),t._v(" "),e("p",[t._v("您的课程尚未开始")]),t._v(" "),e("div",[t._v("课程开始时间:"+t._s(t.secActions.start_at))])]),t._v(" "),!t.secActions.is_start_course&&t.teacher_alias?e("div",{staticClass:"unStartTeacher"},[e("p",[t._v("您的课程尚未开始")]),t._v(" "),e("div",{staticClass:"container"},[e("img",{attrs:{src:t.teacher_qr,alt:""}}),t._v(" "),e("p",[t._v("请扫码添加班主任")]),t._v(" "),e("p",[t._v("以便及时获取课程相关服务")])]),t._v(" "),e("div",{staticClass:"date"},[t._v("课程开始时间:"+t._s(t.secActions.start_at))])]):t._e(),t._v(" "),e("van-popup",{model:{value:t.popupVisible,callback:function(s){t.popupVisible=s},expression:"popupVisible"}},[t.thisLesson?e("div",{staticClass:"popup-block"},[e("i",{staticClass:"map close",on:{click:function(s){t.popupVisible=!1}}}),t._v(" "),e("div",{staticClass:"header",style:{backgroundImage:"url("+t.diaBGI+")"}},[e("div",{staticClass:"title"},[t._v("\n "+t._s(t.thisLesson.title)+"\n ")]),t._v(" "),t.thisLesson.content.tips?e("div",{staticClass:"tips"},[t._v("\n "+t._s(t.thisLesson.content.tips.content)+"\n ")]):t._e(),t._v(" "),t.thisLesson.content.tips?t._e():e("div",{staticClass:"tips"},[t._v("\n DAY "+t._s(t.thisLesson.day)+"\n ")])]),t._v(" "),t.thisLesson.content.tips?e("div",{staticClass:"content"},[e("div",{staticClass:"tips-title"},[t._v(t._s(t.thisLesson.content.tips.title1))]),t._v(" "),e("div",{staticClass:"title-content"},[e("ul",t._l(t.splitContent,function(s){return e("li",{staticStyle:{"text-align":"center"}},[t._v(t._s(s))])}))]),t._v(" "),e("div",{staticClass:"tips-title"},[t._v(t._s(t.thisLesson.content.tips.title2))]),t._v(" "),e("div",{staticClass:"title-content"},[t._v(t._s(t.thisLesson.content.tips.title2_content))])]):t._e(),t._v(" "),t.thisLesson.content.tips?t._e():e("div",{staticClass:"content"},[e("div",{staticStyle:{color:"#cccccc",padding:"21.3333vw 0","font-size":"5.3333vw"}},[t._v("快去开始课程吧!")])]),t._v(" "),e("div",[e("i",{staticClass:"goLesson",on:{click:function(s){t.goDetail()}}},[e("img",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.btn_kechegn,alt:""}})])])]):t._e()]),t._v(" "),e("bottom-tab")],1)},staticRenderFns:[]};var T=e("VU/8")(D,x,!1,function(t){e("O78b")},"data-v-744dff4e",null);s.default=T.exports},"7YDQ":function(t,s){},C5QI:function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAFgElEQVRYR72ZW6hUVRjHf9/MdDS1zCCpHiwIijIjECWj45nxEhFJmbnHS96CtCR9qV4sjIR8qacUU4NMy8vso6koEWHOHo2MTChEwUIqHyoM0uxonuPMfLH22XvOnvttH/fbzF7rW7/97e/y32sJFa74Fh0qI9iqyuMRZfnhpOysNC7s/6akdG5e2CDCl9rDImeJXC1dQ0r/MLAMZy/KE+49wXEsSdSCG39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6n2cgVgHEB2cDO5TH90asq6FZntRr24omxEnnns+EaNc6oUy1EOHTuMpYDn/H4I+tYjQhnNs2ooE5aDmHERScs/WbFPtyod7GNC+wHZCcWdiACHa/c9WmftCFHw9KtNsT+mx27CaAxTFILznXzFi7uVhrb7fbOHbd1BfPkXuph6Hvp24cb0dGrPjyKskuEXav8O2Vk6MkwiBh5ehokAPi2mMoGB+hEuGxtqMjtlJGsODPkp4C66YiglceSqL0maYsgjUPEqjDcO3r6HgfM3fDdHSCz16/wzRAbZQyvc8w6PxD0y7AMGZw0br81DRkVWplDK+o9H7A3pvmDFmW5xlSOIaQ97apXxaZ+8tdgRp8Vn9o2ihzTUN3lfEyhsxU6csgKsMiiHuso/dawlu47vdfuec6yFvvxuoAAAAASUVORK5CYII="},e2Pt:function(t,s,e){t.exports=e.p+"static/img/diaBG.5949dd1.png"},wQkO:function(t,s,e){t.exports=e.p+"static/img/btn_kechegn.ded8a66.png"},zH3V:function(t,s,e){"use strict";var i=e("nsZj"),n=(e.n(i),e("hW8u")),o=(e.n(n),e("7YDQ"));e.n(o)}});
\ No newline at end of file
!function(e){var f=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var t,r,o,i=0,u=[];i<c.length;i++)r=c[i],a[r]&&u.push(a[r][0]),a[r]=0;for(t in b)Object.prototype.hasOwnProperty.call(b,t)&&(e[t]=b[t]);for(f&&f(c,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var c={},a={67:0};function d(f){if(c[f])return c[f].exports;var a=c[f]={i:f,l:!1,exports:{}};return e[f].call(a.exports,a,a.exports,d),a.l=!0,a.exports}d.e=function(e){var f=a[e];if(0===f)return new Promise(function(e){e()});if(f)return f[2];var c=new Promise(function(c,d){f=a[e]=[c,d]});f[2]=c;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,n.crossOrigin="anonymous",d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+({0:"vendor-async"}[e]||e)+"."+{0:"2cf78967c15837d37c06",1:"99f792ae95272154cd80",2:"f3369ffa57da8d552b67",3:"0629794b0172f14f6cfe",4:"f03d8fe558c554582ec8",5:"e710e8324d5b207be331",6:"57410b457fe9f8549be1",7:"0530d20d7374ed5ef1ef",8:"32c2eb77f1f081a38eca",9:"bee96636124c04562c9e",10:"1c44a36e05524ee6a852",11:"55fd365c64fe555055eb",12:"c6e33a5ba0a1520d6758",13:"b3b5cef86421cba5b641",14:"7e1f6ecd8342458ab429",15:"d206c28dee245623f7f7",16:"fbaedcbb21fbf724edef",17:"862530af8dbcf0a3c3f1",18:"68838b129cf486c1e9d9",19:"b232125e7a88f8f4f76d",20:"bd513aa943ad6f278331",21:"1f83df6e085751e08295",22:"27d399cfcbd640df9b75",23:"3480ef1f360dc2f7941f",24:"549eeb0a889318a34e89",25:"2bebd0e79e8e66ca2dae",26:"1f744303f79d0549c35b",27:"a178f9849fed9e7f8e1c",28:"48b6bc9dba7bb171010d",29:"ccbcaaec2bf7df332b44",30:"dba3f74aedda2f6dd28c",31:"3b66afcace21f6c968b8",32:"16a9567f21831da43115",33:"3c091921da3d45c6048b",34:"d33f9404dc20881ef3f2",35:"f86979710a6f6cb2b435",36:"258bf2fe98b788b802b1",37:"72e06b2dd8fd2c92330b",38:"da4b5c6da73963c92098",39:"886c3383b261524be947",40:"20de8eeb6f7076866a11",41:"3b59527515857f0c374e",42:"6dc1ab6343d2777a0ee8",43:"ee026bd8a841e657172b",44:"49625bd6a6ca8ec6e04c",45:"c4965532ac5d1958db1b",46:"db67d7da719531b56065",47:"b59bdec7b2facf009025",48:"9daa2e65ded04e44cf39",49:"a35a6c6f03fb3bdcfcca",50:"2f86e015554ad09a36f7",51:"52ed313a1b5728839249",52:"80b344889e2a9af8bb32",53:"a16b5479d7d7b90f3ff5",54:"73e8e061f944e012131d",55:"eee5e26f247074851331",56:"6836e2b8d913a5daa32b",57:"c9895d4f61a09c5a2000",58:"ce918692287232f2e076",59:"8495f768dcf2bb0a1607",60:"ce09b26619bc60b5a776",61:"2095d18dc6c1f518a8c3",62:"f8ed8742b78575b29897",63:"369d180f6feb74e46ff6",64:"642dec71eb8f05963912"}[e]+".js";var t=setTimeout(r,12e4);function r(){n.onerror=n.onload=null,clearTimeout(t);var f=a[e];0!==f&&(f&&f[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return n.onerror=n.onload=r,b.appendChild(n),c},d.m=e,d.c=c,d.d=function(e,f,c){d.o(e,f)||Object.defineProperty(e,f,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var f=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(f,"a",f),f},d.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)},d.p="https://static-cdn.changchangenglish.com/new-sing/",d.oe=function(e){throw e}}([]);
\ No newline at end of file
!function(e){var f=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var t,r,o,i=0,u=[];i<c.length;i++)r=c[i],a[r]&&u.push(a[r][0]),a[r]=0;for(t in b)Object.prototype.hasOwnProperty.call(b,t)&&(e[t]=b[t]);for(f&&f(c,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var c={},a={67:0};function d(f){if(c[f])return c[f].exports;var a=c[f]={i:f,l:!1,exports:{}};return e[f].call(a.exports,a,a.exports,d),a.l=!0,a.exports}d.e=function(e){var f=a[e];if(0===f)return new Promise(function(e){e()});if(f)return f[2];var c=new Promise(function(c,d){f=a[e]=[c,d]});f[2]=c;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,n.crossOrigin="anonymous",d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+({0:"vendor-async"}[e]||e)+"."+{0:"2cf78967c15837d37c06",1:"99f792ae95272154cd80",2:"f3369ffa57da8d552b67",3:"0629794b0172f14f6cfe",4:"f03d8fe558c554582ec8",5:"e710e8324d5b207be331",6:"57410b457fe9f8549be1",7:"0530d20d7374ed5ef1ef",8:"71a94d20e3d16e1d3f44",9:"bee96636124c04562c9e",10:"1c44a36e05524ee6a852",11:"55fd365c64fe555055eb",12:"c6e33a5ba0a1520d6758",13:"b3b5cef86421cba5b641",14:"7e1f6ecd8342458ab429",15:"d206c28dee245623f7f7",16:"fbaedcbb21fbf724edef",17:"862530af8dbcf0a3c3f1",18:"68838b129cf486c1e9d9",19:"b232125e7a88f8f4f76d",20:"bd513aa943ad6f278331",21:"1f83df6e085751e08295",22:"27d399cfcbd640df9b75",23:"3480ef1f360dc2f7941f",24:"549eeb0a889318a34e89",25:"2bebd0e79e8e66ca2dae",26:"1f744303f79d0549c35b",27:"a178f9849fed9e7f8e1c",28:"48b6bc9dba7bb171010d",29:"ccbcaaec2bf7df332b44",30:"dba3f74aedda2f6dd28c",31:"3b66afcace21f6c968b8",32:"16a9567f21831da43115",33:"3c091921da3d45c6048b",34:"d33f9404dc20881ef3f2",35:"f86979710a6f6cb2b435",36:"258bf2fe98b788b802b1",37:"72e06b2dd8fd2c92330b",38:"da4b5c6da73963c92098",39:"886c3383b261524be947",40:"20de8eeb6f7076866a11",41:"3b59527515857f0c374e",42:"6dc1ab6343d2777a0ee8",43:"ee026bd8a841e657172b",44:"49625bd6a6ca8ec6e04c",45:"c4965532ac5d1958db1b",46:"db67d7da719531b56065",47:"b59bdec7b2facf009025",48:"9daa2e65ded04e44cf39",49:"a35a6c6f03fb3bdcfcca",50:"2f86e015554ad09a36f7",51:"52ed313a1b5728839249",52:"80b344889e2a9af8bb32",53:"a16b5479d7d7b90f3ff5",54:"73e8e061f944e012131d",55:"eee5e26f247074851331",56:"6836e2b8d913a5daa32b",57:"c9895d4f61a09c5a2000",58:"ce918692287232f2e076",59:"8495f768dcf2bb0a1607",60:"ce09b26619bc60b5a776",61:"2095d18dc6c1f518a8c3",62:"f8ed8742b78575b29897",63:"369d180f6feb74e46ff6",64:"642dec71eb8f05963912"}[e]+".js";var t=setTimeout(r,12e4);function r(){n.onerror=n.onload=null,clearTimeout(t);var f=a[e];0!==f&&(f&&f[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return n.onerror=n.onload=r,b.appendChild(n),c},d.m=e,d.c=c,d.d=function(e,f,c){d.o(e,f)||Object.defineProperty(e,f,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var f=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(f,"a",f),f},d.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)},d.p="https://static-cdn.changchangenglish.com/new-sing/",d.oe=function(e){throw e}}([]);
\ No newline at end of file
<template>
<div>
<van-actionsheet
v-model="actionsheetShow"
:actions="actions"
@select="onSelect"
/>
v-model="actionsheetShow"
:actions="actions"
@select="onSelect"
/>
<div class="unit-block">
<div class="course_title" @click="actionsheetShow=true">{{secActions.name}} <i class="iconfont icon-below-s"></i></div>
<!--竖屏 主题栏-->
......@@ -27,12 +27,12 @@
<span style="color: #cccccc">敬请期待</span>
</div>
</swiper-slide>
<swiper-slide v-for="a in 3-unitList.length > 0 ? 3-unitList.length : 0" :key="a*10">
<div class="unit-li">
<div>
</div>
<swiper-slide v-for="a in 3-unitList.length > 0 ? 3-unitList.length : 0" :key="a*10">
<div class="unit-li">
<div>
</div>
</swiper-slide>
</div>
</swiper-slide>
</swiper>
<!--横屏主题栏-->
<!-- <div class="btn-conntent banner-left" v-if="shopType==0&&unitList.length>0">
......@@ -105,23 +105,23 @@
<!--横屏 课程-->
<div class="lesson-block-hp" v-if="lessonList.length>0">
<swiper :options="swiperOptionLesson" class="lesson-sw" ref="mySwiperLesson">
<swiper-slide v-for="(item,x) in hpLessonList" :key="x" style="width: 50vh">
<div class="lesson-content-hp" @click="showDia(item)">
<div class="clock-hp" v-if="item.push_time === '0000-00-00'">
等待开课
</div>
<div class="lesson-day-hp">{{item.dayText}}</div>
<div class="lesson-img-hp"><img :src="item.cover"></div>
<div class="lesson-name-hp">
{{item.sub_title}}
</div>
<div class="star-block">
<img class="star-img" :src="star_act" v-for="s in item.star_num">
<img class="star-img" :src="star_def" v-for="s in 3-item.star_num">
</div>
<i class="map money" v-if="item.push_time !== '0000-00-00' && ((hpLessonList[x+1] && hpLessonList[x+1].push_time === '0000-00-00' || (shopType == 0 && findUnit(parent_category_id) && findUnit(parent_category_id).status === 2 || shopType ==1 ) && x===hpLessonList.length-1 ))"></i>
<swiper-slide v-for="(item,x) in hpLessonList" :key="x" style="width: 50vh">
<div class="lesson-content-hp" @click="showDia(item)">
<div class="clock-hp" v-if="item.push_time === '0000-00-00'">
等待开课
</div>
<div class="lesson-day-hp">{{item.dayText}}</div>
<div class="lesson-img-hp"><img :src="item.cover"></div>
<div class="lesson-name-hp">
{{item.sub_title}}
</div>
</swiper-slide>
<div class="star-block">
<img class="star-img" :src="star_act" v-for="s in item.star_num">
<img class="star-img" :src="star_def" v-for="s in 3-item.star_num">
</div>
<i class="map money" v-if="item.push_time !== '0000-00-00' && ((hpLessonList[x+1] && hpLessonList[x+1].push_time === '0000-00-00' || (shopType == 0 && findUnit(parent_category_id) && findUnit(parent_category_id).status === 2 || shopType ==1 ) && x===hpLessonList.length-1 ))"></i>
</div>
</swiper-slide>
</swiper>
</div>
<div class="unStart" v-if="!secActions.is_start_course&&!teacher_alias">
......@@ -227,7 +227,7 @@
course_name:'',
nextUnitUrl:nextUnitUrl,
// periods_id:this.$route.query.periods_id,
parent_category_id: this.$route.query.parent_category_id,
parent_category_id:this.$route.query.parent_category_id,
unitList:[],
more:false,
errorURL:errorURL,
......@@ -306,7 +306,7 @@
}
},
swiperLesson() {
return this.$refs.mySwiperLesson.swiper
return this.$refs.mySwiperLesson.swiper
},
splitContent(){
let arr = [];
......@@ -322,10 +322,10 @@
// this.getLessonList();
// this.adControl()
sessionStorage.setItem('frist',true)
/*Toast.loading({
Toast.loading({
mask: true,
message: ''
});*/
});
if(this.$route.query.periods_id){
// 从微信推送进入
getCourseInfoApi(this.$route.query.periods_id).then(res =>{
......@@ -334,11 +334,11 @@
this.userCourse = this.$common.deepCopy(res)
localStorage.setItem('userCourse',JSON.stringify(res));
this.setCourse()
})
})
}else{
if(localStorage.getItem("userCourse")){
this.userCourse = JSON.parse(localStorage.getItem("userCourse"));
this.setCourse()
this.userCourse = JSON.parse(localStorage.getItem("userCourse"));
this.setCourse()
}else{
getCourseInfoApi().then(res =>{
localStorage.setItem('userCourse','');
......@@ -365,7 +365,7 @@
this.actionsheetShow = false
this.shopType = item.course_type
if(item.id=='x'){
this.$router.replace({
this.$router.replace({
name: "secMap",
query: {
}
......@@ -383,7 +383,7 @@
})
if(item.is_start_course){
if (this.secActions.course_type == 0){
this.getUnitList()
this.getUnitList()
}else{
this.getLessonList();
}
......@@ -495,9 +495,7 @@
},
// 显示课程弹窗
showDia(data,i){
alert(111)
if(data.push_time !== '0000-00-00'){
alert(222)
getLessonDetailApi(this.secActions.id,data.id,data.ele_id).then(res=>{
res.content = JSON.parse(res.content);
this.thisLesson = res;
......@@ -624,17 +622,17 @@
if(res.list[i].push_time !== '0000-00-00'){
x++
}
if(res.list[i].name.indexOf('Day1')>-1 && list.length > 0){
this.lessonList.push(list);
list = [];
list.push(res.list[i]);
}else{
list.push(res.list[i]);
if(i==res.list.length-1){
this.lessonList.push(list);
}
}
res.list[i].dayText = 'DAY '+list.length;
if(res.list[i].name.indexOf('Day1')>-1 && list.length > 0){
this.lessonList.push(list);
list = [];
list.push(res.list[i]);
}else{
list.push(res.list[i]);
if(i==res.list.length-1){
this.lessonList.push(list);
}
}
res.list[i].dayText = 'DAY '+list.length;
this.hpLessonList.push(res.list[i])
}
if(!data){
......@@ -645,21 +643,21 @@
}else if(this.$route.query.category_id){
}
if(this.$route.query.category_id){
let dom = document.getElementsByClassName('cid'+this.$route.query.category_id);
if(dom.length>0 && dom[0].style.display !== 'none'){
this.scroll_to(dom[0].offsetTop);
let data = null ;
let index = 0;
this.lessonList.forEach(i=>{
i.forEach((x,i)=>{
if(x.id == this.$route.query.category_id){
data = x;
index = i+1
}
})
});
this.showDia(data,index)
}
let dom = document.getElementsByClassName('cid'+this.$route.query.category_id);
if(dom.length>0 && dom[0].style.display !== 'none'){
this.scroll_to(dom[0].offsetTop);
let data = null ;
let index = 0;
this.lessonList.forEach(i=>{
i.forEach((x,i)=>{
if(x.id == this.$route.query.category_id){
data = x;
index = i+1
}
})
});
this.showDia(data,index)
}
}else if(this.$route.query.back_id){
setTimeout(() => {
let dom = document.getElementsByClassName('cid'+this.$route.query.back_id);
......@@ -708,16 +706,16 @@
if(this.userCourse.periods_list){
// 有其他课
// debugger
this.userCourse.periods_list.forEach(el =>{
this.userCourse.periods_list.forEach(el =>{
el.name = el.course_title
this.actions.push(el)
if(this.$route.query.item){
this.secActions = this.$route.query.item
}else{
if(this.userCourse.start_periods_id!=null&&this.userCourse.start_periods_id==0){
this.secActions = this.userCourse.periods_list[0]
this.secActions = this.userCourse.periods_list[0]
}else if(this.userCourse.start_periods_id!=null&&el.id==this.userCourse.start_periods_id){
this.secActions = el
this.secActions = el
}
}
})
......@@ -823,12 +821,12 @@
}
}
.shake{
-webkit-animation-name: swing;
-webkit-animation-duration: 0.8s;
-webkit-transform-origin:50% 50%;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
}
-webkit-animation-name: swing;
-webkit-animation-duration: 0.8s;
-webkit-transform-origin:50% 50%;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
}
.adSmall{width: 96*@toVw;height: 115*@toVw;position: fixed;top: 314*@toVw;left: 267*@toVw;background: red;}
// 主题列表
.noLesson{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment