优化聊天界面

This commit is contained in:
haomingming
2023-03-30 08:49:38 +08:00
parent 5ba50e4e61
commit 9859b0cbea
28 changed files with 422 additions and 124 deletions
+4 -4
View File
@@ -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({