Authored by xuqi

passport tap->touchstart

@@ -40,7 +40,7 @@ function bindEyesEvt(opt) { @@ -40,7 +40,7 @@ function bindEyesEvt(opt) {
40 } 40 }
41 $eye = $hasEye.children('.eye'); 41 $eye = $hasEye.children('.eye');
42 42
43 - $eye.on('tap', function(e) { 43 + $eye.on('touchstart', function(e) {
44 var $this = $(this), 44 var $this = $(this),
45 $pwd = $this.siblings('.pwd'); 45 $pwd = $this.siblings('.pwd');
46 46
@@ -65,7 +65,7 @@ function bindClearEvt() { @@ -65,7 +65,7 @@ function bindClearEvt() {
65 $hasClear.append('<div class="clear-input"></div>'); 65 $hasClear.append('<div class="clear-input"></div>');
66 $clear = $hasClear.children('.clear-input'); 66 $clear = $hasClear.children('.clear-input');
67 67
68 - $clear.on('tap', function(e) { 68 + $clear.on('touchstart', function(e) {
69 var $input = $clear.siblings('.input'); 69 var $input = $clear.siblings('.input');
70 70
71 $input.val('').trigger('input').focus(); 71 $input.val('').trigger('input').focus();
@@ -11,7 +11,7 @@ var $resend = $('#resend'); @@ -11,7 +11,7 @@ var $resend = $('#resend');
11 var tip = require('../../plugin/tip'), 11 var tip = require('../../plugin/tip'),
12 showErrTip = tip.show; 12 showErrTip = tip.show;
13 13
14 -$resend.on('tap', function(e) { 14 +$resend.on('touchstart', function(e) {
15 e.preventDefault(); 15 e.preventDefault();
16 16
17 $.ajax({ 17 $.ajax({
@@ -24,7 +24,7 @@ $email.bind('input', function() { @@ -24,7 +24,7 @@ $email.bind('input', function() {
24 } 24 }
25 }); 25 });
26 26
27 -$btnSure.on('tap', function() { 27 +$btnSure.on('touchstart', function() {
28 var email = trim($email.val()); 28 var email = trim($email.val());
29 29
30 if ($btnSure.hasClass('disable')) { 30 if ($btnSure.hasClass('disable')) {
@@ -32,7 +32,7 @@ $countrySelect.change(function() { @@ -32,7 +32,7 @@ $countrySelect.change(function() {
32 $areaCode.text($countrySelect.val()); 32 $areaCode.text($countrySelect.val());
33 }); 33 });
34 34
35 -$btnNext.on('tap', function() { 35 +$btnNext.on('touchstart', function() {
36 var pn = trim($phoneNum.val()), 36 var pn = trim($phoneNum.val()),
37 area = $countrySelect.val(); 37 area = $countrySelect.val();
38 38
@@ -26,7 +26,7 @@ $pwd.bind('input', function() { @@ -26,7 +26,7 @@ $pwd.bind('input', function() {
26 } 26 }
27 }); 27 });
28 28
29 -$btnOk.on('tap', function() { 29 +$btnOk.on('touchstart', function() {
30 var pwd = trim($pwd.val()), 30 var pwd = trim($pwd.val()),
31 mobileBack = true, 31 mobileBack = true,
32 setting, 32 setting,
@@ -45,7 +45,7 @@ module.exports = function(useInRegister) { @@ -45,7 +45,7 @@ module.exports = function(useInRegister) {
45 }); 45 });
46 46
47 //重新发送验证码 47 //重新发送验证码
48 - $captchaTip.on('tap', function() { 48 + $captchaTip.on('touchstart', function() {
49 if ($captchaTip.hasClass('disable')) { 49 if ($captchaTip.hasClass('disable')) {
50 return; 50 return;
51 } 51 }
@@ -70,7 +70,7 @@ module.exports = function(useInRegister) { @@ -70,7 +70,7 @@ module.exports = function(useInRegister) {
70 }); 70 });
71 }); 71 });
72 72
73 - $btnNext.on('tap', function() { 73 + $btnNext.on('touchstart', function() {
74 if ($btnNext.hasClass('disable')) { 74 if ($btnNext.hasClass('disable')) {
75 return; 75 return;
76 } 76 }
@@ -64,7 +64,7 @@ $countrySelect.change(function() { @@ -64,7 +64,7 @@ $countrySelect.change(function() {
64 $areaCode.text($countrySelect.val()); 64 $areaCode.text($countrySelect.val());
65 }); 65 });
66 66
67 -$loginBtn.on('tap', function() { 67 +$loginBtn.on('touchstart', function() {
68 var pn = trim($phoneNum.val()), 68 var pn = trim($phoneNum.val()),
69 areaCode = $countrySelect.val(), 69 areaCode = $countrySelect.val(),
70 pwd = trim($pwd.val()); 70 pwd = trim($pwd.val());
@@ -68,7 +68,7 @@ $pwd.bind('input', function() { @@ -68,7 +68,7 @@ $pwd.bind('input', function() {
68 68
69 69
70 // Login 70 // Login
71 -$loginBtn.on('tap', function() { 71 +$loginBtn.on('touchstart', function() {
72 var acc = trim($account.val()), 72 var acc = trim($account.val()),
73 pwd = trim($pwd.val()); 73 pwd = trim($pwd.val());
74 74
@@ -107,15 +107,15 @@ $loginBtn.on('tap', function() { @@ -107,15 +107,15 @@ $loginBtn.on('tap', function() {
107 }); 107 });
108 108
109 109
110 -$('#forget-pwd').on('tap', function() { 110 +$('#forget-pwd').on('touchstart', function() {
111 showRetrivePanel(); 111 showRetrivePanel();
112 }); 112 });
113 113
114 -$mask.on('tap', function() { 114 +$mask.on('touchstart', function() {
115 hideRetrivePanel(); 115 hideRetrivePanel();
116 }); 116 });
117 117
118 -$('#cancel-retrive').on('tap', function(e) { 118 +$('#cancel-retrive').on('touchstart', function(e) {
119 e.preventDefault(); 119 e.preventDefault();
120 hideRetrivePanel(); 120 hideRetrivePanel();
121 }); 121 });
@@ -26,7 +26,7 @@ $pwd.bind('input', function() { @@ -26,7 +26,7 @@ $pwd.bind('input', function() {
26 } 26 }
27 }); 27 });
28 28
29 -$btnSure.on('tap', function() { 29 +$btnSure.on('touchstart', function() {
30 var pwd = trim($pwd.val()); 30 var pwd = trim($pwd.val());
31 31
32 if ($btnSure.hasClass('disable')) { 32 if ($btnSure.hasClass('disable')) {
@@ -32,7 +32,7 @@ $countrySelect.change(function() { @@ -32,7 +32,7 @@ $countrySelect.change(function() {
32 $areaCode.text($countrySelect.val()); 32 $areaCode.text($countrySelect.val());
33 }); 33 });
34 34
35 -$btnNext.on('tap', function() { 35 +$btnNext.on('touchstart', function() {
36 var pn = trim($phoneNum.val()), 36 var pn = trim($phoneNum.val()),
37 areaCode = $countrySelect.val(); 37 areaCode = $countrySelect.val();
38 38