|
@@ -137,6 +137,16 @@ function showPage() { |
|
@@ -137,6 +137,16 @@ function showPage() { |
137
|
$('.payapp-list').css('visibility', 'visible');
|
137
|
$('.payapp-list').css('visibility', 'visible');
|
138
|
}
|
138
|
}
|
139
|
|
139
|
|
|
|
140
|
+function bindTouchedEvent() {
|
|
|
141
|
+ var $boxs = $('.box');
|
|
|
142
|
+
|
|
|
143
|
+ $boxs.on('touchstart', function(e) {
|
|
|
144
|
+ $(this).addClass('bytouch');
|
|
|
145
|
+ }).on('touchend touchcancel', function() {
|
|
|
146
|
+ $boxs.removeClass('bytouch');
|
|
|
147
|
+ });
|
|
|
148
|
+}
|
|
|
149
|
+
|
140
|
if (wxHammer) {
|
150
|
if (wxHammer) {
|
141
|
wxHammer.on('tap', function() {
|
151
|
wxHammer.on('tap', function() {
|
142
|
callpay(theOrderCode);
|
152
|
callpay(theOrderCode);
|
|
@@ -148,6 +158,7 @@ function main() { |
|
@@ -148,6 +158,7 @@ function main() { |
148
|
loading.hideLoadingMask();
|
158
|
loading.hideLoadingMask();
|
149
|
showPage();
|
159
|
showPage();
|
150
|
loadIcon();
|
160
|
loadIcon();
|
|
|
161
|
+ bindTouchedEvent();
|
151
|
}
|
162
|
}
|
152
|
|
163
|
|
153
|
loading.showLoadingMask();
|
164
|
loading.showLoadingMask();
|