|
|
|
@ -63,6 +63,8 @@ Page({
@@ -63,6 +63,8 @@ Page({
|
|
|
|
|
readStatus: "", |
|
|
|
|
|
|
|
|
|
userInfo: {}, |
|
|
|
|
|
|
|
|
|
noReadCount: 0, |
|
|
|
|
}, |
|
|
|
|
onLoad() { |
|
|
|
|
this.getTabBar().setData({ |
|
|
|
@ -82,6 +84,18 @@ Page({
@@ -82,6 +84,18 @@ Page({
|
|
|
|
|
userInfo, |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
this.getNotice(); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
getNotice() { |
|
|
|
|
wx.ajax({ |
|
|
|
|
method: "GET", |
|
|
|
|
url: "?r=takeda/doctor/todo", |
|
|
|
|
data: {}, |
|
|
|
|
}).then((res) => { |
|
|
|
|
this.getTabBar().setData({ |
|
|
|
|
notice: res.notReadChatRoomCount > 0, |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
getBaseInfo() { |
|
|
|
@ -145,6 +159,7 @@ Page({
@@ -145,6 +159,7 @@ Page({
|
|
|
|
|
const list = res.page === 1 ? res.list : [...this.data.list, ...res.list]; |
|
|
|
|
this.setData({ |
|
|
|
|
list, |
|
|
|
|
noReadCount: res.noReadCount, |
|
|
|
|
pagination: { |
|
|
|
|
page: res.page, |
|
|
|
|
pages: res.pages, |
|
|
|
|