other.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <h2 class="contentTitle">其他课程资源</h2>
  3. <el-row :gutter="20">
  4. <el-col :span="6">
  5. <div class="grid-content" @click="openApplication('project')">
  6. <!-- <router-link to="/iframe/其他课程资源/课程管理"> -->
  7. <img :src="Img1" alt="">
  8. <div>
  9. <span>创建课程</span>
  10. <p>教师自定义创建个人人工智能课程教学资源。</p>
  11. </div>
  12. <!-- </router-link> -->
  13. </div>
  14. </el-col>
  15. <el-col :span="6">
  16. <div class="grid-content" @click="openApplication('studentStudy')">
  17. <!-- <router-link to="/iframe/其他课程资源/课程中心"> -->
  18. <img :src="Img2" alt="">
  19. <div>
  20. <span>拓展课程</span>
  21. <p>教师使用预置或自定义补充资源开展授课。</p>
  22. </div>
  23. <!-- </router-link> -->
  24. </div>
  25. </el-col>
  26. </el-row>
  27. </template>
  28. <script setup>
  29. import { ref } from 'vue';
  30. import Img1 from '@/assets/icon/课程管理.png'
  31. import Img2 from '@/assets/icon/课程中心.png'
  32. import Img3 from '@/assets/icon/学生评价icon.png'
  33. const openApplication = (type) => {
  34. top.U.MD.D.I.openApplication(type)
  35. }
  36. </script>
  37. <style lang="scss" scoped>
  38. .el-row {
  39. margin-bottom: 20px;
  40. .el-col {
  41. border-radius: 4px;
  42. .grid-content {
  43. border-radius: 4px;
  44. min-height: 36px;
  45. background: #fff;
  46. border-radius: 10px;
  47. text-decoration: none;
  48. display: block;
  49. position: relative;
  50. padding: 16px;
  51. img {
  52. width: 56px;
  53. }
  54. div {
  55. position: absolute;
  56. left: 80px;
  57. top: 16px;
  58. cursor: pointer;
  59. span {
  60. color: rgba(0, 0, 0, 0.9);
  61. font-size: 14px;
  62. margin-bottom: 10px;
  63. font-weight: 400;
  64. }
  65. p {
  66. color: rgba(0, 0, 0, 0.4);
  67. font-size: 12px;
  68. padding-right: 20px;
  69. }
  70. }
  71. }
  72. }
  73. }
  74. .el-row:last-child {
  75. margin-bottom: 0;
  76. }
  77. </style>