Authored by 孙凯

接数据

... ... @@ -72,20 +72,15 @@ class BrandStoreContainer extends Component {
}
_onPressBrandItem(url){
alert("_onPressBrandItem" + url);
// this.props.actions.onPressBrandItem();
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
}
_onPressOneRowTwoColImages(url){
alert("_onPressOneRowTwoColImages" + url);
// this.props.actions.onPressOneRowTwoColImages(url);
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
}
_onPressRecommendItem(url){
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
// this.props.actions._onPressRecommendItem(url);
}
render() {
... ...
... ... @@ -6,14 +6,12 @@ import * as _ from 'lodash';
import {parseShopResources} from '../../utils/ResourceParser';
const {
ONEROWTWOCOLIMAGE,
SET_COLLECTION,
JUMP_WITH_URL,
SET_SCANTYPE,
JUMP_WITH_OBJECT_NEWFLAG,
PROCESS_SCAN_STRING,
SEL_COUPONITEM,
SEL_BRANDITEM,
SET_SHOP_ID,
SHOP_INFO_REQUEST,
... ... @@ -37,31 +35,19 @@ const {
PRODUCT_LIST_FAILURE,
} = require('../../constants/actionTypes').default;
export function onPressBrandItem() {
return {
type: SEL_BRANDITEM,
payload: true
};
}
export function onPressCoupon() {
return {
type: SEL_COUPONITEM,
payload: true
};
}
export function onPressCollection() {
return {
type: SET_COLLECTION,
payload: true
};
}
export function onPressOneRowTwoColImages(url) {
return {
type: ONEROWTWOCOLIMAGE,
payload: true
};
}
export function setShopId(shopId) {
return {
... ...
... ... @@ -11,7 +11,6 @@ const {
JUMP_WITH_OBJECT_NEWFLAG,
PROCESS_SCAN_STRING,
SEL_COUPONITEM,
SEL_BRANDITEM,
SET_SHOP_ID,
SHOP_INFO_REQUEST,
... ... @@ -47,10 +46,6 @@ export default function brandStoreReducer(state=initialState, action) {
return state.set('hasBuy', action.payload);
}
case SEL_BRANDITEM: {
return state.set('touchBrandItem', action.payload);
}
case SET_SHOP_ID: {
return state.set('shopId', action.payload);
}
... ... @@ -62,7 +57,7 @@ export default function brandStoreReducer(state=initialState, action) {
case SHOP_INFO_SUCCESS: {
let {
is_favorite,
is_favorite,
shop_intro,
shop_logo,
shop_name,
... ... @@ -97,11 +92,11 @@ export default function brandStoreReducer(state=initialState, action) {
case SHOP_RESOURCE_SUCCESS: {
let {
shopTopBanner_APP,
oneRowTwoColImages_APP,
brandBrowse,
largeSlideImg_APP,
recommend_APP,
shopTopBanner_APP,
oneRowTwoColImages_APP,
brandBrowse,
largeSlideImg_APP,
recommend_APP,
hotProducts_APP
} = action.payload;
... ... @@ -129,11 +124,6 @@ export default function brandStoreReducer(state=initialState, action) {
.setIn(['resource', 'error'], action.payload);
}
case ONEROWTWOCOLIMAGE:{
// return state.set('isCollection',action.payload);
}
case SHOP_COUPON_LIST_REQUEST: {
return state.setIn(['coupon', 'isFetching'], true)
.setIn(['coupon', 'error'], null);
... ...