...
|
...
|
@@ -84,7 +84,7 @@ class BrandContainer extends Component { |
|
|
}
|
|
|
|
|
|
//原生跳转
|
|
|
_onPressBrandItem(data){
|
|
|
_onPressBrandItem(data, fromSearch=false){
|
|
|
ReactNative.NativeModules.YH_CommonHelper.pushBrandVC(data);
|
|
|
|
|
|
let eventName = '';
|
...
|
...
|
@@ -96,6 +96,10 @@ class BrandContainer extends Component { |
|
|
eventName = 'YB_CATEGORY_BRAND_LIST_TEXT';
|
|
|
}
|
|
|
|
|
|
if (fromSearch) {
|
|
|
eventName = 'YB_CATEGORY_BRAND_LIST_TEXT';
|
|
|
}
|
|
|
|
|
|
let brandId = data.shop_id ? data.shop_id : '';
|
|
|
if (!brandId) {
|
|
|
brandId = data.id ? data.id : '';
|
...
|
...
|
@@ -104,8 +108,8 @@ class BrandContainer extends Component { |
|
|
BR_ID: brandId,
|
|
|
GDER: this.props.brand.selectedChannelId + '',
|
|
|
};
|
|
|
|
|
|
console.log(params)
|
|
|
// console.log(eventName)
|
|
|
// console.log(params)
|
|
|
NativeModules.YH_CommonHelper.logEvent(eventName, params);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -114,11 +118,11 @@ class BrandContainer extends Component { |
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
|
|
|
|
|
|
let params = {
|
|
|
BAN_NUM: index + 1 + '',
|
|
|
BAN_NUM: parseInt(index) + 1 + '',
|
|
|
TOURL: url,
|
|
|
GDER: this.props.brand.selectedChannelId + '',
|
|
|
};
|
|
|
console.log(params)
|
|
|
|
|
|
NativeModules.YH_CommonHelper.logEvent('YB_CATEGORY_BRAND_LIST_BAN', params);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -126,17 +130,13 @@ class BrandContainer extends Component { |
|
|
let url = data.url;
|
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
|
|
|
|
|
|
let brandId = data.shop_id ? data.shop_id : '';
|
|
|
if (!brandId) {
|
|
|
brandId = data.id ? data.id : '';
|
|
|
}
|
|
|
|
|
|
let brandId = brandId = data.id ? data.id : '';
|
|
|
let params = {
|
|
|
BAN_NUM: index + 1 + '',
|
|
|
BAN_NUM: parseInt(index) + 1 + '',
|
|
|
BR_ID: brandId,
|
|
|
GDER: this.props.brand.selectedChannelId + '',
|
|
|
};
|
|
|
console.log(params)
|
|
|
|
|
|
NativeModules.YH_CommonHelper.logEvent('YB_CATEGORY_BRAND_LIST_BR', params);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -144,9 +144,9 @@ class BrandContainer extends Component { |
|
|
this.props.actions.setBrandFilter(value);
|
|
|
|
|
|
let params = {
|
|
|
CAT_NUM: value + 1 + '',
|
|
|
CAT_NUM: parseInt(value) + 1 + '',
|
|
|
};
|
|
|
console.log(params)
|
|
|
|
|
|
NativeModules.YH_CommonHelper.logEvent('YB_CATEGORY_BRAND_LIST_SG', params);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -195,7 +195,7 @@ class BrandContainer extends Component { |
|
|
let params = {
|
|
|
CAT_NUM: channelId + '',
|
|
|
};
|
|
|
console.log(params)
|
|
|
|
|
|
NativeModules.YH_CommonHelper.logEvent('YB_CATEGORY_BRAND_LIST_CH', params);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -206,8 +206,8 @@ class BrandContainer extends Component { |
|
|
let params = {
|
|
|
SEARCH_POS: '2',
|
|
|
};
|
|
|
console.log(params)
|
|
|
[[YH_Analytics sharedInstance] logEvent:'YB_SEARCH_CLICK' parameters:params];
|
|
|
|
|
|
NativeModules.YH_CommonHelper.logEvent('YB_SEARCH_CLICK', params);
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -235,7 +235,7 @@ class BrandContainer extends Component { |
|
|
}
|
|
|
|
|
|
_onPressBrandSearchItem(data) {
|
|
|
this._onPressBrandItem(data);
|
|
|
this._onPressBrandItem(data, true);
|
|
|
this.props.actions.insertSearchHistory(data);
|
|
|
this._onClickCancelSearch();
|
|
|
|
...
|
...
|
@@ -245,8 +245,9 @@ class BrandContainer extends Component { |
|
|
POS_ID: '0',
|
|
|
FLR_INDEX: '0',
|
|
|
};
|
|
|
console.log(params)
|
|
|
[[YH_Analytics sharedInstance] logEvent:'YB_BRAND_KEYWORD_SEARCH_C' parameters:params];
|
|
|
// console.log('YB_BRAND_KEYWORD_SEARCH_C')
|
|
|
// console.log(params)
|
|
|
NativeModules.YH_CommonHelper.logEvent('YB_BRAND_KEYWORD_SEARCH_C', params);
|
|
|
}
|
|
|
|
|
|
_onPressSearchHistoryItem(keyword, androiddata, index, section){
|
...
|
...
|
@@ -266,11 +267,12 @@ class BrandContainer extends Component { |
|
|
|
|
|
let params = {
|
|
|
KEYWORD: keyword,
|
|
|
POS_ID: section + 1 + '',
|
|
|
FLR_INDEX: index + 1 + '',
|
|
|
POS_ID: parseInt(section) + 1 + '',
|
|
|
FLR_INDEX: parseInt(index) + 1 + '',
|
|
|
};
|
|
|
console.log(params)
|
|
|
[[YH_Analytics sharedInstance] logEvent:'YB_BRAND_KEYWORD_SEARCH_C' parameters:params];
|
|
|
// console.log('YB_BRAND_KEYWORD_SEARCH_C')
|
|
|
// console.log(params)
|
|
|
NativeModules.YH_CommonHelper.logEvent('YB_BRAND_KEYWORD_SEARCH_C', params);
|
|
|
}
|
|
|
|
|
|
render() {
|
...
|
...
|
|