learning.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <div class="pb_content" style="background: #24833d">
  3. <div class="pb_head">
  4. <span>五育融合</span>
  5. <div class="pb_left">
  6. <span style="font-size: .1rem;">我的任务</span>
  7. </div>
  8. </div>
  9. <div class="pb_content_body" style="height: calc(100% - 3rem)">
  10. <div class="li_head">
  11. <div class="li_head_portal">
  12. <img
  13. v-lazy="
  14. smailheadportrait
  15. ? smailheadportrait
  16. : require('../../assets/icon/portal.png')
  17. "
  18. alt=""
  19. />
  20. </div>
  21. <div class="li_head_body">
  22. <div class="li_myClass">
  23. <div>{{ name }}</div>
  24. <div>
  25. <span>{{ className }}</span> <span>{{ schoolName }}</span>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="xi_content">
  31. <div class="learn_box">
  32. <img v-lazy="require('../../assets/icon/leiIcon.png')" alt="" />
  33. <span>雷达图分析</span>
  34. </div>
  35. <div>
  36. <div>
  37. <van-image :src="require('../../assets/a.png')" fit="contain" />
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </template>
  44. <script>
  45. export default {
  46. name: "main-keep-alive",
  47. data() {
  48. return {
  49. smailheadportrait: this.$store.state.userInfo.smailheadportrait,
  50. name: this.$store.state.userInfo.name,
  51. className: this.$store.state.userInfo.classnameA,
  52. schoolName: this.$store.state.userInfo.schoolName,
  53. };
  54. },
  55. methods: {
  56. goTo(path, cid) {
  57. this.$router.push(path);
  58. },
  59. },
  60. activated() {},
  61. };
  62. </script>
  63. <style scoped>
  64. .li_head {
  65. background: #40aa5c;
  66. margin-bottom: 0rem;
  67. display: flex;
  68. justify-content: start;
  69. padding: 1rem 0;
  70. position: relative;
  71. align-items: center;
  72. }
  73. .li_head_portal {
  74. height: 3rem;
  75. min-width: 3rem;
  76. width: 3rem;
  77. overflow: hidden;
  78. border-radius: 10rem;
  79. margin: 0 0 0 1rem;
  80. }
  81. .li_head_portal img {
  82. width: inherit;
  83. height: inherit;
  84. }
  85. .li_head_body {
  86. margin-left: 0.2rem;
  87. }
  88. .li_myClass {
  89. font-size: 0.8rem;
  90. color: #fff;
  91. /* margin: 0.3rem 0 0 0; */
  92. /* font-weight: 600; */
  93. }
  94. .li_myClass div:first-child {
  95. margin-bottom: 0.5rem;
  96. }
  97. .li_myClass span:first-child {
  98. margin-left: 0rem;
  99. }
  100. .li_myClass span {
  101. font-size: 0.7rem;
  102. margin-left: 0.5rem;
  103. }
  104. .xi_content {
  105. height: calc(100% - 5.8rem);
  106. background: #439959;
  107. width: 100%;
  108. margin-top: 0.8rem;
  109. padding: 0.2rem 0 0 0;
  110. box-sizing: border-box;
  111. }
  112. .learn_box {
  113. display: flex;
  114. align-items: center;
  115. margin: 0.3rem 0 0 0.5rem;
  116. color: #a1ccac;
  117. font-size: 0.75rem;
  118. }
  119. .learn_box img {
  120. width: 1rem;
  121. margin-right: 0.3rem;
  122. }
  123. </style>