Authored by ccbikai(👎🏻🍜)

Merge branch 'release/5.6' of git.yoho.cn:fe/yohobuywap-node into release/5.6

@@ -5,8 +5,8 @@ @@ -5,8 +5,8 @@
5 {{!--shop-header--}} 5 {{!--shop-header--}}
6 <div class="shop-header brand-header"> 6 <div class="shop-header brand-header">
7 {{#if banner}} 7 {{#if banner}}
8 - <div class="branner-top">  
9 - <img class="shop-back-img" src="{{image banner 750 234}}"> 8 + <div class="branner-top" style="background-image:url({{image banner 750 234}})">
  9 + <div class="shop-back-img"></div>
10 {{#if shopInfo.shop_logo}} 10 {{#if shopInfo.shop_logo}}
11 <img class="logo" src="{{image shopInfo.shop_logo 100 100}}"> 11 <img class="logo" src="{{image shopInfo.shop_logo 100 100}}">
12 {{/if}} 12 {{/if}}
@@ -26,7 +26,7 @@ @@ -26,7 +26,7 @@
26 </li> 26 </li>
27 <em>|</em> 27 <em>|</em>
28 <li class="shop-tab-nav tab-nav"> 28 <li class="shop-tab-nav tab-nav">
29 - <span data-target="#all-goods" data-trigger="tab" data-funGetNewGoods>上新</span> 29 + <span data-target="#all-goods" data-trigger="tab" data-funGetNewGoods>新品</span>
30 </li> 30 </li>
31 <em>|</em> 31 <em>|</em>
32 <li class="shop-tab-nav tab-nav"> 32 <li class="shop-tab-nav tab-nav">
1 <div class="item"> 1 <div class="item">
2 {{#if link}} 2 {{#if link}}
3 <a href="{{link}}"> 3 <a href="{{link}}">
4 - <img class="item-pic" src="{{image2 src}}" alt=""> 4 + <img class="item-pic" src="{{#ifand isGood triple}}{{image2 src w=235 h=314}}{{^}}{{image2 src}}{{/ifand}}" alt="">
5 </a> 5 </a>
6 {{^}} 6 {{^}}
7 - <img class="item-pic" src="{{image2 src}}" alt=""> 7 + <img class="item-pic" src="{{#ifand isGood triple}}{{image2 src w=235 h=314}}{{^}}{{image2 src}}{{/ifand}}" alt="">
8 {{/if}} 8 {{/if}}
9 9
10 {{#if showProductInfo}} 10 {{#if showProductInfo}}
@@ -71,7 +71,7 @@ @@ -71,7 +71,7 @@
71 {{#isEqual module_type 'TripleImage'}} 71 {{#isEqual module_type 'TripleImage'}}
72 <div class="{{#isEqual ../displayType 1}}items-3-3{{/isEqual}}{{#isEqual ../displayType 2}}items-3-3 items-small{{/isEqual}}{{#isEqual ../displayType 3}}items-3-2 items-3-2-right{{/isEqual}}{{#isEqual ../displayType 4}}items-3-2 items-3-2-left{{/isEqual}} clearfix"> 72 <div class="{{#isEqual ../displayType 1}}items-3-3{{/isEqual}}{{#isEqual ../displayType 2}}items-3-3 items-small{{/isEqual}}{{#isEqual ../displayType 3}}items-3-2 items-3-2-right{{/isEqual}}{{#isEqual ../displayType 4}}items-3-2 items-3-2-left{{/isEqual}} clearfix">
73 {{#each ../pics}} 73 {{#each ../pics}}
74 - {{> reds-shop/item}} 74 + {{> reds-shop/item triple=true}}
75 {{/each}} 75 {{/each}}
76 </div> 76 </div>
77 {{#if ../isModuleMargin}} 77 {{#if ../isModuleMargin}}
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 * @Author: Targaryen 2 * @Author: Targaryen
3 * @Date: 2017-04-13 14:43:19 3 * @Date: 2017-04-13 14:43:19
4 * @Last Modified by: Targaryen 4 * @Last Modified by: Targaryen
5 - * @Last Modified time: 2017-04-18 11:36:23 5 + * @Last Modified time: 2017-04-18 16:39:47
6 */ 6 */
7 7
8 /* *************** 8 /* ***************
@@ -82,15 +82,11 @@ $sureResetBtn.on('click', function() { @@ -82,15 +82,11 @@ $sureResetBtn.on('click', function() {
82 success: function(result) { 82 success: function(result) {
83 tip.show(result.message); 83 tip.show(result.message);
84 84
85 - let href = '/passport/password/resetsuccess';  
86 -  
87 - if (result.code !== 200) {  
88 - href = '/passport/login'; 85 + if (result.code === 402) {
  86 + setTimeout(function() {
  87 + window.location.href = '/passport/login';
  88 + }, 500);
89 } 89 }
90 -  
91 - setTimeout(function() {  
92 - window.location.href = href;  
93 - }, 500);  
94 }, 90 },
95 error: function() { 91 error: function() {
96 tip.show('系统异常!'); 92 tip.show('系统异常!');
@@ -40,6 +40,7 @@ @@ -40,6 +40,7 @@
40 .nav-sub-right { 40 .nav-sub-right {
41 @extend nav; 41 @extend nav;
42 42
  43 + width: 120px;
43 height: 105px; 44 height: 105px;
44 line-height: 105px; 45 line-height: 105px;
45 } 46 }
@@ -68,6 +68,7 @@ @@ -68,6 +68,7 @@
68 color: #fff; 68 color: #fff;
69 background-color: transparent; 69 background-color: transparent;
70 border: none; 70 border: none;
  71 + width: 100%;
71 } 72 }
72 73
73 input::-webkit-input-placeholder { 74 input::-webkit-input-placeholder {
@@ -14,10 +14,13 @@ @@ -14,10 +14,13 @@
14 height: 234px; 14 height: 234px;
15 position: relative; 15 position: relative;
16 overflow: hidden; 16 overflow: hidden;
  17 + background-size: 100%;
  18 + background-repeat: no-repeat;
17 19
18 .shop-back-img { 20 .shop-back-img {
19 height: 100%; 21 height: 100%;
20 width: 100%; 22 width: 100%;
  23 + background-color: rgba(0, 0, 0, 0.2);
21 } 24 }
22 } 25 }
23 26
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 * @Author: Targaryen 2 * @Author: Targaryen
3 * @Date: 2017-03-23 17:12:53 3 * @Date: 2017-03-23 17:12:53
4 * @Last Modified by: Targaryen 4 * @Last Modified by: Targaryen
5 - * @Last Modified time: 2017-04-18 14:51:52 5 + * @Last Modified time: 2017-04-18 16:04:40
6 */ 6 */
7 // 红人店铺首页 7 // 红人店铺首页
8 8
@@ -68,13 +68,12 @@ @@ -68,13 +68,12 @@
68 .items-s1 { 68 .items-s1 {
69 position: relative; 69 position: relative;
70 background-color: #fff; 70 background-color: #fff;
71 - margin: 30px;  
72 71
73 .item-info { 72 .item-info {
74 padding: 12px; 73 padding: 12px;
75 display: flex; 74 display: flex;
76 align-items: center; 75 align-items: center;
77 - background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0.8) 100%); 76 + background-color: rgba(0, 0, 0, 0.3);
78 } 77 }
79 78
80 .item-info > div { 79 .item-info > div {
@@ -97,7 +96,7 @@ @@ -97,7 +96,7 @@
97 96
98 .item-info { 97 .item-info {
99 padding: 12px; 98 padding: 12px;
100 - background-color: rgba(0, 0, 0, 0.5); 99 + background-color: rgba(0, 0, 0, 0.3);
101 } 100 }
102 101
103 .item-info > div { 102 .item-info > div {
@@ -123,7 +122,7 @@ @@ -123,7 +122,7 @@
123 padding: 16px; 122 padding: 16px;
124 display: flex; 123 display: flex;
125 align-items: center; 124 align-items: center;
126 - background-color: rgba(0, 0, 0, 0.5); 125 + background-color: rgba(0, 0, 0, 0.3);
127 126
128 .name { 127 .name {
129 float: left; 128 float: left;
@@ -156,6 +155,7 @@ @@ -156,6 +155,7 @@
156 155
157 img { 156 img {
158 width: auto; 157 width: auto;
  158 + height: 100%;
159 } 159 }
160 } 160 }
161 161
@@ -164,6 +164,7 @@ @@ -164,6 +164,7 @@
164 164
165 img { 165 img {
166 width: auto; 166 width: auto;
  167 + height: 100%;
167 } 168 }
168 } 169 }
169 } 170 }
@@ -175,6 +176,7 @@ @@ -175,6 +176,7 @@
175 176
176 img { 177 img {
177 width: auto; 178 width: auto;
  179 + height: 100%;
178 } 180 }
179 } 181 }
180 182
@@ -183,6 +185,7 @@ @@ -183,6 +185,7 @@
183 185
184 img { 186 img {
185 width: auto; 187 width: auto;
  188 + height: 100%;
186 } 189 }
187 } 190 }
188 191
@@ -207,7 +210,7 @@ @@ -207,7 +210,7 @@
207 210
208 .item-info { 211 .item-info {
209 padding: 12px; 212 padding: 12px;
210 - background-color: rgba(0, 0, 0, 0.5); 213 + background-color: rgba(0, 0, 0, 0.3);
211 } 214 }
212 215
213 .item-info > div { 216 .item-info > div {
@@ -263,7 +266,7 @@ @@ -263,7 +266,7 @@
263 display: flex; 266 display: flex;
264 flex-direction: column; 267 flex-direction: column;
265 justify-content: center; 268 justify-content: center;
266 - background-color: rgba(0, 0, 0, 0.5); 269 + background-color: rgba(0, 0, 0, 0.3);
267 } 270 }
268 } 271 }
269 272
@@ -323,7 +326,7 @@ @@ -323,7 +326,7 @@
323 font-size: 24px; 326 font-size: 24px;
324 padding: 10px 20px; 327 padding: 10px 20px;
325 border-radius: 50px; 328 border-radius: 50px;
326 - background-color: rgba(0, 0, 0, 0.5); 329 + background-color: rgba(0, 0, 0, 0.3);
327 } 330 }
328 } 331 }
329 332
@@ -334,7 +337,8 @@ @@ -334,7 +337,8 @@
334 337
335 .margin-bottom { 338 .margin-bottom {
336 width: 100%; 339 width: 100%;
337 - height: 40px; 340 + height: 20px;
  341 + background-color: #f0f0f0;
338 } 342 }
339 343
340 .all-goods { 344 .all-goods {
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 * @Author: Targaryen 2 * @Author: Targaryen
3 * @Date: 2017-03-23 11:02:31 3 * @Date: 2017-03-23 11:02:31
4 * @Last Modified by: Targaryen 4 * @Last Modified by: Targaryen
5 - * @Last Modified time: 2017-04-14 15:05:27 5 + * @Last Modified time: 2017-04-18 16:28:28
6 */ 6 */
7 /* 红人店铺数据处理 */ 7 /* 红人店铺数据处理 */
8 8
@@ -114,7 +114,7 @@ const _tools = { @@ -114,7 +114,7 @@ const _tools = {
114 module_type: 'CarouselImage', 114 module_type: 'CarouselImage',
115 num: countCarouselImage, 115 num: countCarouselImage,
116 pics: _picsHandle(moduleData), 116 pics: _picsHandle(moduleData),
117 - isModuleMargin: Boolean(_.get(moduleData, 'properties.isModuleMargin', 0)), 117 + isModuleMargin: _.get(moduleData, 'properties.isModuleMargin', 0),
118 }; 118 };
119 }, 119 },
120 120
@@ -329,10 +329,18 @@ const pushGoodsInfo = (decorators, goodsList) => { @@ -329,10 +329,18 @@ const pushGoodsInfo = (decorators, goodsList) => {
329 if (subValue.skn) { 329 if (subValue.skn) {
330 let salesPrice = _.get(goodsObj, `${subValue.skn}.sales_price`, ''); 330 let salesPrice = _.get(goodsObj, `${subValue.skn}.sales_price`, '');
331 let marketPrice = _.get(goodsObj, `${subValue.skn}.market_price`, ''); 331 let marketPrice = _.get(goodsObj, `${subValue.skn}.market_price`, '');
  332 + let imageSrc = _.get(goodsObj, `${subValue.skn}.default_images`, '');
332 333
333 decorators[key].pics[subKey].name = _.get(goodsObj, `${subValue.skn}.product_name`, ''); 334 decorators[key].pics[subKey].name = _.get(goodsObj, `${subValue.skn}.product_name`, '');
334 decorators[key].pics[subKey].salesPrice = salesPrice ? '¥' + salesPrice : ''; 335 decorators[key].pics[subKey].salesPrice = salesPrice ? '¥' + salesPrice : '';
335 decorators[key].pics[subKey].marketPrice = marketPrice ? '¥' + marketPrice : ''; 336 decorators[key].pics[subKey].marketPrice = marketPrice ? '¥' + marketPrice : '';
  337 + decorators[key].pics[subKey].isGood = true;
  338 +
  339 + if (value.module_type === 'TripleImage') {
  340 + decorators[key].pics[subKey].src = imageSrc;
  341 + } else {
  342 + decorators[key].pics[subKey].src = imageSrc.split('?')[0];
  343 + }
336 } 344 }
337 }); 345 });
338 }); 346 });