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 let lastScollTop = 0
const hideHeadView = (e) => { const hideHeadView = (e) => {
if (e.detail.scrollTop < 100) return 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) if (e.detail.scrollTop <= 0 || e.detail.scrollTop > targetHeight.value)
return return
isScroll.value = e.detail.scrollTop > lastScollTop isScroll.value = e.detail.scrollTop > lastScollTop
@ -577,7 +575,6 @@
where.value.store_id = opt.id || STORE_INFO.id; where.value.store_id = opt.id || STORE_INFO.id;
// id // id
if (opt.id) { if (opt.id) {
console.log('opt', opt)
where.value.store_id = opt.id; where.value.store_id = opt.id;
const info = await shopDetailApi({ const info = await shopDetailApi({
store_id: opt.id store_id: opt.id
@ -592,8 +589,10 @@
} }
getgoodClassList(0); getgoodClassList(0);
getGoodList(); getGoodList();
// #ifndef H5
// //
btns.value = uni.getMenuButtonBoundingClientRect(); btns.value = uni.getMenuButtonBoundingClientRect();
// #endif
}) })
onShow(() => { onShow(() => {
@ -622,7 +621,6 @@
scrollOffset: true, scrollOffset: true,
}, },
(data) => { (data) => {
console.log(data)
scoHeight = data.scrollHeight scoHeight = data.scrollHeight
targetHeight.value = data.scrollHeight - data.height 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" <up-button @click="weixinLogin" color="#20B128" size="large"><up-icon name="weixin-fill"
color="#fff" size="28"></up-icon></up-button> color="#fff" size="28"></up-icon></up-button>
</view> </view>
<!-- <view class="btn"> <view class="btn">
<up-button @click="navgo('/pages/login/test')" color="#20B128" size="large"><up-icon <up-button @click="navgo('/pages/login/test')" color="#20B128" size="large"><up-icon
name="weixin-fill" color="#fff" size="28"></up-icon></up-button> name="weixin-fill" color="#fff" size="28"></up-icon></up-button>
</view> --> </view>
<!-- <view class="btn"> <!-- <view class="btn">
<up-button @click="officialCode" color="#20B128" size="large"><up-icon name="weixin-fill" color="#fff" <up-button @click="officialCode" color="#20B128" size="large"><up-icon name="weixin-fill" color="#fff"
size="28"></up-icon></up-button> size="28"></up-icon></up-button>