pages-index-index.12ec7921.js 4.1 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"0155":function(n,e,t){var i=t("f1cb");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[n.i,i,""]]),i.locals&&(n.exports=i.locals);var o=t("4f06").default;o("6b0a3182",i,!0,{sourceMap:!1,shadowMode:!1})},"0730":function(n,e,t){"use strict";var i=t("0155"),o=t.n(i);o.a},"0d6c":function(n,e,t){"use strict";t.r(e);var i=t("eb1b"),o=t("0d76");for(var s in o)["default"].indexOf(s)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(s);t("0730");var a=t("f0c5"),u=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"ecfe7302",null,!1,i["a"],void 0);e["default"]=u.exports},"0d76":function(n,e,t){"use strict";t.r(e);var i=t("8ecf"),o=t.n(i);for(var s in i)["default"].indexOf(s)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(s);e["default"]=o.a},"8ecf":function(n,e,t){"use strict";t("7a82");var i=t("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t("e9c4");var o=i(t("f3aa")),s={data:function(){return{url:"",poster:"",lessons_id:"",token:"",context:null,api:""}},onReady:function(){this.context=uni.createVideoContext("video",this)},onLoad:function(n){var e=this;console.log(123,n),this.poster=n.poster,this.url=n.url,this.token=n.token,this.lessons_id=n.lessons_id,this.api=n.api,n.seek&&this.$nextTick((function(){e.seek(n.seek),e.play()}))},methods:{onstart:function(n){},onpause:function(n){},onfinish:function(n){},onfail:function(n){},fullscreenchange:function(n){},waiting:function(n){},timeupdate:function(n){var e=this;(0,o.default)((function(){uni.request({url:e.api+"api/course.learning/syncUserLearningRecord",header:{token:e.token},data:{lessons_id:e.lessons_id},complete:function(n){console.log("timeupdate:"+JSON.stringify(n))}})}),6e4,!1)},play:function(){this.context.play()},seek:function(n){this.context.seek(n)}}};e.default=s},eb1b:function(n,e,t){"use strict";t.d(e,"b",(function(){return i})),t.d(e,"c",(function(){return o})),t.d(e,"a",(function(){}));var i=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("v-uni-view",{staticClass:"content"},[t("v-uni-video",{staticClass:"video",attrs:{id:"video",poster:n.poster,src:n.url,direction:"-90","show-mute-btn":!0},on:{timeupdate:function(e){arguments[0]=e=n.$handleEvent(e),n.timeupdate.apply(void 0,arguments)},pause:function(e){arguments[0]=e=n.$handleEvent(e),n.onpause.apply(void 0,arguments)},ended:function(e){arguments[0]=e=n.$handleEvent(e),n.onfinish.apply(void 0,arguments)},error:function(e){arguments[0]=e=n.$handleEvent(e),n.onfail.apply(void 0,arguments)}}})],1)},o=[]},f1cb:function(n,e,t){var i=t("24fb");e=i(!1),e.push([n.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.content[data-v-ecfe7302]{width:%?750?%;height:%?400?%;overflow:hidden}.video[data-v-ecfe7302]{width:%?750?%;height:%?400?%}',""]),n.exports=e},f3aa:function(n,e,t){"use strict";var i;t("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];t?i||(i=!0,"function"===typeof n&&n(),setTimeout((function(){i=!1}),e)):i||(i=!0,setTimeout((function(){i=!1,"function"===typeof n&&n()}),e))};e.default=o}}]);