|
@@ -24,9 +24,10 @@
|
|
<p>答对十二题及以上为闯关成功!</p>
|
|
<p>答对十二题及以上为闯关成功!</p>
|
|
</template>
|
|
</template>
|
|
<p v-else>
|
|
<p v-else>
|
|
- You will be given<br /> a random selection of 20 questions to answer,<br /> and
|
|
|
|
- if you answer 12 questions correctly or above,<br /> you will be declared
|
|
|
|
- a winner.
|
|
|
|
|
|
+ You will be given<br />
|
|
|
|
+ a random selection of 20 questions to answer,<br />
|
|
|
|
+ and if you answer 12 questions correctly or above,<br />
|
|
|
|
+ you will be declared a winner.
|
|
</p>
|
|
</p>
|
|
<div class="btnn" @click="beginTopic">
|
|
<div class="btnn" @click="beginTopic">
|
|
{{ Mylangue ? "开始答题" : "Start" }}
|
|
{{ Mylangue ? "开始答题" : "Start" }}
|
|
@@ -36,9 +37,7 @@
|
|
<!-- 答题页面 -->
|
|
<!-- 答题页面 -->
|
|
<div class="topic" v-if="flag === 'tow'">
|
|
<div class="topic" v-if="flag === 'tow'">
|
|
<div class="conBox">
|
|
<div class="conBox">
|
|
- <p class="topicTxt">
|
|
|
|
- {{ topicInd + 1 }}.{{ topic[topicInd].title }}
|
|
|
|
- </p>
|
|
|
|
|
|
+ <p class="topicTxt">{{ topicInd + 1 }}.{{ topic[topicInd].title }}</p>
|
|
<!-- 答对或答错之后的页面颜色变化 -->
|
|
<!-- 答对或答错之后的页面颜色变化 -->
|
|
<ul class="topic_con" v-if="caseErr">
|
|
<ul class="topic_con" v-if="caseErr">
|
|
<li
|
|
<li
|
|
@@ -56,6 +55,19 @@
|
|
<span :class="{ active: caseInd === index }">{{
|
|
<span :class="{ active: caseInd === index }">{{
|
|
item.id + "、" + item.txt
|
|
item.id + "、" + item.txt
|
|
}}</span>
|
|
}}</span>
|
|
|
|
+ <!-- 后面的√和X -->
|
|
|
|
+ <img
|
|
|
|
+ class="imgCuo"
|
|
|
|
+ src="@/assets/imgM/error.png"
|
|
|
|
+ alt=""
|
|
|
|
+ v-if="caseABC === item.id && caseErr === 'cuoWu'"
|
|
|
|
+ />
|
|
|
|
+ <img
|
|
|
|
+ class="imgDui"
|
|
|
|
+ src="@/assets/imgM/right.png"
|
|
|
|
+ alt=""
|
|
|
|
+ v-if="item.id === topic[topicInd].correct"
|
|
|
|
+ />
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
<!-- 答题--选择答案 -->
|
|
<!-- 答题--选择答案 -->
|
|
@@ -106,12 +118,14 @@
|
|
: "Share this poster to spread the word about Erhai's rich culture."
|
|
: "Share this poster to spread the word about Erhai's rich culture."
|
|
}}
|
|
}}
|
|
</p>
|
|
</p>
|
|
- <img src="share/shareM.png" alt="" v-if="isMobile" />
|
|
|
|
- <img src="share/share.png" alt="" v-else />
|
|
|
|
- <a class="btnn" href="share/shareM.png" download v-if="isMobile"
|
|
|
|
- >保存海报</a
|
|
|
|
|
|
+ <img :src="`share/${Mylangue?'shareM':'shareMEn'}.png`" alt="" v-if="isMobile" />
|
|
|
|
+ <img :src="`share/${Mylangue?'share':'shareEn'}.png`" alt="" v-else />
|
|
|
|
+ <a class="btnn" :href="`share/${Mylangue?'shareM':'shareMEn'}.png`" download v-if="isMobile"
|
|
|
|
+ >{{
|
|
|
|
+ Mylangue ? "保存海报" : "Save the poster"
|
|
|
|
+ }}</a
|
|
>
|
|
>
|
|
- <a class="btnn" href="share/share.png" download v-else>{{
|
|
|
|
|
|
+ <a class="btnn" :href="`share/${Mylangue?'share':'shareEn'}.png`" download v-else>{{
|
|
Mylangue ? "保存海报" : "Save the poster"
|
|
Mylangue ? "保存海报" : "Save the poster"
|
|
}}</a>
|
|
}}</a>
|
|
</div>
|
|
</div>
|
|
@@ -132,7 +146,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
//引入题目
|
|
//引入题目
|
|
-import { questions,questionsEn } from "./data.js";
|
|
|
|
|
|
+import { questions, questionsEn } from "./data.js";
|
|
export default {
|
|
export default {
|
|
name: "issue",
|
|
name: "issue",
|
|
components: {},
|
|
components: {},
|
|
@@ -208,11 +222,11 @@ export default {
|
|
return Math.random() - 0.5;
|
|
return Math.random() - 0.5;
|
|
});
|
|
});
|
|
arr.length = 20; //改写长度
|
|
arr.length = 20; //改写长度
|
|
- if(this.Mylangue){
|
|
|
|
|
|
+ if (this.Mylangue) {
|
|
arr.forEach((v) => {
|
|
arr.forEach((v) => {
|
|
this.topic.push(questions[v]);
|
|
this.topic.push(questions[v]);
|
|
});
|
|
});
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
arr.forEach((v) => {
|
|
arr.forEach((v) => {
|
|
this.topic.push(questionsEn[v]);
|
|
this.topic.push(questionsEn[v]);
|
|
});
|
|
});
|
|
@@ -246,6 +260,12 @@ export default {
|
|
z-index: 9999;
|
|
z-index: 9999;
|
|
width: 100vw;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
height: 100vh;
|
|
|
|
+ .imgCuo {
|
|
|
|
+ margin-left: 15px;
|
|
|
|
+ }
|
|
|
|
+ .imgDui {
|
|
|
|
+ margin-left: 15px;
|
|
|
|
+ }
|
|
.main {
|
|
.main {
|
|
padding: 20px;
|
|
padding: 20px;
|
|
border-radius: 3px;
|
|
border-radius: 3px;
|
|
@@ -335,7 +355,7 @@ export default {
|
|
transform: translateY(-50%);
|
|
transform: translateY(-50%);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .begin_right{
|
|
|
|
|
|
+ .begin_right {
|
|
.btnn {
|
|
.btnn {
|
|
margin: 70px auto 0;
|
|
margin: 70px auto 0;
|
|
}
|
|
}
|
|
@@ -388,12 +408,14 @@ export default {
|
|
}
|
|
}
|
|
.cuoWu {
|
|
.cuoWu {
|
|
.case {
|
|
.case {
|
|
|
|
+ color: #ff5050;
|
|
& > div {
|
|
& > div {
|
|
background-color: #ff5050;
|
|
background-color: #ff5050;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.zhengQue {
|
|
.zhengQue {
|
|
|
|
+ color: #50ffa2;
|
|
.case {
|
|
.case {
|
|
& > div {
|
|
& > div {
|
|
background-color: #50ffa2;
|
|
background-color: #50ffa2;
|
|
@@ -506,6 +528,13 @@ export default {
|
|
}
|
|
}
|
|
@media only screen and (max-width: 800px) {
|
|
@media only screen and (max-width: 800px) {
|
|
.issue {
|
|
.issue {
|
|
|
|
+ .imgCuo {
|
|
|
|
+ width: 30px;
|
|
|
|
+ }
|
|
|
|
+ .imgDui {
|
|
|
|
+ width: 30px;
|
|
|
|
+ }
|
|
|
|
+
|
|
.main {
|
|
.main {
|
|
top: auto;
|
|
top: auto;
|
|
bottom: 5px;
|
|
bottom: 5px;
|