Browse Source

整理题目

shaogen1995 3 năm trước cách đây
mục cha
commit
ec70e3f2af

+ 1 - 1
web/public/index.html

@@ -6,7 +6,7 @@
     <meta name="viewport"
         content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui">
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-    <title>珠海高新区中共党史学习教育园地线上展厅</title>
+    <title>大理洱海科普教育中心</title>
     <meta name="description" content="四维时代">
     <meta property="og:title" content="四维时代">
     <meta property="og:description" content="四维时代">

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 2914
web/src/assets/js/data.js


+ 1 - 1
web/src/pages/Home.vue

@@ -149,7 +149,7 @@ export default {
       window.evt.initEvent("loadfinish", false, false);
       window.addEventListener("loadfinish", () => {
         this.loading = false;
-        document.title = "珠海高新区中共党史学习教育园地线上展厅";
+        document.title = "大理洱海科普教育中心";
         this.getHotSpotList();
         window.player.on("openTips", () => {
           this.$showTips();

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 280 - 2629
web/src/views/gui/component/data.js


+ 14 - 12
web/src/views/gui/component/issue.vue

@@ -75,7 +75,7 @@
 
 <script>
 //引入题目
-import { questions } from "@/assets/js/data.js";
+import { questions } from "./data.js";
 export default {
   name: "issue",
   components: {},
@@ -106,7 +106,7 @@ export default {
     //点击答错里面的下一题
     nextTi() {
       // 最后一题
-      if (this.topicInd === 9 && this.cunot >= 6) {
+      if (this.topicInd === 19 && this.cunot >= 12) {
         this.flag = "three";
         this.topic.forEach((v) => {
           let temp = "";
@@ -115,13 +115,13 @@ export default {
           });
           v.title += "---" + temp;
         });
-      } else if (this.topicInd === 9 && this.cunot < 6) {
+      } else if (this.topicInd === 19 && this.cunot < 12) {
         this.flag = "four";
       }
 
       this.caseInd = null;
       this.caseErr = false;
-      if (this.topicInd < 10) this.topicInd++;
+      if (this.topicInd < 20) this.topicInd++;
     }, //选择题目
     select(index, id) {
       this.caseInd = index;
@@ -130,7 +130,7 @@ export default {
     //点击确定
     btnOk() {
       // 最后一题
-      if (this.topicInd === 9 && this.cunot >= 6) {
+      if (this.topicInd === 19 && this.cunot >= 12) {
         this.flag = "three";
         this.topic.forEach((v) => {
           let temp = "";
@@ -140,7 +140,7 @@ export default {
           v.title += "---" + temp;
         });
         return;
-      } else if (this.topicInd === 9 && this.cunot < 6) {
+      } else if (this.topicInd === 19 && this.cunot < 12) {
         this.flag = "four";
         return;
       }
@@ -150,7 +150,7 @@ export default {
       if (this.topic[this.topicInd].correct === this.caseABC) {
         // console.log('答对了');
         this.caseInd = null;
-        if (this.topicInd < 10) this.topicInd++;
+        if (this.topicInd < 20) this.topicInd++;
         this.cunot++;
       } else {
         // console.log('答错了');
@@ -174,23 +174,25 @@ export default {
     getTopic() {
       this.topic = [];
       let arr = [];
-      for (let i = 0; i < 200; i++) {
-        //一个从0到100的数组
+      for (let i = 0; i < 50; i++) {
+        //一个从0到50的数组
         arr.push(i);
       }
       arr.sort(function () {
         //随机打乱这个数组
         return Math.random() - 0.5;
       });
-      arr.length = 10; //改写长度
+      arr.length = 20; //改写长度
       arr.forEach((v) => {
         this.topic.push(questions[v]);
       });
-      // console.log(999, this.topic); //控制台会输出10个不同的数
+      // console.log(999, this.topic); //控制台会输出20个不同的数
     },
   },
   //生命周期 - 创建完成(可以访问当前this实例)
-  created() {},
+  created() {
+    console.log('题目长度',questions.length);
+  },
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {},
   beforeCreate() {}, //生命周期 - 创建之前