public
This commit is contained in:
10
public/mp-weixin/components/j-video/j-video.js
Normal file
10
public/mp-weixin/components/j-video/j-video.js
Normal file
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/j-video/j-video"],{"0e8e":function(t,e,n){},1428:function(t,e,n){"use strict";n.r(e);var i=n("a4c8"),o=n.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(u);e["default"]=o.a},"914b":function(t,e,n){"use strict";n.r(e);var i=n("d38e"),o=n("1428");for(var u in o)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(u);n("b8f3");var r=n("828b"),a=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"db4a9050",null,!1,i["a"],void 0);e["default"]=a.exports},a4c8:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={computed:{posterUrl:function(){return this.poster?this.poster:this.url+"?x-oss-process=video/snapshot,t_"+parseInt(1e3*this.currentTime)+",f_jpg,w_800,m_fast"}},created:function(){this.videoId=Date.now()+Math.ceil(1e7*Math.random())+""},mounted:function(){this.VideoContext=t.createVideoContext(this.videoId,this)},methods:{fullscreenchange:function(t){this.state=t.detail.fullScreen},timeupdate:function(t){this.duration=t.detail.duration,this.currentTime=t.detail.currentTime}},watch:{state:function(t,e){var n=this;t?(this.VideoContext.play(),setTimeout((function(){n.VideoContext.requestFullScreen({direction:n.direction})}),10)):this.VideoContext.pause()}},data:function(){return{VideoContext:{},state:!1,currentTime:0,duration:0,videoId:""}},props:{poster:{type:[String,Boolean],default:function(){return""}},url:{type:String,default:function(){return""}},direction:{type:Number,default:function(){return 0}},width:{type:String,default:function(){return"750rpx"}},height:{type:String,default:function(){return"450rpx"}}}};e.default=n}).call(this,n("df3c")["default"])},b8f3:function(t,e,n){"use strict";var i=n("0e8e"),o=n.n(i);o.a},d38e:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.state=!t.state},t.e1=function(e){t.state=0})},o=[]}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/j-video/j-video-create-component',
|
||||
{
|
||||
'components/j-video/j-video-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("914b"))
|
||||
})
|
||||
},
|
||||
[['components/j-video/j-video-create-component']]
|
||||
]);
|
||||
4
public/mp-weixin/components/j-video/j-video.json
Normal file
4
public/mp-weixin/components/j-video/j-video.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
public/mp-weixin/components/j-video/j-video.wxml
Normal file
1
public/mp-weixin/components/j-video/j-video.wxml
Normal file
@ -0,0 +1 @@
|
||||
<view class="root data-v-db4a9050" style="{{'width:'+(width)+';'+('height:'+(height)+';')}}"><image class="posterImg data-v-db4a9050" style="{{'width:'+(width)+';'+('height:'+(height)+';')}}" src="{{posterUrl}}"></image><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="box data-v-db4a9050" style="{{'width:'+(width)+';'+('height:'+(height)+';')}}" bindtap="__e"><image class="playIcon data-v-db4a9050" src="/static/images/icon_play.png" mode="widthFix"></image></view><video class="video data-v-db4a9050" style="{{'height:'+(height)+';'+('width:'+(state?'750rpx':'1rpx')+';')}}" id="{{videoId}}" src="{{url}}" show-mute-btn="{{true}}" data-event-opts="{{[['pause',[['e1',['$event']]]],['timeupdate',[['timeupdate',['$event']]]],['fullscreenchange',[['fullscreenchange',['$event']]]]]}}" bindpause="__e" bindtimeupdate="__e" bindfullscreenchange="__e"></video></view>
|
||||
3
public/mp-weixin/components/j-video/j-video.wxss
Normal file
3
public/mp-weixin/components/j-video/j-video.wxss
Normal file
@ -0,0 +1,3 @@
|
||||
.root.data-v-db4a9050{position:relative;width:750rpx;height:300px;overflow:hidden}.posterImg.data-v-db4a9050,
|
||||
.video.data-v-db4a9050,
|
||||
.box.data-v-db4a9050{display:flex;width:750rpx;height:300px;position:absolute}.video.data-v-db4a9050{margin-left:-2000px}.box.data-v-db4a9050{justify-content:center;align-items:center}.playIcon.data-v-db4a9050{width:100rpx;height:100rpx}
|
||||
Reference in New Issue
Block a user