|
|
@@ -137,10 +137,10 @@
|
|
|
<div class="row new-password" ng-class="{'has-success': checkSuccess1, 'has-error': checkFailed1}">
|
|
|
<label class="col-md-3 col-sm-3 col text-right">新密码:</label>
|
|
|
<div class="col-md-8 col-sm-8 col">
|
|
|
- <input ng-model="user.newPassword" name="newPassword" ng-keyup="checkPasswordLevel(user.newPassword)" ng-blur="checkNewPassword(user.newPassword)" class="form-control input-sm" type="password" required placeholder="8~20位字母、数字、符号">
|
|
|
+ <input ng-model="user.newPassword" name="newPassword" ng-blur="checkNewPassword(user.newPassword)" class="form-control input-sm" type="password" required placeholder="8~20位字母、数字、符号">
|
|
|
<!-- <div>密码复杂度</div> -->
|
|
|
<img src="static/img/user/images/keyboard.png" ng-click="reloadKeyboard('showNewPassword');" alt="">
|
|
|
- <div ng-show="showNewPassword" class="softkeys softkeys2" data-target="input[name='newPassword']"></div>
|
|
|
+ <div ng-show="showNewPassword" style="top: 40px;" class="softkeys softkeys2" data-target="input[name='newPassword']"></div>
|
|
|
</div>
|
|
|
<div class="col">
|
|
|
<img ng-show="checkSuccess1" src="static/img/user/images/input-check-yes.png" alt="">
|
|
|
@@ -177,127 +177,50 @@
|
|
|
</div>
|
|
|
</form>
|
|
|
<script>
|
|
|
- $('.softkeys1').softkeys({
|
|
|
- target : $('.softkeys1').data('target'),
|
|
|
- layout : [
|
|
|
- [
|
|
|
- ['`','~'],
|
|
|
- ['1','!'],
|
|
|
- ['2','@'],
|
|
|
- ['3','#'],
|
|
|
- ['4','$'],
|
|
|
- ['5','%'],
|
|
|
- ['6','^'],
|
|
|
- ['7','&'],
|
|
|
- ['8','*'],
|
|
|
- ['9','('],
|
|
|
- ['0',')'],
|
|
|
- ['-', '_'],
|
|
|
- ['=','+'],
|
|
|
- 'delete'
|
|
|
- ],
|
|
|
- [
|
|
|
- 'q','w','e','r','t','y','u','i','o','p',
|
|
|
- ['[','{'],
|
|
|
- [']','}']
|
|
|
- ],
|
|
|
- [
|
|
|
- 'capslock',
|
|
|
- 'a','s','d','f','g','h','j','k','l',
|
|
|
- [';',':'],
|
|
|
- ["'",'"'],
|
|
|
- ['\\','|']
|
|
|
- ],
|
|
|
- [
|
|
|
- 'shift',
|
|
|
- 'z','x','c','v','b','n','m',
|
|
|
- [',','<'],
|
|
|
- ['.','>'],
|
|
|
- ['/','?'],
|
|
|
- ['@']
|
|
|
+ function resetKeyboard(str) {
|
|
|
+ $(str).softkeys({
|
|
|
+ target : $(str).data('target'),
|
|
|
+ layout : [
|
|
|
+ [
|
|
|
+ ['`','~'],
|
|
|
+ ['1','!'],
|
|
|
+ ['2','@'],
|
|
|
+ ['3','#'],
|
|
|
+ ['4','$'],
|
|
|
+ ['5','%'],
|
|
|
+ ['6','^'],
|
|
|
+ ['7','&'],
|
|
|
+ ['8','*'],
|
|
|
+ ['9','('],
|
|
|
+ ['0',')'],
|
|
|
+ ['-', '_'],
|
|
|
+ ['=','+'],
|
|
|
+ 'delete'
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ 'q','w','e','r','t','y','u','i','o','p',
|
|
|
+ ['[','{'],
|
|
|
+ [']','}']
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ 'capslock',
|
|
|
+ 'a','s','d','f','g','h','j','k','l',
|
|
|
+ [';',':'],
|
|
|
+ ["'",'"'],
|
|
|
+ ['\\','|']
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ 'shift',
|
|
|
+ 'z','x','c','v','b','n','m',
|
|
|
+ [',','<'],
|
|
|
+ ['.','>'],
|
|
|
+ ['/','?'],
|
|
|
+ ['@']
|
|
|
+ ]
|
|
|
]
|
|
|
- ]
|
|
|
- });
|
|
|
- $('.softkeys2').softkeys({
|
|
|
- target : $('.softkeys2').data('target'),
|
|
|
- layout : [
|
|
|
- [
|
|
|
- ['`','~'],
|
|
|
- ['1','!'],
|
|
|
- ['2','@'],
|
|
|
- ['3','#'],
|
|
|
- ['4','$'],
|
|
|
- ['5','%'],
|
|
|
- ['6','^'],
|
|
|
- ['7','&'],
|
|
|
- ['8','*'],
|
|
|
- ['9','('],
|
|
|
- ['0',')'],
|
|
|
- ['-', '_'],
|
|
|
- ['=','+'],
|
|
|
- 'delete'
|
|
|
- ],
|
|
|
- [
|
|
|
- 'q','w','e','r','t','y','u','i','o','p',
|
|
|
- ['[','{'],
|
|
|
- [']','}']
|
|
|
- ],
|
|
|
- [
|
|
|
- 'capslock',
|
|
|
- 'a','s','d','f','g','h','j','k','l',
|
|
|
- [';',':'],
|
|
|
- ["'",'"'],
|
|
|
- ['\\','|']
|
|
|
- ],
|
|
|
- [
|
|
|
- 'shift',
|
|
|
- 'z','x','c','v','b','n','m',
|
|
|
- [',','<'],
|
|
|
- ['.','>'],
|
|
|
- ['/','?'],
|
|
|
- ['@']
|
|
|
- ]
|
|
|
- ]
|
|
|
- });
|
|
|
- $('.softkeys3').softkeys({
|
|
|
- target : $('.softkeys3').data('target'),
|
|
|
- layout : [
|
|
|
- [
|
|
|
- ['`','~'],
|
|
|
- ['1','!'],
|
|
|
- ['2','@'],
|
|
|
- ['3','#'],
|
|
|
- ['4','$'],
|
|
|
- ['5','%'],
|
|
|
- ['6','^'],
|
|
|
- ['7','&'],
|
|
|
- ['8','*'],
|
|
|
- ['9','('],
|
|
|
- ['0',')'],
|
|
|
- ['-', '_'],
|
|
|
- ['=','+'],
|
|
|
- 'delete'
|
|
|
- ],
|
|
|
- [
|
|
|
- 'q','w','e','r','t','y','u','i','o','p',
|
|
|
- ['[','{'],
|
|
|
- [']','}']
|
|
|
- ],
|
|
|
- [
|
|
|
- 'capslock',
|
|
|
- 'a','s','d','f','g','h','j','k','l',
|
|
|
- [';',':'],
|
|
|
- ["'",'"'],
|
|
|
- ['\\','|']
|
|
|
- ],
|
|
|
- [
|
|
|
- 'shift',
|
|
|
- 'z','x','c','v','b','n','m',
|
|
|
- [',','<'],
|
|
|
- ['.','>'],
|
|
|
- ['/','?'],
|
|
|
- ['@']
|
|
|
- ]
|
|
|
- ]
|
|
|
- });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ resetKeyboard('.softkeys1');
|
|
|
+ resetKeyboard('.softkeys2');
|
|
|
+ resetKeyboard('.softkeys3');
|
|
|
</script>
|