Commit f8957f29 by wangjian

1

parent ef022455
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<view class="swiper-container" v-if="headerData.length>1"> <view class="swiper-container" v-if="headerData.length>1">
<swiper class="swiper" @change="changeSwiper" :indicator-dots="false"> <swiper class="swiper" @change="changeSwiper" :indicator-dots="false">
<swiper-item v-for="(item, index) in headerData" :key="index"> <swiper-item v-for="(item, index) in headerData" :key="index">
<view class="list"> <view class="swiper-list">
<view class="item" v-for="(subItem, subIndex) in item" :key="subIndex" @click="goToLandPage(item)"> <view class="item" v-for="(subItem, subIndex) in item" :key="subIndex" @click="goToLandPage(item)">
<image class="icon" mode="aspectFill" :src="subItem.icon"></image> <image class="icon" mode="aspectFill" :src="subItem.icon"></image>
<view class="item-title">{{ subItem.title }}</view> <view class="item-title">{{ subItem.title }}</view>
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
this.getList() this.getList()
}, },
onPageScroll(e) { onPageScroll(e) {
console.log(e) // console.log(e)
this.opacity = e.scrollTop / 99 this.opacity = e.scrollTop / 99
// const animation = uni.requireNativePlugin('animation') // const animation = uni.requireNativePlugin('animation')
// var top = this.$refs.headerCover // var top = this.$refs.headerCover
...@@ -358,12 +358,14 @@ export default { ...@@ -358,12 +358,14 @@ export default {
border-radius: 30rpx; border-radius: 30rpx;
background-color: #FFFFFF; background-color: #FFFFFF;
padding-bottom: 30rpx; padding-bottom: 30rpx;
z-index: 99;
margin-top: -50rpx;
width: 100%;
.swiper { .swiper {
height: 600rpx; height: 540rpx;
width: 100%; width: 100%;
margin-top: -50rpx;
border-radius: 30rpx; border-radius: 30rpx;
.list { .swiper-list {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
background: #ffffff; background: #ffffff;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment