You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
3.2 KiB
1 line
3.2 KiB
2 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-common-video"],{"2ee2":function(t,e,n){var a=n("c86c");e=a(!1),e.push([t.i,".video-box[data-v-126727df]{position:relative;width:100%;height:0\n\t/* padding-bottom: 56.25%; */\n\t/*用 9/16 得出,其他比例类似*/}.my-video[data-v-126727df]{position:absolute;left:0;top:0;width:100%;height:100%;align-items:center}",""]),t.exports=e},"4f7c":function(t,e,n){"use strict";n.r(e);var a=n("f4a5"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},"5ea9":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"video-box",style:{paddingBottom:t.number}},[n("v-uni-video",{staticClass:"my-video",attrs:{"object-fit":"fill",preload:"meta",src:t.url,autoplay:"true",controls:!0},on:{play:function(e){arguments[0]=e=t.$handleEvent(e),t.play.apply(void 0,arguments)},pause:function(e){arguments[0]=e=t.$handleEvent(e),t.pause.apply(void 0,arguments)},ended:function(e){arguments[0]=e=t.$handleEvent(e),t.ended.apply(void 0,arguments)},waiting:function(e){arguments[0]=e=t.$handleEvent(e),t.waitingCallback.apply(void 0,arguments)},error:function(e){arguments[0]=e=t.$handleEvent(e),t.errorCallback.apply(void 0,arguments)},loadedmetadata:function(e){arguments[0]=e=t.$handleEvent(e),t.loadedmetadata.apply(void 0,arguments)}}})],1)},o=[]},7620:function(t,e,n){"use strict";n.r(e);var a=n("5ea9"),o=n("4f7c");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("7eb7");var r=n("828b"),u=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"126727df",null,!1,a["a"],void 0);e["default"]=u.exports},"7eb7":function(t,e,n){"use strict";var a=n("e994"),o=n.n(a);o.a},e994:function(t,e,n){var a=n("2ee2");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=n("967d").default;o("3013c196",a,!0,{sourceMap:!1,shadowMode:!1})},f4a5:function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("2634")),i=a(n("2fdc")),r=n("8f59"),u={data:function(){return{url:"",number:""}},computed:(0,r.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor}}),onLoad:function(t){var e=this;return(0,i.default)((0,o.default)().mark((function n(){var a;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.$util.setNavigationBarColor({bg:e.primaryColor}),a=decodeURIComponent(t.url),e.url=a;case 3:case"end":return n.stop()}}),n)})))()},methods:{play:function(t){this.$util.log("play=> ",t)},pause:function(t){this.$util.log("pause=> ",t)},ended:function(t){this.$util.log("ended=> ",t)},waitingCallback:function(t){this.$util.log("waitingCallback=> ",t)},errorCallback:function(t){this.$util.log("errorCallback=> ",t)},loadedmetadata:function(t){this.$util.log("loadedmetadata=> ",t);var e=t.detail,n=e.width,a=e.height,o=(a/n*100).toFixed(2);this.number=o?"".concat(o,"%"):"56.25%"}}};e.default=u}}]);
|