提交 8c6e7833 authored 作者: 游洋澄's avatar 游洋澄

页面更新

上级 9dd9fa09
<template> <template>
<a-layout id="components-layout-demo-responsive"> <a-layout id="components-layout-demo-responsive">
<a-layout-content :style="{ margin: '10px 16px 16px 16px',height:'67%',backgroundColor:'rgba(0,0,0,0.1)'}"> <a-layout-content :style="{ margin: '10px 16px 16px 16px',height:'67%',backgroundColor:'rgba(0,0,0,0.1)'}">
<div :style="{ padding: '24px',height:'100%'}"> <div :style="{ padding: '15x',height:'100%'}">
<a-row style="height:100%"> <a-row style="height:100%">
<a-col :span="6" <a-col :span="6"
style="height:100%"> style="height:100%">
<a-row style="height:50%;padding:15px;"> <a-row style="height:50%;padding:10px;">
<div class="demo"> <div class="demo">
<video-player class="video-player vjs-custom-skin" <video-player class="video-player vjs-custom-skin"
ref="videoPlayer" ref="videoPlayer"
...@@ -13,17 +13,17 @@ ...@@ -13,17 +13,17 @@
:options="playerOptions"></video-player> :options="playerOptions"></video-player>
</div> </div>
</a-row> </a-row>
<a-row style="height:50%;"> <a-row style="height:50%;padding:10px;background-color:rgba(100,100,100,0.1)">
<a-col :span="10"> <a-col :span="10">
<a-card :bordered="false" <a-card :bordered="false"
style="height:100%;width:47%;background-color:rgba(100,100,100,0.1);margin-left:20px;"> style="height:100%;width:80%;margin-left:20px;margin-right:20px;">
<img style="height:100%;maxHeight:200px;" <img style="height:100%;maxHeight:245px;"
alt="example" alt="example"
:src="currentInfo.url" :src="currentInfo.url"
slot="cover" /> slot="cover" />
</a-card> </a-card>
</a-col> </a-col>
<a-col :span="10"> <a-col :span="8">
<span >{{currentInfo.timestamp}}</span> <span >{{currentInfo.timestamp}}</span>
</a-col> </a-col>
</a-row> </a-row>
...@@ -63,11 +63,11 @@ ...@@ -63,11 +63,11 @@
v-for="(item,index) in data1PhotoArray" v-for="(item,index) in data1PhotoArray"
:key="index"> :key="index">
<div @click="scrollTo(index)" <div @click="scrollTo(index)"
style="display:inline-block;padding: 10px;text-align:center;"> style="display:inline-block;padding:10px;text-align:center;">
<a-card hoverable <a-card hoverable
style="height:100%;width:80%;"> style="height:100%;width:80%;">
<img alt="example" <img alt="example"
style="max-height:200px;" style="max-height:225px;"
:src="item.url" :src="item.url"
slot="cover" /> slot="cover" />
<a-card-meta> <a-card-meta>
...@@ -123,7 +123,10 @@ export default { ...@@ -123,7 +123,10 @@ export default {
// 1 // 1
demoData1Array: [], demoData1Array: [],
data1PhotoArray: [], data1PhotoArray: [],
currentInfo: {}, currentInfo: {
url: '',
timestamp: ''
},
flvResource: { flvResource: {
type: 'video/x-flv', type: 'video/x-flv',
src: 'http://202.112.23.252:9017/public_pic_dir/sample.flv' src: 'http://202.112.23.252:9017/public_pic_dir/sample.flv'
...@@ -173,7 +176,7 @@ export default { ...@@ -173,7 +176,7 @@ export default {
}, },
swiperOption: function () { swiperOption: function () {
return { return {
slidesPerView: 10, slidesPerView: 12,
spaceBetween: 0, spaceBetween: 0,
freeMode: true, freeMode: true,
pagination: { pagination: {
...@@ -251,4 +254,28 @@ export default { ...@@ -251,4 +254,28 @@ export default {
width: 100%; width: 100%;
background-color: rgba(0, 0, 0, 0); background-color: rgba(0, 0, 0, 0);
} }
.swiper-container-horizontal {
height: 8px;
}
#components-layout-demo-responsive .ant-card{
line-height: 1;
font-size: 12px;
}
#components-layout-demo-responsive .ant-card-body {
padding: 15px;
zoom: 1;
}
#components-layout-demo-responsive .swiper-container-horizontal > .swiper-scrollbar {
height: 8px;
}
#components-layout-demo-responsive .ant-col-8 {
width: 40%;
}
#components-layout-demo-responsive .ant-card-meta-description {
color: rgba(0, 0, 0, 0.85);
}
</style> </style>
...@@ -12,20 +12,20 @@ ...@@ -12,20 +12,20 @@
// vue.config.js // vue.config.js
module.exports = { module.exports = {
devServer: { // devServer: {
host: '192.168.100.101', // host: '192.168.100.101',
disableHostCheck: true, // disableHostCheck: true,
// development server port 8000 // // development server port 8000
port: 8080 // port: 8080
// proxy: { // // proxy: {
// '/api': { // // '/api': {
// // // target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro',
// // target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', // // target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro',
// target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', // // ws: false,
// ws: false, // // changeOrigin: true
// changeOrigin: true // // }
// } // // }
// } // },
},
// disable source map in production // disable source map in production
productionSourceMap: false, productionSourceMap: false,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论