Authored by lore-w

点击删除收藏触发a链接跳转问题

... ... @@ -163,7 +163,6 @@ favContentHammer.on('tap', function(e) {
if (!$(e.target).hasClass('del-fav')) {
return;
}
diaLog.showDialog({
dialogText: '您确定要取消收藏吗?',
hasFooter: {
... ...
... ... @@ -88,6 +88,10 @@
height: auto;
overflow: hidden;
margin-top: pxToRem(20px);
a {
display: block;
}
}
.fav-img-box {
... ... @@ -171,17 +175,28 @@
}
&.del-fav {
$width: pxToRem(image_width(sprite-file($fav, fav-del)));
$height: pxToRem(image_height(sprite-file($fav, fav-del)));
@include rem-sprite($fav, fav-del);
width: $width;
height: $height;
width: 2rem;
height: 1.5rem;
position: absolute;
top: 50%;
right: pxToRem(30px);
margin-top: -$height / 2;
margin-top: -0.75rem;
right: 0;
&:after {
content: '';
display: block;
$width: pxToRem(image_width(sprite-file($fav, fav-del)));
$height: pxToRem(image_height(sprite-file($fav, fav-del)));
@include rem-sprite($fav, fav-del);
width: $width;
height: $height;
position: absolute;
top: 50%;
right: pxToRem(30px);
margin-top: -$height / 2;
}
}
}
}
... ...