@@ -1,4 +1,4 @@ | |||||
const navigationBarHeight = (getApp().statusBarHeight + 50) + 'px' | |||||
const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px' | |||||
const Http = require("../../../utils/HttpBasics"); | const Http = require("../../../utils/HttpBasics"); | ||||
const imgurl = require("../../../utils/imgurl"); | const imgurl = require("../../../utils/imgurl"); | ||||
const config = require("../../../config/config"); | const config = require("../../../config/config"); | ||||
@@ -56,9 +56,9 @@ Page({ | |||||
let that = this; | let that = this; | ||||
wx.getSystemInfo({ | wx.getSystemInfo({ | ||||
success: function (res) { | success: function (res) { | ||||
console.log(res.windowHeight); | |||||
console.log(res.windowHeight, navigationBarHeight); | |||||
that.setData({ | that.setData({ | ||||
windowHeight: res.windowHeight | |||||
windowHeight: res.windowHeight + parseInt(navigationBarHeight) | |||||
}) | }) | ||||
}, | }, | ||||
}) | }) | ||||
@@ -3,7 +3,7 @@ | |||||
<view style="padding-top:{{navigationBarHeight}}"> | <view style="padding-top:{{navigationBarHeight}}"> | ||||
<view class='under_line'></view> | <view class='under_line'></view> | ||||
<view style='float: left' class='left'> | <view style='float: left' class='left'> | ||||
<scroll-view scroll-y scroll-with-animation scroll-left="{{scrollLength}}" class='scrollY' style='height: {{windowHeight}}px;padding-top:{{navigationBarHeight}}'> | |||||
<scroll-view scroll-y scroll-with-animation scroll-left="{{scrollLength}}" class='scrollY' style='height: {{windowHeight}}px;top:{{navigationBarHeight}}'> | |||||
<view class='all clear'> | <view class='all clear'> | ||||
<block wx:for="{{lists}}" wx:key="{{index}}"> | <block wx:for="{{lists}}" wx:key="{{index}}"> | ||||
<view bindtap='jumpIndex' data-menuindex='{{item.id}}'> | <view bindtap='jumpIndex' data-menuindex='{{item.id}}'> | ||||
@@ -5,7 +5,6 @@ | |||||
width: 134rpx; | width: 134rpx; | ||||
position: fixed; | position: fixed; | ||||
left: 0; | left: 0; | ||||
top: 0; | |||||
background:#F4F5F9; | background:#F4F5F9; | ||||
} | } | ||||