page-exam-item-result.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <div class="page-exam-item-result-box">
  3. <van-nav-bar title="考试" />
  4. <div class="exam-item-result-div">
  5. <div class="exam-item-result-title">本次考试成绩</div>
  6. <div class="exam-item-result-grade">{{ grades }}</div>
  7. <van-button
  8. class="exam-item-detial-button"
  9. type="primary"
  10. color="#FE6347"
  11. @click="handleBackFun"
  12. >返回</van-button
  13. >
  14. </div>
  15. </div>
  16. </template>
  17. <script>
  18. export default {
  19. name: "page-exam-item-result",
  20. components: {},
  21. data() {
  22. return {
  23. grades: 0
  24. };
  25. },
  26. created() {
  27. this.grades = this.$route.params.grades || 0;
  28. },
  29. mounted() {},
  30. methods: {
  31. // 操作:返回
  32. handleBackFun() {
  33. this.$router.back();
  34. }
  35. }
  36. };
  37. </script>
  38. <style lang="scss" scoped>
  39. .page-exam-item-result-box {
  40. width: 100%;
  41. height: 100%;
  42. overflow-y: auto;
  43. overflow-x: hidden;
  44. font-size: 0.6rem;
  45. .exam-item-result-div {
  46. margin: 0.5rem 0.5rem;
  47. border: 1px solid #e4e8eb;
  48. background-color: #fff;
  49. border-radius: 4px;
  50. padding: 0.5rem 0.5rem;
  51. .exam-item-result-title {
  52. font-size: 0.7rem;
  53. }
  54. .exam-item-result-grade {
  55. font-size: 1.5rem;
  56. text-align: center;
  57. margin: 0.5rem 0;
  58. }
  59. .exam-item-detial-button {
  60. width: 100%;
  61. height: auto;
  62. padding: 0.5rem 0.5rem;
  63. font-size: 0.65rem;
  64. }
  65. }
  66. }
  67. </style>