Commit 318f12be authored by songrui's avatar songrui

mp4 播放修改

parent eef79a76
...@@ -10,13 +10,23 @@ ...@@ -10,13 +10,23 @@
<div v-if="item.annexFileName" class="text-12 my-1 text-ellipsis">{{ item.annexFileName }}</div> <div v-if="item.annexFileName" class="text-12 my-1 text-ellipsis">{{ item.annexFileName }}</div>
</div> </div>
</div> </div>
<van-popup v-model:show="visible" :close-on-click-overlay="false" closeable <!-- <van-popup v-model:show="visible" :close-on-click-overlay="false" closeable
close-icon-position="top-right"> close-icon-position="top-right"
<video controls width="100%" v-if="visible"> close-icon="clear">
<video controls v-if="visible" style="width: calc(100vw - var(--van-padding-md) * 2)">
<source :src="activeVideo.annexUrl" type="video/mp4" /> <source :src="activeVideo.annexUrl" type="video/mp4" />
播放失败! 播放失败!
</video> </video>
</van-popup> </van-popup> -->
<van-overlay :show="visible">
<div class="h-full flex items-center justify-center wrapper" @click.stop>
<video controls v-if="visible">
<source :src="activeVideo.annexUrl" type="video/mp4" />
播放失败!
</video>
<van-icon name="close" class="close-icon" @click="visible = false"/>
</div>
</van-overlay>
</div> </div>
</template> </template>
...@@ -65,4 +75,18 @@ export default { ...@@ -65,4 +75,18 @@ export default {
padding-left: 2px; padding-left: 2px;
} }
} }
.wrapper {
position: relative;
.close-icon {
position: absolute;
top: 16px;
right: 16px;
color: #ccc;
font-size: 24px;
}
video {
width: calc(100vw - var(--van-padding-md) * 2);
background-color: #fff;
}
}
</style> </style>
...@@ -179,6 +179,13 @@ export default { ...@@ -179,6 +179,13 @@ export default {
}, },
// 折叠面板切换 // 折叠面板切换
collapseChange(val) { collapseChange(val) {
// console.log(val, this.activeCollapse)
// if (val && val.length) {
// this.activeCollapse = val.slice(val.length - 1)
// } else {
// this.activeCollapse = []
// }
if (val && val.length === this.collapseList.length) { if (val && val.length === this.collapseList.length) {
this.collapseAll = true this.collapseAll = true
} else { } else {
......
...@@ -39,11 +39,11 @@ module.exports = defineConfig({ ...@@ -39,11 +39,11 @@ module.exports = defineConfig({
} }
}, },
'/chronic-resident': { '/chronic-resident': {
// target: 'http://192.168.1.145:8903', target: 'http://192.168.1.200:8903',
target: 'https://beta-tumour.zmnyjk.com', // target: 'https://beta-tumour.zmnyjk.com',
changOrigin: true, changOrigin: true,
pathRewrite: { pathRewrite: {
'^/chronic-resident': '/chronic-resident' '^/chronic-resident': '/'
} }
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment