Authored by 陈林

增加收藏无数据时UI。review by 孙凯。

... ... @@ -148,9 +148,11 @@ export default class Product extends Component {
renderFooter() {
let {
commonProduct,
globalProduct,
currentTab,
} = this.props.data;
if (currentTab == 'common' && commonProduct.get('productList').size == 0) {
if ((currentTab == 'common' && commonProduct.get('productList').size == 0)
|| (currentTab == 'global' && globalProduct.get('productList').size == 0)) {
return (
<NoDataView type={'product'} onPressGuangGuang={this.props.onPressGuangGuang}/>
);
... ...
... ... @@ -124,9 +124,11 @@ export default class Product extends Component {
renderFooter() {
let {
commonProduct,
globalProduct,
currentTab,
} = this.props.data;
if (currentTab == 'common' && commonProduct.get('productList').size == 0) {
if ((currentTab == 'common' && commonProduct.get('productList').size == 0)
|| (currentTab == 'global' && globalProduct.get('productList').size == 0)) {
return (
<NoDataView type={'product'} onPressGuangGuang={this.props.onPressGuangGuang}/>
);
... ...