Authored by xuqi

passport tap->touchstart

... ... @@ -40,7 +40,7 @@ function bindEyesEvt(opt) {
}
$eye = $hasEye.children('.eye');
$eye.on('tap', function(e) {
$eye.on('touchstart', function(e) {
var $this = $(this),
$pwd = $this.siblings('.pwd');
... ... @@ -65,7 +65,7 @@ function bindClearEvt() {
$hasClear.append('<div class="clear-input"></div>');
$clear = $hasClear.children('.clear-input');
$clear.on('tap', function(e) {
$clear.on('touchstart', function(e) {
var $input = $clear.siblings('.input');
$input.val('').trigger('input').focus();
... ...
... ... @@ -11,7 +11,7 @@ var $resend = $('#resend');
var tip = require('../../plugin/tip'),
showErrTip = tip.show;
$resend.on('tap', function(e) {
$resend.on('touchstart', function(e) {
e.preventDefault();
$.ajax({
... ...
... ... @@ -24,7 +24,7 @@ $email.bind('input', function() {
}
});
$btnSure.on('tap', function() {
$btnSure.on('touchstart', function() {
var email = trim($email.val());
if ($btnSure.hasClass('disable')) {
... ...
... ... @@ -32,7 +32,7 @@ $countrySelect.change(function() {
$areaCode.text($countrySelect.val());
});
$btnNext.on('tap', function() {
$btnNext.on('touchstart', function() {
var pn = trim($phoneNum.val()),
area = $countrySelect.val();
... ...
... ... @@ -26,7 +26,7 @@ $pwd.bind('input', function() {
}
});
$btnOk.on('tap', function() {
$btnOk.on('touchstart', function() {
var pwd = trim($pwd.val()),
mobileBack = true,
setting,
... ...
... ... @@ -45,7 +45,7 @@ module.exports = function(useInRegister) {
});
//重新发送验证码
$captchaTip.on('tap', function() {
$captchaTip.on('touchstart', function() {
if ($captchaTip.hasClass('disable')) {
return;
}
... ... @@ -70,7 +70,7 @@ module.exports = function(useInRegister) {
});
});
$btnNext.on('tap', function() {
$btnNext.on('touchstart', function() {
if ($btnNext.hasClass('disable')) {
return;
}
... ...
... ... @@ -64,7 +64,7 @@ $countrySelect.change(function() {
$areaCode.text($countrySelect.val());
});
$loginBtn.on('tap', function() {
$loginBtn.on('touchstart', function() {
var pn = trim($phoneNum.val()),
areaCode = $countrySelect.val(),
pwd = trim($pwd.val());
... ...
... ... @@ -68,7 +68,7 @@ $pwd.bind('input', function() {
// Login
$loginBtn.on('tap', function() {
$loginBtn.on('touchstart', function() {
var acc = trim($account.val()),
pwd = trim($pwd.val());
... ... @@ -107,15 +107,15 @@ $loginBtn.on('tap', function() {
});
$('#forget-pwd').on('tap', function() {
$('#forget-pwd').on('touchstart', function() {
showRetrivePanel();
});
$mask.on('tap', function() {
$mask.on('touchstart', function() {
hideRetrivePanel();
});
$('#cancel-retrive').on('tap', function(e) {
$('#cancel-retrive').on('touchstart', function(e) {
e.preventDefault();
hideRetrivePanel();
});
... ...
... ... @@ -26,7 +26,7 @@ $pwd.bind('input', function() {
}
});
$btnSure.on('tap', function() {
$btnSure.on('touchstart', function() {
var pwd = trim($pwd.val());
if ($btnSure.hasClass('disable')) {
... ...
... ... @@ -32,7 +32,7 @@ $countrySelect.change(function() {
$areaCode.text($countrySelect.val());
});
$btnNext.on('tap', function() {
$btnNext.on('touchstart', function() {
var pn = trim($phoneNum.val()),
areaCode = $countrySelect.val();
... ...