...
|
...
|
@@ -8,6 +8,7 @@ var $ = require('jquery'), |
|
|
lazyLoad = require('yoho.lazyload'),
|
|
|
Handlebars = require('yoho.handlebars'),
|
|
|
tip = require('../plugin/tip'),
|
|
|
loading = require('../plugin/loading'),
|
|
|
chosePanel = require('./chose-panel');
|
|
|
|
|
|
var panelTmpl,
|
...
|
...
|
@@ -27,6 +28,7 @@ $.get('/cart/index/giftinfoTpl', function(html) { |
|
|
});
|
|
|
|
|
|
function getProductInfo(skn, promotionId) {
|
|
|
loading.showLoadingMask();
|
|
|
$.get('/cart/index/giftinfo', {
|
|
|
skn: skn,
|
|
|
promotionId: promotionId
|
...
|
...
|
@@ -48,6 +50,8 @@ function getProductInfo(skn, promotionId) { |
|
|
}
|
|
|
}).fail(function() {
|
|
|
tip.show('网络错误');
|
|
|
}).always(function() {
|
|
|
loading.hideLoadingMask();
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
|