Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
breast-feeding-ai-demo-web
Project
Project
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
朱国瑞
breast-feeding-ai-demo-web
Commits
ecf86825
Commit
ecf86825
authored
May 18, 2022
by
朱国瑞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式优化
parent
25e57a3c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
24 deletions
+23
-24
util.js
src/common/util.js
+4
-4
complete.vue
src/views/complete.vue
+2
-2
index.vue
src/views/index.vue
+17
-18
No files found.
src/common/util.js
View file @
ecf86825
...
...
@@ -37,7 +37,7 @@ export function calcAdapt() {
export
const
isBigScreen
=
()
=>
{
let
width
=
0
;
let
height
=
0
;
if
(
document
.
body
.
clientWidth
>
750
)
{
if
(
!
isMobile
()
)
{
width
=
750
;
height
=
document
.
body
.
clientHeight
>
1334
?
document
.
body
.
clientHeight
:
1334
;
}
else
{
...
...
@@ -46,7 +46,7 @@ export const isBigScreen = () => {
}
if
(
height
===
0
)
{
height
=
window
.
innerHeight
;
if
(
document
.
body
.
clientWidth
>
750
)
{
if
(
!
isMobile
()
)
{
height
=
window
.
innerHeight
>
1334
?
window
.
innerHeight
:
1334
;
}
}
...
...
@@ -64,7 +64,7 @@ export const isBigScreen = () => {
export
const
getSystemInfo
=
()
=>
{
let
width
=
0
;
let
height
=
0
;
if
(
document
.
body
.
clientWidth
>
750
)
{
if
(
!
isMobile
()
)
{
width
=
750
;
height
=
document
.
body
.
clientHeight
>
1334
?
document
.
body
.
clientHeight
:
1334
;
}
else
{
...
...
@@ -74,7 +74,7 @@ export const getSystemInfo = () => {
if
(
height
===
0
)
{
height
=
window
.
innerHeight
;
if
(
document
.
body
.
clientWidth
>
750
)
{
if
(
!
isMobile
()
)
{
height
=
window
.
innerHeight
>
1334
?
window
.
innerHeight
:
1334
;
}
}
...
...
src/views/complete.vue
View file @
ecf86825
...
...
@@ -28,7 +28,7 @@ let scale;
const
calcCoord
=
function
()
{
let
width
=
0
;
let
height
=
0
;
if
(
document
.
body
.
clientWidth
>
750
)
{
if
(
!
isMobile
()
)
{
width
=
750
;
height
=
document
.
body
.
clientHeight
>
1334
?
document
.
body
.
clientHeight
:
1334
;
...
...
@@ -38,7 +38,7 @@ const calcCoord = function () {
}
if
(
height
===
0
)
{
height
=
window
.
innerHeight
;
if
(
document
.
body
.
clientWidth
>
750
)
{
if
(
!
isMobile
()
)
{
height
=
window
.
innerHeight
>
1334
?
window
.
innerHeight
:
1334
;
}
}
...
...
src/views/index.vue
View file @
ecf86825
...
...
@@ -56,7 +56,7 @@ let scale;
const
calcCoord
=
function
()
{
let
width
=
0
;
let
height
=
0
;
if
(
document
.
body
.
clientWidth
>
750
)
{
if
(
!
isMobile
()
)
{
width
=
750
;
height
=
document
.
body
.
clientHeight
>
1334
?
document
.
body
.
clientHeight
:
1334
;
...
...
@@ -66,7 +66,7 @@ const calcCoord = function () {
}
if
(
height
===
0
)
{
height
=
window
.
innerHeight
;
if
(
document
.
body
.
clientWidth
>
750
)
{
if
(
!
isMobile
()
)
{
height
=
window
.
innerHeight
>
1334
?
window
.
innerHeight
:
1334
;
}
}
...
...
@@ -631,12 +631,10 @@ export default {
if
(
!
isMobile
())
{
document
.
getElementsByTagName
(
"body"
)[
0
].
style
.
minWidth
=
"750px"
;
this
.
topHeiht
=
calcCoord
({
minTop
:
918
,
maxTop
:
1142.6
}).
top
;
if
(
document
.
body
.
clientWidth
>
750
)
{
this
.
pageHeight
=
1334
+
"px"
;
this
.
topHeiht
=
1042.6
;
}
}
else
{
this
.
topHeiht
=
calcCoord
({
minTop
:
6
18
,
maxTop
:
1142.6
}).
top
;
this
.
topHeiht
=
calcCoord
({
minTop
:
9
18
,
maxTop
:
1142.6
}).
top
;
}
if
(
!
this
.
_isMobile
)
{
...
...
@@ -740,8 +738,8 @@ export default {
.top
{
position
:
relative
;
width
:
100%
;
background
:
url("../assets/images/gesture/introduceBg.png")
no-repeat
top
center
;
background
:
url("../assets/images/gesture/introduceBg.png")
no-repeat
top
center
;
overflow
:
hidden
;
.page_bg
{
width
:
100%
;
...
...
@@ -943,6 +941,7 @@ export default {
.mobile
{
.main_content
{
width
:
10rem
;
height
:
100vh
;
background
:
#ffffff
;
position
:
relative
;
display
:
flex
;
...
...
@@ -1072,33 +1071,33 @@ export default {
}
&
.small
{
.page_title
{
top
:
0
.5333
rem
;
top
:
.8
rem
;
}
.page_bg2
{
width
:
6
0%
;
width
:
8
0%
;
position
:
absolute
;
left
:
2
0%
;
left
:
1
0%
;
top
:
0
.8rem
;
}
.page_tips
{
font-size
:
0
.2667rem
;
&
.page_tips_1
{
position
:
absolute
;
top
:
2
.56
rem
;
left
:
calc
(
20%
+
0
.7333
rem
);
top
:
3
.3067
rem
;
left
:
calc
(
10%
+
1
.0667
rem
);
width
:
3
.4667rem
;
}
&
.page_tips_2
{
position
:
absolute
;
width
:
5
.7333rem
;
left
:
calc
(
20%
+
2
.4533
rem
);
top
:
5
.6533
rem
;
left
:
calc
(
10%
+
3
.2
rem
);
top
:
7
.36
rem
;
}
&
.page_tips_3
{
position
:
absolute
;
width
:
7
.0667rem
;
left
:
calc
(
20%
+
0
.8
rem
);
top
:
7
.04
rem
;
left
:
calc
(
10%
+
1
.0667
rem
);
top
:
9
.28
rem
;
}
}
}
...
...
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