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
748b9b11
Commit
748b9b11
authored
May 21, 2022
by
朱国瑞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc 样式调整为375*667
parent
17449d5e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
130 additions
and
126 deletions
+130
-126
util.js
src/common/util.js
+3
-3
lightButton.vue
src/components/lightButton.vue
+5
-5
complete.vue
src/views/complete.vue
+32
-30
index.vue
src/views/index.vue
+90
-88
No files found.
src/common/util.js
View file @
748b9b11
...
@@ -49,8 +49,8 @@ export const getSystemInfo = () => {
...
@@ -49,8 +49,8 @@ export const getSystemInfo = () => {
let
width
=
0
;
let
width
=
0
;
let
height
=
0
;
let
height
=
0
;
if
(
!
isMobile
())
{
if
(
!
isMobile
())
{
width
=
750
;
width
=
375
;
height
=
document
.
body
.
clientHeight
>
1334
?
document
.
body
.
clientHeight
:
1334
;
height
=
document
.
body
.
clientHeight
>
667
?
document
.
body
.
clientHeight
:
667
;
}
else
{
}
else
{
width
=
document
.
body
.
clientWidth
;
width
=
document
.
body
.
clientWidth
;
height
=
document
.
body
.
clientHeight
;
height
=
document
.
body
.
clientHeight
;
...
@@ -59,7 +59,7 @@ export const getSystemInfo = () => {
...
@@ -59,7 +59,7 @@ export const getSystemInfo = () => {
if
(
height
===
0
)
{
if
(
height
===
0
)
{
height
=
window
.
innerHeight
;
height
=
window
.
innerHeight
;
if
(
!
isMobile
())
{
if
(
!
isMobile
())
{
height
=
window
.
innerHeight
>
1334
?
window
.
innerHeight
:
1334
;
height
=
window
.
innerHeight
>
667
?
window
.
innerHeight
:
667
;
}
}
}
}
let
scale
=
height
/
width
;
let
scale
=
height
/
width
;
...
...
src/components/lightButton.vue
View file @
748b9b11
...
@@ -46,9 +46,9 @@ export default {
...
@@ -46,9 +46,9 @@ export default {
top
:
0
;
top
:
0
;
}
}
&
.pc
{
&
.pc
{
width
:
436
px
;
width
:
218
px
;
height
:
77
.7
px
;
height
:
38
.85
px
;
line-height
:
77
.7
px
;
line-height
:
38
.85
px
;
}
}
&
.mobile
{
&
.mobile
{
width
:
5
.8133rem
;
width
:
5
.8133rem
;
...
@@ -60,11 +60,11 @@ export default {
...
@@ -60,11 +60,11 @@ export default {
.btn-text
{
.btn-text
{
width
:
100%
;
width
:
100%
;
text-align
:
center
;
text-align
:
center
;
font-size
:
44
px
;
font-size
:
22
px
;
letter-spacing
:
0
.2em
;
letter-spacing
:
0
.2em
;
font-weight
:
bold
;
font-weight
:
bold
;
&
.len
{
&
.len
{
font-size
:
24
px
;
font-size
:
12
px
;
}
}
}
}
.btn-img
{
.btn-img
{
...
...
src/views/complete.vue
View file @
748b9b11
...
@@ -33,9 +33,9 @@ const calcCoord = function () {
...
@@ -33,9 +33,9 @@ const calcCoord = function () {
let
width
=
0
;
let
width
=
0
;
let
height
=
0
;
let
height
=
0
;
if
(
!
isMobile
())
{
if
(
!
isMobile
())
{
width
=
750
;
width
=
375
;
height
=
height
=
document
.
body
.
clientHeight
>
1334
?
document
.
body
.
clientHeight
:
1334
;
document
.
body
.
clientHeight
>
667
?
document
.
body
.
clientHeight
:
667
;
}
else
{
}
else
{
width
=
document
.
body
.
clientWidth
;
width
=
document
.
body
.
clientWidth
;
height
=
document
.
body
.
clientHeight
;
height
=
document
.
body
.
clientHeight
;
...
@@ -43,7 +43,7 @@ const calcCoord = function () {
...
@@ -43,7 +43,7 @@ const calcCoord = function () {
if
(
height
===
0
)
{
if
(
height
===
0
)
{
height
=
window
.
innerHeight
;
height
=
window
.
innerHeight
;
if
(
!
isMobile
())
{
if
(
!
isMobile
())
{
height
=
window
.
innerHeight
>
1334
?
window
.
innerHeight
:
1334
;
height
=
window
.
innerHeight
>
667
?
window
.
innerHeight
:
667
;
}
}
}
}
scale
=
height
/
width
;
scale
=
height
/
width
;
...
@@ -107,9 +107,11 @@ export default {
...
@@ -107,9 +107,11 @@ export default {
height
:
100%
;
height
:
100%
;
}
}
.pc
{
.pc
{
height
:
100vh
;
align-items
:
center
;
.main_content
{
.main_content
{
width
:
750
px
;
width
:
375
px
;
min-height
:
1334
px
;
height
:
667
px
;
background
:
#ffffff
;
background
:
#ffffff
;
position
:
relative
;
position
:
relative
;
display
:
flex
;
display
:
flex
;
...
@@ -120,72 +122,72 @@ export default {
...
@@ -120,72 +122,72 @@ export default {
position
:
absolute
;
position
:
absolute
;
left
:
0
;
left
:
0
;
top
:
0
;
top
:
0
;
width
:
750
px
;
width
:
375
px
;
z-index
:
0
;
z-index
:
0
;
}
}
}
}
.massage-complete-modal
{
.massage-complete-modal
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
width
:
66
0px
;
width
:
33
0px
;
min-height
:
62
0px
;
min-height
:
31
0px
;
padding
:
80px
0
12
5px
;
padding
:
40px
0
62
.
5px
;
background
:
#fff
;
background
:
#fff
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
border-radius
:
14px
14
px
;
border-radius
:
7px
7
px
;
margin
:
0
auto
;
margin
:
0
auto
;
position
:
relative
;
position
:
relative
;
z-index
:
1
;
z-index
:
1
;
&
.noBaby
{
&
.noBaby
{
height
:
42
0px
;
height
:
21
0px
;
.bottom
{
.bottom
{
margin-top
:
10
0px
;
margin-top
:
5
0px
;
}
}
}
}
.nickname
{
.nickname
{
font-size
:
46
px
;
font-size
:
23
px
;
color
:
#fb7c76
;
color
:
#fb7c76
;
font-family
:
"Gotham-Book"
;
font-family
:
"Gotham-Book"
;
text-shadow
:
2px
2px
4
px
#ffffff
;
text-shadow
:
1px
1px
2
px
#ffffff
;
span
{
span
{
font-size
:
6
0px
;
font-size
:
3
0px
;
}
}
}
}
.title
{
.title
{
margin-top
:
41
px
;
margin-top
:
20
.5
px
;
color
:
#fb7c76
;
color
:
#fb7c76
;
font-size
:
46
px
;
font-size
:
23
px
;
height
:
53
px
;
line-height
:
26
.5012
px
;
font-weight
:
bolder
;
font-weight
:
bolder
;
.icon
{
.icon
{
width
:
69
px
;
width
:
34
.5
px
;
height
:
4
5px
;
height
:
22
.
5px
;
}
}
}
}
.subTitle
{
.subTitle
{
width
:
100%
;
width
:
100%
;
text-align
:
center
;
text-align
:
center
;
color
:
#fb7c76
;
color
:
#fb7c76
;
font-size
:
26
px
;
font-size
:
13
px
;
margin-top
:
2
0px
;
margin-top
:
1
0px
;
font-weight
:
bolder
;
font-weight
:
bolder
;
&
.underline
{
&
.underline
{
text-decoration
:
underline
;
text-decoration
:
underline
;
}
}
}
}
.record
{
.record
{
margin-top
:
10
0px
;
margin-top
:
5
0px
;
margin-bottom
:
10
0px
;
margin-bottom
:
5
0px
;
width
:
559
px
;
width
:
280
px
;
height
:
96
px
;
height
:
48
px
;
line-height
:
96
px
;
line-height
:
48
px
;
border-radius
:
48px
48
px
;
border-radius
:
24px
24
px
;
font-size
:
34
.67
px
;
font-size
:
17
.3362
px
;
color
:
#999999
;
color
:
#999999
;
background-color
:
#f5f5f5
;
background-color
:
#f5f5f5
;
text-align
:
center
;
text-align
:
center
;
text-shadow
:
2px
2px
4
px
#ffffff
;
text-shadow
:
1px
1px
2
px
#ffffff
;
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
justify-content
:
center
;
justify-content
:
center
;
...
...
src/views/index.vue
View file @
748b9b11
This diff is collapsed.
Click to expand it.
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