diff --git a/pages/home/index/index.js b/pages/home/index/index.js index 6d8e307..c6fa0af 100644 --- a/pages/home/index/index.js +++ b/pages/home/index/index.js @@ -25,6 +25,7 @@ Component({ lifetimes: { // 生命周期函数,可以为函数,或一个在methods段中定义的方法名 attached: function () { + this.setData({CustomBar: app.globalData.CustomBar || (app.globalData.isIos ? 64 : 80), height: app.globalData.safeFragmentHeight - 100}) event.on('EventMessage', this, this.onEvent) }, detached: function () { @@ -60,7 +61,7 @@ Component({ userInfo: app.userInfo, userName: nickname, isAdmin: app.userInfo.type && app.userInfo.type.indexOf('ADMIN') >= 0, - height: app.globalData.safeFragmentHeight - 100 + }) }, toUserInfo: function(){ diff --git a/pages/home/index/index.wxml b/pages/home/index/index.wxml index b647fd9..f7d6ebd 100644 --- a/pages/home/index/index.wxml +++ b/pages/home/index/index.wxml @@ -1,71 +1,122 @@ - + - - - - - - - - - {{userName || ''}} - ({{ isAdmin ? '管理员' : '员工' }}) - - + + + + + + + + + + + + {{userName || ''}} + ({{ isAdmin ? '管理员' : '员工' }}) + + + + + + {{userInfo.mobile || ''}} + - - {{userInfo.mobile || ''}} + + + + + + + 企业管理 + + + + + + + + + + + + + + - - - - - 企业管理 - - - - - - - - - - - - - - - - + + + + 企业信息 + + + + + 银行卡 + + + + + + 出货渠道 + + + + + + + + + + - - - \ No newline at end of file + \ No newline at end of file