You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
841 B

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="上课学员"></topNavbar>
  4. <view class="con">
  5. <view class="card" v-for="(item,index) in list" :key="index">
  6. <appointItem :item="item"/>
  7. </view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. import appointItem from './comp/appointItem-operate'
  13. import { signStudentList, changeStudent, } from '@/config/api.js'
  14. export default {
  15. components: {
  16. appointItem
  17. },
  18. data() {
  19. return {
  20. list: []
  21. }
  22. },
  23. onLoad() {
  24. this.signStudentListFn()
  25. },
  26. onPullDownRefresh() {
  27. this.signStudentListFn()
  28. },
  29. methods: {
  30. async signStudentListFn() {
  31. const {data: res} = await signStudentList()
  32. this.list = res
  33. }
  34. }
  35. }
  36. </script>
  37. <style lang="scss" scoped>
  38. .con {
  39. padding: 0 28rpx;
  40. .card {
  41. padding: 0 20rpx;
  42. margin-bottom: 20rpx;
  43. }
  44. }
  45. </style>