Authored by 梁志锋

收藏浏览记录的失效商品点击效果

... ... @@ -217,6 +217,12 @@ $('.btn-balance').on('touchend', function() {
});
$('.off-shell-goods').on('touchstart touchend', function() {
var $this = $(e.target).closest('span');
if ($this.hasClass('icon-del')) {
return;
}
tip.show('商品已下架');
return false;
});
... ...
... ... @@ -178,11 +178,6 @@ $('.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({
... ...
... ... @@ -55,7 +55,7 @@ $overlay.on('touchstart', function() {
return false;
});
$sideNav.on('touchmove', function() {
$sideNav.on('touchmove scroll', function() {
return false;
});
... ...
... ... @@ -6,8 +6,9 @@
var $ = require('jquery');
var lazyLoad = require('yoho.lazyload');
var load = require('../plugin/loading');
var lazyLoad = require('yoho.lazyload'),
load = require('../plugin/loading'),
tip = require('../plugin/tip');
var dialog = require('./dialog');
... ... @@ -126,3 +127,13 @@ $('.deps').on('touchstart', 'span', function() {
}).on('touchend touchcancel', 'span', function() {
$(this).css('background', 'transparent');
});
$('.invalidGoods').on('touchstart touchend', function() {
var $this = $(e.target).closest('span');
if ($this.hasClass('del-icon')) {
return;
}
tip.show('商品已下架');
return false;
});
\ No newline at end of file
... ...
... ... @@ -256,3 +256,13 @@ $(document).on('touchend', '.swiper-header', function() {
window.location.href = url;
}
});
$('.invalidGoods').on('touchstart touchend', function() {
var $this = $(e.target).closest('span');
if ($this.hasClass('del-fav')) {
return;
}
tip.show('商品已下架');
return false;
});
\ No newline at end of file
... ...