Authored by Rock Zhang

更新到201603091538静态资源

... ... @@ -6003,8 +6003,17 @@ $yohoPage.on('touchstart', '.btn-minus', function() {
url = $('#limitProductPay').val() + '?limitproductcode=' + limitProductCode + '&sku=' +
productSku + '&skn=' + skn + '&buy_number=' + buyNumber;
//打开结算页面,结束函数执行。
window.location.href = url;
// 调用接口判断商品是否可以购买
$.ajax({
url: url
}).then(function(res) {
// 如果有错,则商品不可购买,执行页面刷新,否则跳到结算页面
res.error ? window.location.reload() : window.location.href = url;
}).fail(function() {
window.location.reload();
});
return false;
} else {
... ...
This diff could not be displayed because it is too large.