Showing
2 changed files
with
11 additions
and
0 deletions
@@ -8908,6 +8908,16 @@ function showPage() { | @@ -8908,6 +8908,16 @@ function showPage() { | ||
8908 | $('.payapp-list').css('visibility', 'visible'); | 8908 | $('.payapp-list').css('visibility', 'visible'); |
8909 | } | 8909 | } |
8910 | 8910 | ||
8911 | +function bindTouchedEvent() { | ||
8912 | + var $boxs = $('.box'); | ||
8913 | + | ||
8914 | + $boxs.on('touchstart', function(e) { | ||
8915 | + $(this).addClass('bytouch'); | ||
8916 | + }).on('touchend touchcancel', function() { | ||
8917 | + $boxs.removeClass('bytouch'); | ||
8918 | + }); | ||
8919 | +} | ||
8920 | + | ||
8911 | if (wxHammer) { | 8921 | if (wxHammer) { |
8912 | wxHammer.on('tap', function() { | 8922 | wxHammer.on('tap', function() { |
8913 | callpay(theOrderCode); | 8923 | callpay(theOrderCode); |
@@ -8919,6 +8929,7 @@ function main() { | @@ -8919,6 +8929,7 @@ function main() { | ||
8919 | loading.hideLoadingMask(); | 8929 | loading.hideLoadingMask(); |
8920 | showPage(); | 8930 | showPage(); |
8921 | loadIcon(); | 8931 | loadIcon(); |
8932 | + bindTouchedEvent(); | ||
8922 | } | 8933 | } |
8923 | 8934 | ||
8924 | loading.showLoadingMask(); | 8935 | loading.showLoadingMask(); |
This diff could not be displayed because it is too large.
-
Please register or login to post a comment