(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages_course-learn"],{"0675":function(t,e,n){"use strict";n.r(e);var o=n("2edb"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},"2edb":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("d4b5"),n("aa77"),n("bf0f");var o=n("cae2"),i={data:function(){return{courseId:null,tabList:[{name:"详情"},{name:"课程目录"}],learnList:[],learncourse:{},type:null}},computed:{imgPath:function(){return this.$store.state.imgpath}},onLoad:function(t){t.courseId&&(console.log(t.courseId),this.courseId=t.courseId,1==t.type?this.getCourseList():this.getCourseListb())},mounted:function(){},methods:{goLive:function(t){console.log("id",t);t.videoId;var e={videoId:t.videoId,courseId:this.courseId};uni.navigateTo({url:"/pages_course/video?videoitem="+JSON.stringify(e)})},getCourseListb:function(){var t=this;(0,o.courseListB)().then((function(e){if(console.log("课程列表",e),200==e.code){var n=e.data.find((function(e){return e.courseId==t.courseId}));n&&n.fsUserCourseVideoList?(t.learncourse=n,t.learnList=n.fsUserCourseVideoList,console.log("learnList是多少》》",t.learnList),console.log("learnList是多少",t.learncourse)):(console.warn("未找到课程或视频列表"),t.learnList=[])}else uni.hideLoading(),uni.showToast({title:e.msg,icon:"none"})}))},getCourseList:function(){var t=this;(0,o.courseList)().then((function(e){if(console.log("课程列表",e),200==e.code){var n=e.data.find((function(e){return e.courseId==t.courseId}));n&&n.fsUserCourseVideoList?(t.learncourse=n,t.learnList=n.fsUserCourseVideoList,console.log("learnList是多少》》",t.learnList),console.log("learnList是多少",t.learncourse)):(console.warn("未找到课程或视频列表"),t.learnList=[])}else uni.hideLoading(),uni.showToast({title:e.msg,icon:"none"})}))}}};e.default=i},4118:function(t,e,n){"use strict";var o=n("5694"),i=n.n(o);i.a},5063:function(t,e,n){"use strict";n.r(e);var o=n("c810"),i=n("0675");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("4118");var a=n("828b"),s=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"64714c13",null,!1,o["a"],void 0);e["default"]=s.exports},5694:function(t,e,n){var o=n("fca4");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("967d").default;i("112a371d",o,!0,{sourceMap:!1,shadowMode:!1})},c810:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"containers"},[n("v-uni-view",{staticClass:"top"},[n("v-uni-image",{staticClass:"bg ",staticStyle:{height:"600rpx"},attrs:{src:t.learncourse.imgUrl,mode:"scaleToFill"}}),n("v-uni-view",{staticClass:"top-box"},[n("v-uni-view",{staticClass:"title"},[t._v(t._s(t.learncourse.courseName))]),n("v-uni-view",{staticClass:"txt"},[n("v-uni-image",{attrs:{src:t.imgPath+"/app/commonCourse/learn1.png"}}),n("v-uni-text",[t._v("共"+t._s(t.learnList.length)+"节课")])],1)],1)],1),n("v-uni-view",{staticClass:"container-body"},t._l(t.learnList,(function(e,o){return n("v-uni-view",{key:o,staticClass:"list"},[n("v-uni-view",{staticClass:"img-box"},[n("v-uni-view",{staticClass:"sub"},[t._v("第"+t._s(o+1)+"课")]),n("v-uni-image",{attrs:{src:e.videoImgUrl||t.imgPath+"/app/commonCourse/no-img.png",mode:"aspectFill"}})],1),n("v-uni-view",{staticClass:"right"},[n("v-uni-view",{staticClass:"title"},[t._v(t._s(e.title))]),n("v-uni-view",{staticClass:"bottom"},[n("v-uni-view",{staticClass:"btn-red",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.goLive(e)}}},[t._v("去学习")])],1)],1)],1)})),1)],1)},i=[]},cae2:function(t,e,n){"use strict";n("6a54");var o=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.courseDetails=function(){return r("/course_auto/app/course/getH5CourseByVideoId",data,"GET")},e.courseList=function(){return r("/course_auto/app/course/getAppletCourse",null,"GET")},e.courseListB=function(){return r("/course_auto/app/course/getPrivateCourse",null,"GET")},e.queryIsTownOn=function(t){return r("/app/index/queryIsTownOn",t,"GET")};var i=o(n("d4c0")),r=(new i.default).http},fca4:function(t,e,n){var o=n("c86c");e=o(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.containers[data-v-64714c13]{padding:0 0 %?30?%;background-color:#f0f4f7}.containers .top[data-v-64714c13]{position:relative}.containers .top .bg[data-v-64714c13]{width:100%}.containers .top .top-box[data-v-64714c13]{position:absolute;bottom:%?-90?%;width:100%;padding:%?30?%;background:linear-gradient(180deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,.9) 20%,#fff);border-radius:%?16?%}.containers .top .top-box .title[data-v-64714c13]{font-size:%?34?%}.containers .top .top-box .txt[data-v-64714c13]{margin-top:%?20?%;display:flex;align-items:center}.containers .top .top-box .txt uni-image[data-v-64714c13]{width:%?36?%;height:%?36?%;margin:0 %?8?%}.containers .top .top-box .txt uni-text[data-v-64714c13]{font-size:%?28?%;color:#595959}.containers .container-body[data-v-64714c13]{margin-top:%?110?%;padding:0 %?24?%}.containers .container-body .center-box[data-v-64714c13]{background-color:#fff;padding:%?10?% %?24?% %?50?%;border-radius:%?16?%}.containers .container-body .center-box .progress-box[data-v-64714c13]{display:flex;align-items:center;margin:%?50?% 0 %?30?%}.containers .container-body .center-box .progress-box uni-image[data-v-64714c13]{width:%?38?%;height:%?38?%}.containers .container-body .center-box .progress-box .title[data-v-64714c13]{margin:0 %?10?% 0 %?4?%;font-size:%?34?%}.containers .container-body .center-box .progress-box .txt[data-v-64714c13]{font-size:%?28?%;color:#595959}.containers .container-body .center-box .progress[data-v-64714c13]{display:flex;align-items:center}.containers .container-body .center-box .progress uni-text[data-v-64714c13]{font-size:%?26?%;margin-left:%?12?%}.containers .container-body .list[data-v-64714c13]{padding:%?20?%;background-color:#fff;border-radius:%?16?%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;margin-top:%?20?%}.containers .container-body .list .img-box[data-v-64714c13]{width:%?240?%;height:%?150?%;border-radius:%?16?%;overflow:hidden;position:relative;flex-shrink:0}.containers .container-body .list .img-box .sub[data-v-64714c13]{background-color:rgba(0,0,0,.8);padding:%?4?% %?16?%;color:#fff;position:absolute;top:0;left:0;font-size:%?24?%;border-radius:%?8?%}.containers .container-body .list .img-box uni-image[data-v-64714c13]{width:100%;height:100%}.containers .container-body .list .right[data-v-64714c13]{height:%?150?%;margin-left:%?20?%;flex:1;display:flex;flex-direction:column;justify-content:space-between;min-width:0}.containers .container-body .list .right .title[data-v-64714c13]{font-size:%?30?%;font-weight:500;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;\r\n /* 控制显示行数 */-webkit-box-orient:vertical;word-break:break-all;\r\n /* 允许单词内换行 */max-height:%?80?%;\r\n /* 根据字体大小调整 */line-height:%?40?%;\r\n /* 行高与字体大小匹配 */width:100%\r\n /* 确保宽度占满容器 */}.containers .container-body .list .right .bottom[data-v-64714c13]{display:flex;justify-content:flex-end;align-items:center;font-size:%?26?%}.containers .container-body .list .right .bottom .tip[data-v-64714c13]{background:linear-gradient(90deg,#fcecd0,#fff);padding:%?8?% %?12?%;border-radius:%?22?%;color:#f2931d}.containers .container-body .list .right .bottom .tip uni-image[data-v-64714c13]{width:%?36?%;height:%?36?%;margin-right:%?4?%}.containers .container-body .list .right .bottom .btn[data-v-64714c13]{background-color:#fdf0e7;padding:%?8?% %?16?%;color:#f38600;border-radius:%?12?%}.containers .container-body .list .right .bottom .btn-red[data-v-64714c13]{background-color:#ff512f;padding:%?8?% %?18?%;color:#fff;border-radius:%?12?%}',""]),t.exports=e}}]);