Authored by 陈峰

Merge branch 'hotfix/presale-cart-message' into 'release/6.8.6'

购物车结算时选择预售商品给予提示



See merge request !424
... ... @@ -570,6 +570,10 @@ const formatCart = (cartDataRet, uid, shoppingKey, cartDelList) => {
// 移除的商品列表
result.deleteShop = cartDelList;
if (cartDataRet.code === 500) {
result.message = cartDataRet.message;
}
// 接口异常时,购物车置为空
if (!cartData) {
result.isEmpty = true;
... ... @@ -578,7 +582,6 @@ const formatCart = (cartDataRet, uid, shoppingKey, cartDelList) => {
return result;
}
// 预售购物车,普通购物车 凑单链接
result.moreGoodsLink = '//list.yohobuy.com/new';
... ...
... ... @@ -166,6 +166,8 @@ function choiceOut(items) {
}).then(function(d) {
if (d.code === 200) {
refreshCart(d.data);
} else if (d.code === 500) {
new Alert(d.data.message || '操作失败!').show();
}
}).always(function() {
$('.loading').hide();
... ...