...
|
...
|
@@ -117,7 +117,7 @@ const _getShopInfo = (shopId, uid) => { |
|
|
shop_id: shopId,
|
|
|
uid: uid || 0
|
|
|
}, {code: 200}).then((result) => {
|
|
|
return result.data;
|
|
|
return result && result.data;
|
|
|
});
|
|
|
};
|
|
|
|
...
|
...
|
@@ -131,7 +131,7 @@ const getShopIntro = (shopId, uid) => { |
|
|
shop_id: shopId,
|
|
|
uid: uid
|
|
|
}, {code: 200}).then(result => {
|
|
|
return result.data;
|
|
|
return result && result.data;
|
|
|
});
|
|
|
};
|
|
|
|
...
|
...
|
@@ -148,7 +148,7 @@ const _getShopCategory = (shopId, channel, gender) => { |
|
|
gender: gender || '1,3',
|
|
|
shop_id: shopId
|
|
|
}, {code: 200, cache: true}).then(result => {
|
|
|
return result.data;
|
|
|
return result && result.data;
|
|
|
});
|
|
|
};
|
|
|
|
...
|
...
|
@@ -711,7 +711,7 @@ const getBrandBanner = (brandId) => { |
|
|
}, {
|
|
|
cache: true
|
|
|
}).then((result) => {
|
|
|
if (result && result.code === 200) {
|
|
|
if (result && result.code === 200 && result.data) {
|
|
|
if (result.data.banner) {
|
|
|
return helpers.image(result.data.banner, 640, 150);
|
|
|
} else {
|
...
|
...
|
@@ -878,7 +878,7 @@ const shopCouponsList = (params) => { |
|
|
let shopCoupons = [];
|
|
|
let couPonstatus;
|
|
|
|
|
|
if (result.data) {
|
|
|
if (result && result.data) {
|
|
|
_.forEach(result.data, value => {
|
|
|
couPonstatus = parseInt(value.status, 10);
|
|
|
|
...
|
...
|
@@ -919,7 +919,7 @@ const brandCouponsList = (params) => { |
|
|
let shopCoupons = [];
|
|
|
let couPonstatus;
|
|
|
|
|
|
if (result.data && result.data.coupons) {
|
|
|
if (result && result.data && result.data.coupons) {
|
|
|
_.forEach(result.data.coupons, value => {
|
|
|
couPonstatus = parseInt(value.status, 10);
|
|
|
|
...
|
...
|
|