Skip to content

Commit 02f16e8

Browse files
author
alex
committed
hot push
1 parent a162d6e commit 02f16e8

File tree

5 files changed

+14
-17
lines changed

5 files changed

+14
-17
lines changed

.chcpenv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"content_url": "http://hotpush.applinzi.com",
3+
"config_url": "http://hotpush.applinzi.com/chcp.json"
4+
}

config.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
<preference name="SplashScreen" value="screen" />
2424
<preference name="SplashScreenDelay" value="3000" />
2525
<chcp>
26-
<auto-download enabled="true" />
27-
<auto-install enabled="true" />
28-
<native-interface version="1" />
29-
<config-file url="http://116.6.64.111:15001/mobile/hotpush/www/chcp.json" />
26+
<local-development enabled="true" />
27+
<config-file url="http://hotpush.applinzi.com/chcp.json" />
3028
</chcp>
3129
<platform name="android">
3230
<allow-intent href="market:*" />

cordova-hcp.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
2-
"name": "phoenix",
32
"autogenerated": true,
4-
"min_native_interface": 1,
5-
"ios_identifier": "",
6-
"android_identifier": "",
7-
"content_url": "http://116.6.64.111:15001/mobile/hotpush/www",
8-
"update": "now"
3+
"content_url": "http://hotpush.applinzi.com",
4+
"update": "start"
95
}

src/pages/tabs-my/tabs-my.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ <h5>{{username}}</h5>
5050
<ion-list>
5151
<button ion-item (click)="hotPush()">
5252
<ion-icon name="refresh-circle" item-left class="icon"></ion-icon>
53-
HotPush66668888
53+
HotPush333333
5454
</button>
5555
</ion-list>
5656

src/pages/tabs-notification/tabs-notification.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)