|
@@ -61,6 +61,12 @@
|
|
|
class="button-back"
|
|
|
@click="router.go(-1)"
|
|
|
/>
|
|
|
+ <Transition
|
|
|
+ v-show="isShowOperationTipShadow"
|
|
|
+ name="fade-out"
|
|
|
+ >
|
|
|
+ <div class="operation-tip-shadow" />
|
|
|
+ </Transition>
|
|
|
<OperationTip
|
|
|
class="operation-tip"
|
|
|
text="下一首"
|
|
@@ -85,6 +91,9 @@
|
|
|
<button
|
|
|
v-for="(item, index) in menuList"
|
|
|
:key="index"
|
|
|
+ :class="{
|
|
|
+ active: item === currentPoem['朝代']
|
|
|
+ }"
|
|
|
@click="onClickMenuItem(item)"
|
|
|
>
|
|
|
<img
|
|
@@ -178,8 +187,13 @@ const isShowOperationTip = ref(true)
|
|
|
watch(currentIdx, (v) => {
|
|
|
if (isShowOperationTip.value) {
|
|
|
isShowOperationTip.value = false
|
|
|
+ isShowOperationTipShadow.value = false
|
|
|
}
|
|
|
})
|
|
|
+const isShowOperationTipShadow = ref(true)
|
|
|
+setTimeout(() => {
|
|
|
+ isShowOperationTipShadow.value = false
|
|
|
+}, 2000)
|
|
|
|
|
|
/**
|
|
|
* 目录
|
|
@@ -324,6 +338,15 @@ function onClickMenuItem(menuItemName) {
|
|
|
>.button-back{
|
|
|
z-index: 10;
|
|
|
}
|
|
|
+ >.operation-tip-shadow{
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ bottom: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 20%;
|
|
|
+ background: linear-gradient( rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.2) 100%);
|
|
|
+ z-index: 9;
|
|
|
+ }
|
|
|
>.operation-tip{
|
|
|
position: absolute;
|
|
|
left: 50%;
|
|
@@ -349,7 +372,7 @@ function onClickMenuItem(menuItemName) {
|
|
|
top: 0;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
- background: rgba(38,55,38,0.6);
|
|
|
+ background: rgba(102,123,82,0.6);
|
|
|
border-radius: 0px 0px 0px 0px;
|
|
|
backdrop-filter: blur(calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef')));
|
|
|
z-index: 15;
|
|
@@ -379,6 +402,9 @@ function onClickMenuItem(menuItemName) {
|
|
|
height: 100%;
|
|
|
}
|
|
|
}
|
|
|
+ >button.active{
|
|
|
+ color: #F4E09D;
|
|
|
+ }
|
|
|
}
|
|
|
>button.close{
|
|
|
position: absolute;
|