Authored by 张文文

数据曝光问题修复 reviewd by 朱傲哲

... ... @@ -54,6 +54,7 @@ export default class ContentNotifyListCell extends Component {
let params = {
action: 'go.h5',
params: {
title:'有货社区发帖规范',
url:data.link,
}
}
... ...
... ... @@ -25,7 +25,8 @@ export default function appReducer(state = initialState, action) {
case SET_SERVICE_HOST:
return state.set('serviceHost', action.payload);
case SET_CONTENT_CODE:
return state.set('contentCode', action.payload);
let contentCode = action.payload ? action.payload : '1f2e07cb63811680154ba693c954dd62';
return state.set('contentCode', contentCode);
}
return state;
... ...
... ... @@ -110,11 +110,10 @@ export function getResourceInfoFailure(error) {
export function getResourceInfo(callback) {
return (dispatch, getState) => {
let {app} = getState();
let contentCode = app.contentCode ? app.contentCode : '1f2e07cb63811680154ba693c954dd62';
dispatch(getResourceInfoRequest());
return new NewArrivalService(app.host).fetchResourceInfo(contentCode)
return new NewArrivalService(app.host).fetchResourceInfo(app.contentCode)
.then(json => {
let newJson = exposeResourceInfoData(json, contentCode);
let newJson = exposeResourceInfoData(json, app.contentCode);
for (let i = 0; i< json.length; i++) {
let item = json[i]
... ...