|
@@ -5,8 +5,6 @@
|
|
<div
|
|
<div
|
|
ref="scrollTarget"
|
|
ref="scrollTarget"
|
|
class="scroll-target"
|
|
class="scroll-target"
|
|
- @touchstart="handletouchstart($event)"
|
|
|
|
- @touchmove="touchMove($event)"
|
|
|
|
>
|
|
>
|
|
<img
|
|
<img
|
|
class="bg"
|
|
class="bg"
|
|
@@ -136,14 +134,20 @@
|
|
class="shuang-gou-she-se-group"
|
|
class="shuang-gou-she-se-group"
|
|
>
|
|
>
|
|
<button
|
|
<button
|
|
- class="watch-detail"
|
|
|
|
|
|
+ class="watch-detail animation-show-hide"
|
|
@click="onClickShuangGouEntry"
|
|
@click="onClickShuangGouEntry"
|
|
>
|
|
>
|
|
查看详情
|
|
查看详情
|
|
</button>
|
|
</button>
|
|
- <h2 class="group-title">
|
|
|
|
|
|
+ <div class="group-title">
|
|
双钩设色
|
|
双钩设色
|
|
- </h2>
|
|
|
|
|
|
+ <img
|
|
|
|
+ class="deco"
|
|
|
|
+ src="@/assets/images/more-content-deco.png"
|
|
|
|
+ alt=""
|
|
|
|
+ draggable="false"
|
|
|
|
+ >
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<img
|
|
<img
|
|
class="bamboo-1_02"
|
|
class="bamboo-1_02"
|
|
@@ -156,25 +160,33 @@
|
|
>
|
|
>
|
|
<div class="button-group">
|
|
<div class="button-group">
|
|
<button
|
|
<button
|
|
- class="poem"
|
|
|
|
|
|
+ class="poem animation-show-hide"
|
|
@click="onClickEntryAtMoZhu('PoemList')"
|
|
@click="onClickEntryAtMoZhu('PoemList')"
|
|
>
|
|
>
|
|
人文
|
|
人文
|
|
</button>
|
|
</button>
|
|
<button
|
|
<button
|
|
|
|
+ class="animation-show-hide"
|
|
@click="onClickEntryAtMoZhu('PaintingList')"
|
|
@click="onClickEntryAtMoZhu('PaintingList')"
|
|
>
|
|
>
|
|
画作
|
|
画作
|
|
</button>
|
|
</button>
|
|
<button
|
|
<button
|
|
|
|
+ class="animation-show-hide"
|
|
@click="onClickEntryAtMoZhu('BambooBook')"
|
|
@click="onClickEntryAtMoZhu('BambooBook')"
|
|
>
|
|
>
|
|
竹谱
|
|
竹谱
|
|
</button>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
- <h2 class="group-title">
|
|
|
|
|
|
+ <div class="group-title">
|
|
墨竹
|
|
墨竹
|
|
- </h2>
|
|
|
|
|
|
+ <img
|
|
|
|
+ class="deco"
|
|
|
|
+ src="@/assets/images/more-content-deco.png"
|
|
|
|
+ alt=""
|
|
|
|
+ draggable="false"
|
|
|
|
+ >
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<img
|
|
<img
|
|
class="bamboo-1_03"
|
|
class="bamboo-1_03"
|
|
@@ -351,27 +363,34 @@ function onClickEntryAtMoZhu(pathName) {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 左滑跳转新页面
|
|
|
|
|
|
+ * 跳转下一个页面
|
|
*/
|
|
*/
|
|
-const fingerPosXWhenTouchStart = ref(0)
|
|
|
|
-const isAtBorderWhenTouchStart = ref(false)
|
|
|
|
-const handletouchstart = (event) => {
|
|
|
|
- fingerPosXWhenTouchStart.value = event.changedTouches[0].pageX
|
|
|
|
- if (Math.abs(maxTranslateLength.value - translateLength.value - windowWidth.value) < 1) {
|
|
|
|
- isAtBorderWhenTouchStart.value = true
|
|
|
|
- } else {
|
|
|
|
- isAtBorderWhenTouchStart.value = false
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-const touchMove = (event) => {
|
|
|
|
- let currentX = event.changedTouches[0].pageX
|
|
|
|
- let tX = currentX - fingerPosXWhenTouchStart.value
|
|
|
|
- if (tX < -1 && isAtBorderWhenTouchStart.value) {
|
|
|
|
|
|
+// const fingerPosXWhenTouchStart = ref(0)
|
|
|
|
+// const isAtBorderWhenTouchStart = ref(false)
|
|
|
|
+// const handletouchstart = (event) => {
|
|
|
|
+// fingerPosXWhenTouchStart.value = event.changedTouches[0].pageX
|
|
|
|
+// if (Math.abs(maxTranslateLength.value - translateLength.value - windowWidth.value) < 1) {
|
|
|
|
+// isAtBorderWhenTouchStart.value = true
|
|
|
|
+// } else {
|
|
|
|
+// isAtBorderWhenTouchStart.value = false
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// const touchMove = (event) => {
|
|
|
|
+// let currentX = event.changedTouches[0].pageX
|
|
|
|
+// let tX = currentX - fingerPosXWhenTouchStart.value
|
|
|
|
+// if (tX < -1 && isAtBorderWhenTouchStart.value) {
|
|
|
|
+// router.push({
|
|
|
|
+// name: 'Game',
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+watch(currentAnchorIdx, (v) => {
|
|
|
|
+ if (v === 2) {
|
|
router.push({
|
|
router.push({
|
|
name: 'Game',
|
|
name: 'Game',
|
|
})
|
|
})
|
|
}
|
|
}
|
|
-}
|
|
|
|
|
|
+})
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
@@ -464,7 +483,7 @@ const touchMove = (event) => {
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 0;
|
|
top: 0;
|
|
height: 100%;
|
|
height: 100%;
|
|
- left: calc(479px * v-bind('layer3SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
|
|
|
|
|
|
+ left: calc(393px * v-bind('layer3SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
|
|
}
|
|
}
|
|
>.bamboo-3_02{
|
|
>.bamboo-3_02{
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -486,13 +505,13 @@ const touchMove = (event) => {
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 0;
|
|
top: 0;
|
|
height: 100%;
|
|
height: 100%;
|
|
- left: calc(503px * v-bind('layer2SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
|
|
|
|
|
|
+ left: calc(420px * v-bind('layer2SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
|
|
}
|
|
}
|
|
>.bamboo-2_02{
|
|
>.bamboo-2_02{
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 0;
|
|
top: 0;
|
|
height: 100%;
|
|
height: 100%;
|
|
- left: calc(894px * v-bind('layer2SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
|
|
|
|
|
|
+ left: calc(920px * v-bind('layer2SpeedFactor') * v-bind('windowHeight') / v-bind('windowHeightDesign'));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
>.layer-1{
|
|
>.layer-1{
|
|
@@ -517,13 +536,25 @@ const touchMove = (event) => {
|
|
position: absolute;
|
|
position: absolute;
|
|
top: calc(182px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
|
|
top: calc(182px * v-bind('windowHeight') / v-bind('windowHeightDesign'));
|
|
left: 0;
|
|
left: 0;
|
|
|
|
+ background-image: url(@/assets/images/fade-chapter-btn-bg-big.png);
|
|
|
|
+ background-size: contain;
|
|
|
|
+ background-repeat: no-repeat;
|
|
|
|
+ background-position: center center;
|
|
|
|
+ padding-top: calc(3px / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
.button-common-style();
|
|
.button-common-style();
|
|
}
|
|
}
|
|
- >h2.group-title{
|
|
|
|
|
|
+ >div.group-title{
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 0;
|
|
top: 0;
|
|
left: calc(41px * v-bind('windowHeight') / v-bind('windowHeightDesign'));;
|
|
left: calc(41px * v-bind('windowHeight') / v-bind('windowHeightDesign'));;
|
|
.group-title-common-style();
|
|
.group-title-common-style();
|
|
|
|
+ >img.deco{
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 0.9em;
|
|
|
|
+ right: -0.05em;
|
|
|
|
+ width: calc(16 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
|
|
+ height: calc(16 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
>.bamboo-1_02{
|
|
>.bamboo-1_02{
|
|
@@ -542,15 +573,28 @@ const touchMove = (event) => {
|
|
left: 0;
|
|
left: 0;
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
|
+ gap: calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
>button{
|
|
>button{
|
|
.button-common-style();
|
|
.button-common-style();
|
|
|
|
+ background-image: url(@/assets/images/fade-chapter-btn-bg-small.png);
|
|
|
|
+ background-size: contain;
|
|
|
|
+ background-repeat: no-repeat;
|
|
|
|
+ background-position: center center;
|
|
|
|
+ padding-top: calc(3px / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- >h2.group-title{
|
|
|
|
|
|
+ >div.group-title{
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 0;
|
|
top: 0;
|
|
left: calc(41px * v-bind('windowHeight') / v-bind('windowHeightDesign'));;
|
|
left: calc(41px * v-bind('windowHeight') / v-bind('windowHeightDesign'));;
|
|
.group-title-common-style();
|
|
.group-title-common-style();
|
|
|
|
+ >img.deco{
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 0.9em;
|
|
|
|
+ right: 0.1em;
|
|
|
|
+ width: calc(16 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
|
|
+ height: calc(16 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
>.bamboo-1_03{
|
|
>.bamboo-1_03{
|