Commit 5380562d authored by hubaoshan's avatar hubaoshan

大屏

parent 215c2780
...@@ -2966,13 +2966,31 @@ export default defineComponent({ ...@@ -2966,13 +2966,31 @@ export default defineComponent({
// id: '9C9D13FA-BA07-4394-8441-55F98F160EDA' // id: '9C9D13FA-BA07-4394-8441-55F98F160EDA'
} }
GYTransferVideo(params).then(res => { GYTransferVideo(params).then(res => {
// 我加了判断
if(res.success === false){
ElMessage({
message: res.data,
type: 'warning'
});
}
this.showVideo = true this.showVideo = true
const list = res.data const list = res.data
this.VideoInfo.playVideoList = [] this.VideoInfo.playVideoList = []
// 检查 list 是否为数组
if (Array.isArray(list)) {
this.VideoInfo.playVideoList = [];
list.forEach(video => { list.forEach(video => {
var videoId = video.videoId.replaceAll('-', ''); var videoId = video.videoId.replaceAll('-', '');
this.VideoInfo.playVideoList.push(videoId); this.VideoInfo.playVideoList.push(videoId);
}) });
}
// list.forEach(video => {
// var videoId = video.videoId.replaceAll('-', '');
// this.VideoInfo.playVideoList.push(videoId);
// })
const videoList = [] const videoList = []
videoList.push(this.VideoInfo.playVideoList[this.videoNum]) videoList.push(this.VideoInfo.playVideoList[this.videoNum])
this.getDivWidth() this.getDivWidth()
...@@ -4076,12 +4094,14 @@ export default defineComponent({ ...@@ -4076,12 +4094,14 @@ export default defineComponent({
background-color: #6D6E73; background-color: #6D6E73;
color: white; color: white;
border: 1px solid #6D6E73; border: 1px solid #6D6E73;
padding: 2px 18px; //padding: 2px 18px;
padding:2px 32px 2px 4px;
} }
.normalBtn{ .normalBtn{
cursor: pointer; cursor: pointer;
border: 1px solid #6D6E73; border: 1px solid #6D6E73;
padding: 2px 18px; padding:2px 32px 2px 4px;
//padding: 2px 18px;
background-color: white; background-color: white;
color: #6D6E73; color: #6D6E73;
} }
......
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