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
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 = () => {
let
width
=
0
;
let
height
=
0
;
if
(
!
isMobile
())
{
width
=
750
;
height
=
document
.
body
.
clientHeight
>
1334
?
document
.
body
.
clientHeight
:
1334
;
width
=
375
;
height
=
document
.
body
.
clientHeight
>
667
?
document
.
body
.
clientHeight
:
667
;
}
else
{
width
=
document
.
body
.
clientWidth
;
height
=
document
.
body
.
clientHeight
;
...
...
@@ -59,7 +59,7 @@ export const getSystemInfo = () => {
if
(
height
===
0
)
{
height
=
window
.
innerHeight
;
if
(
!
isMobile
())
{
height
=
window
.
innerHeight
>
1334
?
window
.
innerHeight
:
1334
;
height
=
window
.
innerHeight
>
667
?
window
.
innerHeight
:
667
;
}
}
let
scale
=
height
/
width
;
...
...
src/components/lightButton.vue
View file @
748b9b11
...
...
@@ -46,9 +46,9 @@ export default {
top
:
0
;
}
&
.pc
{
width
:
436
px
;
height
:
77
.7
px
;
line-height
:
77
.7
px
;
width
:
218
px
;
height
:
38
.85
px
;
line-height
:
38
.85
px
;
}
&
.mobile
{
width
:
5
.8133rem
;
...
...
@@ -60,11 +60,11 @@ export default {
.btn-text
{
width
:
100%
;
text-align
:
center
;
font-size
:
44
px
;
font-size
:
22
px
;
letter-spacing
:
0
.2em
;
font-weight
:
bold
;
&
.len
{
font-size
:
24
px
;
font-size
:
12
px
;
}
}
.btn-img
{
...
...
src/views/complete.vue
View file @
748b9b11
...
...
@@ -33,9 +33,9 @@ const calcCoord = function () {
let
width
=
0
;
let
height
=
0
;
if
(
!
isMobile
())
{
width
=
750
;
width
=
375
;
height
=
document
.
body
.
clientHeight
>
1334
?
document
.
body
.
clientHeight
:
1334
;
document
.
body
.
clientHeight
>
667
?
document
.
body
.
clientHeight
:
667
;
}
else
{
width
=
document
.
body
.
clientWidth
;
height
=
document
.
body
.
clientHeight
;
...
...
@@ -43,7 +43,7 @@ const calcCoord = function () {
if
(
height
===
0
)
{
height
=
window
.
innerHeight
;
if
(
!
isMobile
())
{
height
=
window
.
innerHeight
>
1334
?
window
.
innerHeight
:
1334
;
height
=
window
.
innerHeight
>
667
?
window
.
innerHeight
:
667
;
}
}
scale
=
height
/
width
;
...
...
@@ -107,9 +107,11 @@ export default {
height
:
100%
;
}
.pc
{
height
:
100vh
;
align-items
:
center
;
.main_content
{
width
:
750
px
;
min-height
:
1334
px
;
width
:
375
px
;
height
:
667
px
;
background
:
#ffffff
;
position
:
relative
;
display
:
flex
;
...
...
@@ -120,72 +122,72 @@ export default {
position
:
absolute
;
left
:
0
;
top
:
0
;
width
:
750
px
;
width
:
375
px
;
z-index
:
0
;
}
}
.massage-complete-modal
{
box-sizing
:
border-box
;
width
:
66
0px
;
min-height
:
62
0px
;
padding
:
80px
0
12
5px
;
width
:
33
0px
;
min-height
:
31
0px
;
padding
:
40px
0
62
.
5px
;
background
:
#fff
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
border-radius
:
14px
14
px
;
border-radius
:
7px
7
px
;
margin
:
0
auto
;
position
:
relative
;
z-index
:
1
;
&
.noBaby
{
height
:
42
0px
;
height
:
21
0px
;
.bottom
{
margin-top
:
10
0px
;
margin-top
:
5
0px
;
}
}
.nickname
{
font-size
:
46
px
;
font-size
:
23
px
;
color
:
#fb7c76
;
font-family
:
"Gotham-Book"
;
text-shadow
:
2px
2px
4
px
#ffffff
;
text-shadow
:
1px
1px
2
px
#ffffff
;
span
{
font-size
:
6
0px
;
font-size
:
3
0px
;
}
}
.title
{
margin-top
:
41
px
;
margin-top
:
20
.5
px
;
color
:
#fb7c76
;
font-size
:
46
px
;
height
:
53
px
;
font-size
:
23
px
;
line-height
:
26
.5012
px
;
font-weight
:
bolder
;
.icon
{
width
:
69
px
;
height
:
4
5px
;
width
:
34
.5
px
;
height
:
22
.
5px
;
}
}
.subTitle
{
width
:
100%
;
text-align
:
center
;
color
:
#fb7c76
;
font-size
:
26
px
;
margin-top
:
2
0px
;
font-size
:
13
px
;
margin-top
:
1
0px
;
font-weight
:
bolder
;
&
.underline
{
text-decoration
:
underline
;
}
}
.record
{
margin-top
:
10
0px
;
margin-bottom
:
10
0px
;
width
:
559
px
;
height
:
96
px
;
line-height
:
96
px
;
border-radius
:
48px
48
px
;
font-size
:
34
.67
px
;
margin-top
:
5
0px
;
margin-bottom
:
5
0px
;
width
:
280
px
;
height
:
48
px
;
line-height
:
48
px
;
border-radius
:
24px
24
px
;
font-size
:
17
.3362
px
;
color
:
#999999
;
background-color
:
#f5f5f5
;
text-align
:
center
;
text-shadow
:
2px
2px
4
px
#ffffff
;
text-shadow
:
1px
1px
2
px
#ffffff
;
display
:
flex
;
flex-direction
:
row
;
justify-content
:
center
;
...
...
src/views/index.vue
View file @
748b9b11
...
...
@@ -62,9 +62,9 @@ const calcCoord = function () {
let
width
=
0
;
let
height
=
0
;
if
(
!
isMobile
())
{
width
=
750
;
width
=
375
;
height
=
document
.
body
.
clientHeight
>
1334
?
document
.
body
.
clientHeight
:
1334
;
document
.
body
.
clientHeight
>
667
?
document
.
body
.
clientHeight
:
667
;
}
else
{
width
=
document
.
body
.
clientWidth
;
height
=
document
.
body
.
clientHeight
;
...
...
@@ -72,7 +72,7 @@ const calcCoord = function () {
if
(
height
===
0
)
{
height
=
window
.
innerHeight
;
if
(
!
isMobile
())
{
height
=
window
.
innerHeight
>
1334
?
window
.
innerHeight
:
1334
;
height
=
window
.
innerHeight
>
667
?
window
.
innerHeight
:
667
;
}
}
scale
=
height
/
width
;
...
...
@@ -95,12 +95,12 @@ export default {
currentLanguage
:
0
,
showPopup
:
false
,
languageList
:
[
"English"
,
"Français"
,
"Español"
],
cL
:
calcCoord
({
minTop
:
47
,
maxTop
:
51
}).
top
+
"px"
,
cT
:
calcCoord
({
minTop
:
47
,
maxTop
:
67
}).
top
+
"px"
,
cB
:
calcCoord
({
minTop
:
40
,
maxTop
:
8
0
}).
top
+
"px"
,
cTs
:
calcCoord
({
minTop
:
40
,
maxTop
:
6
0
}).
top
+
"px"
,
// title fontsize
cTb
:
calcCoord
({
minTop
:
30
,
maxTop
:
30
}).
top
+
"px"
,
// title bottom
cCs
:
calcCoord
({
minTop
:
20
,
maxTop
:
4
0
}).
top
+
"px"
,
// content
cL
:
calcCoord
({
minTop
:
23.5
,
maxTop
:
15.5
}).
top
+
"px"
,
cT
:
calcCoord
({
minTop
:
23.5
,
maxTop
:
33.5
}).
top
+
"px"
,
cB
:
calcCoord
({
minTop
:
20
,
maxTop
:
4
0
}).
top
+
"px"
,
cTs
:
calcCoord
({
minTop
:
20
,
maxTop
:
3
0
}).
top
+
"px"
,
// title fontsize
cTb
:
calcCoord
({
minTop
:
15
,
maxTop
:
15
}).
top
+
"px"
,
// title bottom
cCs
:
calcCoord
({
minTop
:
10
,
maxTop
:
2
0
}).
top
+
"px"
,
// content
pageHeight
:
""
,
_isMobile
:
false
,
scale
:
0
...
...
@@ -676,20 +676,20 @@ export default {
this
.
_isMobile
=
isMobile
();
if
(
!
isMobile
())
{
document
.
getElementsByTagName
(
"body"
)[
0
].
style
.
minWidth
=
"750px"
;
this
.
topHeiht
=
calcCoord
({
minTop
:
918
,
maxTop
:
1142.6
}).
top
;
this
.
topHeiht
=
1042.6
;
this
.
topHeiht
=
calcCoord
({
minTop
:
459
,
maxTop
:
571.3
}).
top
;
this
.
topHeiht
=
521.3
;
}
else
{
this
.
topHeiht
=
calcCoord
({
minTop
:
918
,
maxTop
:
1142.6
}).
top
;
}
if
(
!
this
.
_isMobile
)
{
this
.
topHeiht
=
this
.
topHeiht
+
"px"
;
this
.
cL
=
calcCoord
({
minTop
:
47
,
maxTop
:
51
}).
top
+
"px"
;
this
.
cT
=
calcCoord
({
minTop
:
47
,
maxTop
:
67
}).
top
+
"px"
;
this
.
cB
=
calcCoord
({
minTop
:
40
,
maxTop
:
8
0
}).
top
+
"px"
;
this
.
cTs
=
calcCoord
({
minTop
:
40
,
maxTop
:
6
0
}).
top
+
"px"
;
// title fontsize
this
.
cTb
=
calcCoord
({
minTop
:
30
,
maxTop
:
30
}).
top
+
"px"
;
// title bottom
this
.
cCs
=
calcCoord
({
minTop
:
20
,
maxTop
:
4
0
}).
top
+
"px"
;
// content
this
.
cL
=
calcCoord
({
minTop
:
23.5
,
maxTop
:
25.5
}).
top
+
"px"
;
this
.
cT
=
calcCoord
({
minTop
:
23.5
,
maxTop
:
33.5
}).
top
+
"px"
;
this
.
cB
=
calcCoord
({
minTop
:
20
,
maxTop
:
4
0
}).
top
+
"px"
;
this
.
cTs
=
calcCoord
({
minTop
:
20
,
maxTop
:
3
0
}).
top
+
"px"
;
// title fontsize
this
.
cTb
=
calcCoord
({
minTop
:
15
,
maxTop
:
15
}).
top
+
"px"
;
// title bottom
this
.
cCs
=
calcCoord
({
minTop
:
10
,
maxTop
:
2
0
}).
top
+
"px"
;
// content
}
else
{
this
.
topHeiht
=
this
.
topHeiht
/
75
+
"rem"
;
this
.
cL
=
calcCoord
({
minTop
:
47
,
maxTop
:
51
}).
top
/
75
+
"rem"
;
...
...
@@ -716,9 +716,11 @@ export default {
height
:
100%
;
}
.pc
{
height
:
100vh
;
align-items
:
center
;
.main_content
{
width
:
750
px
;
min-height
:
1334
px
;
width
:
375
px
;
height
:
667
px
;
background
:
#ffffff
;
position
:
relative
;
display
:
flex
;
...
...
@@ -727,52 +729,52 @@ export default {
align-items
:
center
;
.global_box
{
width
:
62
px
;
width
:
31
px
;
position
:
absolute
;
right
:
18
px
;
top
:
62
px
;
right
:
9
px
;
top
:
31
px
;
z-index
:
10
;
.global_img
{
width
:
100%
;
}
.popup-box
{
width
:
14
0px
;
height
:
150
px
;
width
:
7
0px
;
height
:
75
px
;
position
:
absolute
;
right
:
-
9
px
;
top
:
72
px
;
padding-top
:
12
px
;
right
:
-
4
.5
px
;
top
:
36
px
;
padding-top
:
6
px
;
box-sizing
:
border-box
;
overflow
:
hidden
;
border-radius
:
12
px
;
border-radius
:
6
px
;
.popup_bg
{
position
:
absolute
;
left
:
0
;
top
:
0
;
width
:
14
0px
;
width
:
7
0px
;
}
.poup-item
{
position
:
relative
;
height
:
4
5px
;
font-size
:
2
0px
;
height
:
22
.
5px
;
font-size
:
1
0px
;
font-family
:
Source
Han
Sans
SC
;
font-weight
:
500
;
color
:
#303030
;
line-height
:
4
5px
;
line-height
:
22
.
5px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
start
;
cursor
:
pointer
;
img
{
width
:
14
px
;
margin-left
:
19
px
;
margin-right
:
11
px
;
width
:
7
px
;
margin-left
:
9
.5
px
;
margin-right
:
5
.5
px
;
}
div
{
width
:
14
px
;
margin-left
:
19
px
;
margin-right
:
11
px
;
width
:
7
px
;
margin-left
:
9
.5
px
;
margin-right
:
5
.5
px
;
}
&
.active
{
color
:
#f68682
;
...
...
@@ -794,17 +796,17 @@ export default {
}
.page_title
{
font-size
:
53
px
;
font-size
:
26
.5
px
;
font-family
:
Source
Han
Sans
SC
;
font-weight
:
bold
;
color
:
#f68682
;
line-height
:
6
0px
;
-webkit-text-stroke
:
2
px
#fff9fb
;
text-stroke
:
2
px
#fff9fb
;
line-height
:
3
0px
;
-webkit-text-stroke
:
1
px
#fff9fb
;
text-stroke
:
1
px
#fff9fb
;
width
:
100%
;
position
:
absolute
;
left
:
0
;
top
:
116
px
;
top
:
58
px
;
z-index
:
2
;
}
.picture-box
{
...
...
@@ -817,71 +819,71 @@ export default {
width
:
100%
;
position
:
absolute
;
left
:
0
;
top
:
10
0px
;
top
:
5
0px
;
}
.page_tips
{
font-size
:
24
px
;
font-size
:
12
px
;
color
:
#7d7c7a
;
text-align
:
left
;
font-weight
:
bold
;
white-space
:
pre-line
;
&
.page_tips_1
{
position
:
absolute
;
top
:
330
px
;
left
:
10
0px
;
width
:
26
0px
;
top
:
165
px
;
left
:
5
0px
;
width
:
13
0px
;
}
&
.page_tips_2
{
position
:
absolute
;
width
:
430
px
;
left
:
310
px
;
top
:
712
px
;
width
:
215
px
;
left
:
155
px
;
top
:
356
px
;
}
&
.page_tips_3
{
position
:
absolute
;
width
:
530
px
;
left
:
110
px
;
top
:
890
px
;
width
:
265
px
;
left
:
55
px
;
top
:
445
px
;
}
}
}
&
.small
{
.page_title
{
top
:
4
0px
;
top
:
2
0px
;
}
.page_bg2
{
width
:
60%
;
position
:
absolute
;
left
:
20%
;
top
:
6
0px
;
top
:
3
0px
;
}
.page_tips
{
font-size
:
2
0px
;
font-size
:
1
0px
;
&
.page_tips_1
{
position
:
absolute
;
top
:
192
px
;
left
:
calc
(
20%
+
55
px
);
width
:
260
px
;
top
:
96
px
;
left
:
calc
(
20%
+
27
.4987
px
);
width
:
130
.0012
px
;
}
&
.page_tips_2
{
position
:
absolute
;
width
:
430
px
;
left
:
calc
(
20%
+
184
px
);
top
:
424
px
;
width
:
215
px
;
left
:
calc
(
20%
+
92
px
);
top
:
212
px
;
}
&
.page_tips_3
{
position
:
absolute
;
width
:
530
px
;
left
:
calc
(
20%
+
6
0px
);
top
:
528
px
;
width
:
265
px
;
left
:
calc
(
20%
+
3
0px
);
top
:
264
px
;
}
}
}
}
.bottom
{
flex
:
1
;
width
:
750
px
;
width
:
375
px
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
flex-start
;
...
...
@@ -890,16 +892,16 @@ export default {
.info
{
align-self
:
flex-start
;
color
:
#999
;
font-size
:
29
.6
px
;
font-size
:
14
.8
px
;
.title
{
color
:
#fb7c76
;
font-size
:
32
px
;
font-size
:
16
px
;
line-height
:
1
.2
;
font-weight
:
bold
;
}
.item
{
min-height
:
44
.
5px
;
line-height
:
44
.6
px
;
min-height
:
22
.2
5px
;
line-height
:
22
.3
px
;
}
}
.bottomBtn
{
...
...
@@ -908,12 +910,12 @@ export default {
justify-content
:
center
;
align-items
:
center
;
position
:
absolute
;
bottom
:
30
px
;
bottom
:
15
px
;
left
:
50%
;
transform
:
translateX
(
-50%
);
.bottom-tips
{
margin-top
:
2
0px
;
font-size
:
24
px
;
margin-top
:
1
0px
;
font-size
:
12
px
;
color
:
#999999
;
}
}
...
...
@@ -938,41 +940,41 @@ export default {
z-index
:
0
;
}
&
_content
{
width
:
593
px
;
min-height
:
496
px
;
width
:
296
.5
px
;
min-height
:
248
px
;
background
:
#ffffff
;
border-radius
:
16
px
;
border-radius
:
8
px
;
z-index
:
1
;
position
:
relative
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
box-sizing
:
border-box
;
padding
:
44px
0
64
px
0
;
padding
:
22px
0
32
px
0
;
}
&
_title
{
font-size
:
46
px
;
font-size
:
23
px
;
line-height
:
1
.2
;
font-family
:
Source
Han
Sans
SC
;
font-weight
:
500
;
color
:
#000000
;
width
:
456
px
;
width
:
228
px
;
text-align
:
center
;
margin-bottom
:
52
px
;
margin-bottom
:
26
px
;
}
&
_text_content
{
width
:
50
0px
;
width
:
25
0px
;
text-align
:
left
;
font-size
:
4
0px
;
font-size
:
2
0px
;
font-family
:
Source
Han
Sans
SC
;
font-weight
:
400
;
color
:
#010101
;
line-height
:
66
px
;
margin-bottom
:
83
px
;
line-height
:
33
px
;
margin-bottom
:
41
.5
px
;
}
&
_button
{
width
:
431
px
;
height
:
69
px
;
width
:
215
.5
px
;
height
:
34
.5
px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
...
...
@@ -985,7 +987,7 @@ export default {
top
:
0
;
}
&
_text
{
font-size
:
33
px
;
font-size
:
16
.5
px
;
font-family
:
Source
Han
Sans
SC
;
font-weight
:
500
;
color
:
#ffffff
;
...
...
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