初始化代码
This commit is contained in:
1
front/mine/pages/common/video.js
Normal file
1
front/mine/pages/common/video.js
Normal file
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["mine/pages/common/video"],{2865:function(t,e,n){"use strict";n.r(e);var a=n("e7cb"),u=n("2dd2");for(var i in u)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(i);n("f5c9");var c=n("f0c5"),o=Object(c["a"])(u["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=o.exports},"2dd2":function(t,e,n){"use strict";n.r(e);var a=n("5b4b"),u=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"]=u.a},"5b4b":function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=a(n("2eee")),i=a(n("c973")),c=(n("26cb"),{data:function(){return{url:"",number:""}},onLoad:function(t){var e=this;return(0,i.default)(u.default.mark((function n(){var a;return u.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:a=decodeURIComponent(t.url),e.url=a;case 2: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,u=(a/n*100).toFixed(2);this.number=u?"".concat(u,"%"):"56.25%"}}});e.default=c},"5c9c":function(t,e,n){},"7b3f":function(t,e,n){"use strict";(function(t,e){var a=n("4ea4");n("b03e");a(n("66fd"));var u=a(n("2865"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(u.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},e7cb:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){}));var a=function(){var t=this.$createElement;this._self._c},u=[]},f5c9:function(t,e,n){"use strict";var a=n("5c9c"),u=n.n(a);u.a}},[["7b3f","common/runtime","common/vendor"]]]);
|
||||
4
front/mine/pages/common/video.json
Normal file
4
front/mine/pages/common/video.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/mine/pages/common/video.wxml
Normal file
1
front/mine/pages/common/video.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="video-box" style="{{'padding-bottom:'+(number)+';'}}"><video class="my-video" object-fit="fill" preload="meta" src="{{url}}" autoplay="true" controls="{{true}}" data-event-opts="{{[['play',[['play',['$event']]]],['pause',[['pause',['$event']]]],['ended',[['ended',['$event']]]],['waiting',[['waitingCallback',['$event']]]],['error',[['errorCallback',['$event']]]],['loadedmetadata',[['loadedmetadata',['$event']]]]]}}" bindplay="__e" bindpause="__e" bindended="__e" bindwaiting="__e" binderror="__e" bindloadedmetadata="__e"></video></view>
|
||||
1
front/mine/pages/common/video.wxss
Normal file
1
front/mine/pages/common/video.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.video-box{position:relative;width:100%;height:0}.my-video{position:absolute;left:0;top:0;width:100%;height:100%;align-items:center}
|
||||
1
front/mine/pages/common/web.js
Normal file
1
front/mine/pages/common/web.js
Normal file
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["mine/pages/common/web"],{4176:function(e,n,t){"use strict";t.r(n);var a=t("45a1"),u=t.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(r);n["default"]=u.a},"45a1":function(e,n,t){"use strict";var a=t("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=a(t("2eee")),r=a(t("c973")),c=(t("26cb"),{data:function(){return{url:""}},onLoad:function(e){var n=this;return(0,r.default)(u.default.mark((function t(){var a;return u.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e.url,n.url=decodeURIComponent(a);case 2:case"end":return t.stop()}}),t)})))()}});n.default=c},"72f1":function(e,n,t){"use strict";t.r(n);var a=t("a178"),u=t("4176");for(var r in u)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return u[e]}))}(r);var c=t("f0c5"),o=Object(c["a"])(u["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);n["default"]=o.exports},a178:function(e,n,t){"use strict";t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return u})),t.d(n,"a",(function(){}));var a=function(){var e=this.$createElement;this._self._c},u=[]},d866:function(e,n,t){"use strict";(function(e,n){var a=t("4ea4");t("b03e");a(t("66fd"));var u=a(t("72f1"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(u.default)}).call(this,t("bc2e")["default"],t("543d")["createPage"])}},[["d866","common/runtime","common/vendor"]]]);
|
||||
4
front/mine/pages/common/web.json
Normal file
4
front/mine/pages/common/web.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/mine/pages/common/web.wxml
Normal file
1
front/mine/pages/common/web.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view><web-view src="{{url}}"></web-view></view>
|
||||
Reference in New Issue
Block a user