...
|
...
|
@@ -116,20 +116,25 @@ class NewArrivalContainer extends Component { |
|
|
if (!url) { return; }
|
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
|
|
|
|
|
|
let {contentCode} = this.props.app;
|
|
|
|
|
|
let param;
|
|
|
if (type === 'banner' && params) {
|
|
|
param = {
|
|
|
F_ID: this.state.focusFloorId,
|
|
|
F_URL: url
|
|
|
F_URL: url,
|
|
|
CONTENT_CODE: contentCode
|
|
|
};
|
|
|
}
|
|
|
|
|
|
if (type === 'icon' && params) {
|
|
|
param = {
|
|
|
F_ID: this.state.jointFloorId,
|
|
|
F_URL: url
|
|
|
F_URL: url,
|
|
|
CONTENT_CODE: contentCode
|
|
|
};
|
|
|
}
|
|
|
|
|
|
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_NEW_ARRIVAL_FLR_C', param);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -301,6 +306,7 @@ class NewArrivalContainer extends Component { |
|
|
shop_template_type,
|
|
|
is_red_shop,
|
|
|
} = data.toJS();
|
|
|
let {contentCode} = this.props.app;
|
|
|
|
|
|
if (!shops_id||!shop_name) {
|
|
|
return;
|
...
|
...
|
@@ -312,6 +318,7 @@ class NewArrivalContainer extends Component { |
|
|
F_ID: this.state.shopFloorId,
|
|
|
F_URL: url,
|
|
|
SHOP_ID: shops_id,
|
|
|
CONTENT_CODE: contentCode,
|
|
|
}
|
|
|
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_NEW_ARRIVAL_FLR_C', param);
|
|
|
}
|
...
|
...
|
@@ -323,6 +330,7 @@ class NewArrivalContainer extends Component { |
|
|
}
|
|
|
|
|
|
let { selectedTabIndex, selectedTabName } = this.props.newArrival;
|
|
|
let { contentCode } = this.props.app;
|
|
|
|
|
|
let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${productSkn}","from_page_name":"${Platform.OS === 'ios'?'iFP_NewArrival':'aFP_NewArrival'}"}}`;
|
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
|
...
|
...
|
@@ -332,7 +340,8 @@ class NewArrivalContainer extends Component { |
|
|
F_URL: url,
|
|
|
PRD_SKN: productSkn,
|
|
|
TAB_ID: selectedTabIndex,
|
|
|
TAB_NAME: selectedTabName
|
|
|
TAB_NAME: selectedTabName,
|
|
|
CONTENT_CODE: contentCode,
|
|
|
}
|
|
|
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_NEW_ARRIVAL_FLR_C', param);
|
|
|
}
|
...
|
...
|
@@ -349,6 +358,7 @@ class NewArrivalContainer extends Component { |
|
|
showSimilarGuider,
|
|
|
cart_goods_count,
|
|
|
} = this.props.newArrival;
|
|
|
let { contentCode } = this.props.app;
|
|
|
let isFetching = resourceInfo.isFetching || (productList.list.size == 0 && productList.isFetching)||(productList.list.size > 0 && productList.isFetching && productList.currentPage == 0);
|
|
|
return (
|
|
|
<View style={styles.container}>
|
...
|
...
|
@@ -359,6 +369,7 @@ class NewArrivalContainer extends Component { |
|
|
resourceInfo={resourceInfo}
|
|
|
cart_goods_count={cart_goods_count}
|
|
|
showSimilarGuider={showSimilarGuider}
|
|
|
contentCode={contentCode}
|
|
|
goShopCar={this._goShopCar}
|
|
|
|
|
|
onEndReached={this._onEndReached}
|
...
|
...
|
|