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

  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. export default {
  28. data() {
  29. return {
  30. params: {
  31. pageIndex: 1,
  32. pageSize: 20,
  33. },
  34. list: [
  35. {applyStatus: 0, schoolName: '翔力驾校'}
  36. ],
  37. status: 'loadmore',
  38. }
  39. },
  40. }
  41. </script>
  42. <style lang="scss" scoped>
  43. .pageBgImg {
  44. width: 100%;
  45. .tps {
  46. width: 100%;
  47. // height: 56rpx;
  48. // line-height: 56rpx;
  49. color: $themC;
  50. padding: 0 20rpx;
  51. text-align: right;
  52. // background-color: #f7f7fb;
  53. font-size: 26rpx;
  54. }
  55. .ul {
  56. width: 100%;
  57. padding: 0 30rpx;
  58. .card{
  59. width: 100%;
  60. padding: 20rpx;
  61. border-bottom: 1px solid #ededed;
  62. &:last-child {
  63. border: none;
  64. }
  65. .name {
  66. font-size: 32rpx;
  67. font-weight: 700;
  68. padding-top: 20rpx;
  69. }
  70. .className {
  71. font-size: 28rpx;
  72. color: #666;
  73. padding: 10rpx 0;
  74. }
  75. .flexB {
  76. display: flex;
  77. justify-content: space-between;
  78. .date {
  79. font-size: 24rpx;
  80. color: #999;
  81. }
  82. .deleteBtn {
  83. color: $themC;
  84. border-radius: 8rpx;
  85. width: 120rpx;
  86. height: 50rpx;
  87. line-height: 50rpx;
  88. text-align: center;
  89. border: 1px solid $themC
  90. }
  91. }
  92. }
  93. }
  94. }
  95. </style>