Showing
1 changed file
with
15 additions
and
8 deletions
@@ -20,16 +20,23 @@ function setCallback(t, p) { | @@ -20,16 +20,23 @@ function setCallback(t, p) { | ||
20 | */ | 20 | */ |
21 | (function() { | 21 | (function() { |
22 | $tip.on('touchend', function(event) { | 22 | $tip.on('touchend', function(event) { |
23 | - if ('SPAN' !== event.target.tagName) { | ||
24 | - $tip.hide(); | ||
25 | - } else { | 23 | + if ('SPAN' === event.target.tagName) { |
26 | if (touchCallback) { | 24 | if (touchCallback) { |
27 | - touchCallback(params); | 25 | + touchCallback(params); |
28 | } | 26 | } |
29 | 27 | ||
28 | + touchCallback = null; | ||
29 | + params = null; | ||
30 | + | ||
31 | + setTimeout(function() { | ||
32 | + $tip.hide(); | ||
33 | + }, 5); | ||
34 | + } else if ('A' === event.target.tagName){ | ||
30 | setTimeout(function() { | 35 | setTimeout(function() { |
31 | $tip.hide(); | 36 | $tip.hide(); |
32 | }, 5); | 37 | }, 5); |
38 | + } else { | ||
39 | + $tip.hide(); | ||
33 | } | 40 | } |
34 | }); | 41 | }); |
35 | }()); | 42 | }()); |
@@ -55,8 +62,8 @@ function show(con, btn) { | @@ -55,8 +62,8 @@ function show(con, btn) { | ||
55 | } else { | 62 | } else { |
56 | buttons += '<a href="' + btn[0].href | 63 | buttons += '<a href="' + btn[0].href |
57 | + '" class="order-tip-btn1 ' + btn[0].class | 64 | + '" class="order-tip-btn1 ' + btn[0].class |
58 | - + '"><span>' + btn[0].text | ||
59 | - + '</span></a>'; | 65 | + + '">' + btn[0].text |
66 | + + '</a>'; | ||
60 | } | 67 | } |
61 | } | 68 | } |
62 | 69 | ||
@@ -69,8 +76,8 @@ function show(con, btn) { | @@ -69,8 +76,8 @@ function show(con, btn) { | ||
69 | } else { | 76 | } else { |
70 | buttons += '<a href="' + value.href | 77 | buttons += '<a href="' + value.href |
71 | + '" class="' + value.class | 78 | + '" class="' + value.class |
72 | - + '"><span>' + value.text | ||
73 | - + '</span></a>'; | 79 | + + '">' + value.text |
80 | + + '</a>'; | ||
74 | } | 81 | } |
75 | }); | 82 | }); |
76 | } | 83 | } |
-
Please register or login to post a comment