Commit bf7c260d408db96269e436f5d1be1dcb5102e714
1 parent
9d9fbd96
init
Showing
8 changed files
with
21 additions
and
1 deletions
src/App.vue
| @@ -17,4 +17,11 @@ | @@ -17,4 +17,11 @@ | ||
| 17 | .mint-indicator-text { | 17 | .mint-indicator-text { |
| 18 | font-size: 30px !important; | 18 | font-size: 30px !important; |
| 19 | } | 19 | } |
| 20 | + // 设置播放器的背景颜色 | ||
| 21 | + .video-js{ | ||
| 22 | + background-color: transparent !important; | ||
| 23 | + .vjs-poster{ | ||
| 24 | + background-color: transparent !important; | ||
| 25 | + } | ||
| 26 | + } | ||
| 20 | </style> | 27 | </style> |
src/main.js
| @@ -9,6 +9,11 @@ import 'mint-ui/lib/style.css'; | @@ -9,6 +9,11 @@ import 'mint-ui/lib/style.css'; | ||
| 9 | import { Toast, Indicator,InfiniteScroll } from 'mint-ui'; | 9 | import { Toast, Indicator,InfiniteScroll } from 'mint-ui'; |
| 10 | import { Rate, Popup, Lazyload, Search, PullRefresh } from 'vant'; | 10 | import { Rate, Popup, Lazyload, Search, PullRefresh } from 'vant'; |
| 11 | import App from "./App"; | 11 | import App from "./App"; |
| 12 | +// 1.全局引用 | ||
| 13 | +import VueVideoPlayer from 'vue-video-player' | ||
| 14 | +import 'video.js/dist/video-js.css' | ||
| 15 | + | ||
| 16 | +Vue.use(VueVideoPlayer) | ||
| 12 | Vue.use(Vuex); | 17 | Vue.use(Vuex); |
| 13 | Vue.use(VueResource); | 18 | Vue.use(VueResource); |
| 14 | Vue.use(VueHead, { separator: " " }); | 19 | Vue.use(VueHead, { separator: " " }); |
src/pages/index/index.less
| @@ -124,9 +124,15 @@ | @@ -124,9 +124,15 @@ | ||
| 124 | background: #bd3325 url("../../../static/img/index/17.jpg") no-repeat center top; | 124 | background: #bd3325 url("../../../static/img/index/17.jpg") no-repeat center top; |
| 125 | background-size: 100%; | 125 | background-size: 100%; |
| 126 | } | 126 | } |
| 127 | + div:nth-child(18){ | ||
| 128 | + width: 100%; | ||
| 129 | + height: 520px; | ||
| 130 | + background: #bd3325 url("../../../static/img/index/18.jpg") no-repeat center top; | ||
| 131 | + background-size: 100%; | ||
| 132 | + } | ||
| 127 | .video_box{ | 133 | .video_box{ |
| 128 | width: 713px !important; | 134 | width: 713px !important; |
| 129 | - height: 404px !important; | 135 | + height: 418px !important; |
| 130 | margin: 85px 18px 0 18px; | 136 | margin: 85px 18px 0 18px; |
| 131 | } | 137 | } |
| 132 | } | 138 | } |
src/pages/index/index.vue
static/img/index/11.jpg
static/img/index/18.jpg
0 → 100644
88.2 KB
static/img/index/video1.png
0 → 100644
234 KB
static/img/index/video2.png
0 → 100644
229 KB