切换导航条
此项目
正在载入...
登录
李涵
/
integral
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
李涵
6 years ago
提交
0a97cd0e8ac5cdb9bd42e8681feaa8a0b6dad317
2 个父辈
35425d28
cff89ac5
1 个管道 的构建
通过
耗费 1 秒
合并分支 'juanli' 到 'master'
修改密码输入 查看合并请求
!471
变更
1
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
51 行增加
和
6 行删除
public/themes/simpleboot3/friendship/friend_list.html
public/themes/simpleboot3/friendship/friend_list.html
查看文件 @
0a97cd0
...
...
@@ -244,22 +244,22 @@
<p
class=
"pleaseenterword"
>
输入支付密码
</p>
<ul
class=
"enterpassword"
>
<li>
<input
type=
"text"
>
<input
type=
"text"
class=
"entercode"
>
</li>
<li>
<input
type=
"text"
>
<input
type=
"text"
class=
"entercode"
>
</li>
<li>
<input
type=
"text"
>
<input
type=
"text"
class=
"entercode"
>
</li>
<li>
<input
type=
"text"
>
<input
type=
"text"
class=
"entercode"
>
</li>
<li>
<input
type=
"text"
>
<input
type=
"text"
class=
"entercode"
>
</li>
<li>
<input
type=
"text"
>
<input
type=
"text"
class=
"entercode"
>
</li>
</ul>
</div>
...
...
@@ -357,5 +357,50 @@
}
})
//输入的密码自动输入到下一个
onload
=
function
(){
var
arr
=
[];
var
str
=
""
var
txts
=
wrap
.
getElementsByClassName
(
"entercode"
);
console
.
log
(
txts
)
for
(
var
i
=
0
;
i
<
txts
.
length
;
i
++
){
var
t
=
txts
[
i
];
t
.
index
=
i
;
if
(
t
.
index
>
0
){
t
.
setAttribute
(
"readonly"
,
true
);
}
t
.
onkeyup
=
function
(){
var
regular
=
/
\s
+/g
;
if
(
regular
.
test
(
this
.
value
)){
$
(
this
).
focus
();
}
else
if
(
$
(
this
).
val
()
==
""
){
$
(
this
).
focus
();
}
else
{
console
.
log
(
$
(
this
).
val
());
arr
.
push
(
$
(
this
).
val
());
var
next
=
this
.
index
+
1
;
if
(
next
>
txts
.
length
-
1
)
return
;
txts
[
next
].
removeAttribute
(
"readonly"
);
txts
[
next
].
focus
();
}
}
if
(
t
.
index
==
5
){
t
.
onkeyup
=
function
(){
arr
.
push
(
$
(
this
).
val
())
console
.
log
(
arr
);
var
str
=
arr
[
0
]
+
arr
[
1
]
+
arr
[
2
]
+
arr
[
3
]
+
arr
[
4
]
+
arr
[
5
];
console
.
log
(
str
)
}
}
}
txts
[
0
].
removeAttribute
(
"readonly"
);
}
</script>
</html>
...
...
请
注册
或
登录
后发表评论