Showing
1 changed file
with
7 additions
and
8 deletions
@@ -44,7 +44,7 @@ class FamilyIndex extends Page { | @@ -44,7 +44,7 @@ class FamilyIndex extends Page { | ||
44 | downLoadInfo | 44 | downLoadInfo |
45 | }; | 45 | }; |
46 | 46 | ||
47 | - this.vipInfo; | 47 | + this.vipInfo = {}; |
48 | 48 | ||
49 | this.init(); | 49 | this.init(); |
50 | } | 50 | } |
@@ -313,14 +313,13 @@ class FamilyIndex extends Page { | @@ -313,14 +313,13 @@ class FamilyIndex extends Page { | ||
313 | let isLogin = $this.data('login'); | 313 | let isLogin = $this.data('login'); |
314 | let isNoOpen = $this.data('noopen'); | 314 | let isNoOpen = $this.data('noopen'); |
315 | 315 | ||
316 | - if (isLogin && !isNoOpen) { | ||
317 | - if (this.vipInfo[appType]) { | ||
318 | - this.selector.$diaC.append(this.view.vipDetailInfo(this.vipInfo[appType])); | ||
319 | - } else { | ||
320 | - this.viewVipInfo(); | 316 | + if (!this.vipInfo || !this.vipInfo[appType]) { |
317 | + this.viewVipInfo(); | ||
318 | + return false; | ||
319 | + } | ||
321 | 320 | ||
322 | - this.selector.$diaC.append(this.view.vipDetailInfo(this.vipInfo[appType])); | ||
323 | - } | 321 | + if (isLogin && !isNoOpen) { |
322 | + this.selector.$diaC.append(this.view.vipDetailInfo(this.vipInfo[appType])); | ||
324 | 323 | ||
325 | $('.vip-detail').addClass(appType); | 324 | $('.vip-detail').addClass(appType); |
326 | 325 |
-
Please register or login to post a comment