Commit 4d2e07fa by 赵雅纹

购物车底部bottom

parent b905e357
...@@ -36,7 +36,14 @@ wxService.page({ ...@@ -36,7 +36,14 @@ wxService.page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
wxService.getSystemInfo().then(res => {
const { statusBarHeight } = res
const { currentHeight, currentMarginTop, currentPaddingTop } = this.data
this.setData({
currentHeight: currentHeight + statusBarHeight,
})
})
console.log(this.data.currentHeight)
}, },
/** /**
...@@ -49,15 +56,6 @@ wxService.page({ ...@@ -49,15 +56,6 @@ wxService.page({
selected: 2 selected: 2
}) })
} }
wxService.getSystemInfo().then(res => {
const { statusBarHeight } = res
const { currentHeight, currentMarginTop, currentPaddingTop } = this.data
this.setData({
currentHeight: currentHeight + statusBarHeight,
})
})
console.log(this.data.currentHeight)
}, },
//选择商品 //选择商品
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment