|
@@ -554,13 +554,20 @@
|
|
@go-to-slide="goToSlide"
|
|
@go-to-slide="goToSlide"
|
|
/>
|
|
/>
|
|
<OperationTip
|
|
<OperationTip
|
|
- v-if="isShowOperationTip"
|
|
|
|
|
|
+ v-if="isStartupOver"
|
|
class="operation-tip"
|
|
class="operation-tip"
|
|
text="向左划动"
|
|
text="向左划动"
|
|
direction="h"
|
|
direction="h"
|
|
:is-show="isShowOperationTip"
|
|
:is-show="isShowOperationTip"
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
+ <OperationTip
|
|
|
|
+ v-if="isBackFormOther"
|
|
|
|
+ class="operation-tip"
|
|
|
|
+ text="向左划动"
|
|
|
|
+ direction="h"
|
|
|
|
+ />
|
|
|
|
+
|
|
<div
|
|
<div
|
|
ref="scrollerEl"
|
|
ref="scrollerEl"
|
|
class="scroller"
|
|
class="scroller"
|
|
@@ -689,8 +696,12 @@ function onScroll() {
|
|
scrollerElScrollTop.value = scrollerEl.value.scrollTop
|
|
scrollerElScrollTop.value = scrollerEl.value.scrollTop
|
|
// console.log('当前滚动比例', scrollerElScrollTop.value / summaryHideAt, scrollerEl.value.scrollTop / scrollerEl.value.scrollHeight)
|
|
// console.log('当前滚动比例', scrollerElScrollTop.value / summaryHideAt, scrollerEl.value.scrollTop / scrollerEl.value.scrollHeight)
|
|
}
|
|
}
|
|
|
|
+const isBackFormOther = ref(false)
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
scrollerEl.value.addEventListener('scroll', onScroll)
|
|
scrollerEl.value.addEventListener('scroll', onScroll)
|
|
|
|
+ if (window.location.href.includes('?back=1')) {
|
|
|
|
+ isBackFormOther.value = true
|
|
|
|
+ }
|
|
})
|
|
})
|
|
onBeforeUnmount(() => {
|
|
onBeforeUnmount(() => {
|
|
scrollerEl.value.removeEventListener('scroll', onScroll)
|
|
scrollerEl.value.removeEventListener('scroll', onScroll)
|