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

208 lines
4.5 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. <template>
  2. <view class="main">
  3. <view class="blueBg">
  4. <!-- <topNavbar title="预约记录"></topNavbar> -->
  5. <view class="pad">
  6. <view class="searchBox">
  7. <searchRow placeholder="搜索学员姓名、学员手机号、考场名称"></searchRow>
  8. </view>
  9. <view class="tabs">
  10. <view class="tab" @click="changeTab(1)" :class="{active: currentTab==1}">待核销</view>
  11. <view class="tab" @click="changeTab(2)" :class="{active: currentTab==2}">已核销</view>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="navs">
  16. <view class="nav" v-for="(item,index) in tabsList" :key="index" :class="{active: currentNav==item.id}" @click="changeNav(item)">{{ item.text }}</view>
  17. </view>
  18. <view class="pad">
  19. <view class="total_row">
  20. <view class="total">12条记录</view>
  21. <view class="screen" @click="showDate=true">
  22. <view class="text">筛选</view>
  23. <view class="icon">
  24. <image src="@/static/images/coach/screen.png" mode=""></image>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="card" @click="goPage">
  29. <appointItem />
  30. </view>
  31. </view>
  32. <UserTab name ='预约记录'></UserTab>
  33. <u-popup :show="showDate" mode="bottom" :round="20" :closeable="true" :closeOnClickOverlay="true">
  34. <view class="popupBox">
  35. <view class="pad">
  36. <view class="car">
  37. <view class="h1">车型</view>
  38. <view class="car_row">
  39. <view class="carItem" @click="screenCarFn(1)" :class="{active: params.car==1}">C1</view>
  40. <view class="carItem" @click="screenCarFn(2)" :class="{active: params.car==2}">C2</view>
  41. </view>
  42. </view>
  43. <view class="h1" style="transform: translateY(30rpx);margin-bottom: 20rpx;">时间</view>
  44. </view>
  45. <timeScreen @selectDateClick="selectDateClick" @confirmDatePicker="confirmDatePicker" />
  46. </view>
  47. </u-popup>
  48. </view>
  49. </template>
  50. <script>
  51. export default {
  52. data() {
  53. return {
  54. currentTab: 1,
  55. currentNav: 1,
  56. tabsList: [
  57. {id: 1, text: '全部'},
  58. {id: 2, text: '科目二'},
  59. {id: 3, text: '科目三'},
  60. ],
  61. showDate: false,
  62. params: {
  63. car: 1,
  64. }
  65. }
  66. },
  67. methods: {
  68. changeTab(num) {
  69. console.log(num)
  70. this.currentTab = num
  71. },
  72. changeNav(item) {
  73. this.currentNav = item.id
  74. },
  75. goPage() {
  76. this.$goPage('/pages/recordEntry/examine/examineRecord/detail/detail')
  77. },
  78. confirmDatePicker() {
  79. this.showDate = true
  80. },
  81. // 选择筛选日期
  82. selectDateClick(val) {
  83. console.log(val)
  84. this.showDate = false
  85. },
  86. screenCarFn(num) {
  87. this.params.car = num
  88. }
  89. }
  90. }
  91. </script>
  92. <style lang="scss" scoped>
  93. .popupBox {
  94. .car {
  95. .h1 {
  96. line-height: 100rpx;
  97. }
  98. .car_row {
  99. display: flex;
  100. .carItem {
  101. width: 130rpx;
  102. height: 60rpx;
  103. background: rgba(25,137,250,0.1);
  104. border-radius: 8rpx;
  105. border: 2rpx solid #1989FA;
  106. text-align: center;
  107. line-height: 60rpx;
  108. color: $themC;
  109. margin-right: 58rpx;
  110. &.active {
  111. background: $themC;
  112. color: #fff;
  113. }
  114. }
  115. }
  116. }
  117. }
  118. .main {
  119. width: 100%;
  120. min-height: 100vh;
  121. background: #f3f3f3;
  122. .blueBg {
  123. background: #1989FA;
  124. padding: 140rpx 0 20rpx 0;
  125. }
  126. .total_row {
  127. display: flex;
  128. justify-content: space-between;
  129. height: 82rpx;
  130. align-items: center;
  131. .total {
  132. font-size: 24rpx;
  133. color: #686B73;
  134. text-align: right;
  135. line-height: 82rpx;
  136. }
  137. .screen {
  138. display: flex;align-items: center;
  139. color: $themC;
  140. margin-left: 8rpx;
  141. font-size: 28rpx;
  142. .icon {
  143. width: 24rpx;
  144. height: 24rpx;
  145. }
  146. }
  147. }
  148. .card {
  149. padding: 0 20rpx;
  150. }
  151. }
  152. .searchBox {
  153. padding: 24rpx 0 20rpx 0;
  154. }
  155. .tabs {
  156. display: flex;
  157. width: 100%;
  158. height: 72rpx;
  159. background: #FFFFFF;
  160. border-radius: 16rpx;
  161. .tab {
  162. flex: 1;
  163. text-align: center;
  164. line-height: 72rpx;
  165. color: #ADADAD;
  166. font-size: 28rpx;
  167. &.active {
  168. background: rgba(25,137,250,0.1);
  169. border-radius: 16rpx;
  170. border: 2rpx solid #1989FA;
  171. color: $themC;
  172. font-weight: 600;
  173. }
  174. }
  175. }
  176. .navs {
  177. display: flex;
  178. justify-content: space-between;
  179. color: #fff;
  180. font-size: 28rpx;
  181. padding: 0rpx 108rpx 0rpx 130rpx;
  182. color: $themC;
  183. background: #fff;
  184. height: 100rpx;
  185. .nav {
  186. line-height: 100rpx;
  187. &.active {
  188. font-weight: 500;
  189. position: relative;
  190. &::before {
  191. position: absolute;
  192. left: 50%;
  193. transform: translateX(-50%);
  194. bottom: 20rpx;
  195. content: '';
  196. width: 56rpx;
  197. height: 6rpx;
  198. background: $themC;
  199. border-radius: 3rpx;
  200. }
  201. }
  202. }
  203. }
  204. </style>