|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<view>
|
|
<view>
|
|
- <Navbar :showLogo="true" />
|
|
|
|
|
|
+ <Navbar :showLogo="true" ref="navRef" :noBgColor="noBgColor" />
|
|
<view class="box defaultBgc">
|
|
<view class="box defaultBgc">
|
|
<scroll-view class="scrollBox" :scroll-y="true" :scroll-top="scrollTop" @scrolltolower="loadingMore" @scroll="onScroll" style="position:relative;">
|
|
<scroll-view class="scrollBox" :scroll-y="true" :scroll-top="scrollTop" @scrolltolower="loadingMore" @scroll="onScroll" style="position:relative;">
|
|
<view>
|
|
<view>
|
|
@@ -88,6 +88,7 @@ onLoad(() => {
|
|
if (!uni.getStorageSync('token')) getRewardEventList()
|
|
if (!uni.getStorageSync('token')) getRewardEventList()
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+const navRef = ref()
|
|
const more = ref('more')
|
|
const more = ref('more')
|
|
// 轮播图-优选集团信息
|
|
// 轮播图-优选集团信息
|
|
const preferredGroup = ref({})
|
|
const preferredGroup = ref({})
|
|
@@ -267,17 +268,16 @@ const scrollTop = ref(0)
|
|
const old = ref({
|
|
const old = ref({
|
|
scrollTop: 0
|
|
scrollTop: 0
|
|
})
|
|
})
|
|
|
|
+const noBgColor = ref(false)
|
|
const onScroll = (e) =>{
|
|
const onScroll = (e) =>{
|
|
|
|
+ // const navbarHeight = navRef.value?.height || 55
|
|
|
|
+ // noBgColor.value = e.detail.scrollTop > (navbarHeight + 160 + 82) ? true : false
|
|
|
|
+
|
|
old.value.scrollTop = e.detail.scrollTop
|
|
old.value.scrollTop = e.detail.scrollTop
|
|
}
|
|
}
|
|
|
|
|
|
const handleSearch = (key, value) => {
|
|
const handleSearch = (key, value) => {
|
|
query[key] = value
|
|
query[key] = value
|
|
- // if (key === 'positionId' || key === 'payScope') {
|
|
|
|
- // query[key] = value || null
|
|
|
|
- // } else {
|
|
|
|
- // query[key] = value ? [value] : []
|
|
|
|
- // }
|
|
|
|
onSearch()
|
|
onSearch()
|
|
}
|
|
}
|
|
|
|
|