@@ -95,11 +95,11 @@ export class TabsNotification {
9595 }
9696
9797 openItem ( item : Notification ) {
98- // this.navCtrl.push('notification-detail', {
99- // item: item
100- // });
98+ this . navCtrl . push ( 'notification-detail' , {
99+ item : item
100+ } ) ;
101101 // let browser: ThemeableBrowserObject = this.themeableBrowser.create('https://www.baidu.com', '_self', this.options);
102- this . themeableBrowser . create ( 'https://www.baidu.com' , '_self' , this . options ) ;
102+ // this.themeableBrowser.create('https://www.baidu.com', '_self', this.options);
103103 }
104104
105105 addItem ( item : Notification ) {
@@ -129,14 +129,13 @@ export class TabsNotification {
129129 this . currentItems = Utils . order ( notifications , 'createTime' , 'desc' ) ;
130130 }
131131 PublicVar . setHasNewNotification ( false ) ;
132- // PublicVar.setNotificationNum(this.currentItems.length);
133132 } , ( err ) => {
134133 console . log ( 'notification query error' ) ;
135134 } ) ;
136135 this . notificationService . queryUnReadNotificationNum ( { readed : false , loginUserId : username } ) . subscribe ( ( res ) => {
137136 let unReadNotifications : any = [ ] ;
138- unReadNotifications = res ;
139137 let unReadNotificationNum = '' ;
138+ unReadNotifications = res ;
140139 if ( res ) {
141140 unReadNotificationNum = unReadNotifications . length ;
142141 }
0 commit comments