Commit 09b9d8e9 authored by 王玉鑫's avatar 王玉鑫

feat: 列表页头部fixed样式修改

parent c0c41514
...@@ -164,8 +164,7 @@ export default { ...@@ -164,8 +164,7 @@ export default {
}, },
computed: { computed: {
popupBox() { popupBox() {
return `top : ${this.top + "rpx"}; return `border-radius: 0 0 ${this.radius} ${this.radius};`;
border-radius: 0 0 ${this.radius} ${this.radius};`;
}, },
scrollPopup() { scrollPopup() {
return `opacity: ${this.isShow ? 1 : 0};`; return `opacity: ${this.isShow ? 1 : 0};`;
...@@ -305,10 +304,10 @@ export default { ...@@ -305,10 +304,10 @@ export default {
.popup-box { .popup-box {
width: 100%; width: 100%;
height: auto; height: auto;
position: fixed; position: relative;
overflow: hidden; overflow: hidden;
background-color: #ffffff; background-color: #ffffff;
z-index: 99999 !important; z-index: 5001;
.scroll-popup { .scroll-popup {
width: 100%; width: 100%;
...@@ -385,7 +384,7 @@ export default { ...@@ -385,7 +384,7 @@ export default {
right: 0; right: 0;
bottom: 0; bottom: 0;
background: rgba(0, 0, 0, 0.8); background: rgba(0, 0, 0, 0.8);
z-index: 99998 !important; z-index: 5000 !important;
overflow: hidden; overflow: hidden;
} }
</style> </style>
<!-- 走进园区 --> <!-- 走进园区 -->
<template> <template>
<view class="container"> <view class="container">
<view class="tab_bar"> <div class="top-cell">
<view <view class="tab_bar relative z-5001">
class="tab_item" <view
:class="{ active: activeBar === index }" class="tab_item"
@click="changeTab(index)" :class="{ active: activeBar === index }"
v-for="(tab, index) in tabBarList" @click="changeTab(index)"
:key="index" v-for="(tab, index) in tabBarList"
> :key="index"
<p>{{ tab }}</p> >
<span class="line" v-if="activeBar === index"></span> <p>{{ tab }}</p>
<span class="line" v-if="activeBar === index"></span>
</view>
</view> </view>
</view> <div
<div class="flex align-center justify-between relative z-5001"
class="flex align-center justify-between" style="padding: 25rpx 23rpx;background: #fff;width: 100vw "
style="padding: 25rpx 23rpx;background: #fff;position: fixed;top: 60rpx;width: 100vw "
> >
<div class="flex align-center"> <div class="flex align-center">
<div class="search-input"> <div class="search-input">
...@@ -48,16 +49,16 @@ ...@@ -48,16 +49,16 @@
</div> </div>
</div> </div>
</div> </div>
<dropdown-vue <dropdown-vue
ref="dropDown" ref="dropDown"
:menuList="$u.deepClone(menuList[activeBar])" :menuList="$u.deepClone(menuList[activeBar])"
:dataObj="$u.deepClone(filterList[activeBar])" :dataObj="$u.deepClone(filterList[activeBar])"
@change="change" @change="change"
themeColor="#4374EF" themeColor="#4374EF"
:top="166" :top="166"
></dropdown-vue> ></dropdown-vue>
<div style="height: 246rpx"></div> </div>
<div v-if="mode === 'list'"> <template v-if="mode === 'list'">
<view class="tab-contant"> <view class="tab-contant">
<view <view
class="media-card" class="media-card"
...@@ -92,8 +93,8 @@ ...@@ -92,8 +93,8 @@
marginTop="120" marginTop="120"
> >
</u-empty> </u-empty>
</div> </template>
<div v-else> <div v-else class="">
<map id="mapId" @markertap="handleMarkerClick" @callouttap="handleMarkerClick" :scale='10' style="width: 100%;height: calc(100vh - 246rpx)" latitude="31.464086" longitude="116.944909" class="map" :markers="markers"> <map id="mapId" @markertap="handleMarkerClick" @callouttap="handleMarkerClick" :scale='10' style="width: 100%;height: calc(100vh - 246rpx)" latitude="31.464086" longitude="116.944909" class="map" :markers="markers">
</map> </map>
<div v-if="activeInfo.id" :key="activeInfo.id" @click="toDetail(activeInfo)" style="position: fixed;padding: 0 30rpx;bottom: 30rpx;width: 100vw;z-index: 999;box-sizing: border-box;"> <div v-if="activeInfo.id" :key="activeInfo.id" @click="toDetail(activeInfo)" style="position: fixed;padding: 0 30rpx;bottom: 30rpx;width: 100vw;z-index: 999;box-sizing: border-box;">
...@@ -390,8 +391,8 @@ export default { ...@@ -390,8 +391,8 @@ export default {
padding: 0 10rpx; padding: 0 10rpx;
padding-top: 15rpx; padding-top: 15rpx;
background-color: #fff; background-color: #fff;
position: fixed; // position: fixed;
top: 0; // top: 0;
width: 100vw; width: 100vw;
box-sizing: border-box; box-sizing: border-box;
} }
...@@ -418,6 +419,7 @@ export default { ...@@ -418,6 +419,7 @@ export default {
} }
.tab-contant { .tab-contant {
padding: 20rpx 30rpx; padding: 20rpx 30rpx;
padding-top: 250rpx + 20rpx;
} }
.media-card { .media-card {
margin-bottom: 15rpx; margin-bottom: 15rpx;
...@@ -457,4 +459,17 @@ export default { ...@@ -457,4 +459,17 @@ export default {
margin-right: 16rpx; margin-right: 16rpx;
} }
} }
.top-cell {
position: fixed;
top: 0;
right: 0;
left: 0;;
background-color: white;
}
.z-5001 {
z-index: 5001;
}
.relative {
position: relative;
}
</style> </style>
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