|
@@ -36,7 +36,7 @@
|
|
|
class="split-scroll"
|
|
class="split-scroll"
|
|
|
scroll-y
|
|
scroll-y
|
|
|
@scrolltolower="loadMore"
|
|
@scrolltolower="loadMore"
|
|
|
- :style="{ height: scrollHeight + 'px' }">
|
|
|
|
|
|
|
+ lower-threshold="80">
|
|
|
<view class="split-list" v-if="list.length > 0">
|
|
<view class="split-list" v-if="list.length > 0">
|
|
|
<view class="split-item" v-for="(item, index) in list" :key="index">
|
|
<view class="split-item" v-for="(item, index) in list" :key="index">
|
|
|
<view class="item-header">
|
|
<view class="item-header">
|
|
@@ -111,7 +111,6 @@ const selectedStationId = ref('')
|
|
|
const selectedStationName = ref('')
|
|
const selectedStationName = ref('')
|
|
|
const activeType = ref('')
|
|
const activeType = ref('')
|
|
|
const activeTypeLabel = ref('')
|
|
const activeTypeLabel = ref('')
|
|
|
-const scrollHeight = ref(600)
|
|
|
|
|
|
|
|
|
|
const typeOptions = [
|
|
const typeOptions = [
|
|
|
{ label: '全部类型', value: '' }
|
|
{ label: '全部类型', value: '' }
|
|
@@ -219,8 +218,6 @@ const handleSearch = () => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
|
- const sysInfo = uni.getSystemInfoSync()
|
|
|
|
|
- scrollHeight.value = sysInfo.windowHeight - 44 // 减去导航栏高度
|
|
|
|
|
await loadDicts()
|
|
await loadDicts()
|
|
|
loadStations()
|
|
loadStations()
|
|
|
loadData()
|
|
loadData()
|
|
@@ -229,17 +226,20 @@ onMounted(async () => {
|
|
|
|
|
|
|
|
<style scoped>
|
|
<style scoped>
|
|
|
.split-container {
|
|
.split-container {
|
|
|
- min-height: 100vh;
|
|
|
|
|
|
|
+ height: 100vh;
|
|
|
background-color: #F5F7FA;
|
|
background-color: #F5F7FA;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.split-scroll {
|
|
.split-scroll {
|
|
|
flex: 1;
|
|
flex: 1;
|
|
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.filter-section {
|
|
.filter-section {
|
|
|
|
|
+ flex-shrink: 0;
|
|
|
background-color: #FFFFFF;
|
|
background-color: #FFFFFF;
|
|
|
padding: 24rpx 20rpx 20rpx;
|
|
padding: 24rpx 20rpx 20rpx;
|
|
|
margin-bottom: 16rpx;
|
|
margin-bottom: 16rpx;
|