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

156 lines
3.2 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="pageBgImg pad">
  3. <view class="searchBox">
  4. <searchRow placeholder="搜索学员姓名、学员手机号"></searchRow>
  5. </view>
  6. <view class="card" v-if="identity==1">
  7. <view class="addStudent">
  8. <view class="h2">我的学员</view>
  9. <view class="btnBg" @click="$goPage('/pages/recordEntry/student/addStudent/addStudent')">手动添加</view>
  10. </view>
  11. </view>
  12. <view class="card">
  13. <view class="statistics">
  14. <view class="statisticsItem">
  15. <view class="val">260</view>
  16. <view class="lab">累计学员数量</view>
  17. </view>
  18. <view class="statisticsItem">
  19. <view class="val">260</view>
  20. <view class="lab">今日新增学员</view>
  21. </view>
  22. <view class="statisticsItem" v-if="identity==2">
  23. <view class="val">260</view>
  24. <view class="lab">今日退学学员</view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="screen_row">
  29. <view class="selectItem">
  30. <view class="text oneRowText">{{screen.timer}}</view>
  31. <view class="downIcon">
  32. <u-icon name="arrow-down"></u-icon>
  33. </view>
  34. </view>
  35. <view class="selectItem">
  36. <view class="text oneRowText">{{screen.car}}</view>
  37. <view class="downIcon">
  38. <u-icon name="arrow-down"></u-icon>
  39. </view>
  40. </view>
  41. <view class="selectItem">
  42. <view class="text oneRowText">{{screen.className}}</view>
  43. <view class="downIcon">
  44. <u-icon name="arrow-down"></u-icon>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="list">
  49. <view class="card" @click="$goPage('/pages/recordEntry/student/studentDetail/studentDetail')">
  50. <appointItem-student/>
  51. </view>
  52. </view>
  53. <UserTab name ='学员'></UserTab>
  54. </view>
  55. </template>
  56. <script>
  57. export default {
  58. data() {
  59. return {
  60. screen: {
  61. timer: '报名时间',
  62. car: '全部车型',
  63. className: '全部班型'
  64. }
  65. }
  66. },
  67. onShow() {
  68. uni.hideTabBar();
  69. },
  70. }
  71. </script>
  72. <style lang="scss" scoped>
  73. .card {
  74. padding: 0 28rpx;
  75. margin-bottom: 24rpx;
  76. }
  77. .searchBox {
  78. padding: 140rpx 0 24rpx 0;
  79. }
  80. .addStudent {
  81. height: 108rpx;
  82. background: #FFFFFF;
  83. border-radius: 16rpx;
  84. display: flex;
  85. align-items: center;
  86. justify-content: space-between;
  87. .h2 {
  88. font-size: 32rpx;
  89. font-weight: 500;
  90. }
  91. .btnBg {
  92. width: 192rpx;
  93. }
  94. }
  95. .statistics {
  96. display: flex;
  97. height: 200rpx;
  98. .statisticsItem {
  99. display: flex;
  100. align-items: center;
  101. justify-content: center;
  102. flex-direction: column;
  103. flex: 1;
  104. .val {
  105. font-weight: 600;
  106. font-size: 56rpx;
  107. color: $themC;
  108. position: relative;
  109. &::before {
  110. content: '个';
  111. position: absolute;
  112. right: -30rpx;
  113. bottom: 10rpx;
  114. font-size: 24rpx;
  115. font-weight: 400;
  116. }
  117. }
  118. .lab {
  119. font-size: 28rpx;
  120. // margin-top: 20rpx;
  121. }
  122. }
  123. }
  124. .screen_row {
  125. display: flex;
  126. margin-bottom: 24rpx;
  127. width: 100%;
  128. justify-content: space-between;
  129. .selectItem {
  130. display: flex;
  131. padding: 0 18rpx;
  132. border: 2rpx solid rgba(25,137,250,0.3);
  133. height: 60rpx;
  134. border-radius: 16rpx;
  135. background-color: #FFFFFF;
  136. line-height: 60rpx;
  137. align-items: center;
  138. width: 28.6%;
  139. .text {
  140. color: $themC;
  141. flex: 1;
  142. }
  143. .downIcon {
  144. width: 24rpx;
  145. }
  146. }
  147. }
  148. </style>