优化聊天界面
This commit is contained in:
@@ -27,8 +27,8 @@ Page({
|
||||
},
|
||||
});
|
||||
top = wx.getMenuButtonBoundingClientRect().top - stateHeight; // 获取top值
|
||||
console.log('navHeight', navHeight);
|
||||
console.log('top', top);
|
||||
// console.log('navHeight', navHeight);
|
||||
// console.log('top', top);
|
||||
this.setData({
|
||||
// navHeight: navHeight + top * 2, // 导航栏高度
|
||||
navHeight, // 导航栏高度
|
||||
@@ -37,7 +37,7 @@ Page({
|
||||
},
|
||||
|
||||
onShow: function () {
|
||||
console.log("onshow ");
|
||||
// console.log("onshow ");
|
||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||
this.getTabBar().setData({
|
||||
active: 2 //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
|
||||
@@ -46,7 +46,7 @@ Page({
|
||||
this.getMenuButtonBound();
|
||||
},
|
||||
onLoad(){
|
||||
console.log("my onLoad");
|
||||
// console.log("my onLoad");
|
||||
//获取个人中心数据
|
||||
api.getDoctorCenter().then(response => {
|
||||
this.setData({
|
||||
|
||||
Reference in New Issue
Block a user