require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_course/video"],{918:function(n,t,o){"use strict";(function(n,t){var e=o(4);o(26);e(o(25));var i=e(o(919));n.__webpack_require_UNI_MP_PLUGIN__=o,t(i.default)}).call(this,o(1)["default"],o(2)["createPage"])},919:function(n,t,o){"use strict";o.r(t);var e=o(920),i=o(922);for(var s in i)["default"].indexOf(s)<0&&function(n){o.d(t,n,(function(){return i[n]}))}(s);o(924);var r,a=o(34),c=Object(a["default"])(i["default"],e["render"],e["staticRenderFns"],!1,null,"468b9330",null,!1,e["components"],r);c.options.__file="pages_course/video.vue",t["default"]=c.exports},920:function(n,t,o){"use strict";o.r(t);var e=o(921);o.d(t,"render",(function(){return e["render"]})),o.d(t,"staticRenderFns",(function(){return e["staticRenderFns"]})),o.d(t,"recyclableRender",(function(){return e["recyclableRender"]})),o.d(t,"components",(function(){return e["components"]}))},921:function(n,t,o){"use strict";var e;o.r(t),o.d(t,"render",(function(){return i})),o.d(t,"staticRenderFns",(function(){return r})),o.d(t,"recyclableRender",(function(){return s})),o.d(t,"components",(function(){return e}));var i=function(){var n=this,t=n.$createElement,o=(n._self._c,n.configJson.tvEnable&&n.configJson.tv?n.configJson.tv.split(","):null),e=n.configJson.tvEnable&&!n.configJson.tv?n.defaultInfo.tv.split(","):null,i=n.configJson.networkEnable&&n.configJson.network?n.configJson.network.split(","):null,s=n.configJson.networkEnable&&!n.configJson.network?n.defaultInfo.network.split(","):null,r=n.configJson.unitEnable&&n.configJson.unit?n.configJson.unit.split(","):null,a=n.configJson.unitEnable&&!n.configJson.unit?n.defaultInfo.unit.split(","):null,c=n.configJson.teamEnable&&n.configJson.team?n.configJson.team.split(","):null,u=n.configJson.teamEnable&&!n.configJson.team?n.defaultInfo.team.split(","):null,l=n.configJson.supportEnable&&n.configJson.support?n.configJson.support.split(","):null,f=n.configJson.supportEnable&&!n.configJson.support?n.defaultInfo.support.split(","):null;n.$mp.data=Object.assign({},{$root:{l0:o,l1:e,l2:i,l3:s,l4:r,l5:a,l6:c,l7:u,l8:l,l9:f}})},s=!1,r=[];i._withStripped=!0},922:function(n,t,o){"use strict";o.r(t);var e=o(923),i=o.n(e);for(var s in e)["default"].indexOf(s)<0&&function(n){o.d(t,n,(function(){return e[n]}))}(s);t["default"]=i.a},923:function(n,t,o){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=o(913),i=function(){o.e("pages_course/components/yk-screenRecord/yk-screenRecord").then(function(){return resolve(o(1128))}.bind(null,o)).catch(o.oe)},s={components:{ykScreenRecord:i},data:function(){return{statusBarHeight:n.getSystemInfoSync().statusBarHeight,title:"<<以下资料已审核>>",urlOption:{},videoId:"",courseInfo:{},loading:!1,configJson:{broadcasting:"御君方互联网医院",coverImg:"",network:"芳华未来",support:"华夏文化促进会大健康养生文化专委会",team:"杜丁-副主任医师,于晓津-副主任医师,史士昊-主治医师,岳晓燕-主任医师,陈涛-执业医师,李俭-副主任医师",tv:"贵州广播电视台公共频道,大石桥综合频道",unit:"大石桥市融媒之声广播电视报刊,网络新传媒有限公司"},defaultInfo:{broadcasting:"御君方互联网医院",coverImg:"",network:"芳华未来",support:"华夏文化促进会大健康养生文化专委会",team:"杜丁-副主任医师,于晓津-副主任医师,史士昊-主治医师,岳晓燕-主任医师,陈涛-执业医师,李俭-副主任医师",tv:"贵州广播电视台公共频道,大石桥综合频道",unit:"大石桥市融媒之声广播电视报刊,网络新传媒有限公司"}}},onLoad:function(n){this.urlOption=n.course?JSON.parse(decodeURIComponent(n.course)):{},console.log("this.urlOption==",this.urlOption,n),this.videoId=this.urlOption.videoId||"",this.sortLink=this.urlOption.link||"",this.videoId&&this.getH5CourseByVideo()},onShow:function(){this.sortLink?this.getLink():n.showToast({title:"链接地址有误",icon:"none"})},methods:{goHome:function(){"wx45cf09091aead547"==getApp().globalData.appId?n.switchTab({url:"/pages/home/index"}):n.navigateToMiniProgram({appId:"wx45cf09091aead547",path:"/pages/home/index"})},getH5CourseByVideo:function(){var t=this;n.showLoading({title:"加载中"}),(0,e.getH5CourseByVideoId)({videoId:this.videoId}).then((function(o){t.courseInfo=o.data||{},t.configJson=o.data&&o.data.configJson?JSON.parse(o.data.configJson):t.defaultInfo,n.hideLoading()})).catch((function(){n.hideLoading()}))},getLink:function(t){var o=this;this.loading||(n.showLoading({title:"加载中"}),this.loading=!0,(0,e.getRealLink)({sortLink:this.sortLink}).then((function(e){n.hideLoading(),o.loading=!1,200==e.code?1==t&&n.navigateTo({url:"/pages_course/videoDetail?course="+JSON.stringify(o.urlOption)}):n.showToast({title:"课程已过期或链接无效",icon:"none"})})).catch((function(t){n.hideLoading(),o.loading=!1,n.showToast({title:"发生错误，请稍后再试",icon:"none"})})))}}};t.default=s}).call(this,o(2)["default"])},924:function(n,t,o){"use strict";o.r(t);var e=o(925),i=o.n(e);for(var s in e)["default"].indexOf(s)<0&&function(n){o.d(t,n,(function(){return e[n]}))}(s);t["default"]=i.a},925:function(n,t,o){}},[[918,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../.sourcemap/mp-weixin/pages_course/video.js.map