Showing
2 changed files
with
6 additions
and
5 deletions
@@ -852,7 +852,7 @@ const queryUserPromotionGift = (promotionId, uid, shoppingKey) => { | @@ -852,7 +852,7 @@ const queryUserPromotionGift = (promotionId, uid, shoppingKey) => { | ||
852 | if (promotionGifts && promotionGifts.code === 200) { | 852 | if (promotionGifts && promotionGifts.code === 200) { |
853 | promotionGifts.data = chelper.formatPriceGiftOne(promotionGifts.data); | 853 | promotionGifts.data = chelper.formatPriceGiftOne(promotionGifts.data); |
854 | 854 | ||
855 | - if(promotionGifts.data.goodsList && promotionGifts.data.goodsList.length) { | 855 | + if (promotionGifts.data.goodsList && promotionGifts.data.goodsList.length) { |
856 | currentProduct = promotionGifts.data.goodsList[0]; | 856 | currentProduct = promotionGifts.data.goodsList[0]; |
857 | } | 857 | } |
858 | 858 | ||
@@ -875,7 +875,7 @@ const queryUserPromotionGift = (promotionId, uid, shoppingKey) => { | @@ -875,7 +875,7 @@ const queryUserPromotionGift = (promotionId, uid, shoppingKey) => { | ||
875 | } | 875 | } |
876 | 876 | ||
877 | // 获取选中商品的数据详情 | 877 | // 获取选中商品的数据详情 |
878 | - if(currentProduct && currentProduct.id) { | 878 | + if (currentProduct && currentProduct.id) { |
879 | promotionGifts.data.productInfo = yield getProductInfoAsync(currentProduct.id); | 879 | promotionGifts.data.productInfo = yield getProductInfoAsync(currentProduct.id); |
880 | } | 880 | } |
881 | 881 |
@@ -169,7 +169,7 @@ function getProductInfo(pid, skn) { | @@ -169,7 +169,7 @@ function getProductInfo(pid, skn) { | ||
169 | } | 169 | } |
170 | 170 | ||
171 | 171 | ||
172 | -//根据id获取商品信息 | 172 | +// 根据id获取商品信息 |
173 | function getProductHtmlInfo(productId) { | 173 | function getProductHtmlInfo(productId) { |
174 | return $.ajax({ | 174 | return $.ajax({ |
175 | type: 'GET', | 175 | type: 'GET', |
@@ -181,7 +181,8 @@ function getProductHtmlInfo(productId) { | @@ -181,7 +181,8 @@ function getProductHtmlInfo(productId) { | ||
181 | }).then(function(d) { | 181 | }).then(function(d) { |
182 | 182 | ||
183 | return d; | 183 | return d; |
184 | - /*pacList = 0; | 184 | + |
185 | + /* pacList = 0; | ||
185 | $goodsDetail.html(' '); | 186 | $goodsDetail.html(' '); |
186 | $goodsDetail.append(d); | 187 | $goodsDetail.append(d); |
187 | $goodsDetail.show(); | 188 | $goodsDetail.show(); |
@@ -372,7 +373,7 @@ function bindGiftWinAction($el) { | @@ -372,7 +373,7 @@ function bindGiftWinAction($el) { | ||
372 | var id = $(this).data('id'); | 373 | var id = $(this).data('id'); |
373 | var skn = $(this).data('skn'); | 374 | var skn = $(this).data('skn'); |
374 | 375 | ||
375 | - /*getProductInfo(id, skn).then(res => { | 376 | + /* getProductInfo(id, skn).then(res => { |
376 | 377 | ||
377 | $el.find('.product-detail-info').empty().append(productInfoTpl(res)); | 378 | $el.find('.product-detail-info').empty().append(productInfoTpl(res)); |
378 | });*/ | 379 | });*/ |
-
Please register or login to post a comment