coursePj.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <template>
  2. <view class="center">
  3. <view class="english">various courses for children</view>
  4. <scroll-view scroll-y="true" class="list">
  5. <view v-for="(item,index) in courseList" :key="index" class="listBox" @click="nav()">
  6. <view class="bg"></view>
  7. <view class="title">{{ item.title}}<text>{{item.type}}</text></view>
  8. <view class="teacher">{{ item.teacher }}</view>
  9. <view class="bzr">{{ item.bzr }}</view>
  10. <view class="button" >课程评价</view>
  11. </view>
  12. </scroll-view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. courseList: [
  20. {
  21. type: "已完成",
  22. title: "暑假培训阅读精品课",
  23. time: "2021年07月01日 16:00",
  24. teacher: "授课科目:数学 林丹丹",
  25. bzr: "班主任:王琳琳 13201202102"
  26. },
  27. {
  28. title: "暑假培训阅读精品课",
  29. time: "2021年07月01日 16:00",
  30. teacher: "授课科目:数学 林丹丹",
  31. bzr: "班主任:王琳琳 13201202102"
  32. },
  33. {
  34. title: "暑假培训阅读精品课",
  35. time: "2021年07月01日 16:00",
  36. teacher: "授课科目:数学 林丹丹",
  37. bzr: "班主任:王琳琳 13201202102"
  38. },
  39. {
  40. title: "暑假培训阅读精品课",
  41. time: "2021年07月01日 16:00",
  42. teacher: "授课科目:数学 林丹丹",
  43. bzr: "班主任:王琳琳 13201202102"
  44. }
  45. ],
  46. }
  47. },
  48. methods: {
  49. nav(){
  50. console.log(1)
  51. uni.navigateTo({
  52. url: '/pages/course/evaluate'
  53. })
  54. }
  55. }
  56. }
  57. </script>
  58. <style lang="scss">
  59. page,
  60. .center {
  61. width: 100%;
  62. height: 100%;
  63. background-color: #f8f8f8;
  64. }
  65. .english {
  66. padding-left: 41rpx;
  67. font-size: 25rpx;
  68. font-family: Source Han Sans CN;
  69. font-weight: 400;
  70. color: #C2C2C2;
  71. }
  72. .list {
  73. height: calc(100%-400px);
  74. }
  75. .listBox {
  76. position: relative;
  77. width: 90%;
  78. height: 250rpx;
  79. margin: 0 auto;
  80. margin-top: 34rpx;
  81. box-shadow: 0rpx 5rpx 16rpx 0rpx rgba(253, 90, 84, 0.48);
  82. border-radius: 28rpx;
  83. .bg {
  84. width: 100%;
  85. height: 100%;
  86. position: absolute;
  87. left: 0;
  88. top: 0;
  89. background-color: #4EADFA;;
  90. border-radius: 28rpx;
  91. }
  92. .title {
  93. position: relative;
  94. padding-top: 36rpx;
  95. padding-left: 36rpx;
  96. font-size: 36rpx;
  97. font-weight: bold;
  98. color: #FFFFFF;
  99. z-index: 1;
  100. }
  101. .teacher {
  102. position: relative;
  103. margin-top: 56rpx;
  104. margin-left: 36rpx;
  105. font-size: 24rpx;
  106. font-weight: 500;
  107. color: #FFFFFF;
  108. z-index: 1;
  109. }
  110. .bzr {
  111. position: relative;
  112. margin-left: 36rpx;
  113. font-size: 24rpx;
  114. font-weight: 500;
  115. color: #FFFFFF;
  116. z-index: 1;
  117. }
  118. .button {
  119. position: absolute;
  120. right: 26rpx;
  121. bottom: 35rpx;
  122. width: 160rpx;
  123. height: 57rpx;
  124. background: #FFFFFF;
  125. border-radius: 28rpx;
  126. text-align: center;
  127. line-height: 57rpx;
  128. font-size: 27rpx;
  129. font-weight: bold;
  130. color: #FD5954;
  131. }
  132. }
  133. </style>