classmsg.vue 2.7 KB

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