Authored by 孙凯

修改 浏览记录 删除后刷新错误的bug review zhanglixia

... ... @@ -217,11 +217,14 @@ export function deleteOneHistory(skn, index) {
if (indexInAll != -1) {
productList = productList.delete(indexInAll);
}
// if (productList.size == 0 || productList.length == 0) {
// dispatch(historySortList());
// }else {
if (productList.size == 0 || productList.length == 0) {
dispatch(historyClearSuccess());
dispatch(historySortList());
dispatch(historyList(0));
}else {
dispatch(historyDeleteSuccess({productList}));
// }
}
let show = productList.size > 0;
ReactNative.NativeModules.YH_RecorderHelper.setRightClearButtonVisiblity(show);
... ...
... ... @@ -268,7 +268,7 @@ export function globalList() {
}
let fetchList = (uid, page, pageSize) => {
dispatch(commonListRequest());
dispatch(globalListRequest());
return new ProductService(app.globalHost).fetchGlobalList(uid, page, pageSize)
.then(json => {
let payload = parseGlobalList(json);
... ...