...
|
...
|
@@ -117,32 +117,11 @@ class BrandStoreContainer extends Component { |
|
|
}
|
|
|
|
|
|
_onPressCollection(isCollected) {
|
|
|
|
|
|
let param = {
|
|
|
SHOP_ID: this.props.brandStore.shopId,
|
|
|
BRAND_ID: this.props.brandStore.resource.brandBrowse.brandId,
|
|
|
COL_TYPE: 1,
|
|
|
}
|
|
|
if (isCollected) {
|
|
|
this.props.actions.addFavorite();
|
|
|
param = {
|
|
|
SHOP_ID: this.props.brandStore.shopId,
|
|
|
BRAND_ID: this.props.brandStore.resource.brandBrowse.brandId,
|
|
|
COL_TYPE: 1,
|
|
|
TEMPLATE_TYPE:this.props.brandStore.info.shop_template_type,
|
|
|
IS_RED: 0,
|
|
|
}
|
|
|
} else {
|
|
|
this.props.actions.cancelFavorite();
|
|
|
param = {
|
|
|
SHOP_ID: this.props.brandStore.shopId,
|
|
|
BRAND_ID: this.props.brandStore.resource.brandBrowse.brandId,
|
|
|
COL_TYPE: 2,
|
|
|
TEMPLATE_TYPE:this.props.brandStore.info.shop_template_type,
|
|
|
IS_RED: 0,
|
|
|
}
|
|
|
}
|
|
|
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_BRAND_SHOP_COLLECT_C', param);
|
|
|
}
|
|
|
|
|
|
_onPressCoupon(rowData, resourceId, rowID) {
|
...
|
...
|
@@ -154,7 +133,6 @@ class BrandStoreContainer extends Component { |
|
|
|
|
|
let param = {
|
|
|
SHOP_ID: this.props.brandStore.shopId,
|
|
|
BRAND_ID: this.props.brandStore.resource.brandBrowse.brandId,
|
|
|
FLR_ID: resourceId,
|
|
|
FLR_INDEX: 1,
|
|
|
I_INDEX: rowID+1,
|
...
|
...
|
@@ -177,7 +155,6 @@ class BrandStoreContainer extends Component { |
|
|
|
|
|
let param = {
|
|
|
SHOP_ID: this.props.brandStore.shopId,
|
|
|
BRAND_ID: this.props.brandStore.resource.brandBrowse.brandId,
|
|
|
FLR_ID: this.props.brandStore.resource.hotProducts_APP.resourceId,
|
|
|
FLR_INDEX: 6,
|
|
|
I_INDEX: parseInt(rowId)+1,
|
...
|
...
|
@@ -206,7 +183,7 @@ class BrandStoreContainer extends Component { |
|
|
TAB_ID: 0,
|
|
|
TAB_NAME: '首页',
|
|
|
SORT_TYPE: order,
|
|
|
PRD_ID: productSkn,
|
|
|
PRD_SKN: productSkn,
|
|
|
IS_RED: 0,
|
|
|
TEMPLATE_TYPE:this.props.brandStore.info.shop_template_type,
|
|
|
FILTER_VALUE: this.props.brandStore.filterNameFactors.toJS(),
|
...
|
...
|
@@ -229,7 +206,7 @@ class BrandStoreContainer extends Component { |
|
|
SHOP_ID: this.props.brandStore.shopId,
|
|
|
TAB_ID: 1,
|
|
|
TAB_NAME: '上新',
|
|
|
PRD_ID: productSkn,
|
|
|
PRD_SKN: productSkn,
|
|
|
IS_RED: 0,
|
|
|
TEMPLATE_TYPE:this.props.brandStore.info.shop_template_type,
|
|
|
}
|
...
|
...
|
@@ -241,7 +218,7 @@ class BrandStoreContainer extends Component { |
|
|
SHOP_ID: this.props.brandStore.shopId,
|
|
|
TAB_ID: 2,
|
|
|
TAB_NAME: '人气',
|
|
|
PRD_ID: productSkn,
|
|
|
PRD_SKN: productSkn,
|
|
|
IS_RED: 0,
|
|
|
TEMPLATE_TYPE:this.props.brandStore.info.shop_template_type,
|
|
|
}
|
...
|
...
|
@@ -255,7 +232,6 @@ class BrandStoreContainer extends Component { |
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
|
|
|
let param = {
|
|
|
SHOP_ID: this.props.brandStore.shopId,
|
|
|
BRAND_ID: this.props.brandStore.resource.brandBrowse.brandId,
|
|
|
FLR_ID: this.props.brandStore.resource.hotProducts_APP.resourceId,
|
|
|
FLR_INDEX: 6,
|
|
|
I_INDEX: 0,
|
...
|
...
|
@@ -272,7 +248,6 @@ class BrandStoreContainer extends Component { |
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
|
|
|
let param = {
|
|
|
SHOP_ID: this.props.brandStore.shopId,
|
|
|
BRAND_ID: this.props.brandStore.resource.brandBrowse.brandId,
|
|
|
FLR_ID: this.props.brandStore.resource.brandBrowse.resourceId,
|
|
|
FLR_INDEX: 2,
|
|
|
I_INDEX: rowID+1,
|
...
|
...
|
@@ -289,7 +264,6 @@ class BrandStoreContainer extends Component { |
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
|
|
|
let param = {
|
|
|
SHOP_ID: this.props.brandStore.shopId,
|
|
|
BRAND_ID: this.props.brandStore.resource.brandBrowse.brandId,
|
|
|
FLR_ID: resourceId,
|
|
|
FLR_INDEX: 3,
|
|
|
I_INDEX: rowID+1,
|
...
|
...
|
@@ -306,7 +280,6 @@ class BrandStoreContainer extends Component { |
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
|
|
|
let param = {
|
|
|
SHOP_ID: this.props.brandStore.shopId,
|
|
|
BRAND_ID: this.props.brandStore.resource.brandBrowse.brandId,
|
|
|
FLR_ID: resourceId,
|
|
|
FLR_INDEX: 4,
|
|
|
I_INDEX: rowID+1,
|
...
|
...
|
@@ -323,7 +296,6 @@ class BrandStoreContainer extends Component { |
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
|
|
|
let param = {
|
|
|
SHOP_ID: this.props.brandStore.shopId,
|
|
|
BRAND_ID: this.props.brandStore.resource.brandBrowse.brandId,
|
|
|
FLR_ID: this.props.brandStore.resource.recommend_APP.resourceId,
|
|
|
FLR_INDEX: 5,
|
|
|
I_INDEX: parseInt(rowID)+1,
|
...
|
...
|
@@ -357,7 +329,6 @@ class BrandStoreContainer extends Component { |
|
|
|
|
|
let param = {
|
|
|
SHOP_ID: this.props.brandStore.shopId,
|
|
|
BRAND_ID: this.props.brandStore.resource.brandBrowse.brandId,
|
|
|
TAB_ID: value,
|
|
|
TAB_NAME: name,
|
|
|
TEMPLATE_TYPE: this.props.brandStore.info.shop_template_type,
|
...
|
...
|
|