修改 粉丝数为空的时候 显示0 review by hongmo
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -115,7 +115,7 @@ export default class Header extends React.Component { | @@ -115,7 +115,7 @@ export default class Header extends React.Component { | ||
115 | } | 115 | } |
116 | 116 | ||
117 | let brandName = data.is_show_shop_name?data.shop_name:''; | 117 | let brandName = data.is_show_shop_name?data.shop_name:''; |
118 | - let num = data.favoriteCount; | 118 | + let num = data.favoriteCount?data.favoriteCount:0; |
119 | let numberOfFav = '粉丝: '+ num; | 119 | let numberOfFav = '粉丝: '+ num; |
120 | let backgroundImage = data.shopBanner?data.shopBanner.module_data.data[0].pic:'null'; | 120 | let backgroundImage = data.shopBanner?data.shopBanner.module_data.data[0].pic:'null'; |
121 | let brandIcon = getSlicedUrl(data.shop_logo, 60, 60, 2); | 121 | let brandIcon = getSlicedUrl(data.shop_logo, 60, 60, 2); |
-
Please register or login to post a comment