<template>
	<view class="page-prebook-list">
		<view class="nav">
			<view :class="'item'+(userSelectIndex==0?' active':'')">全部</view>
			<view class="item">帅哥</view>
			<view class="item">马家辉</view>
			<view class="item">刘老板</view>
			<view class="item">张小宇</view>
			<view class="item">刘大琪</view>
			<view class="item">帅哥</view>
			<view class="item">马家辉</view>
			<view class="item">刘老板</view>
			<view class="item">张小宇</view>
			<view class="item">刘大琪</view>
			<view class="item">帅哥</view>
			<view class="item">马家辉</view>
			<view class="item">刘老板</view>
			<view class="item">张小宇</view>
			<view class="item">刘大琪</view>
		</view>
		<pre-book-list class="preg-books"></pre-book-list>
	</view>
</template>

<script>
	import preBookList from '@/components/preBookList.vue'
	export default {
		data() {
			return {
				userSelectIndex:0
			}
		},
		components:{
			preBookList
		},
		onShow(){
			this.getBookData()
		},
		methods: {
			getBookData() {
				var param = new Object()
				param.doctor_id = getApp().globalData.doctorId
				this.$http.req('client/user/appoint/', param, 'POST', true).then(data=>{
					if(data == -1) return
					
				});
			},
			pageInit() {

			}
		}
	}
</script>

<style lang="scss" scoped>
	.page-prebook-list{
		width: 100%;
		height: 100vh;
		box-sizing: border-box;
		overflow-y: auto;
		background: #F8F8F8;
		.nav{
			width: 100%;
			display: flex;
			height: 132rpx;
			display: flex;
			box-sizing: border-box;
			overflow-x: auto;
			align-items: center;
			padding: 0 18rpx;
			column-gap: 20rpx;
			.item{
				width: auto;
				flex-shrink: 0;
				padding: 0 20rpx;
				height: 60rpx;
				line-height: 60rpx;
				background: rgba(201,203,209,0.25);
				border-radius: 30rpx;
				box-sizing: border-box;
				font-size: 24rpx;
				color: #616266;
				&.active{
					border: 1rpx solid #5BD07A;
					color: #58CA7F;
				}
			}
		}
		.preg-books{
			width: 714rpx;
			margin: 0 auto;
		}
	}
</style>
