diff --git a/pages/index/index.vue b/pages/index/index.vue index 5b6db83..3d40c5d 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -117,6 +117,7 @@ + 白嫖星球 @@ -124,6 +125,9 @@ + + {{ieUnreadCount > 99 ? '99+' : ieUnreadCount}} + i/e星球 @@ -724,6 +728,7 @@ waimaiCount: 0, kuaidiCount: 0, paotuiCount: 0, + homeReminders: {}, productData: [], zhipaiCount: 0, searchForm: { @@ -792,6 +797,17 @@ const title = item.title ? String(item.title).toLowerCase() : '' return title.indexOf(keyword) > -1 }) + }, + planetHasReminder() { + return !!(this.homeReminders && this.homeReminders.planet) + }, + ieHasReminder() { + return !!(this.homeReminders && this.homeReminders.ie) + }, + ieUnreadCount() { + const count = this.homeReminders && this.homeReminders.ieUnreadCount + const num = Number(count || 0) + return isNaN(num) ? 0 : num } }, filters: { @@ -1123,6 +1139,7 @@ this.tui.request("/mall/delivery/page", "POST", this.searchForm, false, false).then((res) => { that.loadStatus = 'nomore'; if (res.code == 200) { + that.homeReminders = res.result.homeReminders || {} that.mallAds = res.result.mallAds for(let i=0;i