page-exam-item-result.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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="#0088e9"
  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. this.setLanXinNavigator();
  29. },
  30. activated() {
  31. this.setLanXinNavigator();
  32. },
  33. mounted() {},
  34. methods: {
  35. // 设置蓝信navigator
  36. setLanXinNavigator() {
  37. lx.ui.setNavigationBarTitle({
  38. title: "考试"
  39. });
  40. },
  41. // 操作:返回
  42. handleBackFun() {
  43. this.$router.back();
  44. }
  45. }
  46. };
  47. </script>
  48. <style lang="scss" scoped>
  49. @import "~@/styles/mixin";
  50. .page-exam-item-result-box {
  51. width: 100%;
  52. height: 100%;
  53. overflow-y: auto;
  54. overflow-x: hidden;
  55. font-size: 0.6rem;
  56. .exam-item-result-div {
  57. margin: 0.5rem 0.5rem;
  58. border: 1px solid #e4e8eb;
  59. background-color: #fff;
  60. border-radius: 4px;
  61. padding: 0.5rem 0.5rem;
  62. .exam-item-result-title {
  63. font-size: 0.7rem;
  64. text-align: center;
  65. }
  66. .exam-item-result-grade {
  67. font-size: 1.5rem;
  68. text-align: center;
  69. margin-top: 0.5rem;
  70. }
  71. .exam-item-detial-button {
  72. width: 100%;
  73. height: auto;
  74. margin-top: 0.5rem;
  75. padding: 0.5rem 0.5rem;
  76. font-size: 0.65rem;
  77. }
  78. }
  79. }
  80. </style>