Authored by 郝肖肖

品类冒泡修复

... ... @@ -56,6 +56,12 @@ $categoryContainer.on('touchend', function(e) {
$cur, index;
$cur = $this.closest('.p-level-item');
//第一次单击右则空白处,出现冒泡
if ($(e.target).closest('.sub-level').length <=0) {
e.preventDefault();
}
if ($cur.length > 0) {
index = $cur.index();
$subLevel = $this.closest('.content').find('.sub-level');
... ...
... ... @@ -32,6 +32,11 @@ $categoryContainer.on('touchend', function(e) {
$cur = $this.closest('.p-level-item');
//第一次单击右则空白处,出现冒泡
if ($(e.target).closest('.sub-level').length <=0) {
e.preventDefault();
}
$subLevelContainer = $this.closest('.content').find('.sub-level-container');
$subLevelContainer.removeClass('hide');
... ...