Authored by yoho-js001

hide shop cell when data is null.

... ... @@ -106,7 +106,7 @@ class CategoryContainer extends Component {
NAV_CAT_ID: parseInt(navCatId) + '',
GDER: channel + '',
};
NativeModules.YH_CommonHelper.logEvent('YB_CATEGORY_CAT_LIST', params);
}
... ... @@ -117,7 +117,7 @@ class CategoryContainer extends Component {
currentChannelId,
currentCateId,
} = this.props.category;
return (
<View style={styles.container}>
<Category
... ...
... ... @@ -28,7 +28,11 @@ export default class ProductListCell extends Component {
let shop_logo = data.get('shop_logo');
let shop_name = data.get('shop_name');
let new_product_num = data.get('new_product_num');
if (!shop_logo||!shop_name) {
return null;
}
return (
<TouchableOpacity
style={[styles.container, style]}
... ...
... ... @@ -73,7 +73,6 @@ class NewArrivalContainer extends Component {
}
_onEndReached() {
console.log('bbbbbbbb');
this.props.actions.getProductList();
}
_onPressProductFilter(value) {
... ... @@ -136,11 +135,24 @@ class NewArrivalContainer extends Component {
let categoryId = data.get('categoryId');
let categoryName = data.get('categoryName');
let parentId = data.get('parentId');
if (!categoryId||!parentId) {
return;
let parent_id = parentId.toString();
let category_id = categoryId.toString();
let category_name = categoryName;
let relation_parameter = {sort: data.get('relationParameter')};
let node_count = 0;
let sort_ico = '';
let value = {
parent_id,
category_name,
category_id,
relation_parameter,
node_count,
sort_ico,
}
let url = `http://m.yohobuy.com?openby:openby:yohobuy={"action":"go.list","params":{"msort":"${parentId}","misort":"${categoryId}","title":"${categoryName}","actiontype":"1","app_type":"0"}}`;
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
ReactNative.NativeModules.YH_CommonHelper.jumpToCategory(value, 0, this.props.app.channel);
}
_onPressHotSearch(data) {
... ...