Authored by 姜枫

add bind page

... ... @@ -34,17 +34,17 @@ function startBind(password) {
password: password,
code: code
},
success: function (res) {
success: function(res) {
if (res.code === 200) {
tip.show('登录成功');
setTimeout(function () {
setTimeout(function() {
location.href = res.data.refer;
}, 2000);
} else {
tip.show(res.message);
}
},
error: function () {
error: function() {
tip.show('登录失败,请重试!');
}
});
... ... @@ -54,7 +54,7 @@ api.bindEyesEvt({
status: 'open' // 默认眼睛打开
});
$pwd.bind('input', function () {
$pwd.bind('input', function() {
if (trim($pwd.val()) === '') {
$btnSure.addClass('disable');
} else {
... ... @@ -62,7 +62,7 @@ $pwd.bind('input', function () {
}
});
$btnSure.on('touchstart', function () {
$btnSure.on('touchstart', function() {
var pwd = trim($pwd.val());
if ($btnSure.hasClass('disable')) {
... ...