add
This commit is contained in:
parent
b6b5fbd790
commit
02faeccc96
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue