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

69 lines
1.3 KiB

<template>
<view class="pageBgImg">
<topNavbar title="考场信息"></topNavbar>
<view class="pad">
<view class="searchBox">
<searchRow placeholder="搜索考场名称"></searchRow>
</view>
<view class="tabs">
<view class="tab" v-for="(item,index) in tabData" :key="index" :class="{active: index==1}">{{ item.text }}</view>
</view>
<view class="list">
<view class="card">
<examinItem/>
</view>
</view>
</view>
</view>
</template>
<script>
import examinItem from './comp/examinItem'
export default {
components: { examinItem },
data() {
return {
tabData: [
{text: '全部', id: 1},
{text: '理论', id: 2},
{text: '科目二', id: 3},
{text: '科目三', id: 4},
]
}
}
}
</script>
<style lang="scss" scoped>
.card {
padding: 32rpx 36rpx 26rpx 24rpx;
}
.searchBox {
padding: 20rpx 0;
}
.tabs {
display: flex;
justify-content: space-between;
height: 110rpx;
align-items: center;
.tab {
font-size: 28rpx;
color: #fff;
line-height: 110rpx;
&.active {
position: relative;
&::before {
content: '';
width: 56rpx;
height: 6rpx;
background: #FFFFFF;
border-radius: 3rpx;
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 20rpx;
}
}
}
}
</style>