...
|
...
|
@@ -57,6 +57,7 @@ class RedPersonBrandContainer extends Component { |
|
|
this._onPressLink = this._onPressLink.bind(this);
|
|
|
this._onLongPressProduct = this._onLongPressProduct.bind(this);
|
|
|
this._onPressFindSimilar = this._onPressFindSimilar.bind(this);
|
|
|
this._onPressProductRecommend = this._onPressProductRecommend.bind(this);
|
|
|
}
|
|
|
|
|
|
componentDidMount() {
|
...
|
...
|
@@ -151,7 +152,7 @@ class RedPersonBrandContainer extends Component { |
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
|
|
|
}
|
|
|
|
|
|
_onPressProductCell(product, rowId=0, moduleOrder, moduleType) {
|
|
|
_onPressProductRecommend(product, rowId=0, moduleOrder, moduleType) {
|
|
|
let productSkn = product && product.get('product_skn', 0);
|
|
|
if (!productSkn) {
|
|
|
return;
|
...
|
...
|
@@ -173,6 +174,47 @@ class RedPersonBrandContainer extends Component { |
|
|
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_BRAND_SHOP_HOME_FLR_C', param);
|
|
|
}
|
|
|
|
|
|
_onPressProductCell(product, rowId=0) {
|
|
|
let productSkn = product && product.get('product_skn', 0);
|
|
|
if (!productSkn) {
|
|
|
return;
|
|
|
}
|
|
|
let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${productSkn}"}}`;
|
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
|
|
|
let tabID = this.props.redBrand.fliter;
|
|
|
let tabName = '首页';
|
|
|
if (tabID == '1') {
|
|
|
tabName = '新品';
|
|
|
} else if (tabID == '2') {
|
|
|
tabName = '全部商品';
|
|
|
}
|
|
|
let orderName = this.props.redBrand.productList.orderName;
|
|
|
let sortType = 0;
|
|
|
if (orderName == '最新') {
|
|
|
sortType = 1;
|
|
|
}else if (orderName == '价格') {
|
|
|
sortType = 2;
|
|
|
}else if (orderName == '折扣') {
|
|
|
sortType = 3;
|
|
|
}
|
|
|
let param = {
|
|
|
SHOP_ID: this.props.redBrand.shopId,
|
|
|
TAB_ID: tabID,
|
|
|
TAB_NAME: tabName,
|
|
|
PRD_ID: productSkn,
|
|
|
TEMPLATE_TYPE: this.props.redBrand.shopIntro.shop_template_type,
|
|
|
IS_RED: 1,
|
|
|
SORT_TYPE: 1,
|
|
|
}
|
|
|
if (tabID != '1') {
|
|
|
param.FILTER_VALUE = this.props.redBrand.filterNameFactors.toJS();
|
|
|
param.SORT_TYPE = sortType;
|
|
|
}
|
|
|
console.log('------点击品牌店铺页中全部TAB中的商品列表时---red---');
|
|
|
console.log(param);
|
|
|
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_BRAND_SHOP_HOME_FLR_C', param);
|
|
|
}
|
|
|
|
|
|
_onPressProduct(linkType,linkReource,moduleOrder,moduleType,i_index){
|
|
|
let url = '';
|
|
|
if (!linkReource) {
|
...
|
...
|
@@ -304,6 +346,7 @@ class RedPersonBrandContainer extends Component { |
|
|
onPressCollection={this._onPressCollection}
|
|
|
onPressLink={this._onPressLink}
|
|
|
onPressProductCell={this._onPressProductCell}
|
|
|
onPressProductRecommend={this._onPressProductRecommend}
|
|
|
onLongPressProduct={this._onLongPressProduct}
|
|
|
onPressFindSimilar={this._onPressFindSimilar}
|
|
|
showSimilarGuider={showSimilarGuider}
|
...
|
...
|
|