作者 lihan
1 个管道 的构建 通过 耗费 2 秒

赠送积分和角色管理

... ... @@ -144,8 +144,23 @@
}
$(".nextstep").click(function(){
alert(arr.length);
window.location.href="{:url('friendship/Friend/surePassword')}"
if(arr.length == 6) {
$.ajax({
url: "{:url('friendship/Friend/pwd')}",
data: {
integral_pwd: str,
step: 'enter'
},
type: "POST",
dataType: "JSON",
success: function (data) {
if (data.data === true) {
window.location.href = data.url
}
}
})
}
})
</script>
... ...
... ... @@ -93,11 +93,11 @@
<script type="text/javascript" src="__INDEX__/js/jquery.min.js"></script>
<script>
var arr=[];
var str=""
var txts = wrap.getElementsByClassName("entercode");
//输入的密码自动输入到下一个
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("")
... ... @@ -135,6 +135,26 @@
}
txts[0].removeAttribute("readonly");
}
$(".nextstep").click(function(){
if(arr.length == 6) {
$.ajax({
url: "{:url('friendship/Friend/pwd')}",
data: {
integral_pwd: str,
step: 'sure'
},
type: "POST",
dataType: "JSON",
success: function (data) {
if (data.data === true) {
window.location.href = data.url
}
}
})
}
})
</script>
</body>
</html>
... ...