Showing
2 changed files
with
11 additions
and
0 deletions
@@ -56,6 +56,12 @@ $categoryContainer.on('touchend', function(e) { | @@ -56,6 +56,12 @@ $categoryContainer.on('touchend', function(e) { | ||
56 | $cur, index; | 56 | $cur, index; |
57 | 57 | ||
58 | $cur = $this.closest('.p-level-item'); | 58 | $cur = $this.closest('.p-level-item'); |
59 | + | ||
60 | + //第一次单击右则空白处,出现冒泡 | ||
61 | + if ($(e.target).closest('.sub-level').length <=0) { | ||
62 | + e.preventDefault(); | ||
63 | + } | ||
64 | + | ||
59 | if ($cur.length > 0) { | 65 | if ($cur.length > 0) { |
60 | index = $cur.index(); | 66 | index = $cur.index(); |
61 | $subLevel = $this.closest('.content').find('.sub-level'); | 67 | $subLevel = $this.closest('.content').find('.sub-level'); |
@@ -32,6 +32,11 @@ $categoryContainer.on('touchend', function(e) { | @@ -32,6 +32,11 @@ $categoryContainer.on('touchend', function(e) { | ||
32 | 32 | ||
33 | $cur = $this.closest('.p-level-item'); | 33 | $cur = $this.closest('.p-level-item'); |
34 | 34 | ||
35 | + //第一次单击右则空白处,出现冒泡 | ||
36 | + if ($(e.target).closest('.sub-level').length <=0) { | ||
37 | + e.preventDefault(); | ||
38 | + } | ||
39 | + | ||
35 | $subLevelContainer = $this.closest('.content').find('.sub-level-container'); | 40 | $subLevelContainer = $this.closest('.content').find('.sub-level-container'); |
36 | $subLevelContainer.removeClass('hide'); | 41 | $subLevelContainer.removeClass('hide'); |
37 | 42 |
-
Please register or login to post a comment