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

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