diff --git a/public/themes/simpleboot3/friendship/enter_password.html b/public/themes/simpleboot3/friendship/enter_password.html
index 5fb89c4..f551a03 100644
--- a/public/themes/simpleboot3/friendship/enter_password.html
+++ b/public/themes/simpleboot3/friendship/enter_password.html
@@ -95,14 +95,11 @@
 </body>
 <script src="__INDEX__/js/jquery.min.js"></script>
 <script>
-    $(".nextstep").click(function(){
-        window.location.href="{:url('friendship/Friend/surePassword')}"
-    })
 
+    var str=""
     //输入的密码自动输入到下一个
     onload = function(){
         var arr=[];
-        var str=""
         var txts = wrap.getElementsByClassName("entercode");
         console.log(txts)
         for(var i = 0; i<txts.length;i++){
@@ -140,5 +137,10 @@
         txts[0].removeAttribute("readonly");
     }
 
+    $(".nextstep").click(function(){
+        alert(str);
+        window.location.href="{:url('friendship/Friend/surePassword')}"
+    })
+
 </script>
 </html>