Authored by zhangxiaoru

list

@@ -756,7 +756,7 @@ const setSizeData = (sizeInfo) => { @@ -756,7 +756,7 @@ const setSizeData = (sizeInfo) => {
756 size.param = sizeTable; 756 size.param = sizeTable;
757 } 757 }
758 758
759 - if (_.isEmpty(_.get(size, 'param.sizeTable.tbody', ''))) { 759 + if (_.isEmpty(_.get(size, 'param.tbody', ''))) {
760 return {}; // 无尺码信息则不显示该块 760 return {}; // 无尺码信息则不显示该块
761 } 761 }
762 762
@@ -13,6 +13,8 @@ module.exports = (req, res, next) => { @@ -13,6 +13,8 @@ module.exports = (req, res, next) => {
13 let refer = ''; 13 let refer = '';
14 14
15 if (req.method === 'GET') { 15 if (req.method === 'GET') {
  16 + refer = req.getUrl();
  17 + } else {
16 refer = req.get('Referer'); 18 refer = req.get('Referer');
17 } 19 }
18 20
@@ -343,15 +343,23 @@ Cart = { @@ -343,15 +343,23 @@ Cart = {
343 content: msg, 343 content: msg,
344 cb: function() { 344 cb: function() {
345 dialog.close(); 345 dialog.close();
346 - Util.ajax({ 346 +
  347 + // 未使用Util.ajax统一处理,此处需要特殊处理
  348 + $.ajax({
347 url: '/shopping/cart/product/send_to_favorite', 349 url: '/shopping/cart/product/send_to_favorite',
348 type: 'POST', 350 type: 'POST',
349 - data: {skuList: JSON.stringify(products)},  
350 - success: function(res) {  
351 - Util.refreshCart(res, function() {  
352 - Stepper.init();  
353 - }); 351 + data: {skuList: JSON.stringify(products)}
  352 + }).then(function(res) {
  353 +
  354 + // 未登录情况下跳转登录页
  355 + if (res.code === 400) {
  356 + location.href = res.data.refer;
  357 + return;
354 } 358 }
  359 +
  360 + Util.refreshCart(res, function() {
  361 + Stepper.init();
  362 + });
355 }); 363 });
356 } 364 }
357 }).show(); 365 }).show();
@@ -62,6 +62,10 @@ @@ -62,6 +62,10 @@
62 float: left; 62 float: left;
63 padding: 0 2px; 63 padding: 0 2px;
64 margin: 0 12px; 64 margin: 0 12px;
  65 +
  66 + > a:hover {
  67 + color: #9a9a9a;
  68 + }
65 } 69 }
66 70
67 .tag-phone, 71 .tag-phone,
1 .product-item-page { 1 .product-item-page {
  2 + .brand-fav.coll {
  3 + color: #fc0d1b !important;
  4 + }
  5 +
2 .thumbs { 6 .thumbs {
3 width: 596px; 7 width: 596px;
4 height: 643px; 8 height: 643px;
@@ -24,6 +24,17 @@ @@ -24,6 +24,17 @@
24 white-space: nowrap; 24 white-space: nowrap;
25 overflow: hidden; 25 overflow: hidden;
26 26
  27 + .radio {
  28 + margin-left: 0;
  29 + font-size: 14px;
  30 + display: inline-block;
  31 + color: #999;
  32 + }
  33 +
  34 + .checked {
  35 + color: #1b1b1b;
  36 + }
  37 +
27 .round-color { 38 .round-color {
28 width: 22px; 39 width: 22px;
29 height: 21px; 40 height: 21px;
@@ -39,23 +50,6 @@ @@ -39,23 +50,6 @@
39 } 50 }
40 } 51 }
41 52
42 -  
43 -  
44 - .input-radio span {  
45 - margin-left: 0;  
46 - font-size: 14px;  
47 - display: inline-block;  
48 - color: #999;  
49 - }  
50 -  
51 - .input-radio {  
52 - .checked {  
53 - color: #1b1b1b;  
54 - }  
55 - }  
56 -  
57 -  
58 -  
59 .input-radio label { 53 .input-radio label {
60 font-size: 14px; 54 font-size: 14px;
61 font-weight: normal; 55 font-weight: normal;