江西小程序管理端
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.

103 lines
1.9 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="选择学员"></topNavbar>
  4. <view class="pad">
  5. <view class="searchBox">
  6. <searchRow placeholder="搜索学员姓名、学员手机号"></searchRow>
  7. </view>
  8. <view class="ul">
  9. <view class="li" v-for="(item,index) in list" :key="index">
  10. <view class="icon">
  11. <image src="@/static/images/index/radio_cli.png" mode=""></image>
  12. <!-- <image src="@/static/images/index/radio.png" mode=""></image> -->
  13. </view>
  14. <view class="name">{{item.name}}</view>
  15. </view>
  16. </view>
  17. <view class="btn_row">
  18. <view class="btnBorder">已选学员4</view>
  19. <view class="btnBg">确认学员</view>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. import { studentList } from '@/config/api.js'
  26. export default {
  27. data() {
  28. return {
  29. params: {
  30. pageNo: 1,
  31. pageSize: 40,
  32. schoolId: '',
  33. coachId: '',
  34. status: 0,
  35. },
  36. total: 40,
  37. list: []
  38. }
  39. },
  40. onLoad() {
  41. this.params.schoolId = this.vuex_schoolId
  42. // this.params.coachId = this.vuex_coachId
  43. this.studentListFn()
  44. },
  45. methods: {
  46. async studentListFn() {
  47. const {data: res} = await studentList(this.params)
  48. this.params.pageNo ++
  49. this.total = res.total
  50. this.list.push(...res.list)
  51. }
  52. }
  53. }
  54. </script>
  55. <style lang="scss" scoped>
  56. .btn_row {
  57. position: fixed;
  58. bottom: 0;
  59. left: 0;
  60. padding: 10rpx 28rpx;
  61. z-index: 9;
  62. width: 100%;
  63. }
  64. .searchBox {
  65. padding: 20rpx 0;
  66. }
  67. .ul {
  68. width: 100%;
  69. padding-bottom: 120rpx;
  70. .li {
  71. display: flex;
  72. align-items: center;
  73. height: 108rpx;
  74. background: #FFFFFF;
  75. border-radius: 16rpx;
  76. border: 2rpx solid rgba(25,137,250,0.2);
  77. margin-bottom: 20rpx;
  78. padding: 0 20rpx;
  79. .icon {
  80. width: 32rpx;
  81. height: 32rpx;
  82. }
  83. .name {
  84. padding: 0 20rpx;
  85. }
  86. }
  87. }
  88. .btn_row {
  89. display: flex;
  90. justify-content: space-between;
  91. .btnBorder {
  92. width: 40%;
  93. }
  94. .btnBg {
  95. width: 56%;
  96. }
  97. }
  98. </style>