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
ff645e92
Commit
ff645e92
authored
Sep 08, 2022
by
朱国瑞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
语言切换问题
parent
7e119939
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
23 deletions
+45
-23
index.scss
src/styles/index.scss
+4
-3
index.vue
src/views/index.vue
+28
-19
startIndex.vue
src/views/startIndex.vue
+13
-1
No files found.
src/styles/index.scss
View file @
ff645e92
...
...
@@ -2,7 +2,8 @@ body {
-moz-osx-font-smoothing
:
grayscale
;
-webkit-font-smoothing
:
antialiased
;
text-rendering
:
optimizeLegibility
;
font-family
:
Helvetica
Neue
,
Helvetica
,
PingFang
SC
,
Hiragino
Sans
GB
,
Microsoft
YaHei
,
Arial
,
sans-serif
;
font-family
:
Helvetica
Neue
,
Helvetica
,
PingFang
SC
,
Hiragino
Sans
GB
,
Microsoft
YaHei
,
Arial
,
sans-serif
;
margin
:
0
;
-webkit-tap-highlight-color
:
rgba
(
0
,
0
,
0
,
0
);
}
...
...
@@ -47,9 +48,9 @@ a:hover {
//main-container全局样式
.app-main
{
min-height
:
100%
min-height
:
100%
;
}
.app-container
{
padding
:
20px
;
}
\ No newline at end of file
}
src/views/index.vue
View file @
ff645e92
...
...
@@ -948,7 +948,11 @@ export default {
this
.
scale
=
1
-
(
scale
-
1
)
/
100
;
console
.
log
(
this
.
scale
);
}
console
.
log
(
this
.
$i18n
.
locale
);
let
lang
=
localStorage
.
getItem
(
"lang"
);
if
(
lang
)
{
this
.
$i18n
.
locale
=
lang
;
}
if
(
this
.
$i18n
.
locale
==
"zh"
)
{
this
.
$i18n
.
locale
=
"en"
;
}
else
if
(
this
.
$i18n
.
locale
==
"en"
)
{
...
...
@@ -1215,6 +1219,7 @@ export default {
transition
:
opacity
0
.8s
ease
;
}
&
.big
{
.top-text
{
margin
:
45
.5px
auto
10px
auto
;
}
...
...
@@ -1276,12 +1281,12 @@ export default {
.summary-points
{
&
.points-1
{
width
:
89
px
;
width
:
150
px
;
position
:
absolute
;
left
:
0
;
top
:
-69px
;
.points-text
{
width
:
1
29
px
;
width
:
1
50
px
;
}
.points-image
{
position
:
absolute
;
...
...
@@ -1314,7 +1319,7 @@ export default {
width
:
108px
;
position
:
absolute
;
right
:
2
.5px
;
top
:
3
5
.5px
;
top
:
5
5
.5px
;
.points-text
{
width
:
83px
;
}
...
...
@@ -1347,16 +1352,16 @@ export default {
}
&
.points-5
{
width
:
16
0px
;
width
:
20
0px
;
position
:
absolute
;
right
:
2
.5px
;
bottom
:
-79px
;
.points-text
{
width
:
1
44
px
;
width
:
1
88
px
;
}
.points-image
{
position
:
absolute
;
left
:
3px
;
left
:
4
3px
;
top
:
-63px
;
height
:
50
.5px
;
width
:
1px
;
...
...
@@ -1639,7 +1644,7 @@ export default {
display
:
flex
;
position
:
absolute
;
left
:
0
;
bottom
:
0
;
bottom
:
.5333rem
;
width
:
100%
;
flex-direction
:
column
;
justify-content
:
center
;
...
...
@@ -1658,6 +1663,9 @@ export default {
transition
:
opacity
0
.8s
ease
;
}
&
.big
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-around
;
.top-text
{
margin
:
1
.2133rem
auto
0
.2667rem
auto
;
}
...
...
@@ -1665,7 +1673,9 @@ export default {
margin
:
0
auto
2rem
auto
;
}
.botton-box
{
position
:
relative
;
bottom
:
1
.6rem
;
margin-top
:
2
.1333rem
;
.tips-text
{
margin-top
:
0
.5867rem
;
}
...
...
@@ -1717,14 +1727,13 @@ export default {
.summary-points
{
&
.points-1
{
width
:
2
.3733
rem
;
width
:
4
rem
;
position
:
absolute
;
left
:
0
;
top
:
-1
.84rem
;
.points-text
{
width
:
2
.3733
rem
;
width
:
4
rem
;
}
.points-image
{
position
:
absolute
;
left
:
0
.68rem
;
...
...
@@ -1756,13 +1765,13 @@ export default {
width
:
2
.88rem
;
position
:
absolute
;
right
:
0
.0667rem
;
top
:
0
;
top
:
1
.48rem
;
.points-text
{
width
:
2
.2133rem
;
}
.points-image
{
position
:
absolute
;
top
:
1
.48
rem
;
top
:
0
.5333
rem
;
left
:
0
.2133rem
;
}
.line
{
...
...
@@ -1789,23 +1798,23 @@ export default {
}
&
.points-5
{
width
:
4
.2667
rem
;
width
:
5
.3333
rem
;
position
:
absolute
;
right
:
0
.0667rem
;
right
:
.0667rem
;
bottom
:
-2
.1067rem
;
.points-text
{
width
:
3
.84
rem
;
width
:
5
.0133
rem
;
}
.points-image
{
position
:
absolute
;
left
:
0
.08
rem
;
left
:
1
.1467
rem
;
top
:
-1
.68rem
;
height
:
1
.3467rem
;
width
:
0
.0267rem
;
width
:
.0267rem
;
overflow
:
hidden
;
}
.line
{
width
:
0
.0267rem
;
width
:
.0267rem
;
}
}
}
...
...
src/views/startIndex.vue
View file @
ff645e92
...
...
@@ -161,7 +161,19 @@ export default {
this
.
scale
=
1
-
(
scale
-
1
)
/
100
;
console
.
log
(
this
.
scale
);
}
this
.
$i18n
.
locale
=
"en"
;
let
lang
=
localStorage
.
getItem
(
"lang"
);
if
(
lang
)
{
this
.
$i18n
.
locale
=
lang
;
}
else
{
this
.
$i18n
.
locale
=
"en"
;
}
if
(
this
.
$i18n
.
locale
==
"en"
)
{
this
.
currentLanguage
=
0
;
}
else
if
(
this
.
$i18n
.
locale
==
"fr"
)
{
this
.
currentLanguage
=
1
;
}
else
if
(
this
.
$i18n
.
locale
==
"es"
)
{
this
.
currentLanguage
=
2
;
}
this
.
_isMobile
=
isMobile
();
if
(
!
isMobile
())
{
document
.
getElementsByTagName
(
"body"
)[
0
].
style
.
minWidth
=
"750px"
;
...
...
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