Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Commit

Permalink
release 1.3.1
Browse files Browse the repository at this point in the history
* 支持记住密码
  • Loading branch information
nashaofu committed Sep 22, 2017
1 parent 1b4583c commit 4af78ed
Show file tree
Hide file tree
Showing 5 changed files with 1,254 additions and 213 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"parserOptions": {
"sourceType": "module"
},
"globals": {
"angular": true
},
"rules": {
"generator-star-spacing": "error",
"no-debugger": "error",
Expand Down
1 change: 0 additions & 1 deletion app/dingtalk.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ exports = module.exports = class DingTalk {
this.onShow()
// 点击邮箱之后打开新窗口
this.onOpneEmail()

}

// 应用准备完毕时执行
Expand Down
12 changes: 6 additions & 6 deletions app/window/js/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class Injector {
if (item.getAttribute('ui-sref') === '.passwordLogin') {
setTimeout((cb) => {
cb()
}, 100, this.createRememberMe);
}, 100, this.createRememberMe)
}
})
})
Expand All @@ -116,9 +116,9 @@ class Injector {
$submitBtn.before($checkboxContainer)
}
}
const $pwdInput = document.querySelector("input.password")
const pwdOnInput = function(){
$pwdInput.oninput = function(){
const $pwdInput = document.querySelector('input.password')
const pwdOnInput = function () {
$pwdInput.oninput = function () {
store.set('pwd', $pwdInput.value)
}
}
Expand All @@ -129,14 +129,14 @@ class Injector {
$scope.$apply(() => {
$scope.passwordLogin.password = $pwdInput.value = pwd
$scope.passwordLogin.submitable = true
$submitBtn.disabled=false
$submitBtn.disabled = false
})
pwdOnInput()
}
$checkbox.addEventListener('click', () => {
if ($checkbox.checked) {
pwdOnInput()
}else {
} else {
store.delete('pwd')
}
})
Expand Down
Loading

0 comments on commit 4af78ed

Please sign in to comment.