mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-10 08:12:08 +08:00
视频分类被选后时改变背景颜色
This commit is contained in:
@@ -131,6 +131,9 @@
|
||||
border-color: var(--d-c-8);
|
||||
}
|
||||
}
|
||||
.selected {
|
||||
background-color: var(--d-c-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,6 +131,9 @@
|
||||
border-color: var(--g-c-8);
|
||||
}
|
||||
}
|
||||
.selected {
|
||||
background-color: var(--g-c-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,6 +131,9 @@
|
||||
border-color: var(--l-c-8);
|
||||
}
|
||||
}
|
||||
.selected {
|
||||
background-color: var(--l-c-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,6 +131,9 @@
|
||||
border-color: var(--p-c-8);
|
||||
}
|
||||
}
|
||||
.selected {
|
||||
background-color: var(--p-c-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,12 +54,10 @@
|
||||
<div
|
||||
class="desc" v-show="info.des">{{info.des}}
|
||||
</div>
|
||||
<div class="m3u8" v-if="videoFullList.length > 1">
|
||||
<div class="box">
|
||||
<span v-for="(i, j) in videoFullList" :key="j" @click="updateVideoList(i)">{{i.flag}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="m3u8">
|
||||
<div class="box">
|
||||
<span v-bind:class="{ selected: i.flag === videoFlag }" v-for="(i, j) in videoFullList" :key="j" @click="updateVideoList(i)">{{i.flag}}</span>
|
||||
</div>
|
||||
<div class="box">
|
||||
<span v-for="(i, j) in videoList" :key="j" @click="playEvent(j)">{{i | ftName}}</span>
|
||||
</div>
|
||||
@@ -133,6 +131,13 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
...mapMutations(['SET_VIEW', 'SET_VIDEO', 'SET_DETAIL', 'SET_SHARE']),
|
||||
addClass (flag) {
|
||||
if (flag === this.videoFlag) {
|
||||
return 'selectedBox'
|
||||
} else {
|
||||
return 'box'
|
||||
}
|
||||
},
|
||||
close () {
|
||||
this.detail.show = false
|
||||
},
|
||||
@@ -407,6 +412,15 @@ export default {
|
||||
margin: 6px 10px 0px 0px;
|
||||
padding: 8px 22px;
|
||||
}
|
||||
.selected {
|
||||
display: inline-block;
|
||||
font-size: 12px;
|
||||
border: 1px solid;
|
||||
border-radius: 2px;
|
||||
cursor: pointer;
|
||||
margin: 6px 10px 0px 0px;
|
||||
padding: 8px 22px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user