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)
}, },
//选择商品 //选择商品
......
...@@ -262,10 +262,10 @@ ...@@ -262,10 +262,10 @@
"id": -1, "id": -1,
"name": "分享", "name": "分享",
"pathName": "subPackage/page/pages/share/share", "pathName": "subPackage/page/pages/share/share",
"query": "", "query": "",
"scene": null "scene": null
}, },
{ {
"id": 33, "id": 33,
"name": "支付状态", "name": "支付状态",
"pathName": "subPackage/page/pages/paymentStatus/paymentStatus", "pathName": "subPackage/page/pages/paymentStatus/paymentStatus",
......
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