learn.js 3.4 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_course/learn"],{473:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(474));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},474:function(e,n,t){"use strict";t.r(n);var o=t(475),r=t(477);for(var s in r)["default"].indexOf(s)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(s);t(479);var i,u=t(34),c=Object(u["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"53c8c079",null,!1,o["components"],i);c.options.__file="pages_course/learn.vue",n["default"]=c.exports},475:function(e,n,t){"use strict";t.r(n);var o=t(476);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},476:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return i})),t.d(n,"recyclableRender",(function(){return s})),t.d(n,"components",(function(){return o}));var r=function(){var e=this,n=e.$createElement,t=(e._self._c,e.learnList.length);e.$mp.data=Object.assign({},{$root:{g0:t}})},s=!1,i=[];r._withStripped=!0},477:function(e,n,t){"use strict";t.r(n);var o=t(478),r=t.n(o);for(var s in o)["default"].indexOf(s)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(s);n["default"]=r.a},478:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t(184),r={data:function(){return{courseId:null,tabList:[{name:"详情"},{name:"课程目录"}],learnList:[],learncourse:{},type:null}},computed:{imgPath:function(){return this.$store.state.imgpath}},onLoad:function(e){e.courseId&&(console.log(e.courseId),this.courseId=e.courseId,1==e.type?this.getCourseList():this.getCourseListb())},mounted:function(){},methods:{goLive:function(n){console.log("id",n);n.videoId;var t={videoId:n.videoId,courseId:this.courseId};e.navigateTo({url:"/pages_course/video?videoitem="+JSON.stringify(t)})},getCourseListb:function(){var n=this;(0,o.courseListB)().then((function(t){if(console.log("课程列表",t),200==t.code){var o=t.data.find((function(e){return e.courseId==n.courseId}));o&&o.fsUserCourseVideoList?(n.learncourse=o,n.learnList=o.fsUserCourseVideoList,console.log("learnList是多少》》",n.learnList),console.log("learnList是多少",n.learncourse)):(console.warn("未找到课程或视频列表"),n.learnList=[])}else e.hideLoading(),e.showToast({title:t.msg,icon:"none"})}))},getCourseList:function(){var n=this;(0,o.courseList)().then((function(t){if(console.log("课程列表",t),200==t.code){var o=t.data.find((function(e){return e.courseId==n.courseId}));o&&o.fsUserCourseVideoList?(n.learncourse=o,n.learnList=o.fsUserCourseVideoList,console.log("learnList是多少》》",n.learnList),console.log("learnList是多少",n.learncourse)):(console.warn("未找到课程或视频列表"),n.learnList=[])}else e.hideLoading(),e.showToast({title:t.msg,icon:"none"})}))}}};n.default=r}).call(this,t(2)["default"])},479:function(e,n,t){"use strict";t.r(n);var o=t(480),r=t.n(o);for(var s in o)["default"].indexOf(s)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(s);n["default"]=r.a},480:function(e,n,t){}},[[473,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../.sourcemap/mp-weixin/pages_course/learn.js.map