学员端小程序
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.

188 lines
4.1 KiB

1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="main pageBg">
  3. <view class="swiper-box">
  4. <view class="navPoz">
  5. <topNavbar title=" "></topNavbar>
  6. </view>
  7. <u-swiper :list="list1" :height="261"></u-swiper>
  8. <view class="radian">
  9. <image src="@/static/images/bigImg/radian.png" mode=""></image>
  10. </view>
  11. </view>
  12. <view class="pad traTop">
  13. <!-- 驾校信息 -->
  14. <view class="card ">
  15. <view class="flex">
  16. <view class="schoolLogo">
  17. <image src="@/static/images/logo.png" mode=""></image>
  18. </view>
  19. <view class="textCon">
  20. <view class="name">江西海正驾校</view>
  21. <view class="starBox">
  22. <u-rate active-color="#1989FA" inactive-color="#1989FA" gutter="1" :size="16" :value="4" disabled></u-rate>
  23. <view class="num">4.9</view>
  24. </view>
  25. <view class="evaluate" @click="$goPage('/pages/indexEntry/findShcool/shcoolComment/shcoolComment')">
  26. <view class="txt">50条评价</view>
  27. <u-icon name="arrow-right" color="#363A44" size="14"></u-icon>
  28. </view>
  29. </view>
  30. <view class="pozPhone">
  31. <image src="@/static/images/index/telephone.png" mode=""></image>
  32. </view>
  33. </view>
  34. </view>
  35. <!-- 驾校位置 -->
  36. <view class="shoolPoz">
  37. <view class="h1">驾校位置</view>
  38. <pozCard></pozCard>
  39. </view>
  40. <!-- 驾校服务 -->
  41. <view class="severCon">
  42. <view class="h1">驾校服务</view>
  43. <view class="navBox">
  44. <view class="nav" v-for="(item,index) in navList" :key="index" :class="{active: currentNav==item.id}" @click="changeNav(item)">{{ item.text }}</view>
  45. </view>
  46. </view>
  47. <tab1 v-show="currentNav==1"></tab1>
  48. <tab2 v-show="currentNav==2"></tab2>
  49. <tab3 v-show="currentNav==3"></tab3>
  50. <tab4 v-show="currentNav==4"></tab4>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. import tab1 from './comp/tab1.vue'
  56. import tab2 from './comp/tab2.vue'
  57. import tab3 from './comp/tab3.vue'
  58. import tab4 from './comp/tab4.vue'
  59. export default {
  60. components: { tab1, tab2, tab3, tab4},
  61. data() {
  62. return {
  63. list1: [
  64. 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
  65. 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
  66. 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
  67. ],
  68. navList: [
  69. {text: '班型', id: 1},
  70. {text: '场地', id: 2},
  71. {text: '教练', id: 3},
  72. {text: '教练车', id: 4},
  73. ],
  74. currentNav: 1,
  75. }
  76. },
  77. methods: {
  78. changeNav(item) {
  79. this.currentNav = item.id
  80. }
  81. }
  82. }
  83. </script>
  84. <style lang="scss" scoped>
  85. .navPoz {
  86. position: absolute;
  87. top: 0;
  88. z-index: 9;
  89. left: 0;
  90. }
  91. .main {
  92. width: 100%;
  93. min-height: 100vh;
  94. .swiper-box {
  95. position: relative;
  96. .radian {
  97. position: absolute;
  98. width: 100%;
  99. height: 84rpx;
  100. bottom: 0;
  101. left: 0;
  102. z-index: 9;
  103. }
  104. }
  105. .traTop {
  106. position: relative;
  107. top: -120rpx;
  108. z-index: 99;
  109. }
  110. .card {
  111. padding: 24rpx;
  112. .flex {
  113. position: relative;
  114. .schoolLogo {
  115. width: 204rpx;
  116. height: 140rpx;
  117. }
  118. .textCon {
  119. flex: 1;
  120. padding: 0 0 0 36rpx;
  121. .name {
  122. font-size: 32rpx;
  123. font-weight: 600;
  124. }
  125. .starBox {
  126. padding: 12rpx 0 6rpx 0;
  127. }
  128. .evaluate {
  129. display: flex;
  130. align-items: center;
  131. margin-top: 30rpx;
  132. .txt {
  133. font-size: 24rpx;
  134. color: #363A44;
  135. margin-right: 12rpx;
  136. }
  137. }
  138. }
  139. .pozPhone {
  140. position: absolute;
  141. top: 50%;
  142. right: 40rpx;
  143. width: 72rpx;
  144. height: 72rpx;
  145. transform: translateY(-50%);
  146. }
  147. }
  148. }
  149. .h1 {
  150. line-height: 100rpx;
  151. }
  152. .navBox {
  153. display: flex;
  154. justify-content: space-between;
  155. padding: 10rpx 32rpx 20rpx 32rpx;
  156. .nav {
  157. font-size: 28rpx;
  158. color: #363A44;
  159. &.active {
  160. color: $themC;
  161. font-weight: 600;
  162. font-size: 32rpx;
  163. position: relative;
  164. &::before {
  165. content: '';
  166. position: absolute;
  167. bottom: -18rpx;
  168. left: 50%;
  169. transform: translateX(-50%);
  170. width: 48rpx;
  171. height: 4rpx;
  172. background: #1989FA;
  173. border-radius: 2rpx 2rpx 0px 0px;
  174. }
  175. }
  176. }
  177. }
  178. }
  179. </style>