调整首页
This commit is contained in:
31
components/customStatusBar/index.js
Normal file
31
components/customStatusBar/index.js
Normal file
@@ -0,0 +1,31 @@
|
||||
// components/customStatusBar/index.js
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
height: 0,
|
||||
},
|
||||
lifetimes: {
|
||||
attached() {
|
||||
const { statusBarHeight } = wx.getSystemInfoSync();
|
||||
this.setData({
|
||||
height: statusBarHeight
|
||||
})
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
|
||||
}
|
||||
})
|
4
components/customStatusBar/index.json
Normal file
4
components/customStatusBar/index.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
2
components/customStatusBar/index.wxml
Normal file
2
components/customStatusBar/index.wxml
Normal file
@@ -0,0 +1,2 @@
|
||||
<!--components/customStatusBar/index.wxml-->
|
||||
<view class="wrapper" style="height: {{height}}px;"></view>
|
1
components/customStatusBar/index.wxss
Normal file
1
components/customStatusBar/index.wxss
Normal file
@@ -0,0 +1 @@
|
||||
/* components/customStatusBar/index.wxss */
|
Reference in New Issue
Block a user