Authored by xuqi

cart good chose

... ... @@ -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();
... ...
... ... @@ -107,12 +107,11 @@ $('.cart-goods').on('touchstart', '.checkbox', function() {
fast: true
});
history.go(0);
} else {
tip.show(data.message);
}
}, function() {
dialog.showDialog({
autoHide: true,
dialogText: '网络异常'
});
tip.show('网络异常');
});
});
... ...