|
@@ -9,10 +9,25 @@
|
|
@dragstart.prevent
|
|
@dragstart.prevent
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
|
|
+ class="paper-wrap"
|
|
|
|
+ :style="{
|
|
|
|
+ left: paperPositionLeft,
|
|
|
|
+ }"
|
|
|
|
+ >
|
|
|
|
+ <img
|
|
|
|
+ v-for="index in 3"
|
|
|
|
+ :key="index"
|
|
|
|
+ class="paper"
|
|
|
|
+ src="@/assets/background.jpg"
|
|
|
|
+ alt=""
|
|
|
|
+ @dragstart.prevent
|
|
|
|
+ >
|
|
|
|
+ </div>
|
|
|
|
+ <div
|
|
ref="landscape-wrap"
|
|
ref="landscape-wrap"
|
|
class="landscape-wrap"
|
|
class="landscape-wrap"
|
|
:style="{
|
|
:style="{
|
|
- left: landscapePositionleft,
|
|
|
|
|
|
+ left: landscapePositionLeft,
|
|
}"
|
|
}"
|
|
>
|
|
>
|
|
<img
|
|
<img
|
|
@@ -159,7 +174,8 @@ export default {
|
|
|
|
|
|
// 镜头平移相关
|
|
// 镜头平移相关
|
|
translateLength: 0,
|
|
translateLength: 0,
|
|
- landscapePositionleft: '18.491%',
|
|
|
|
|
|
+ paperPositionLeft: 0,
|
|
|
|
+ landscapePositionLeft: '18.491%',
|
|
peopleFarPositionRight: initPeopleFarPositionRight,
|
|
peopleFarPositionRight: initPeopleFarPositionRight,
|
|
peopleNearPositionLeft: initialPeopleNearPositionLeft,
|
|
peopleNearPositionLeft: initialPeopleNearPositionLeft,
|
|
introducePositionLeft: '3.347%',
|
|
introducePositionLeft: '3.347%',
|
|
@@ -323,7 +339,8 @@ export default {
|
|
// this.tourState = 1
|
|
// this.tourState = 1
|
|
// }
|
|
// }
|
|
|
|
|
|
- this.landscapePositionleft = `calc(18.491% + ${vNew * landscapeSpeedRate}px)`
|
|
|
|
|
|
+ this.paperPositionLeft = `${vNew * landscapeSpeedRate}px`
|
|
|
|
+ this.landscapePositionLeft = `calc(18.491% + ${vNew * landscapeSpeedRate}px)`
|
|
this.peopleFarPositionRight = `calc(${initPeopleFarPositionRight} - ${vNew * peopleFarSpeedRate}px)`
|
|
this.peopleFarPositionRight = `calc(${initPeopleFarPositionRight} - ${vNew * peopleFarSpeedRate}px)`
|
|
this.peopleNearPositionLeft = `calc(${initialPeopleNearPositionLeft} + ${vNew * peopleNearSpeedRate}px)`
|
|
this.peopleNearPositionLeft = `calc(${initialPeopleNearPositionLeft} + ${vNew * peopleNearSpeedRate}px)`
|
|
this.introducePositionLeft = `calc(3.347% + ${vNew * introduceSpeedRate}px)`
|
|
this.introducePositionLeft = `calc(3.347% + ${vNew * introduceSpeedRate}px)`
|
|
@@ -480,11 +497,17 @@ export default {
|
|
.home {
|
|
.home {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
- background-image: url(@/assets/background.jpg);
|
|
|
|
- background-repeat: repeat;
|
|
|
|
- background-size: contain;
|
|
|
|
position: relative;
|
|
position: relative;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
|
+ .paper-wrap {
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 0;
|
|
|
|
+ height: 100%;
|
|
|
|
+ display: flex;
|
|
|
|
+ > .paper {
|
|
|
|
+ height: 100%;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.landscape-wrap {
|
|
.landscape-wrap {
|
|
position: absolute;
|
|
position: absolute;
|
|
height: 30%;
|
|
height: 30%;
|