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.
|
|
<template> <view class="pageBgImg"> <topNavbar title="找驾校"></topNavbar> <view class="pad"> <view class="searchCon"> <searchRow placeholder="搜索驾校、教练…"></searchRow> </view> <view class="navBox"> <view class="tab" v-for="(item,index) in tabData" :key="index" :class="{active: index==0}"> {{ item.text }}</view> <view class="screen" @click="$goPage('/pages/indexEntry/findShcool/screen/screen')"> <view class="txt">筛选</view> <view class="screenIcon"> <image src="../../../static/images/index/ic_shaixuan.png" mode=""></image> </view> </view> </view>
<view class="ul"> <view class="li" v-for="(item,index) in 10" :key="index" @click="goPage"> <view class="img"> <image src="../../../static/images/logo.png" mode=""></image> </view> <view class="textCon"> <view class="name">江西海正驾校</view> <view class="starBox"> <u-rate active-color="#1989FA" inactive-color="#1989FA" gutter="1" :size="16" :value="4" disabled></u-rate> <view class="num">4.9分</view> </view> <view class="credit">行业信用AA</view> <view class="adr">距您1000.99公里</view> </view> <view class="pozPhone"> <image src="@/static/images/index/telephone.png" mode=""></image> </view> </view> </view> </view> </view> </template>
<script> export default { data() { return { tabData: [{ text: '全部', id: 0 }, { text: '场地优先', id: 0 }, { text: '距离优先', id: 0 }, { text: '好评优先', id: 0 }, ] } }, methods: { goPage() { console.log(this.$goPage) this.$goPage('/pages/indexEntry/findShcool/shcoolDetail/shcoolDetail') } } } </script>
<style lang="scss" scoped> .pageBgImg { width: 100%; min-height: 100vh; .searchCon { padding: 24rpx 0; } .navBox { display: flex; justify-content: space-between; padding-bottom: 48rpx; .tab { display: flex; font-size: 28rpx; color: #fff;
&.active { position: relative;
&::before { content: ''; position: absolute; bottom: -14rpx; left: 50%; transform: translateX(-50%); width: 50rpx; height: 4rpx; background-color: #fff; border-radius: 0 0 2rpx 2rpx; } }
}
.screen { width: 150rpx; display: flex; justify-content: center; align-items: center; position: relative; &::before { content: ''; position: absolute; left: 0; top: 10rpx; width: 1px; background: #fff; height: 26rpx; } .txt { font-size: 28rpx; color: #fff; margin-right: 10rpx; }
.screenIcon { width: 32rpx; height: 32rpx; } } }
.ul { width: 100%; .li { height: 208rpx; background: #FFFFFF; border-radius: 16rpx; padding: 24rpx; position: relative; display: flex; margin-bottom: 20rpx; .img { width: 204rpx; height: 140rpx; background: #FFFFFF; }
.textCon { flex: 1; font-size: 24rpx; padding: 0 0 0 36rpx; .name { font-size: 32rpx; color: #363A44; font-weight: 600; }
.starBox { display: flex; padding: 6rpx 0 6rpx 0; .num { color: $themC; } }
.credit { color: #1989FA; margin-bottom: 4rpx; }
.adr { color: #363A44; } }
.pozPhone { position: absolute; top: 50%; right: 48rpx; width: 72rpx; height: 72rpx; transform: translateY(-50%); } } } } </style>
|