index.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <template>
  2. <view>
  3. <!--#ifdef APP-PLUS-->
  4. <view class="lz-status_bar">
  5. <view class="lz-top_view"></view>
  6. </view>
  7. <!--#endif-->
  8. <!-- #ifndef MP-WEIXIN -->
  9. <view class="kaoshi-head">
  10. <view class="kaoshi-head-top">
  11. <view class="kaoshi-head-left" @tap="$navigateBack">
  12. <view class="iconfont icon-zuojiantou"></view>
  13. </view>
  14. <view class="kaoshi-head-m">错题集</view>
  15. </view>
  16. </view>
  17. <!--#endif-->
  18. <view class="index-content">
  19. <view class="question-nav" @tap="$openrul('/pages/my/wrongQuestion/index')">
  20. <view class="question-nav-l">
  21. <view class="question-nav-title">题库错题</view>
  22. <view class="question-nav-txt">个人错题 查缺补漏</view>
  23. </view>
  24. <view>
  25. <image :src="static_media.img01" class="question-nav-r"></image>
  26. </view>
  27. </view>
  28. <view class="question-nav" @tap="$openrul('/pages/my/examWrongQuestion/index')">
  29. <view class="question-nav-l">
  30. <view class="question-nav-title">考试错题</view>
  31. <view class="question-nav-txt">考试错题 快速提分</view>
  32. </view>
  33. <view>
  34. <image :src="static_media.img02" class="question-nav-r"></image>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. import {
  42. mapState
  43. } from "vuex";
  44. export default {
  45. data() {
  46. return {
  47. exam_config_list: []
  48. };
  49. },
  50. onLoad() {},
  51. onShow() {},
  52. mounted() {},
  53. computed: {
  54. ...mapState(["subject"]),
  55. static_media() {
  56. return {
  57. img01: this.$myConfig.localMedia + '/static/img/learn-icon1.png',
  58. img02: this.$myConfig.localMedia + '/static/img/learn-icon2.png'
  59. }
  60. }
  61. },
  62. components: {},
  63. methods: {
  64. async get_exam_config() {
  65. let res = await this.$myHttp.post({
  66. url: this.$myHttp.urlMap.kaoshilist,
  67. data: {
  68. subject_id: this.subject.id,
  69. searchdb: {
  70. type: 1 // 1 章节 2 模拟 3 易错 4 错题 5 vip
  71. }
  72. },
  73. needLogin: true
  74. });
  75. if (res.code === 1) {
  76. this.exam_config_list = res.data.rows;
  77. }
  78. }
  79. }
  80. };
  81. </script>
  82. <style>
  83. page {
  84. background: #f6f7f9;
  85. }
  86. .index-content {
  87. padding-top: 15px;
  88. width: 92%;
  89. margin: 0 auto;
  90. display: flex;
  91. justify-content: space-between;
  92. }
  93. .question-nav {
  94. display: flex;
  95. background: #fff;
  96. border-radius: 8px;
  97. font-size: 12px;
  98. width: 48%;
  99. align-items: flex-end;
  100. justify-content: space-between;
  101. }
  102. .question-nav-l {
  103. padding: 14px 0 28px 13px;
  104. }
  105. .question-nav-r {
  106. width: 30px;
  107. height: 30px;
  108. margin-right: 4px;
  109. margin-bottom: 4px;
  110. }
  111. .question-nav-title {
  112. font-size: 17px;
  113. color: #2f2f2f;
  114. }
  115. .question-nav-txt {
  116. color: #b0b0b0;
  117. padding-top: 6px;
  118. }
  119. </style>