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

165 lines
3.3 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. <template>
  2. <view class="pageBgImg pad">
  3. <view class="searchBox">
  4. <searchRow placeholder="搜索学员姓名、学员手机号"></searchRow>
  5. </view>
  6. <view class="card">
  7. <view class="myClass">
  8. <view class="leftTxt">我的排课</view>
  9. <view class="leftBtn" @click="$goPage('/pages/recordEntry/operate/mySchedule/mySchedule')">去管理</view>
  10. </view>
  11. </view>
  12. <view class="tabs">
  13. <view class="tab" v-for="(item,index) in tabArr" :key="index" :class="{active: currentTab==item.id}"
  14. @click="changeTab(item)">{{ item.text }}</view>
  15. </view>
  16. <view class="screen_row">
  17. <view class="selectItem">
  18. <view class="text oneRowText">{{screen.subject}}</view>
  19. <view class="downIcon">
  20. <u-icon name="arrow-down"></u-icon>
  21. </view>
  22. </view>
  23. <view class="selectItem">
  24. <view class="text oneRowText">{{screen.car}}</view>
  25. <view class="downIcon">
  26. <u-icon name="arrow-down"></u-icon>
  27. </view>
  28. </view>
  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>
  36. <view class="list">
  37. <view class="card">
  38. <appointItem-operate @click.native="$goPage('/pages/recordEntry/operate/detail/detail')"/>
  39. </view>
  40. </view>
  41. <!-- <UserTab selectedIndex ='2'></UserTab> -->
  42. </view>
  43. </template>
  44. <script>
  45. export default {
  46. data() {
  47. return {
  48. tabArr: [{
  49. text: '待上课',
  50. id: 1
  51. },
  52. {
  53. text: '已完成',
  54. id: 2
  55. },
  56. {
  57. text: '已取消',
  58. id: 3
  59. },
  60. ],
  61. currentTab: 1,
  62. screen: {
  63. subject: '训练科目',
  64. car: '预约车辆',
  65. timer: '预约时间'
  66. }
  67. }
  68. },
  69. onLoad() {
  70. console.log('我的页面')
  71. },
  72. onShow() {
  73. // uni.hideTabBar();
  74. },
  75. methods: {
  76. changeTab(item) {
  77. this.currentTab = item.id
  78. }
  79. }
  80. }
  81. </script>
  82. <style lang="scss" scoped>
  83. .pageBgImg {
  84. .searchBox {
  85. padding: 140rpx 0 24rpx 0;
  86. }
  87. .card {
  88. padding: 0 28rpx;
  89. margin-bottom: 20rpx;
  90. .myClass {
  91. height: 108rpx;
  92. display: flex;
  93. justify-content: space-between;
  94. padding: 0 10rpx;
  95. align-items: center;
  96. .leftTxt {
  97. font-size: 32rpx;
  98. font-weight: 500;
  99. }
  100. .leftBtn {
  101. width: 192rpx;
  102. height: 60rpx;
  103. background: $themC; border-radius: 8rpx;
  104. line-height: 60rpx;
  105. text-align: center;
  106. font-weight: 500;
  107. color: #FFFFFF;
  108. }
  109. }
  110. }
  111. .tabs {
  112. height: 72rpx;
  113. background: #FFFFFF;
  114. border-radius: 16rpx;
  115. display: flex;
  116. line-height: 72rpx;
  117. text-align: center;
  118. color: #ADADAD;
  119. margin: 24rpx 0;
  120. .tab {
  121. flex: 1;
  122. text-align: center;
  123. &.active {
  124. background: rgba(25, 137, 250, 0.1);
  125. border: 2rpx solid #1989FA;
  126. color: $themC;
  127. border-radius: 16rpx;
  128. }
  129. }
  130. }
  131. .screen_row {
  132. display: flex;
  133. margin-bottom: 24rpx;
  134. width: 100%;
  135. justify-content: space-between;
  136. .selectItem {
  137. display: flex;
  138. padding: 0 18rpx;
  139. border: 2rpx solid rgba(25,137,250,0.3);
  140. height: 60rpx;
  141. border-radius: 16rpx;
  142. background-color: #FFFFFF;
  143. line-height: 60rpx;
  144. align-items: center;
  145. width: 28.6%;
  146. .text {
  147. color: $themC;
  148. flex: 1;
  149. }
  150. .downIcon {
  151. width: 24rpx;
  152. }
  153. }
  154. }
  155. .list {
  156. .card {
  157. appointitem-operate {}
  158. }
  159. }
  160. }
  161. </style>