|
@@ -5,10 +5,29 @@
|
|
|
|
|
|
@push('css')
|
|
|
<link href="{{ theme_asset('mobile/css/jobs.css') }}" rel="stylesheet">
|
|
|
+ <link href="https://web.sdk.qcloud.com/player/tcplayer/release/v5.1.0/tcplayer.min.css" rel="stylesheet"/>
|
|
|
+ <style>
|
|
|
+ #player-container-id{
|
|
|
+ width: 100%;
|
|
|
+ height: 0;
|
|
|
+ padding-bottom: 56.25%; /* 16:9 宽高比 */
|
|
|
+ position: relative;
|
|
|
+ display: inline-block;
|
|
|
+
|
|
|
+ }
|
|
|
+ video {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
@endpush
|
|
|
|
|
|
@push('js')
|
|
|
|
|
|
+ <script src="https://web.sdk.qcloud.com/player/tcplayer/release/v5.1.0/tcplayer.v5.1.0.min.js"></script>
|
|
|
@endpush
|
|
|
|
|
|
@section('content')
|
|
@@ -39,6 +58,15 @@
|
|
|
|
|
|
<div class="split-block"></div>
|
|
|
|
|
|
+ @if(empty($info->video_url))
|
|
|
+ <div class="comshowdes">
|
|
|
+ <div class="eattitle list_height">视频介绍</div>
|
|
|
+ <video id="player-container-id" preload="auto" playsinline webkit-playsinline>
|
|
|
+ </video>
|
|
|
+ </div>
|
|
|
+ <div class="split-block"></div>
|
|
|
+ @endif
|
|
|
+
|
|
|
{{--公司简介--}}
|
|
|
<div class="comshowdes">
|
|
|
<div class="eattitle list_height">单位简介</div>
|
|
@@ -173,5 +201,16 @@
|
|
|
child.html('展开信息');
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ var player = TCPlayer('player-container-id', {
|
|
|
+ sources: [{
|
|
|
+ src: '{{ theme_asset('mobile/021622e9b328fade2c7a0f394440fe38.mp4') }}?v=1', // 播放地址
|
|
|
+ }],
|
|
|
+ autoplay: true,
|
|
|
+ licenseUrl: 'https://license.vod2.myqcloud.com/license/v2/1251164517_1/v_cube.license', // license 地址,参考准备工作部分,在视立方控制台申请 license 后可获得 licenseUrl
|
|
|
+ posterImage: true,
|
|
|
+ bigPlayButton: true,
|
|
|
+ poster: "{{ theme_asset('mobile/images/health_thumb.jpg') }}",
|
|
|
+ });
|
|
|
</script>
|
|
|
@endsection
|