Commit 89894e1f by 赵雅纹

Merge branch 'feature-zyw-sc' into 'dev_7.1.0'

Feature zyw sc

See merge request !71
parents 46455f81 ac094481
...@@ -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