Authored by 刘传洋

m

... ... @@ -240,6 +240,7 @@ const removeProduct = (req, res) => {
let skuList = req.body.skuList;
let hasPromotion = true;
let cartDelList = req.body.cartDelList;
// let cartDelList = req.cookies['cart-del-list'];
... ...
... ... @@ -76,7 +76,7 @@ const addToCart = (productSku, buyNumber,
* @param bool $hasPromotion 是否有促销ID
* @return array 购物车接口返回的数据
*/
const selectGoods = (uid, sku, shoppingKey /*, hasPromotion*/) => {
const selectGoods = (uid, sku, shoppingKey /* , hasPromotion*/) => {
let param = {
// method: hasPromotion ? 'app.Shopping.selectedAndCart' : 'app.Shopping.selected',
... ... @@ -105,7 +105,7 @@ const selectGoods = (uid, sku, shoppingKey /*, hasPromotion*/) => {
* @param bool $hasPromotion 是否有促销ID
* @return array 接口返回的数据
*/
const removeFromCart = (uid, shoppingKey, skuList /*, hasPromotion*/ ) =>{
const removeFromCart = (uid, shoppingKey, skuList /* , hasPromotion*/) =>{
let param = {
// method: hasPromotion ? 'app.Shopping.removeAndCart' : 'app.Shopping.remove',
... ... @@ -131,7 +131,7 @@ const removeFromCart = (uid, shoppingKey, skuList /*, hasPromotion*/ ) =>{
* @param bool $hasPromotion 是否有促销ID
* @return array 接口返回的数据
*/
const addToFav = (uid, skuList /*, hasPromotion*/ ) =>{
const addToFav = (uid, skuList /* , hasPromotion*/) =>{
let param = {
// method: hasPromotion ? 'app.Shopping.addfavoriteAndCart' : 'app.Shopping.addfavorite',
... ...
... ... @@ -84,7 +84,7 @@ function cartItemDel(items, type, cookieList) {
}
}).then(function(d) {
if (d.code === 200) {
/*if (cookieList) {
/* if (cookieList) {
window.setCookie('cart-del-list', JSON.stringify(cookieList), {
domain: '.yohobuy.com',
path: '/'
... ...
... ... @@ -353,7 +353,7 @@ GoodsWinAction = {
// 替换促销商品
if (isSwap) {
capi.updateCartGiftItem(promotionId, skn, sku).then(function(){
capi.updateCartGiftItem(promotionId, skn, sku).then(function() {
capi.hideMDialog('#Y_goodsSelectWinDialog');
});
} else {
... ... @@ -361,7 +361,7 @@ GoodsWinAction = {
productSku: sku,
buyNumber: $num.val(),
promotionId: promotionId
}).then(function(){
}).then(function() {
capi.hideMDialog('#Y_goodsSelectWinDialog');
});
}
... ...