classmsg.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <template>
  2. <view>
  3. <back></back>
  4. <view class="card-box">
  5. <view class="card-item" style="width: 100%;">
  6. <view class="card-info">
  7. <view class="t-icon t-icon-shuji1"></view>
  8. <text class="info-text">今日课程列表</text>
  9. </view>
  10. <view class="home-title-text">
  11. <view class="msg">今日课程数:</view>
  12. <view class="card-content">{{classList.length}}</view>
  13. <view style="display: flex; align-items: center; margin-left: auto; margin-right: 30rpx;">
  14. <view class="t-icon t-icon-lishi"></view>
  15. <view class="msg" style="margin-left: 10rpx;">3月30日</view>
  16. <view class="msg" style="margin-left: 10rpx;">星期三</view>
  17. </view>
  18. </view>
  19. <!-- 课程列表 -->
  20. <view style="margin-bottom: 20rpx;">
  21. <view style="display: flex; align-items: center;" v-for="(item,index) in classList" :key="index">
  22. <view class="index"></view>
  23. <view class="class-block" style="width: 90%;">
  24. <view class="block-title">{{item.name}}</view>
  25. <view class="block-tag-box">
  26. <view class="block-tag">{{item.teacher}}</view>
  27. </view>
  28. <view class="block-subtitle">{{item.timeFrame}}</view>
  29. <view class="block-title">{{item.time}}</view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="card-item" style="width: 100%;">
  35. <view class="card-info">
  36. <view class="t-icon t-icon-zhishi"></view>
  37. <text class="info-text">孩子课程表</text>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. import {
  45. mapState
  46. } from 'vuex'
  47. export default {
  48. computed: {
  49. ...mapState('m_children', ['classList'])
  50. },
  51. data() {
  52. return {
  53. };
  54. }
  55. }
  56. </script>
  57. <style lang="scss">
  58. @import '@/pages/common/blockmsg.scss';
  59. .card-box {
  60. display: flex;
  61. flex-flow: column wrap;
  62. margin: 0 20rpx 0 20rpx;
  63. justify-content: space-between;
  64. .card-item {
  65. margin: 2% 0;
  66. width: 48%;
  67. height: auto;
  68. display: flex;
  69. flex-direction: column;
  70. justify-content: space-around;
  71. background-color: #FFF;
  72. // box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.05);
  73. border-radius: $card-border-radius;
  74. .card-info {
  75. display: flex;
  76. align-items: center;
  77. padding: 20rpx;
  78. .info-text {
  79. font-size: 30rpx;
  80. font-weight: bold;
  81. color: #3B4144;
  82. margin-left: 10rpx;
  83. }
  84. }
  85. .index {
  86. width: 1%;
  87. height: 120rpx;
  88. background-color: #3C9CFF;
  89. border-radius: 20rpx;
  90. margin-left: 20rpx;
  91. }
  92. }
  93. }
  94. .card-content {
  95. font-size: 35rpx;
  96. margin: 10rpx 0 10rpx 25rpx;
  97. color: $u-primary;
  98. font-weight: bold;
  99. }
  100. .home-title-text {
  101. display: flex;
  102. align-items: center;
  103. flex-wrap: wrap;
  104. margin: 10rpx 0 10rpx 0;
  105. .t-icon {
  106. width: 30rpx;
  107. height: 30rpx;
  108. }
  109. }
  110. .msg {
  111. color: $color-title;
  112. margin-left: 30rpx;
  113. font-size: 30rpx;
  114. }
  115. .t-icon {
  116. width: 40rpx;
  117. height: 40rpx;
  118. }
  119. </style>