|
@@ -46,32 +46,38 @@ import footIndex from '../../components/windows/footIndex.vue'
|
|
|
const { y } = useWindowScroll()
|
|
|
|
|
|
function useWindowScroll() {
|
|
|
- const y = ref(0);
|
|
|
+ const y = ref(0)
|
|
|
|
|
|
const handleScroll = () => {
|
|
|
- y.value = window.scrollY;
|
|
|
- };
|
|
|
+ y.value = window.scrollY
|
|
|
+ }
|
|
|
|
|
|
onMounted(() => {
|
|
|
- window.addEventListener('scroll', handleScroll);
|
|
|
- });
|
|
|
+ window.addEventListener('scroll', handleScroll)
|
|
|
+ })
|
|
|
|
|
|
onUnmounted(() => {
|
|
|
- window.removeEventListener('scroll', handleScroll);
|
|
|
- });
|
|
|
+ window.removeEventListener('scroll', handleScroll)
|
|
|
+ })
|
|
|
|
|
|
- return { y };
|
|
|
+ return { y }
|
|
|
}
|
|
|
</script>
|
|
|
<style scoped lang="scss">
|
|
|
.inwater {
|
|
|
.info {
|
|
|
+ position: relative;
|
|
|
+ background-image: url('/inwater1.png');
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-size: 100% 480px;
|
|
|
.top {
|
|
|
height: 480px;
|
|
|
- background-image: url('/inwater1.png');
|
|
|
- background-repeat: no-repeat;
|
|
|
- background-size: 100% 100%;
|
|
|
.menus {
|
|
|
+ position: fixed;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ width: 100%;
|
|
|
+ z-index: 1000;
|
|
|
height: 66px;
|
|
|
-webkit-transition: all 1.5s ease;
|
|
|
-moz-transition: all 1.5s ease;
|
|
@@ -87,7 +93,7 @@ function useWindowScroll() {
|
|
|
width: 100%;
|
|
|
z-index: 1000;
|
|
|
background-color: #fff;
|
|
|
- -webkit-transition: all 1.5s ease;
|
|
|
+ -webkit-transition: all 1.5s ease;
|
|
|
-moz-transition: all 1.5s ease;
|
|
|
-ms-transition: all 1.5s ease;
|
|
|
-o-transition: all 1.5s ease;
|
|
@@ -97,7 +103,7 @@ function useWindowScroll() {
|
|
|
padding: 0 17%;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.bottom {
|
|
|
margin: 40px 0 0 0;
|
|
|
.zero {
|