Showing
1 changed file
with
5 additions
and
4 deletions
@@ -90,12 +90,12 @@ const getBrandViewTop = channel => { | @@ -90,12 +90,12 @@ const getBrandViewTop = channel => { | ||
90 | brandAds = [], | 90 | brandAds = [], |
91 | brandLogos = []; | 91 | brandLogos = []; |
92 | 92 | ||
93 | - if (res.data === 'false' || res.code !== 200 ) { | 93 | + if (res.data === 'false' || res.code !== 200) { |
94 | return result; | 94 | return result; |
95 | } | 95 | } |
96 | 96 | ||
97 | // 头部10个品牌小图块 url | 97 | // 头部10个品牌小图块 url |
98 | - if (res.data && res.data instanceof Array && res.data[1].data && res.data[1].data.list) { | 98 | + if (res.data && res.data instanceof Array && res.data[1].data && res.data[1].data.list) { |
99 | _.forEach(res.data[1].data.list, subValue => { | 99 | _.forEach(res.data[1].data.list, subValue => { |
100 | brandAds.push({ | 100 | brandAds.push({ |
101 | name: subValue.name, | 101 | name: subValue.name, |
@@ -106,7 +106,7 @@ const getBrandViewTop = channel => { | @@ -106,7 +106,7 @@ const getBrandViewTop = channel => { | ||
106 | } | 106 | } |
107 | 107 | ||
108 | // 头部品牌图块,广告位 | 108 | // 头部品牌图块,广告位 |
109 | - if (res.data && res.data instanceof Array && res.data[0].data) { | 109 | + if (res.data && res.data instanceof Array && res.data[0].data) { |
110 | _.forEach(res.data[0].data, (subValue, k) => { | 110 | _.forEach(res.data[0].data, (subValue, k) => { |
111 | let srcUrl; | 111 | let srcUrl; |
112 | 112 | ||
@@ -154,6 +154,7 @@ const getBrandViewList = (channel, start, length) => { | @@ -154,6 +154,7 @@ const getBrandViewList = (channel, start, length) => { | ||
154 | if (res.data === 'false' || res.code !== 200) { | 154 | if (res.data === 'false' || res.code !== 200) { |
155 | return result; | 155 | return result; |
156 | } | 156 | } |
157 | + | ||
157 | // 品牌list A-Z 0-9 | 158 | // 品牌list A-Z 0-9 |
158 | if (res.data && res.data.brands) { | 159 | if (res.data && res.data.brands) { |
159 | 160 | ||
@@ -349,7 +350,7 @@ const getPlustarList = (brandType, gender) => { | @@ -349,7 +350,7 @@ const getPlustarList = (brandType, gender) => { | ||
349 | brandsIds = [], | 350 | brandsIds = [], |
350 | result = {brandsIds: [], data: {}}; | 351 | result = {brandsIds: [], data: {}}; |
351 | 352 | ||
352 | - if (list.data === 'false' || list.code !== 200 ) { | 353 | + if (list.data === 'false' || list.code !== 200) { |
353 | return result; | 354 | return result; |
354 | } | 355 | } |
355 | if (list.data && list.data.data && list.data.data.list) { | 356 | if (list.data && list.data.data && list.data.data.list) { |
-
Please register or login to post a comment