Authored by 梁志锋

预售购物车的失效商品的提示

... ... @@ -216,8 +216,8 @@ $('.btn-balance').on('touchend', function() {
}
});
$('.off-shell-goods .shopping-cart-good').on('touchend', function() {
tip.show('商品已下架');
$('.off-shell-goods').on('touchstart touchend', function() {
return false;
});
$('.chose').on('touchend', function() {
... ...
... ... @@ -128,6 +128,11 @@ $('.icon-edit').on('touchstart', function(e) {
count,
canEditNum;
if ($this.parents('.off-shell-goods').length) {
tip.show('商品已下架');
return false;
}
//如果点击的是上次编辑的商品,直接显示chose-pannel
if (skn === previousEditSkn) {
chosePanel.show();
... ... @@ -173,6 +178,11 @@ $('.icon-edit').on('touchstart', function(e) {
$('.icon-del').on('touchstart', function(e) {
var $this = $(this);
if ($this.parents('.off-shell-goods').length) {
tip.show('商品已下架');
return false;
}
e.stopPropagation();
dialog.showDialog({
... ...