...
|
...
|
@@ -115,7 +115,8 @@ export function brandInfo(reload = false) { |
|
|
dispatch(brandInfoSuccess(json));
|
|
|
dispatch(setBrandId(json.brand_id));
|
|
|
dispatch(newArrive());
|
|
|
dispatch(articleByBrand());
|
|
|
dispatch(uidBrandFav(json.brand_id))
|
|
|
dispatch(articleByBrand(json.brand_id));
|
|
|
let isDifferent = json.is_different;
|
|
|
let url = '?openby:yohobuy={"action":"go.brand","params":{"brand_id":"' + json.brand_id + '","is_different":"' + isDifferent + '"}}';
|
|
|
dispatch(setMoreProductUrl(url));
|
...
|
...
|
@@ -187,14 +188,9 @@ export function uidBrandFavFailure(){ |
|
|
};
|
|
|
}
|
|
|
|
|
|
export function uidBrandFav(){
|
|
|
export function uidBrandFav(brandId){
|
|
|
return (dispatch, getState) => {
|
|
|
let {app,detail} = getState();
|
|
|
let {brandId} = detail;
|
|
|
if (!brandId) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
let fetchUidBrandFav = (brandId,uid) => {
|
|
|
dispatch(uidBrandFavRequest());
|
|
|
return new DetailService(app.servicehost).getUidBrandFav(brandId,uid)
|
...
|
...
|
@@ -272,14 +268,9 @@ export function articleByBrandFailure(){ |
|
|
type: ARTICLE_BY_BRAND_FAILURE,
|
|
|
};
|
|
|
}
|
|
|
export function articleByBrand(){
|
|
|
export function articleByBrand(brandId){
|
|
|
return (dispatch, getState) => {
|
|
|
let {detail,app} = getState();
|
|
|
let {brandId} = detail;
|
|
|
if (!brandId) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
let fetchUidBrandFav = (brandId,uid) => {
|
|
|
dispatch(articleByBrandRequest());
|
|
|
return new DetailService(app.servicehost).getArticleByBrand(brandId,uid)
|
...
|
...
|
|