Commit f8957f29 by wangjian

1

parent ef022455
......@@ -24,7 +24,7 @@
<view class="swiper-container" v-if="headerData.length>1">
<swiper class="swiper" @change="changeSwiper" :indicator-dots="false">
<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)">
<image class="icon" mode="aspectFill" :src="subItem.icon"></image>
<view class="item-title">{{ subItem.title }}</view>
......@@ -110,7 +110,7 @@ export default {
this.getList()
},
onPageScroll(e) {
console.log(e)
// console.log(e)
this.opacity = e.scrollTop / 99
// const animation = uni.requireNativePlugin('animation')
// var top = this.$refs.headerCover
......@@ -358,12 +358,14 @@ export default {
border-radius: 30rpx;
background-color: #FFFFFF;
padding-bottom: 30rpx;
z-index: 99;
margin-top: -50rpx;
width: 100%;
.swiper {
height: 600rpx;
height: 540rpx;
width: 100%;
margin-top: -50rpx;
border-radius: 30rpx;
.list {
.swiper-list {
display: flex;
flex-direction: row;
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