Commit a14015b6d060e623c0efd5cbcdf87beb1c3234e8

Authored by vking
1 parent 3da57ebd

fixbug 提前点菜层级错乱

... ... @@ -86,11 +86,22 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
let systemInfo = wx.getSystemInfoSync();
let reg = /ios/i;
let pt = 20;//导航状态栏上内边距
let h = 44;//导航状态栏高度
if(reg.test(systemInfo.system)){
pt = systemInfo.statusBarHeight;
h = 44;
}else{
pt = systemInfo.statusBarHeight;
h = 48;
}
this.setData({
totalWidth: getApp().system.windowWidth,
singleWidth: parseInt((getApp().system.windowWidth * 0.92 - 16) / 2),
totalHeight: getApp().system.windowHeight,
kindHeight: getApp().system.windowHeight - 68
kindHeight: getApp().system.windowHeight - pt-h
})
setTimeout(()=>{
this.initScrollHeightList();
... ...
... ... @@ -5,7 +5,7 @@
<!--第四部分 原始菜无图或有图展示-->
<scroll-view
scroll-y class = "partfour list-model"
style = "height:{{totalHeight}}px;width:100%;z-index:{{scrollZindex}}; position: fixed;"
style = "height:{{kindHeight-55}}px;width:100%;z-index:{{scrollZindex}}; position: fixed;"
scroll-into-view = "{{toView}}"
scroll-with-animation
bindscroll="bindscroll"
... ... @@ -29,7 +29,7 @@
</view>
</view>
</view>
<view style="height: 110px;width: 100%;"></view>
<view style="height: 110rpx;width: 100%;"></view>
</view>
</scroll-view>
<view class="white flex-lr bottom-view">
... ...
... ... @@ -45,7 +45,7 @@
"list": []
},
"miniprogram": {
"current": 53,
"current": 25,
"list": [
{
"id": 0,
... ... @@ -244,7 +244,7 @@
"id": 25,
"name": "pack-cookbook/pages/index",
"pathName": "pack-cookbook/pages/index",
"query": "rid=5328&oid=173&identity=1&sid=154",
"query": "rid=18599&oid=273&identity=1&sid=154",
"scene": 1001
},
{
... ...