This commit is contained in:
zmj 2024-06-20 13:45:12 +08:00
parent b6b5fbd790
commit 02faeccc96
2 changed files with 4 additions and 6 deletions

View File

@ -269,8 +269,6 @@
let lastScollTop = 0
const hideHeadView = (e) => {
if (e.detail.scrollTop < 100) return
console.log(e.detail.scrollTop, scoHeight, targetHeight.value)
// if (targetHeight.value < 200) return
if (e.detail.scrollTop <= 0 || e.detail.scrollTop > targetHeight.value)
return
isScroll.value = e.detail.scrollTop > lastScollTop
@ -577,7 +575,6 @@
where.value.store_id = opt.id || STORE_INFO.id;
// id
if (opt.id) {
console.log('opt', opt)
where.value.store_id = opt.id;
const info = await shopDetailApi({
store_id: opt.id
@ -592,8 +589,10 @@
}
getgoodClassList(0);
getGoodList();
// #ifndef H5
//
btns.value = uni.getMenuButtonBoundingClientRect();
// #endif
})
onShow(() => {
@ -622,7 +621,6 @@
scrollOffset: true,
},
(data) => {
console.log(data)
scoHeight = data.scrollHeight
targetHeight.value = data.scrollHeight - data.height
}

View File

@ -16,10 +16,10 @@
<up-button @click="weixinLogin" color="#20B128" size="large"><up-icon name="weixin-fill"
color="#fff" size="28"></up-icon></up-button>
</view>
<!-- <view class="btn">
<view class="btn">
<up-button @click="navgo('/pages/login/test')" color="#20B128" size="large"><up-icon
name="weixin-fill" color="#fff" size="28"></up-icon></up-button>
</view> -->
</view>
<!-- <view class="btn">
<up-button @click="officialCode" color="#20B128" size="large"><up-icon name="weixin-fill" color="#fff"
size="28"></up-icon></up-button>