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

219 lines
4.7 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. <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. import { examSimulationPages } from '@/config/api.js'
  52. export default {
  53. data() {
  54. return {
  55. currentTab: 1,
  56. currentNav: 1,
  57. tabsList: [
  58. {id: 1, text: '全部'},
  59. {id: 2, text: '科目二'},
  60. {id: 3, text: '科目三'},
  61. ],
  62. showDate: false,
  63. params: {
  64. car: 1,
  65. pageNo: 1,
  66. pageSize: 20,
  67. // status: 0,
  68. }
  69. }
  70. },
  71. created() {
  72. this.examSimulationPagesFn()
  73. },
  74. methods: {
  75. async examSimulationPagesFn() {
  76. const {data: res} = await examSimulationPages(this.params)
  77. console.log(res)
  78. },
  79. changeTab(num) {
  80. console.log(num)
  81. this.currentTab = num
  82. },
  83. changeNav(item) {
  84. this.currentNav = item.id
  85. },
  86. goPage() {
  87. this.$goPage('/pages/recordEntry/examine/examineRecord/detail/detail')
  88. },
  89. confirmDatePicker() {
  90. this.showDate = true
  91. },
  92. // 选择筛选日期
  93. selectDateClick(val) {
  94. console.log(val)
  95. this.showDate = false
  96. },
  97. screenCarFn(num) {
  98. this.params.car = num
  99. }
  100. }
  101. }
  102. </script>
  103. <style lang="scss" scoped>
  104. .popupBox {
  105. .car {
  106. .h1 {
  107. line-height: 100rpx;
  108. }
  109. .car_row {
  110. display: flex;
  111. .carItem {
  112. width: 130rpx;
  113. height: 60rpx;
  114. background: rgba(25,137,250,0.1);
  115. border-radius: 8rpx;
  116. border: 2rpx solid #1989FA;
  117. text-align: center;
  118. line-height: 60rpx;
  119. color: $themC;
  120. margin-right: 58rpx;
  121. &.active {
  122. background: $themC;
  123. color: #fff;
  124. }
  125. }
  126. }
  127. }
  128. }
  129. .main {
  130. width: 100%;
  131. min-height: 100vh;
  132. background: #f3f3f3;
  133. .blueBg {
  134. background: #1989FA;
  135. padding: 140rpx 0 20rpx 0;
  136. }
  137. .total_row {
  138. display: flex;
  139. justify-content: space-between;
  140. height: 82rpx;
  141. align-items: center;
  142. .total {
  143. font-size: 24rpx;
  144. color: #686B73;
  145. text-align: right;
  146. line-height: 82rpx;
  147. }
  148. .screen {
  149. display: flex;align-items: center;
  150. color: $themC;
  151. margin-left: 8rpx;
  152. font-size: 28rpx;
  153. .icon {
  154. width: 24rpx;
  155. height: 24rpx;
  156. }
  157. }
  158. }
  159. .card {
  160. padding: 0 20rpx;
  161. }
  162. }
  163. .searchBox {
  164. padding: 24rpx 0 20rpx 0;
  165. }
  166. .tabs {
  167. display: flex;
  168. width: 100%;
  169. height: 72rpx;
  170. background: #FFFFFF;
  171. border-radius: 16rpx;
  172. .tab {
  173. flex: 1;
  174. text-align: center;
  175. line-height: 72rpx;
  176. color: #ADADAD;
  177. font-size: 28rpx;
  178. &.active {
  179. background: rgba(25,137,250,0.1);
  180. border-radius: 16rpx;
  181. border: 2rpx solid #1989FA;
  182. color: $themC;
  183. font-weight: 600;
  184. }
  185. }
  186. }
  187. .navs {
  188. display: flex;
  189. justify-content: space-between;
  190. color: #fff;
  191. font-size: 28rpx;
  192. padding: 0rpx 108rpx 0rpx 130rpx;
  193. color: $themC;
  194. background: #fff;
  195. height: 100rpx;
  196. .nav {
  197. line-height: 100rpx;
  198. &.active {
  199. font-weight: 500;
  200. position: relative;
  201. &::before {
  202. position: absolute;
  203. left: 50%;
  204. transform: translateX(-50%);
  205. bottom: 20rpx;
  206. content: '';
  207. width: 56rpx;
  208. height: 6rpx;
  209. background: $themC;
  210. border-radius: 3rpx;
  211. }
  212. }
  213. }
  214. }
  215. </style>