...
|
...
|
@@ -37,6 +37,24 @@ function mapDispatchToProps(dispatch) { |
|
|
};
|
|
|
}
|
|
|
|
|
|
|
|
|
function orderWithString(str) {
|
|
|
|
|
|
if (str.indexOf('s_w')>=0) {
|
|
|
return 0;
|
|
|
}
|
|
|
if (str.indexOf('s_t')>=0) {
|
|
|
return 2;
|
|
|
}
|
|
|
if (str.indexOf('s_p')>=0) {
|
|
|
return 3;
|
|
|
}
|
|
|
if (str.indexOf('p_d')>=0) {
|
|
|
return 4;
|
|
|
}
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
class RedPersonBrandContainer extends Component {
|
|
|
constructor(props) {
|
|
|
super(props);
|
...
|
...
|
@@ -188,15 +206,6 @@ class RedPersonBrandContainer extends Component { |
|
|
} 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,
|
...
|
...
|
@@ -208,11 +217,11 @@ class RedPersonBrandContainer extends Component { |
|
|
}
|
|
|
if (tabID != '1') {
|
|
|
param.FILTER_VALUE = this.props.redBrand.filterNameFactors.toJS();
|
|
|
param.SORT_TYPE = sortType;
|
|
|
param.SORT_TYPE = orderWithString(this.props.redBrand.productList.order);
|
|
|
}
|
|
|
console.log('------点击品牌店铺页中全部TAB中的商品列表时---red---');
|
|
|
console.log(param);
|
|
|
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_BRAND_SHOP_HOME_FLR_C', param);
|
|
|
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_BRAND_SHOP_GOODS_LIST_C', param);
|
|
|
}
|
|
|
|
|
|
_onPressProduct(linkType,linkReource,moduleOrder,moduleType,i_index){
|
...
|
...
|
@@ -243,7 +252,7 @@ class RedPersonBrandContainer extends Component { |
|
|
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_BRAND_SHOP_HOME_FLR_C', param);
|
|
|
}
|
|
|
|
|
|
_onPressProductFilter(value, name) {
|
|
|
_onPressProductFilter(value) {
|
|
|
|
|
|
if (value === 'filter') {
|
|
|
this.props.actions.setFilterView(!this.props.redBrand.productList.isFilter);
|
...
|
...
|
@@ -255,7 +264,7 @@ class RedPersonBrandContainer extends Component { |
|
|
this.props.actions.setFilterMoreView(false);
|
|
|
this.props.actions.setFilterView(false);
|
|
|
this.props.actions.resetListPageInfo();
|
|
|
this.props.actions.setProductListFilter(value,name);
|
|
|
this.props.actions.setProductListFilter(value);
|
|
|
this.props.actions.getProductList(true);
|
|
|
}
|
|
|
}
|
...
|
...
|
|