doWorkArea.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <template>
  2. <div class="doWork">
  3. <div class="dw_header">
  4. <div class="dw_h_left">
  5. <img :src="require('../../../../assets/icon/pblCourse/phaseIcon.png')">
  6. <span>阶段2:探究</span>
  7. </div>
  8. <div class="dw_h_right">
  9. <span class="dw_h_r_back" @click.stop="back()"></span>
  10. <span class="dw_h_r_down" @click.stop="down()"></span>
  11. </div>
  12. </div>
  13. <div class="dw_work">
  14. <work/>
  15. </div>
  16. <div class="dw_bottom">
  17. <div class="dw_b_btn" @click.stop="submitWork()">
  18. <img :src="require('../../../../assets/icon/pblCourse/bookIcon.png')">
  19. <span>提交作业</span>
  20. </div>
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. import work from './work'
  26. export default {
  27. components:{
  28. work,
  29. },
  30. methods:{
  31. submitWork(){
  32. this.$message.info("提交作业")
  33. },
  34. down(){
  35. this.$message.info("下一个")
  36. },
  37. back(){
  38. this.$message.info("上一个")
  39. }
  40. }
  41. }
  42. </script>
  43. <style scoped>
  44. .doWork{
  45. width: 100%;
  46. height: 100%;
  47. border-radius: 12px;
  48. overflow: hidden;
  49. background-color: white;
  50. }
  51. .dw_header{
  52. width: 100%;
  53. height: 60px;
  54. background-color: #FFF3EA;
  55. margin-bottom: 15px;
  56. display: flex;
  57. justify-content: space-between;
  58. align-items: center;
  59. box-sizing: border-box;
  60. padding: 0 20px;
  61. }
  62. .dw_h_left{
  63. display: flex;
  64. align-items: center;
  65. }
  66. .dw_h_left>img{
  67. width: 40px;
  68. height: 40px;
  69. margin-right: 10px;
  70. }
  71. .dw_h_left>span{
  72. font-size: 22px;
  73. font-weight: bold;
  74. }
  75. .dw_h_right{
  76. display: flex;
  77. align-items: center;
  78. }
  79. .dw_h_right>span{
  80. display: block;
  81. width: 30px;
  82. height: 30px;
  83. background: url("../../../../assets/icon/pblCourse/backIcon.png") no-repeat;
  84. background-size: 100% 100%;
  85. margin-right: 10px;
  86. margin-left: 5px;
  87. cursor: pointer;
  88. }
  89. .dw_h_r_down{
  90. transform: rotate(180deg);
  91. }
  92. .dw_work{
  93. width: calc(100% - 30px);
  94. height: calc(100% - 60px - 100px - 30px);
  95. box-sizing: border-box;
  96. margin: 0 15px;
  97. border-radius: 8px;
  98. background-color: #F3F7FD;
  99. }
  100. .dw_bottom{
  101. margin-top: 15px;
  102. width: 100%;
  103. height: 100px;
  104. display: flex;
  105. justify-content: center;
  106. align-items: center;
  107. box-sizing: border-box;
  108. padding: 0 15px 15px 15px;
  109. }
  110. .dw_b_btn{
  111. width: 100%;
  112. height: 100%;
  113. background-color: #F3F7FD;
  114. border-radius: 8px;
  115. display: flex;
  116. justify-content: center;
  117. align-items: center;
  118. transition: .3s;
  119. cursor: pointer;
  120. }
  121. .dw_b_btn:hover{
  122. background-color: #eaeef5;
  123. }
  124. .dw_b_btn>img{
  125. width: 50px;
  126. height: 50px;
  127. margin-right: 10px;
  128. cursor: pointer;
  129. }
  130. .dw_b_btn>span{
  131. font-size: 22px;
  132. background: linear-gradient(to right, #3673E8, #AD88FD);
  133. -webkit-background-clip: text;
  134. color: transparent;
  135. }
  136. </style>