|
@@ -84,6 +84,14 @@
|
|
|
<BtnBack
|
|
|
@click="router.go(-1)"
|
|
|
/>
|
|
|
+
|
|
|
+ <OperationTip
|
|
|
+ class="operation-tip"
|
|
|
+ :direction="'h'"
|
|
|
+ :text="'下一章'"
|
|
|
+ :is-show="isShowOperationTip"
|
|
|
+ :color="'green'"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -95,6 +103,8 @@ import PoemList from '@/views/PoemList.vue'
|
|
|
import paintingList from '@/views/PaintingList.vue'
|
|
|
import useSmoothSwipe from '@/useFunctions/useSmoothSwipe.js'
|
|
|
import { useWindowSize } from '@vueuse/core'
|
|
|
+import OperationTip from "@/components/OperationTip.vue"
|
|
|
+import useSizeAdapt from "@/useFunctions/useSizeAdapt.js"
|
|
|
|
|
|
const route = useRoute()
|
|
|
const router = useRouter()
|
|
@@ -102,6 +112,11 @@ const store = useStore()
|
|
|
|
|
|
const $env = inject('$env')
|
|
|
|
|
|
+const {
|
|
|
+ windowSizeInCssForRef,
|
|
|
+ windowSizeWhenDesignForRef,
|
|
|
+} = useSizeAdapt()
|
|
|
+
|
|
|
const windowWidthDesign = 1560
|
|
|
const windowHeightDesign = 844
|
|
|
|
|
@@ -140,7 +155,17 @@ watch(translateLength, (v) => {
|
|
|
moZhuGroupLeft.value = moZhuGroupInitialLeft - v
|
|
|
})
|
|
|
|
|
|
-
|
|
|
+const isShowOperationTip = ref(true)
|
|
|
+const unwatch = watch(translateLength, (v) => {
|
|
|
+ console.log(v)
|
|
|
+ isShowOperationTip.value = false
|
|
|
+ unwatch()
|
|
|
+ // if (Math.abs(v - (scrollerEl.value.scrollHeight - scrollerEl.value.clientHeight)) <= 1) {
|
|
|
+ // router.push({
|
|
|
+ // name: 'MoreContent',
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+})
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
@@ -222,5 +247,10 @@ watch(translateLength, (v) => {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ .operation-tip{
|
|
|
+ position: absolute;
|
|
|
+ right: calc(44 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
|
+ bottom: calc(74 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|