Authored by zhangxiaoru

list

... ... @@ -756,7 +756,7 @@ const setSizeData = (sizeInfo) => {
size.param = sizeTable;
}
if (_.isEmpty(_.get(size, 'param.sizeTable.tbody', ''))) {
if (_.isEmpty(_.get(size, 'param.tbody', ''))) {
return {}; // 无尺码信息则不显示该块
}
... ...
... ... @@ -13,6 +13,8 @@ module.exports = (req, res, next) => {
let refer = '';
if (req.method === 'GET') {
refer = req.getUrl();
} else {
refer = req.get('Referer');
}
... ...
... ... @@ -343,15 +343,23 @@ Cart = {
content: msg,
cb: function() {
dialog.close();
Util.ajax({
// 未使用Util.ajax统一处理,此处需要特殊处理
$.ajax({
url: '/shopping/cart/product/send_to_favorite',
type: 'POST',
data: {skuList: JSON.stringify(products)},
success: function(res) {
Util.refreshCart(res, function() {
Stepper.init();
});
data: {skuList: JSON.stringify(products)}
}).then(function(res) {
// 未登录情况下跳转登录页
if (res.code === 400) {
location.href = res.data.refer;
return;
}
Util.refreshCart(res, function() {
Stepper.init();
});
});
}
}).show();
... ...
... ... @@ -62,6 +62,10 @@
float: left;
padding: 0 2px;
margin: 0 12px;
> a:hover {
color: #9a9a9a;
}
}
.tag-phone,
... ...
.product-item-page {
.brand-fav.coll {
color: #fc0d1b !important;
}
.thumbs {
width: 596px;
height: 643px;
... ...
... ... @@ -24,6 +24,17 @@
white-space: nowrap;
overflow: hidden;
.radio {
margin-left: 0;
font-size: 14px;
display: inline-block;
color: #999;
}
.checked {
color: #1b1b1b;
}
.round-color {
width: 22px;
height: 21px;
... ... @@ -39,23 +50,6 @@
}
}
.input-radio span {
margin-left: 0;
font-size: 14px;
display: inline-block;
color: #999;
}
.input-radio {
.checked {
color: #1b1b1b;
}
}
.input-radio label {
font-size: 14px;
font-weight: normal;
... ...