Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaru
fgqyxxlr
Commits
743caa29
Commit
743caa29
authored
Jul 28, 2018
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手机打开弹出层自适应
parent
9d47a4c6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
src/main/resources/static/ruoyi/js/ry-ui.js
+10
-0
src/main/resources/static/ruoyi/js/ry-ui.min.js
+0
-0
src/main/resources/static/ruoyi/login.js
+2
-2
No files found.
src/main/resources/static/ruoyi/js/ry-ui.js
View file @
743caa29
...
...
@@ -261,6 +261,11 @@
},
// 弹出层指定宽度
open
:
function
(
title
,
url
,
width
,
height
)
{
//如果是移动端,就使用自适应大小弹窗
if
(
navigator
.
userAgent
.
match
(
/
(
iPhone|iPod|Android|ios
)
/i
))
{
width
=
'auto'
;
height
=
'auto'
;
}
if
(
$
.
common
.
isEmpty
(
title
))
{
title
=
false
;
};
...
...
@@ -286,6 +291,11 @@
},
// 弹出层全屏
openFull
:
function
(
title
,
url
,
width
,
height
)
{
//如果是移动端,就使用自适应大小弹窗
if
(
navigator
.
userAgent
.
match
(
/
(
iPhone|iPod|Android|ios
)
/i
))
{
width
=
'auto'
;
height
=
'auto'
;
}
if
(
$
.
common
.
isEmpty
(
title
))
{
title
=
false
;
};
...
...
src/main/resources/static/ruoyi/js/ry-ui.min.js
View file @
743caa29
This diff is collapsed.
Click to expand it.
src/main/resources/static/ruoyi/login.js
View file @
743caa29
...
...
@@ -16,8 +16,8 @@ $.validator.setDefaults({
function
login
()
{
$
.
modal
.
loading
(
$
(
"#btnSubmit"
).
data
(
"loading"
));
var
username
=
$
(
"input[name='username']"
).
val
().
trim
(
);
var
password
=
$
(
"input[name='password']"
).
val
().
trim
(
);
var
username
=
$
.
common
.
trim
(
$
(
"input[name='username']"
).
val
()
);
var
password
=
$
.
common
.
trim
(
$
(
"input[name='password']"
).
val
()
);
var
validateCode
=
$
(
"input[name='validateCode']"
).
val
();
var
rememberMe
=
$
(
"input[name='rememberme']"
).
is
(
':checked'
);
$
.
ajax
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment