through-question-start.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <div class="page-exam-item-detial-box">
  3. <van-nav-bar title="答题闯关" />
  4. <div>
  5. <div>{{ throughRule.name }}</div>
  6. <div>{{ throughRule.content }}</div>
  7. <div>
  8. <van-button type="primary" color="#0088e9" @click="back"
  9. >返回</van-button
  10. >
  11. <van-button type="primary" color="#0088e9" @click="startThrough"
  12. >开始闯关</van-button
  13. >
  14. </div>
  15. </div>
  16. </div>
  17. </template>
  18. <script>
  19. export default {
  20. name: "through-question-start",
  21. components: {},
  22. data() {
  23. return {
  24. throughRule: {
  25. name: "闯关规则",
  26. content: "每关10道题,一共5关,答对继续,答错出局"
  27. }
  28. };
  29. },
  30. created() {},
  31. computed: {},
  32. methods: {
  33. back() {
  34. this.$router.back();
  35. },
  36. startThrough() {
  37. this.$store.commit("updateAnswerItemStore", {
  38. field: "answerRecruitId",
  39. value: "daily-questions" // item.id
  40. });
  41. this.$router.push({ name: "answerRecruit" });
  42. }
  43. }
  44. };
  45. </script>
  46. <style lang="scss" scoped>
  47. @import "~@/styles/mixin";
  48. .through-question-start-box {
  49. width: 100%;
  50. height: 100%;
  51. overflow-y: auto;
  52. overflow-x: hidden;
  53. font-size: 0.6rem;
  54. }
  55. </style>