|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="enjoyPlayer">
|
|
|
+ <div class="enjoyPlayer" v-click-outside="handleListOutside">
|
|
|
<div v-if="!isBase" v-show="isShowEnjoyPlayerList" class="enjoyPlayerList">
|
|
|
<div class="titNameCon">
|
|
|
<div class="titName">
|
|
@@ -95,6 +95,12 @@ const props = withDefaults(
|
|
|
}
|
|
|
)
|
|
|
|
|
|
+function handleListOutside() {
|
|
|
+ if (!props.isBase && isShowEnjoyPlayerList.value) {
|
|
|
+ hanleEnjoyList()
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
const isShowEnjoyPlayerList = ref(false)
|
|
|
|
|
|
function hanleEnjoyList() {
|
|
@@ -474,7 +480,7 @@ const handleMousedownPlayBar = () => {
|
|
|
bottom: 51px;
|
|
|
box-shadow: 0px 3px 22px 0px rgba(0, 0, 0, 0.12);
|
|
|
border-radius: 20px 20px 0px 0px;
|
|
|
- background-color: rgba(255, 255, 255, 0.9);
|
|
|
+ background-color: rgb(255, 255, 255);
|
|
|
padding: 20px 0 61px 10px;
|
|
|
.titNameCon {
|
|
|
padding-left: 10px;
|
|
@@ -513,7 +519,7 @@ const handleMousedownPlayBar = () => {
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
&.active {
|
|
|
- background: rgba(85, 176, 255, 0.15);
|
|
|
+ background: #e6f3ff;
|
|
|
border-radius: 10px;
|
|
|
.itemLeft {
|
|
|
color: #198cfe;
|