Commit bf7c260d408db96269e436f5d1be1dcb5102e714

Authored by zhiyangdu
1 parent 9d9fbd96

init

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 &#39;mint-ui/lib/style.css&#39;; @@ -9,6 +9,11 @@ import &#39;mint-ui/lib/style.css&#39;;
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
@@ -60,6 +60,8 @@ @@ -60,6 +60,8 @@
60 60
61 <div></div> 61 <div></div>
62 62
  63 + <div></div>
  64 +
63 </div> 65 </div>
64 </div> 66 </div>
65 </template> 67 </template>
static/img/index/11.jpg

78 KB | W: | H:

99.4 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
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