|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="index-box">
|
|
<view class="index-box">
|
|
|
- <Nav :leftShow='false' :customNav='true' bgckgroundBox='transparent'>
|
|
|
|
|
|
|
+ <Nav :leftShow='false' :customNav='true' :bgckgroundBox='bgckgroundBox'>
|
|
|
<template>
|
|
<template>
|
|
|
<view slot="custom" class="align-items-center">
|
|
<view slot="custom" class="align-items-center">
|
|
|
<uni-icons type="location-filled" size="20"></uni-icons>
|
|
<uni-icons type="location-filled" size="20"></uni-icons>
|
|
@@ -11,26 +11,29 @@
|
|
|
</Nav>
|
|
</Nav>
|
|
|
|
|
|
|
|
<image class="bg-img" src="@/static/img/index/index-bg.png" mode="aspectFit"></image>
|
|
<image class="bg-img" src="@/static/img/index/index-bg.png" mode="aspectFit"></image>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <view class="index-box-1 box-border-box plr-24">
|
|
|
|
|
+ 11111111111111
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
- components: {
|
|
|
|
|
-
|
|
|
|
|
- },
|
|
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
-
|
|
|
|
|
|
|
+ bgckgroundBox:'transparent',
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- watch: {
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ onPageScroll(e) {
|
|
|
|
|
+ if(e.scrollTop>1){
|
|
|
|
|
+ this.bgckgroundBox = '#fff';
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.bgckgroundBox = 'transparent';
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
mounted() {
|
|
mounted() {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
@@ -41,14 +44,23 @@
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
.index-box{
|
|
.index-box{
|
|
|
|
|
+ position: relative;
|
|
|
.bg-img{
|
|
.bg-img{
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
height: 1220rpx;
|
|
height: 1220rpx;
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: 0;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ z-index: -1;
|
|
|
}
|
|
}
|
|
|
.nav-icon{
|
|
.nav-icon{
|
|
|
width: 32rpx;
|
|
width: 32rpx;
|
|
|
height: 32rpx;
|
|
height: 32rpx;
|
|
|
}
|
|
}
|
|
|
|
|
+ .index-box-1{
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ height: 3000rpx;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
</style>
|