...
|
...
|
@@ -20,18 +20,17 @@ function getProductInfo(skn, promotionId) { |
|
|
skn: skn,
|
|
|
promotionId: promotionId
|
|
|
}).then(function(res) {
|
|
|
if (!res) {
|
|
|
tip.show('网络错误');
|
|
|
return;
|
|
|
}
|
|
|
if (res.code === 200) {
|
|
|
chosePanel.show({
|
|
|
cartInfo: res.data
|
|
|
cartInfo: res.data,
|
|
|
cb: function(loc) {
|
|
|
window.location.href = loc;
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
tip.show(res.message || '网络错误');
|
|
|
tip.show(res.message);
|
|
|
}
|
|
|
}).fail(function() {
|
|
|
}, function() {
|
|
|
tip.show('网络错误');
|
|
|
}).always(function() {
|
|
|
loading.hideLoadingMask();
|
...
|
...
|
|