Commit ff645e92 authored by 朱国瑞's avatar 朱国瑞

语言切换问题

parent 7e119939
...@@ -2,7 +2,8 @@ body { ...@@ -2,7 +2,8 @@ body {
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility; 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; margin: 0;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
} }
...@@ -47,7 +48,7 @@ a:hover { ...@@ -47,7 +48,7 @@ a:hover {
//main-container全局样式 //main-container全局样式
.app-main { .app-main {
min-height: 100% min-height: 100%;
} }
.app-container { .app-container {
......
...@@ -948,7 +948,11 @@ export default { ...@@ -948,7 +948,11 @@ export default {
this.scale = 1 - (scale - 1) / 100; this.scale = 1 - (scale - 1) / 100;
console.log(this.scale); 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") { if (this.$i18n.locale == "zh") {
this.$i18n.locale = "en"; this.$i18n.locale = "en";
} else if (this.$i18n.locale == "en") { } else if (this.$i18n.locale == "en") {
...@@ -1215,6 +1219,7 @@ export default { ...@@ -1215,6 +1219,7 @@ export default {
transition: opacity 0.8s ease; transition: opacity 0.8s ease;
} }
&.big { &.big {
.top-text { .top-text {
margin: 45.5px auto 10px auto; margin: 45.5px auto 10px auto;
} }
...@@ -1276,12 +1281,12 @@ export default { ...@@ -1276,12 +1281,12 @@ export default {
.summary-points { .summary-points {
&.points-1 { &.points-1 {
width: 89px; width: 150px;
position: absolute; position: absolute;
left: 0; left: 0;
top: -69px; top: -69px;
.points-text { .points-text {
width: 129px; width: 150px;
} }
.points-image { .points-image {
position: absolute; position: absolute;
...@@ -1314,7 +1319,7 @@ export default { ...@@ -1314,7 +1319,7 @@ export default {
width: 108px; width: 108px;
position: absolute; position: absolute;
right: 2.5px; right: 2.5px;
top: 35.5px; top: 55.5px;
.points-text { .points-text {
width: 83px; width: 83px;
} }
...@@ -1347,16 +1352,16 @@ export default { ...@@ -1347,16 +1352,16 @@ export default {
} }
&.points-5 { &.points-5 {
width: 160px; width: 200px;
position: absolute; position: absolute;
right: 2.5px; right: 2.5px;
bottom: -79px; bottom: -79px;
.points-text { .points-text {
width: 144px; width: 188px;
} }
.points-image { .points-image {
position: absolute; position: absolute;
left: 3px; left: 43px;
top: -63px; top: -63px;
height: 50.5px; height: 50.5px;
width: 1px; width: 1px;
...@@ -1639,7 +1644,7 @@ export default { ...@@ -1639,7 +1644,7 @@ export default {
display: flex; display: flex;
position: absolute; position: absolute;
left: 0; left: 0;
bottom: 0; bottom: .5333rem;
width: 100%; width: 100%;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
...@@ -1658,6 +1663,9 @@ export default { ...@@ -1658,6 +1663,9 @@ export default {
transition: opacity 0.8s ease; transition: opacity 0.8s ease;
} }
&.big { &.big {
display: flex;
flex-direction: column;
justify-content: space-around;
.top-text { .top-text {
margin: 1.2133rem auto 0.2667rem auto; margin: 1.2133rem auto 0.2667rem auto;
} }
...@@ -1665,7 +1673,9 @@ export default { ...@@ -1665,7 +1673,9 @@ export default {
margin: 0 auto 2rem auto; margin: 0 auto 2rem auto;
} }
.botton-box { .botton-box {
position: relative;
bottom: 1.6rem; bottom: 1.6rem;
margin-top: 2.1333rem;
.tips-text { .tips-text {
margin-top: 0.5867rem; margin-top: 0.5867rem;
} }
...@@ -1717,14 +1727,13 @@ export default { ...@@ -1717,14 +1727,13 @@ export default {
.summary-points { .summary-points {
&.points-1 { &.points-1 {
width: 2.3733rem; width: 4rem;
position: absolute; position: absolute;
left: 0; left: 0;
top: -1.84rem; top: -1.84rem;
.points-text { .points-text {
width: 2.3733rem; width: 4rem;
} }
.points-image { .points-image {
position: absolute; position: absolute;
left: 0.68rem; left: 0.68rem;
...@@ -1756,13 +1765,13 @@ export default { ...@@ -1756,13 +1765,13 @@ export default {
width: 2.88rem; width: 2.88rem;
position: absolute; position: absolute;
right: 0.0667rem; right: 0.0667rem;
top: 0; top: 1.48rem;
.points-text { .points-text {
width: 2.2133rem; width: 2.2133rem;
} }
.points-image { .points-image {
position: absolute; position: absolute;
top: 1.48rem; top: 0.5333rem;
left: 0.2133rem; left: 0.2133rem;
} }
.line { .line {
...@@ -1789,23 +1798,23 @@ export default { ...@@ -1789,23 +1798,23 @@ export default {
} }
&.points-5 { &.points-5 {
width: 4.2667rem; width: 5.3333rem;
position: absolute; position: absolute;
right: 0.0667rem; right: .0667rem;
bottom: -2.1067rem; bottom: -2.1067rem;
.points-text { .points-text {
width: 3.84rem; width: 5.0133rem;
} }
.points-image { .points-image {
position: absolute; position: absolute;
left: 0.08rem; left: 1.1467rem;
top: -1.68rem; top: -1.68rem;
height: 1.3467rem; height: 1.3467rem;
width: 0.0267rem; width: .0267rem;
overflow: hidden; overflow: hidden;
} }
.line { .line {
width: 0.0267rem; width: .0267rem;
} }
} }
} }
......
...@@ -161,7 +161,19 @@ export default { ...@@ -161,7 +161,19 @@ export default {
this.scale = 1 - (scale - 1) / 100; this.scale = 1 - (scale - 1) / 100;
console.log(this.scale); console.log(this.scale);
} }
let lang = localStorage.getItem("lang");
if (lang) {
this.$i18n.locale = lang;
} else {
this.$i18n.locale = "en"; 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(); this._isMobile = isMobile();
if (!isMobile()) { if (!isMobile()) {
document.getElementsByTagName("body")[0].style.minWidth = "750px"; document.getElementsByTagName("body")[0].style.minWidth = "750px";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment