Commit 5e4e8564 authored by 朱国瑞's avatar 朱国瑞

页面优化

parent 30093bd8
<template> <template>
<div class="page" :class="{'mobile':_isMobile,'pc':!_isMobile}"> <div class="page" :class="{'mobile':_isMobile,'pc':!_isMobile}">
<div class="main_content" id="main" :class="{'small':_isMobile && isSmall,'big':_isMobile && isBig}"> <div class="main_content" id="main" :class="{'small':_isMobile && isSmall,'big':_isMobile && isBig}">
<div class="top" :class="{'small':_isMobile && isSmall,'big':_isMobile && isBig}" :style="{'height':topHeiht}"> <div class="top" :class="{'small':_isMobile && isSmall,'big':_isMobile && isBig}">
<div class="page_title">{{$t('strings.homeTitle')}}</div> <div class="page_title">{{$t('strings.homeTitle')}}</div>
<div class="picture-box" :style="{'transform': scale>0?'scale('+scale+')':''}"> <div class="picture-box">
<img class="page_bg2" src="../assets/images/gesture/swiper1big_new.png" alt srcset /> <img class="page_bg2" src="../assets/images/gesture/swiper1big_new.png" alt srcset />
<div class="page_tips_1 page_tips">{{$t('strings.homeText1')}}</div> <div class="page_tips_1 page_tips">{{$t('strings.homeText1')}}</div>
<div class="page_tips_2 page_tips">{{$t('strings.homeText2')}}</div> <div class="page_tips_2 page_tips">{{$t('strings.homeText2')}}</div>
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
errorTitle: "错误", errorTitle: "错误",
keyErrorText: "密钥禁止使用", keyErrorText: "密钥禁止使用",
originErrorText: "不允许CORS", originErrorText: "不允许CORS",
noCameraErrorText: "相机未授权", noCameraErrorText: "相机未授权"
} }
}; };
let _englishLanguagePack = { let _englishLanguagePack = {
...@@ -317,7 +317,7 @@ export default { ...@@ -317,7 +317,7 @@ export default {
errorTitle: "Error", errorTitle: "Error",
keyErrorText: "Key Forbidden", keyErrorText: "Key Forbidden",
originErrorText: "Not allowed by CORS", originErrorText: "Not allowed by CORS",
noCameraErrorText: "Camera not detected", noCameraErrorText: "Camera not detected"
} }
}; };
let _frenchLanguagePack = { let _frenchLanguagePack = {
...@@ -434,7 +434,7 @@ export default { ...@@ -434,7 +434,7 @@ export default {
errorTitle: "Erreur", errorTitle: "Erreur",
keyErrorText: "Interdire l'utilisation des clés", keyErrorText: "Interdire l'utilisation des clés",
originErrorText: "Cors not allowed", originErrorText: "Cors not allowed",
noCameraErrorText: "Caméra non détectée", noCameraErrorText: "Caméra non détectée"
} }
}; };
let _spanishLanguagePack = { let _spanishLanguagePack = {
...@@ -549,7 +549,7 @@ export default { ...@@ -549,7 +549,7 @@ export default {
errorTitle: "Error", errorTitle: "Error",
keyErrorText: "Desactivar la clave", keyErrorText: "Desactivar la clave",
originErrorText: "CORS no permite", originErrorText: "CORS no permite",
noCameraErrorText: "Cámara no detectada", noCameraErrorText: "Cámara no detectada"
} }
}; };
switch (this.currentLanguage) { switch (this.currentLanguage) {
...@@ -758,8 +758,10 @@ export default { ...@@ -758,8 +758,10 @@ export default {
.top { .top {
position: relative; position: relative;
width: 100%; width: 100%;
height: calc(var(--vh, 1vh) * 100);
background: url("../assets/images/gesture/introduceBg.png") no-repeat top background: url("../assets/images/gesture/introduceBg.png") no-repeat top
center; center;
background-size: 100% 100%;
overflow: hidden; overflow: hidden;
.page_bg { .page_bg {
width: 100%; width: 100%;
...@@ -784,10 +786,10 @@ export default { ...@@ -784,10 +786,10 @@ export default {
} }
.picture-box { .picture-box {
position: absolute; position: absolute;
bottom: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: calc(var(--vh, 1vh) * 100);
.page_bg2 { .page_bg2 {
width: 100%; width: 100%;
position: absolute; position: absolute;
...@@ -857,10 +859,13 @@ export default { ...@@ -857,10 +859,13 @@ export default {
.bottom { .bottom {
flex: 1; flex: 1;
width: 375px; width: 375px;
height: 150px;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
position: relative; position: absolute;
left: 0;
bottom: 0;
.bottomBtn { .bottomBtn {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -1019,8 +1024,10 @@ export default { ...@@ -1019,8 +1024,10 @@ export default {
.top { .top {
position: relative; position: relative;
width: 100%; width: 100%;
height: calc(var(--vh, 1vh) * 100);
background: url("../assets/images/gesture/introduceBg.png") no-repeat top background: url("../assets/images/gesture/introduceBg.png") no-repeat top
center; center;
background-size: 100% 100%;
overflow: hidden; overflow: hidden;
flex: 1; flex: 1;
.page_bg { .page_bg {
...@@ -1031,7 +1038,7 @@ export default { ...@@ -1031,7 +1038,7 @@ export default {
} }
.page_title { .page_title {
font-size: .56rem; font-size: 0.56rem;
font-family: Source Han Sans SC; font-family: Source Han Sans SC;
font-weight: bold; font-weight: bold;
color: #f68682; color: #f68682;
...@@ -1046,10 +1053,10 @@ export default { ...@@ -1046,10 +1053,10 @@ export default {
} }
.picture-box { .picture-box {
position: absolute; position: absolute;
bottom: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: calc(var(--vh, 1vh) * 100);
.page_bg2 { .page_bg2 {
width: 100%; width: 100%;
position: absolute; position: absolute;
...@@ -1116,12 +1123,14 @@ export default { ...@@ -1116,12 +1123,14 @@ export default {
.bottom { .bottom {
flex: 1; flex: 1;
width: 10rem; width: 10rem;
height: 4rem;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
position: relative; position: absolute;
min-height: 3rem; left: 0;
max-height: 3.4rem; bottom: 0;
.bottomBtn { .bottomBtn {
display: flex; display: flex;
justify-content: center; justify-content: center;
......
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