邓洁:搜索框吸顶

This commit is contained in:
邓洁
2023-11-27 23:47:51 +08:00
parent 096440bbfc
commit 93d2bb04c7
9 changed files with 59 additions and 80 deletions

View File

@@ -1,18 +1,14 @@
<template>
<view class="root">
<InputAndSwiper @getQueryInfo="getInput" :bannerURL="swiperList" :refresh="isRefresh">
</InputAndSwiper>
<view>
<view class="dropdown-bug">
</view>
<view class="marginLR10 sticky">
<view class="sticky">
<InputAndSwiper @getQueryInfo="getInput" :bannerURL="swiperList" :refresh="isRefresh">
</InputAndSwiper>
<view class="marginLR10 ">
<DropDown @getQueryInfo="getShopList" ref="dropdown" @cancelPageNum="cancelPageNum"></DropDown>
</view>
<view class="marginLR10">
<ShowShopList :showStyle="1" :shopInfoList="shopInfoList"></ShowShopList>
</view>
</view>
<view class="marginLR10">
<ShowShopList :showStyle="1" :shopInfoList="shopInfoList"></ShowShopList>
</view>
<view v-if="showNull" class="showNull">
<text>没有符合条件的数据, 请下拉刷新重置数据~
@@ -141,12 +137,12 @@
}
}
</script>
<style lang="scss" scoped>
<style>
page {
background-color: $uni-bg-color-grey;
background-color: #f8f8f8;
}
</style>
<style lang="scss" scoped>
.showNull {
display: flex;
align-items: center;
@@ -159,14 +155,6 @@
position: relative;
}
.dropdown-bug {
position: absolute;
background-color: $uni-bg-color-grey;
height: 120rpx;
width: 100%;
transform: translateY(-20rpx);
z-index: 2;
}
.marginLR10 {
margin: 0 10px;