|
@@ -1,7 +1,15 @@
|
|
|
<template>
|
|
|
<div v-if="show && isMobile" class="user-guide-overlay">
|
|
|
<div class="user-guide-mobile">
|
|
|
- <div class="zh">
|
|
|
+ <div class="zh en" v-if="player.lang == 'en'">
|
|
|
+ <div class="btn" @click="onSet"></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="zh" v-else-if="player.lang == 'zh_CN'">
|
|
|
+ <div class="btn" @click="onSet"></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="zh fan" v-else>
|
|
|
<div class="btn" @click="onSet"></div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -12,10 +20,12 @@ import { onMounted, watch, computed, ref, nextTick } from "vue";
|
|
|
import { useApp } from "@/app";
|
|
|
import browser from "@/utils/browser";
|
|
|
import { useStore } from "vuex";
|
|
|
+import { useI18n, getLocale } from '@/i18n'
|
|
|
|
|
|
const isMobile = browser.isMobile();
|
|
|
const show = computed(() => store.getters["player"].showUserGuide);
|
|
|
const store = useStore();
|
|
|
+const player = computed(() => store.getters["player"]);
|
|
|
|
|
|
const onSet = () => {
|
|
|
store.commit("showUserGuide", false);
|
|
@@ -148,53 +158,19 @@ useApp().then((app) => {
|
|
|
background-repeat: no-repeat;
|
|
|
}
|
|
|
.en {
|
|
|
- width: 100%;
|
|
|
- color: #fff;
|
|
|
- ul,
|
|
|
- li {
|
|
|
- list-style: none;
|
|
|
- padding: 0;
|
|
|
- margin: 0;
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
- ul {
|
|
|
- margin: 0;
|
|
|
- }
|
|
|
- li {
|
|
|
- display: flex;
|
|
|
- align-items: flex-start;
|
|
|
- padding: 0.5rem 0;
|
|
|
- &:first-child {
|
|
|
- padding-top: 0;
|
|
|
- }
|
|
|
- i {
|
|
|
- font-size: 1.32rem;
|
|
|
- }
|
|
|
- > div {
|
|
|
- font-size: 0.4rem;
|
|
|
- margin-left: 0.3rem;
|
|
|
- :deep(span) {
|
|
|
- font-size: 0.6rem;
|
|
|
- color: #00c2c4;
|
|
|
- }
|
|
|
- :deep(div) {
|
|
|
- font-size: 0.5rem;
|
|
|
- margin-top: 0.1rem;
|
|
|
- white-space: pre-line;
|
|
|
- line-height: 1.3;
|
|
|
- }
|
|
|
- }
|
|
|
+ background-image: url(~@/assets/images/guide/novice_guide_text_en@2x.png);
|
|
|
+ .btn {
|
|
|
+ background-image: url(~@/assets/images/guide/novice_guide_button@2x.png);
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
+ .fan {
|
|
|
+ background-image: url(~@/assets/images/guide/novice_guide_text@2x.png);
|
|
|
.btn {
|
|
|
- background-image: none;
|
|
|
- color: #00c2c4;
|
|
|
- line-height: 1.2rem;
|
|
|
- text-align: center;
|
|
|
- font-size: 0.52632rem;
|
|
|
- background-image: url(~@/assets/images/guide/novice_guide_button_empty@2x.png);
|
|
|
+ background-image: url(~@/assets/images/guide/novice_guide_button@2x.png);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.btn {
|
|
|
position: absolute;
|
|
|
bottom: -3.15789rem;
|
|
@@ -208,7 +184,7 @@ useApp().then((app) => {
|
|
|
transform: translateX(-50%);
|
|
|
}
|
|
|
|
|
|
- .guide-tips{
|
|
|
+ .guide-tips {
|
|
|
font-size: 16px;
|
|
|
margin-top: 1rem;
|
|
|
line-height: 1.5;
|
|
@@ -252,9 +228,9 @@ useApp().then((app) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @media (orientation: landscape) {
|
|
|
- .user-guide-mobile {
|
|
|
- overflow-y: auto;
|
|
|
- }
|
|
|
+@media (orientation: landscape) {
|
|
|
+ .user-guide-mobile {
|
|
|
+ overflow-y: auto;
|
|
|
}
|
|
|
+}
|
|
|
</style>
|