|
@@ -1,15 +1,24 @@
|
|
|
<template>
|
|
|
<div id="drawer-container">
|
|
|
+
|
|
|
<div id="drawer" class="fullWidth">
|
|
|
<div class="frame-container darkGlass">
|
|
|
+
|
|
|
+ <!-- 场景列表 -->
|
|
|
<div id="scrollFrame" class="frame">
|
|
|
<ul id="thumb-container" class="slidee"></ul>
|
|
|
</div>
|
|
|
+
|
|
|
+ <!-- 滚动条 -->
|
|
|
<div class="scrollbar" id="scroller">
|
|
|
+ <!-- thumb -->
|
|
|
<div class="handle"></div>
|
|
|
</div>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <!-- 自动导览时显示导览进度 -->
|
|
|
<div id="playHead">
|
|
|
<div id="status">
|
|
|
<span class="curIdx">1</span>
|
|
@@ -17,6 +26,7 @@
|
|
|
</div>
|
|
|
<div id="progressBar" :class="{ full: pageFlag }"></div>
|
|
|
</div>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -30,22 +40,69 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
|
-#status {
|
|
|
- background-color: #A1653B;
|
|
|
- color: #FFF6D2;
|
|
|
+#drawer-container {
|
|
|
+ #drawer {
|
|
|
+ font-size: 16px;
|
|
|
+ .frame-container {
|
|
|
+ background-color: rgba(133, 119, 69, 0.5);
|
|
|
+ backdrop-filter: blur(10px);
|
|
|
+ #scrollFrame.frame {
|
|
|
+ background-color: initial;
|
|
|
+ ul#thumb-container {
|
|
|
+ padding: 10px 20px;
|
|
|
+ li.thumbImg {
|
|
|
+ // 在这里写也没用
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ #scroller {
|
|
|
+ .handle {
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
-#progressBar {
|
|
|
- transition: all 0.3s;
|
|
|
- width: calc(100% - 200px);
|
|
|
- height: 100%;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- background-color: #A1653B;
|
|
|
+</style>
|
|
|
+
|
|
|
+<style lang="less">
|
|
|
+// 场景封面图
|
|
|
+// 平时
|
|
|
+#thumb-container .thumbImg img {
|
|
|
+ box-sizing: border-box;
|
|
|
+ border: none;
|
|
|
+ width: 100%;
|
|
|
+ object-fit: cover;
|
|
|
+}
|
|
|
+// hover时
|
|
|
+.frame .slidee li.thumbImg.hasHover>img:hover {
|
|
|
}
|
|
|
-#playHead {
|
|
|
- background-color: transparent;
|
|
|
+// 选中后
|
|
|
+.frame .slidee li.thumbImg.active>img {
|
|
|
+ border: 3px solid #A10E0C !important;
|
|
|
+}
|
|
|
+
|
|
|
+// 场景名称
|
|
|
+// 平时
|
|
|
+.frame .slidee li .overlay {
|
|
|
+ box-sizing: border-box;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ bottom: initial;
|
|
|
+ height: 100%;
|
|
|
+ line-height: 97px;
|
|
|
+ transform: initial;
|
|
|
+
|
|
|
+ color: #fff;
|
|
|
+ pointer-events: none;
|
|
|
+ background: rgba(0, 0, 0, 0.5);
|
|
|
}
|
|
|
-.full {
|
|
|
- width: 100% !important;
|
|
|
+// 选中后
|
|
|
+.frame .slidee li.thumbImg.active>.overlay {
|
|
|
+ top: initial;
|
|
|
+ bottom: 0;
|
|
|
+ height: 36px;
|
|
|
+ line-height: 36px;
|
|
|
+ background: linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.5) 100%);
|
|
|
}
|
|
|
</style>
|