Authored by Rock Zhang

更新到201603091634静态资源

... ... @@ -5999,19 +5999,34 @@ $yohoPage.on('touchstart', '.btn-minus', function() {
} else if (limitProductCode) {
$(this).css('background-color', '#ccc').removeAttr('id');
// 当前面板选择的是限购商品
url = $('#limitProductPay').val() + '?limitproductcode=' + limitProductCode + '&sku=' +
productSku + '&skn=' + skn + '&buy_number=' + buyNumber;
removePannel();
loading.showLoadingMask();
// 调用接口判断商品是否可以购买
$.ajax({
url: url
}).then(function(res) {
// 如果有错,则商品不可购买,执行页面刷新,否则跳到结算页面
res.error ? window.location.reload() : window.location.href = url;
if (res.error) {
tip.show(res.message);
setTimeout(function() {
location.reload();
}, 2000);
} else {
location.href = url;
}
}).fail(function() {
window.location.reload();
tip.show('网络异常!');
setTimeout(function() {
location.reload();
}, 2000);
});
return false;
... ...
This diff could not be displayed because it is too large.