From 9c5934cac50a1ca0b415c89238b91e46e1b67905 Mon Sep 17 00:00:00 2001 From: lihongjuan <lhj@bronet.cn> Date: Thu, 8 Nov 2018 11:20:22 +0800 Subject: [PATCH] 修改密码 --- public/themes/simpleboot3/friendship/enter_password.html | 2 +- public/themes/simpleboot3/friendship/friend_list.html | 3 +++ public/themes/simpleboot3/friendship/sure_password.html | 5 +++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/public/themes/simpleboot3/friendship/enter_password.html b/public/themes/simpleboot3/friendship/enter_password.html index 968b79f..cf736bb 100644 --- a/public/themes/simpleboot3/friendship/enter_password.html +++ b/public/themes/simpleboot3/friendship/enter_password.html @@ -100,7 +100,7 @@ var arr=[]; var txts = wrap.getElementsByClassName("entercode"); for(var i=0;i<txts.length;i++){ - $(txts[i].value("")) + $(txts[i]).val("") } var t = ''; //输入的密码自动输入到下一个 diff --git a/public/themes/simpleboot3/friendship/friend_list.html b/public/themes/simpleboot3/friendship/friend_list.html index 6f275d4..0d90662 100644 --- a/public/themes/simpleboot3/friendship/friend_list.html +++ b/public/themes/simpleboot3/friendship/friend_list.html @@ -366,6 +366,9 @@ var str="" var txts = wrap.getElementsByClassName("entercode"); console.log(txts) + for(var i=0;i<txts.length;i++){ + $(txts[i]).val("") + } for(var i = 0; i<txts.length;i++){ var t = txts[i]; t.index = i; diff --git a/public/themes/simpleboot3/friendship/sure_password.html b/public/themes/simpleboot3/friendship/sure_password.html index 571f6c1..287fced 100644 --- a/public/themes/simpleboot3/friendship/sure_password.html +++ b/public/themes/simpleboot3/friendship/sure_password.html @@ -93,13 +93,15 @@ <script type="text/javascript" src="__INDEX__/js/jquery.min.js"></script> <script> - //输入的密码自动输入到下一个 onload = function(){ var arr=[]; var str="" var txts = wrap.getElementsByClassName("entercode"); console.log(txts) + for(var i=0;i<txts.length;i++){ + $(txts[i]).val("") + } for(var i = 0; i<txts.length;i++){ var t = txts[i]; t.index = i; @@ -130,7 +132,6 @@ console.log(str) } } - } txts[0].removeAttribute("readonly"); } -- libgit2 0.24.0