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

235 lines
5.8 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 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 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 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="pad" :style="{ background: `url(${imgUrl}) #f6f6f6 no-repeat`, backgroundSize: backgroundSize }" > -->
  4. <view class="status_bar"></view>
  5. <view style="width: 100%;height: 60rpx;"></view>
  6. <!-- <view class="searchBox">
  7. <searchRow placeholder="搜索学员姓名、学员手机号"></searchRow>
  8. </view>
  9. <view class="card" v-if="identity=='实操教练'">
  10. <view class="addStudent">
  11. <view class="h2">我的学员</view>
  12. <view class="btnBg" @click="$goPage('/pages/recordEntry/student/addStudent/addStudent')">手动添加</view>
  13. </view>
  14. </view>
  15. <view class="card">
  16. <view class="statistics">
  17. <view class="statisticsItem">
  18. <view class="val">260</view>
  19. <view class="lab">累计学员数量</view>
  20. </view>
  21. <view class="statisticsItem">
  22. <view class="val">260</view>
  23. <view class="lab">今日新增学员</view>
  24. </view>
  25. <view class="statisticsItem" v-if="identity=='校长'">
  26. <view class="val">260</view>
  27. <view class="lab">今日退学学员</view>
  28. </view>
  29. </view>
  30. </view> -->
  31. <view class="searchBox" v-if="identity=='校长'">
  32. <searchRow placeholder="搜索学员姓名、学员手机号"></searchRow>
  33. </view>
  34. <topUserInfo v-if="identity=='实操教练'"/>
  35. <view class="card">
  36. <view class="h2" v-if="identity=='实操教练'">我的学员</view>
  37. <view class="statistics">
  38. <view class="statisticsItem">
  39. <view class="val">260</view>
  40. <view class="lab">累计学员数量</view>
  41. </view>
  42. <view class="statisticsItem">
  43. <view class="val">260</view>
  44. <view class="lab">今日新增学员</view>
  45. </view>
  46. <view class="statisticsItem" v-if="identity=='校长'">
  47. <view class="val">260</view>
  48. <view class="lab">今日退学学员</view>
  49. </view>
  50. </view>
  51. <view class="addStudent" @click="$goPage('/pages/recordEntry/student/addStudent/addStudent')" v-if="identity=='实操教练'">+ 添加学员</view>
  52. </view>
  53. <view class="screen_row">
  54. <view class="selectItem" @click="showDatePicker=true">
  55. <view class="text ">{{screen.timer}}</view>
  56. <view class="downIcon">
  57. <u-icon name="arrow-down" :size="'28rpx'"></u-icon>
  58. </view>
  59. </view>
  60. <view class="selectItem" @click="showCar=true">
  61. <view class="text oneRowText">{{screen.car}}</view>
  62. <view class="downIcon">
  63. <u-icon name="arrow-down" :size="'28rpx'"></u-icon>
  64. </view>
  65. </view>
  66. <view class="selectItem" @click="showClass=true">
  67. <view class="text oneRowText">{{screen.className}}</view>
  68. <view class="downIcon">
  69. <u-icon name="arrow-down" :size="'28rpx'"></u-icon>
  70. </view>
  71. </view>
  72. </view>
  73. <view class="list">
  74. <view class="card" @click="$goPage('/pages/recordEntry/student/studentDetail/studentDetail')">
  75. <appointItem-student/>
  76. </view>
  77. </view>
  78. <UserTab name ='学员'></UserTab>
  79. <u-datetime-picker
  80. :show="showDatePicker"
  81. mode="date"
  82. :visibleItemCount="4"
  83. :closeOnClickOverlay="false"
  84. @confirm="confirmDatePicker"
  85. ></u-datetime-picker>
  86. <u-picker :show="showCar" :columns="carArr" keyName="lab" @confirm="confirmCar" @cancel="showCar=false"></u-picker>
  87. <u-picker :show="showClass" :columns="classArr" keyName="lab" @confirm="confirmClass" @cancel="showClass=false"></u-picker>
  88. </view>
  89. </template>
  90. <script>
  91. import { imgUrl } from '@/config/site.config'
  92. import topUserInfo from '../statistics/comp/topUserInfo.vue'
  93. export default {
  94. components: { topUserInfo },
  95. data() {
  96. return {
  97. imgUrl: imgUrl+'indexTopBanner.png',
  98. backgroundSize: '100% 492rpx',
  99. screen: {
  100. timer: '报名时间',
  101. car: '全部车型',
  102. className: '全部班型'
  103. },
  104. showDatePicker: false,
  105. showCar: false,
  106. showClass: false,
  107. carArr: [
  108. [
  109. {lab: 'C1',id: 1},
  110. {lab: 'C2',id: 2},
  111. ]
  112. ],
  113. classArr: [
  114. [
  115. {lab: '普通班型',id: 1},
  116. {lab: 'C2vip',id: 2},
  117. ]
  118. ],
  119. }
  120. },
  121. onShow() {
  122. uni.hideTabBar();
  123. },
  124. methods: {
  125. confirmDatePicker(val) {
  126. this.showDatePicker = false
  127. console.log(val)
  128. console.log(uni.$u.date(val.value, 'yyyy-mm-dd'))
  129. this.screen.timer = uni.$u.date(val.value, 'yyyy-mm-dd')
  130. console.log(this.screen.timer)
  131. },
  132. confirmCar(val) {
  133. let item = val.value[0]
  134. this.screen.car = item.lab
  135. this.showCar = false
  136. },
  137. confirmClass(val) {
  138. let item = val.value[0]
  139. this.screen.className = item.lab
  140. this.showClass = false
  141. }
  142. }
  143. }
  144. </script>
  145. <style lang="scss" scoped>
  146. .pad {
  147. min-height: 100vh;
  148. }
  149. .card {
  150. padding: 0 28rpx;
  151. margin-bottom: 24rpx;
  152. }
  153. .searchBox {
  154. padding: 140rpx 0 24rpx 0;
  155. }
  156. .h2 {
  157. font-size: 32rpx;
  158. font-weight: 500;
  159. color: $themC;
  160. padding-top: 26rpx;
  161. }
  162. .addStudent {
  163. padding: 10rpx 0 30rpx 0;
  164. font-size: 28rpx;
  165. color: $themC;
  166. text-align: center;
  167. }
  168. .statistics {
  169. display: flex;
  170. height: 170rpx;
  171. .statisticsItem {
  172. display: flex;
  173. align-items: center;
  174. justify-content: center;
  175. flex-direction: column;
  176. flex: 1;
  177. .val {
  178. font-weight: 600;
  179. font-size: 56rpx;
  180. color: $themC;
  181. position: relative;
  182. &::before {
  183. content: '个';
  184. position: absolute;
  185. right: -30rpx;
  186. bottom: 10rpx;
  187. font-size: 24rpx;
  188. font-weight: 400;
  189. }
  190. }
  191. .lab {
  192. font-size: 28rpx;
  193. color: #999;
  194. // margin-top: 20rpx;
  195. }
  196. }
  197. }
  198. .screen_row {
  199. display: flex;
  200. margin-bottom: 24rpx;
  201. width: 100%;
  202. justify-content: space-between;
  203. .selectItem {
  204. display: flex;
  205. padding: 0 16rpx;
  206. border: 2rpx solid rgba(25,137,250,0.3);
  207. height: 60rpx;
  208. border-radius: 16rpx;
  209. background-color: #FFFFFF;
  210. line-height: 60rpx;
  211. align-items: center;
  212. width: 29%;
  213. .text {
  214. color: $themC;
  215. flex: 1;
  216. text-align: center;
  217. font-size: 26rpx;
  218. }
  219. .downIcon {
  220. width: 24rpx;
  221. }
  222. }
  223. }
  224. </style>