Authored by 张文文

埋点修改F_ID

... ... @@ -45,6 +45,12 @@ function mapDispatchToProps(dispatch) {
class NewArrivalContainer extends Component {
constructor(props) {
super(props);
this.state = {
tabFloorId: '',
jointFloorId: '',
focusFloorId: '',
shopFloorId: '',
}
this._onEndReached = this._onEndReached.bind(this);
this._onPressShop = this._onPressShop.bind(this);
... ... @@ -68,12 +74,24 @@ class NewArrivalContainer extends Component {
let self = this;
this.props.actions.getResourceInfo(function (json) {
json && json.forEach(item => {
if (item.template_name === 'guessLike' && item.data) {
let data = item.data[0];
let tabName = data.tab_name;
let queryList = data.query;
data && self.props.actions.storeCurrentTabValue(0,tabName,queryList);
}
if (item.template_name === 'newFocus' && item.data) {
self.setState({ focusFloorId: item.template_id });
}
if (item.template_name === 'newProductShopListFloor' && item.data) {
self.setState({ shopFloorId: item.template_id });
}
if (item.template_name === 'splitJointImg' && item.data) {
self.setState({ jointFloorId: item.template_id });
}
if (item.template_name === 'guessLike' && item.data) {
self.setState({ tabFloorId: item.template_id });
let data = item.data[0];
let tabName = data.tab_name;
let queryList = data.query;
data && self.props.actions.storeCurrentTabValue(0,tabName,queryList);
}
})
});
this.props.actions.getShopCartCount();
... ... @@ -101,14 +119,14 @@ class NewArrivalContainer extends Component {
let param;
if (type === 'banner' && params) {
param = {
F_ID: 1001,
F_ID: this.state.focusFloorId,
F_URL: url
};
}
if (type === 'icon' && params) {
param = {
F_ID: 1003,
F_ID: this.state.jointFloorId,
F_URL: url
};
}
... ... @@ -291,7 +309,7 @@ class NewArrivalContainer extends Component {
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
let param = {
F_ID: 1002,
F_ID: this.state.shopFloorId,
F_URL: url,
SHOP_ID: shops_id,
}
... ... @@ -310,7 +328,7 @@ class NewArrivalContainer extends Component {
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
let param = {
F_ID: 1005,
F_ID: this.state.tabFloorId,
F_URL: url,
PRD_SKN: productSkn,
TAB_ID: selectedTabIndex,
... ...