学员端小程序
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.

112 lines
2.3 KiB

8 months ago
8 months ago
  1. <template>
  2. <view class="pageBgImg ">
  3. <topNavbar title="我的预报名"></topNavbar>
  4. <view class="bg" v-if="list.length">
  5. <view class="ul">
  6. <view class="card" v-for="(item,index) in list" :key="index" @click="itemClickFn(item)">
  7. <!-- 状态0-预报名1-已报名待支付2-已支付,3-已学完 -->
  8. <view class="tps">{{ item.applyStatus==0?'点击进入报名':'预报名成功,待支付'}}</view>
  9. <view class="name">{{item.schoolName}}</view>
  10. <view class="className">班型{{item.className}}</view>
  11. <view class="flexB">
  12. <view class="date">
  13. {{$u.timeFormat(item.createDate, 'yyyy-mm-dd hh:MM:ss')}}
  14. </view>
  15. <view class="deleteBtn" @click.stop="deleteFn(item)">
  16. 删除
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <nodata v-else></nodata>
  23. <u-loadmore :status="status" style="margin-top: 32rpx;" v-if="list.length>5" icon-type="circle" />
  24. </view>
  25. </template>
  26. <script>
  27. import { trainingApplyList } from "@/config/api.js"
  28. export default {
  29. data() {
  30. return {
  31. params: {
  32. pageIndex: 1,
  33. pageSize: 20,
  34. },
  35. list: [
  36. {applyStatus: 0, schoolName: '翔力驾校'}
  37. ],
  38. status: 'loadmore',
  39. }
  40. },
  41. onLoad() {
  42. this.trainingApplyListFn()
  43. },
  44. methods: {
  45. async trainingApplyListFn() {
  46. const {data: res} = await trainingApplyList({studentId: this.studentId})
  47. this.list = res
  48. }
  49. }
  50. }
  51. </script>
  52. <style lang="scss" scoped>
  53. .pageBgImg {
  54. width: 100%;
  55. .tps {
  56. width: 100%;
  57. // height: 56rpx;
  58. // line-height: 56rpx;
  59. color: $themC;
  60. padding: 0 20rpx;
  61. text-align: right;
  62. // background-color: #f7f7fb;
  63. font-size: 26rpx;
  64. }
  65. .ul {
  66. width: 100%;
  67. padding: 0 30rpx;
  68. .card{
  69. width: 100%;
  70. padding: 20rpx;
  71. border-bottom: 1px solid #ededed;
  72. &:last-child {
  73. border: none;
  74. }
  75. .name {
  76. font-size: 32rpx;
  77. font-weight: 700;
  78. padding-top: 20rpx;
  79. }
  80. .className {
  81. font-size: 28rpx;
  82. color: #666;
  83. padding: 10rpx 0;
  84. }
  85. .flexB {
  86. display: flex;
  87. justify-content: space-between;
  88. .date {
  89. font-size: 24rpx;
  90. color: #999;
  91. }
  92. .deleteBtn {
  93. color: $themC;
  94. border-radius: 8rpx;
  95. width: 120rpx;
  96. height: 50rpx;
  97. line-height: 50rpx;
  98. text-align: center;
  99. border: 1px solid $themC
  100. }
  101. }
  102. }
  103. }
  104. }
  105. </style>