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.
153 lines
3.1 KiB
153 lines
3.1 KiB
<template>
|
|
<view class="main">
|
|
<view class="blueBg">
|
|
<topNavbar title="预约记录"></topNavbar>
|
|
<view class="pad">
|
|
<view class="searchBox">
|
|
<searchRow placeholder="搜索学员姓名、学员手机号、考场名称"></searchRow>
|
|
</view>
|
|
<view class="tabs">
|
|
<view class="tab" @click="changeTab(1)" :class="{active: currentTab==1}">待核销</view>
|
|
<view class="tab" @click="changeTab(2)" :class="{active: currentTab==2}">已核销</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="navs">
|
|
<view class="nav" v-for="(item,index) in tabsList" :key="index" :class="{active: currentNav==item.id}" @click="changeNav(item)">{{ item.text }}</view>
|
|
</view>
|
|
<view class="pad">
|
|
<view class="total_row">
|
|
<view class="total">12条记录</view>
|
|
<view class="screen">
|
|
<view class="text">筛选</view>
|
|
<view class="icon">
|
|
<image src="@/static/images/coach/screen.png" mode=""></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="card" @click="goPage">
|
|
<appointItem />
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
currentTab: 1,
|
|
currentNav: 1,
|
|
tabsList: [
|
|
{id: 1, text: '全部'},
|
|
{id: 2, text: '科目二'},
|
|
{id: 3, text: '科目三'},
|
|
]
|
|
}
|
|
},
|
|
methods: {
|
|
changeTab(num) {
|
|
console.log(num)
|
|
this.currentTab = num
|
|
},
|
|
changeNav(item) {
|
|
this.currentNav = item.id
|
|
},
|
|
goPage() {
|
|
console.log('------------')
|
|
this.$goPage('/pages/recordEntry/examine/examineRecord/detail/detail')
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.main {
|
|
width: 100%;
|
|
min-height: 100vh;
|
|
background: #f3f3f3;
|
|
.blueBg {
|
|
background: #1989FA;
|
|
padding-bottom: 20rpx;
|
|
}
|
|
.total_row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
height: 82rpx;
|
|
align-items: center;
|
|
.total {
|
|
font-size: 24rpx;
|
|
color: #686B73;
|
|
text-align: right;
|
|
line-height: 82rpx;
|
|
}
|
|
.screen {
|
|
display: flex;align-items: center;
|
|
color: $themC;
|
|
margin-left: 8rpx;
|
|
font-size: 28rpx;
|
|
.icon {
|
|
width: 24rpx;
|
|
height: 24rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
.card {
|
|
padding: 0 20rpx;
|
|
}
|
|
}
|
|
.searchBox {
|
|
padding: 24rpx 0 20rpx 0;
|
|
}
|
|
.tabs {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 72rpx;
|
|
background: #FFFFFF;
|
|
border-radius: 16rpx;
|
|
.tab {
|
|
flex: 1;
|
|
text-align: center;
|
|
line-height: 72rpx;
|
|
color: #ADADAD;
|
|
font-size: 28rpx;
|
|
&.active {
|
|
background: rgba(25,137,250,0.1);
|
|
border-radius: 16rpx;
|
|
border: 2rpx solid #1989FA;
|
|
color: $themC;
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
}
|
|
.navs {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
color: #fff;
|
|
font-size: 28rpx;
|
|
padding: 0rpx 108rpx 0rpx 130rpx;
|
|
color: $themC;
|
|
background: #fff;
|
|
height: 100rpx;
|
|
.nav {
|
|
line-height: 100rpx;
|
|
&.active {
|
|
font-weight: 500;
|
|
position: relative;
|
|
&::before {
|
|
position: absolute;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
bottom: 20rpx;
|
|
content: '';
|
|
width: 56rpx;
|
|
height: 6rpx;
|
|
background: $themC;
|
|
border-radius: 3rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|