|
@@ -83,21 +83,28 @@ function Message() {
|
|
|
success: function (r) {
|
|
|
if (r && r.status === 1) {
|
|
|
// 头部导航消息中心显示/隐藏
|
|
|
- $.ajax({
|
|
|
- type: 'POST',
|
|
|
- url: '/jyapi/message/messageCount',
|
|
|
- data: JSON.stringify({userType: 2}),
|
|
|
- contentType: 'application/json',
|
|
|
- success: function (s) {
|
|
|
- if (r.data.count + s.count > 0) {
|
|
|
- $('#tips').show()
|
|
|
- $('#tips').html(r.data.count + s.count > 99 ? '99+' : r.data.count + s.count)
|
|
|
- $('#noNum').html(r.data.count + s.count)
|
|
|
- } else {
|
|
|
- $('#tips').hide()
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
+ // $.ajax({
|
|
|
+ // type: 'POST',
|
|
|
+ // url: '/jyapi/message/messageCount',
|
|
|
+ // data: JSON.stringify({userType: 2}),
|
|
|
+ // contentType: 'application/json',
|
|
|
+ // success: function (s) {
|
|
|
+ // if (r.data.count + s.count > 0) {
|
|
|
+ // $('#tips').show()
|
|
|
+ // $('#tips').html(r.data.count + s.count > 99 ? '99+' : r.data.count + s.count)
|
|
|
+ // $('#noNum').html(r.data.count + s.count)
|
|
|
+ // } else {
|
|
|
+ // $('#tips').hide()
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ if (r.data && r.data.count) {
|
|
|
+ $('#tips').show()
|
|
|
+ $('#tips').html(r.data.count > 99 ? '99+' : r.data.count)
|
|
|
+ $('#noNum').html(r.data.count)
|
|
|
+ } else {
|
|
|
+ $('#tips').hide()
|
|
|
+ }
|
|
|
_this.isOpened = r.data.open
|
|
|
_this.openedChange()
|
|
|
} else {
|