Merge branch 'develop' of git.yoho.cn:fe/yohoblk-wap into develop
Showing
4 changed files
with
19 additions
and
6 deletions
@@ -69,7 +69,7 @@ const handleBrandList = origin => { | @@ -69,7 +69,7 @@ const handleBrandList = origin => { | ||
69 | 69 | ||
70 | // 如果有数字,单独处理 | 70 | // 如果有数字,单独处理 |
71 | if (hasNum) { | 71 | if (hasNum) { |
72 | - let brands = {}; | 72 | + let brands = []; |
73 | 73 | ||
74 | _.forEach(numTemp, (subValue) => { | 74 | _.forEach(numTemp, (subValue) => { |
75 | brands.push({ | 75 | brands.push({ |
@@ -151,8 +151,17 @@ const getBrandShopGoodsData = params => { | @@ -151,8 +151,17 @@ const getBrandShopGoodsData = params => { | ||
151 | return shopApi.getBrandInfoByDomain({ | 151 | return shopApi.getBrandInfoByDomain({ |
152 | domain: params.domain | 152 | domain: params.domain |
153 | }).then(result => { | 153 | }).then(result => { |
154 | - if (result.data && result.data.shop_id) { | ||
155 | - Object.assign(params, {shopId: result.data.shop_id}); | 154 | + if (result.data) { |
155 | + if (result.data.shop_id) { | ||
156 | + Object.assign(params, { | ||
157 | + shopId: result.data.shop_id | ||
158 | + }); | ||
159 | + } | ||
160 | + if (result.data.id) { | ||
161 | + Object.assign(params, { | ||
162 | + brand: result.data.id | ||
163 | + }); | ||
164 | + } | ||
156 | } | 165 | } |
157 | return _getGoodsList(params); | 166 | return _getGoodsList(params); |
158 | }); | 167 | }); |
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | </a> | 8 | </a> |
9 | <!--暂时隐藏收藏入口,下个版本使用--> | 9 | <!--暂时隐藏收藏入口,下个版本使用--> |
10 | <!--<a class="right-button no-intercept" href="javascript:void(0);" @click="favorite()">--> | 10 | <!--<a class="right-button no-intercept" href="javascript:void(0);" @click="favorite()">--> |
11 | - <!--<span class="icon" :class="{ 'icon-love': !isFavorite, 'icon-love-solid': isFavorite}"></span>--> | 11 | + <!--<span class="icon" :class="{ 'icon-focus': !isFavorite, 'icon-focused': isFavorite}"></span>--> |
12 | <!--</a>--> | 12 | <!--</a>--> |
13 | 13 | ||
14 | <a class="right-button no-intercept" href="javascript:void(0);" @click="share()"> | 14 | <a class="right-button no-intercept" href="javascript:void(0);" @click="share()"> |
@@ -168,8 +168,8 @@ | @@ -168,8 +168,8 @@ | ||
168 | </span> | 168 | </span> |
169 | </button> | 169 | </button> |
170 | <button class="button control-button" @click="toggleFavorite()"> | 170 | <button class="button control-button" @click="toggleFavorite()"> |
171 | - <span v-if="entity.isCollect === 'Y' " class="icon icon-love-solid"></span> | ||
172 | - <span v-else class="icon icon-love"></span> | 171 | + <span v-if="entity.isCollect === 'Y' " class="icon icon-focused"></span> |
172 | + <span v-else class="icon icon-focus"></span> | ||
173 | </button> | 173 | </button> |
174 | <button class="button button-solid add-to-cart" | 174 | <button class="button button-solid add-to-cart" |
175 | @click="showAddToCart()" | 175 | @click="showAddToCart()" |
@@ -223,6 +223,10 @@ | @@ -223,6 +223,10 @@ | ||
223 | line-height: $lh; | 223 | line-height: $lh; |
224 | color: #b0b0b0; | 224 | color: #b0b0b0; |
225 | } | 225 | } |
226 | + | ||
227 | + .icon-right { | ||
228 | + margin-left: 30px; | ||
229 | + } | ||
226 | } | 230 | } |
227 | 231 | ||
228 | .product-detail-desc { | 232 | .product-detail-desc { |
-
Please register or login to post a comment