TeachingTool.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <template>
  2. <!-- 教研工具 -->
  3. <div
  4. class="Textbook"
  5. v-if="
  6. popedom_code_list.indexOf(2100001) > -1 ||
  7. popedom_code_list.indexOf(2100002) > -1 ||
  8. popedom_code_list.indexOf(2100003) > -1
  9. "
  10. >
  11. <div class="top">
  12. <div class="title">
  13. <span class="text"> 教研工具</span>
  14. </div>
  15. </div>
  16. <div class="class_list">
  17. <div v-if="popedom_code_list.indexOf(2100001) > -1">
  18. <div
  19. style="background: #4ca6ee"
  20. @click="
  21. $router.push({
  22. path: '/TextAnalysis',
  23. })
  24. "
  25. >
  26. <img src="../../assets/teacherdev/jygj-1.png" alt="" />
  27. </div>
  28. <p>文本分析</p>
  29. </div>
  30. <div v-if="popedom_code_list.indexOf(2100002) > -1">
  31. <div
  32. style="background: #d86046"
  33. @click="
  34. $router.push({
  35. path: '/corpus/seekPage',
  36. })
  37. "
  38. >
  39. <img src="../../assets/teacherdev/jygj-2.png" alt="" />
  40. </div>
  41. <p>教材语料库</p>
  42. </div>
  43. <div v-if="popedom_code_list.indexOf(2100003) > -1">
  44. <div
  45. style="background: #c254cc"
  46. @click="
  47. $router.push({
  48. path: '/wordcard/table',
  49. })
  50. "
  51. >
  52. <img src="../../assets/teacherdev/jygj-3.png" alt="" />
  53. </div>
  54. <p>字词练习卡</p>
  55. </div>
  56. <!-- <div>
  57. <div
  58. style="background: #54cc92"
  59. @click="
  60. $router.push({
  61. path: '/CalligraphyMaster/table',
  62. })
  63. "
  64. >
  65. <img src="../../assets/teacherdev/jygj-4.png" alt="" />
  66. </div>
  67. <p>书法大师</p>
  68. </div> -->
  69. </div>
  70. </div>
  71. </template>
  72. <script>
  73. import { getToken } from '@/utils/auth';
  74. export default {
  75. props: ['classList', 'type'],
  76. data() {
  77. return {
  78. popedom_code_list: [],
  79. };
  80. },
  81. created() {
  82. let userInfor = getToken()
  83. ? JSON.parse(getToken())
  84. : sessionStorage.getItem('GCLS_Token_Tc')
  85. ? JSON.parse(sessionStorage.getItem('GCLS_Token_Tc'))
  86. : null;
  87. this.popedom_code_list = userInfor ? userInfor.popedom_code_list : [];
  88. },
  89. methods: {},
  90. };
  91. </script>
  92. <style lang="scss" scoped>
  93. .Textbook {
  94. .top {
  95. width: 1200px;
  96. margin: 0 auto;
  97. display: flex;
  98. justify-content: space-between;
  99. .title {
  100. width: 100%;
  101. height: 90px;
  102. display: flex;
  103. justify-content: space-between;
  104. align-items: center;
  105. .text {
  106. position: relative;
  107. font-size: 24px;
  108. font-weight: bold;
  109. }
  110. .more {
  111. cursor: pointer;
  112. font-size: 16px;
  113. display: flex;
  114. align-items: center;
  115. span {
  116. opacity: 0.4;
  117. }
  118. img {
  119. width: 25px;
  120. height: 19px;
  121. }
  122. }
  123. }
  124. }
  125. .class_list {
  126. width: 1200px;
  127. box-sizing: border-box;
  128. margin: 0 auto;
  129. background: #fff;
  130. display: flex;
  131. flex-wrap: wrap;
  132. justify-content: flex-start;
  133. padding: 40px 56px;
  134. > div {
  135. // width: 88px;
  136. height: 124px;
  137. cursor: pointer;
  138. margin-right: 42px;
  139. div {
  140. width: 88px;
  141. height: 88px;
  142. display: flex;
  143. justify-content: center;
  144. align-items: center;
  145. border-radius: 8px;
  146. margin: 0 auto;
  147. img {
  148. width: 48px;
  149. height: 48px;
  150. }
  151. }
  152. p {
  153. margin: 0;
  154. margin-top: 10px;
  155. font-weight: 400;
  156. font-size: 20px;
  157. line-height: 26px;
  158. }
  159. }
  160. }
  161. }
  162. </style>