Authored by yyq

防止重复提交

... ... @@ -38,6 +38,13 @@ function handelProduct(data) {
}
function refreshBag() {
var time = Date.parse(new Date()),
oldTime = this.time;
if (oldTime && time - oldTime < 100) {
return;
}
this.time = time;
$.ajax({
type: 'GET',
url: '/shopping/cart/data',
... ... @@ -182,6 +189,7 @@ $searchKey.focus(function() {
$searchKey.val('search').css('color', '#aaa');
}
}).val('search').css('color', '#aaa');
// }
$clearInput.click(function() {
... ...
... ... @@ -21,7 +21,6 @@
img {
width: 100%;
height: 100%;
margin-top: -1px;
}
}
... ...