Authored by 刘传洋

m

... ... @@ -852,7 +852,7 @@ const queryUserPromotionGift = (promotionId, uid, shoppingKey) => {
if (promotionGifts && promotionGifts.code === 200) {
promotionGifts.data = chelper.formatPriceGiftOne(promotionGifts.data);
if(promotionGifts.data.goodsList && promotionGifts.data.goodsList.length) {
if (promotionGifts.data.goodsList && promotionGifts.data.goodsList.length) {
currentProduct = promotionGifts.data.goodsList[0];
}
... ... @@ -875,7 +875,7 @@ const queryUserPromotionGift = (promotionId, uid, shoppingKey) => {
}
// 获取选中商品的数据详情
if(currentProduct && currentProduct.id) {
if (currentProduct && currentProduct.id) {
promotionGifts.data.productInfo = yield getProductInfoAsync(currentProduct.id);
}
... ...
... ... @@ -169,7 +169,7 @@ function getProductInfo(pid, skn) {
}
//根据id获取商品信息
// 根据id获取商品信息
function getProductHtmlInfo(productId) {
return $.ajax({
type: 'GET',
... ... @@ -181,7 +181,8 @@ function getProductHtmlInfo(productId) {
}).then(function(d) {
return d;
/*pacList = 0;
/* pacList = 0;
$goodsDetail.html(' ');
$goodsDetail.append(d);
$goodsDetail.show();
... ... @@ -372,7 +373,7 @@ function bindGiftWinAction($el) {
var id = $(this).data('id');
var skn = $(this).data('skn');
/*getProductInfo(id, skn).then(res => {
/* getProductInfo(id, skn).then(res => {
$el.find('.product-detail-info').empty().append(productInfoTpl(res));
});*/
... ...