exercisesinfo.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <view>
  3. <top-return text="评测练习"></top-return>
  4. <!-- 天数选择 -->
  5. <!-- <scroll-view class="week_view" scroll-x="true" :scroll-with-animation="true" scroll-left="0">
  6. <view style="margin-top:20rpx;">
  7. <view v-for="(item,index) in examPractice[index]" :key="index"
  8. :class="isactive == index ? 'week_item_select' : 'week_item' " @click='chooseDay(index,item)'>
  9. <view class="item_box">
  10. <view class="_title">{{item.weekNum}}</view>
  11. <view class="_day">{{item.dayNum}}</view>
  12. <view class="tag_fill" v-if="isactive == index">
  13. <view class="tag_text" v-if="isactive == index && currentClassList.length != 0">
  14. {{currentClassList.length}} 节课
  15. </view>
  16. <view class="tag_text" v-if="isactive == index && currentClassList.length === 0">无课程</view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </scroll-view> -->
  22. </view>
  23. </template>
  24. <script>
  25. import {
  26. mapState
  27. } from 'vuex'
  28. export default {
  29. computed: {
  30. ...mapState('m_children', ['examPractice'])
  31. },
  32. data() {
  33. return {
  34. index: ''
  35. }
  36. },
  37. onLoad(param) {
  38. this.index = param.index
  39. },
  40. methods:{
  41. }
  42. }
  43. </script>
  44. <style>
  45. </style>