index.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {extend name="public/base"/}
  2. {block name="css"}
  3. <style>
  4. .text-success {
  5. color: var(--blue);
  6. font-size: 20px;
  7. text-align: center;
  8. padding: 20px 0;
  9. background: white;
  10. border-bottom: 1px solid #eee;
  11. }
  12. .text-error {
  13. color: var(--red);
  14. font-size: 20px;
  15. text-align: center;
  16. padding: 20px 0;
  17. background: white;
  18. border-bottom: 1px solid #eee;
  19. }
  20. .score {
  21. font-size: 20px;
  22. padding-bottom: 5px;
  23. font-weight: bold;
  24. color: var(--red);
  25. }
  26. </style>
  27. {/block}
  28. {block name="body"}
  29. <van-nav-bar
  30. class="nav-theme"
  31. :fixed="true"
  32. :placeholder="true"
  33. >
  34. <template #title>
  35. <span class="text-white">成绩查询</span>
  36. </template>
  37. </van-nav-bar>
  38. <div class="text-success" v-if="grade.is_final == 1">恭喜您,进入决赛</div>
  39. <div class="text-error" v-else>抱歉,未进入决赛</div>
  40. <van-grid :column-num="3">
  41. <van-grid-item text="理论最终得分">
  42. <template #icon>
  43. <div class="score">{{grade.theory_score}}</div>
  44. </template>
  45. </van-grid-item>
  46. <van-grid-item text="机操最终得分">
  47. <template #icon>
  48. <div class="score">{{grade.computer_score}}</div>
  49. </template>
  50. </van-grid-item>
  51. <van-grid-item text="初赛最终得分">
  52. <template #icon>
  53. <div class="score">{{grade.total_score}}</div>
  54. </template>
  55. </van-grid-item>
  56. </van-grid>
  57. <van-cell-group inset style="margin-top:10px;">
  58. <van-field v-model="grade.no" label="考生号" readonly></van-field>
  59. <van-field v-model="grade.name" label="姓名" readonly></van-field>
  60. <van-field v-model="grade.company" label="单位" readonly></van-field>
  61. <van-field v-model="grade.rank" label="排名" readonly></van-field>
  62. </van-cell-group>
  63. {/block}
  64. {block name="script"}
  65. <script>
  66. function v_setup() {
  67. let base = {};
  68. base.grade = Vue.reactive({$grade});
  69. return base;
  70. }
  71. </script>
  72. {/block}