Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-06-22 19:38:11 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e47a800770b131f515a222a7e6572e3fc17bc4f0
e47a8007
1 parent
41553e40
✨ feat(相关视频播放控件): 默认封面定义,后端不提供封面了
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
5 deletions
src/components/AuditVideoCard/index.vue
src/components/BVideoCard/index.vue
src/components/VideoCard/index.vue
src/components/VideoDetail/index.vue
src/constant.js
src/components/AuditVideoCard/index.vue
View file @
e47a800
...
...
@@ -61,6 +61,8 @@ import icon_enable from '@images/icon-tongguo@2x.png'
import 'mui-player/dist/mui-player.min.css'
import MuiPlayer from 'mui-player'
import _ from 'lodash';
import { DEFAULT_COVER } from '@/constant'
</script>
<script>
...
...
@@ -97,7 +99,8 @@ export default {
container: '#mui-player-' + this.item.id,
title: this.item.title,
src: this.item.video,
poster: this.item.cover,
// poster: this.item.cover,
poster: DEFAULT_COVER,
autoFit: false,
videoAttribute: [ // 声明启用同层播放, 不让会自动全屏播放
{ attrKey: 'webkit-playsinline', attrValue: 'webkit-playsinline' },
...
...
src/components/BVideoCard/index.vue
View file @
e47a800
...
...
@@ -115,6 +115,7 @@ import tools from '@/common/tool'
import { styleColor } from '@/constant.js';
import { Toast } from 'vant';
import { DEFAULT_COVER } from '@/constant'
const props = defineProps({
item: Object,
...
...
@@ -211,7 +212,8 @@ export default {
container: '#mui-player-' + this.item.id,
title: this.item.title,
src: this.item.video,
poster: this.item.cover,
// poster: this.item.cover,
poster: DEFAULT_COVER,
autoFit: false,
videoAttribute: [ // 声明启用同层播放, 不让会自动全屏播放
{ attrKey: 'webkit-playsinline', attrValue: 'webkit-playsinline' },
...
...
src/components/VideoCard/index.vue
View file @
e47a800
...
...
@@ -42,6 +42,7 @@ import 'mui-player/dist/mui-player.min.css'
import MuiPlayer from 'mui-player'
import { prodActionAPI, prodInfoAPI } from '@/api/C/prod.js'
import { useDebounce } from '@/hooks/useDebounce.js'
import { DEFAULT_COVER } from '@/constant'
const $router = useRouter();
const props = defineProps({
...
...
@@ -90,7 +91,8 @@ onMounted(() => {
container: '#mui-player-' + props.item.id,
title: props.item.title,
src: props.item.video,
poster: props.item.cover,
// poster: props.item.cover,
poster: DEFAULT_COVER,
autoFit: false,
videoAttribute: [ // 声明启用同层播放, 不让会自动全屏播放
{ attrKey: 'webkit-playsinline', attrValue: 'webkit-playsinline' },
...
...
src/components/VideoDetail/index.vue
View file @
e47a800
...
...
@@ -45,6 +45,7 @@ import icon_shoucang2 from '@images/icon-shoucang02@2x.png'
import 'mui-player/dist/mui-player.min.css'
import MuiPlayer from 'mui-player'
import _ from 'lodash';
import { DEFAULT_COVER } from '@/constant'
</script>
...
...
@@ -70,7 +71,8 @@ export default {
container: '#mui-player-' + this.item.id,
title: this.item.title,
src: this.item.video,
poster: this.item.cover,
// poster: this.item.cover,
poster: DEFAULT_COVER,
autoFit: false,
videoAttribute: [ // 声明启用同层播放, 不让会自动全屏播放
{attrKey:'webkit-playsinline',attrValue:'webkit-playsinline'},
...
...
src/constant.js
View file @
e47a800
...
...
@@ -2,12 +2,15 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-25 18:34:17
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-
08 21:07:1
9
* @LastEditTime: 2022-06-
22 19:34:4
9
* @FilePath: /tswj/src/constant.js
* @Description:
*/
// 金数据表单 - 家长端
export
const
JSJ_FORM_C
=
'https://jsjs.onwall.cn/f/NAGn1D'
;
// 金数据表单 - 普通话 / 方言
export
const
JSJ_FORM_MANDARIN
=
'https://jsjs.onwall.cn/f/NAGn1D'
;
export
const
JSJ_FORM_LOCALISM
=
'https://jsjs.onwall.cn/f/NAGn1D'
;
// 金数据表单 - 老师端
export
const
JSJ_FORM_B
=
'https://jsj.onwall.cn/f/g7D0MT'
;
...
...
@@ -39,3 +42,6 @@ export const USER_TYPE = {
VISIT
:
'V'
,
KINDERGARTEN
:
'K'
,
}
// 默认视频封面
export
const
DEFAULT_COVER
=
'http://gyzs.onwall.cn/tswj_vidieo_cover.jpg'
...
...
Please
register
or
login
to post a comment