<template>
	<view class="assemble">
		<fui-segmented-control :values="values" type="text" activeColor="#29d3b4" color="#fff" @click="segmented"></fui-segmented-control>
		<view class="search">
			<view :class="{'selected': select_type === 1, 'not-selected': select_type !== 1}" @click="getSelect(1)">全部(320)</view>
			<view :class="{'selected': select_type === 2, 'not-selected': select_type !== 2}" @click="getSelect(2)">待跟进(8)</view>
			<view :class="{'selected': select_type === 3, 'not-selected': select_type !== 3}" @click="getSelect(3)">7天未跟进(15)</view>
			<view :class="{'selected': select_type === 4, 'not-selected': select_type !== 4}" @click="getSelect(4)">30天未成交(12)</view>
		</view>
		<view v-if="segmented_type == 1">
			<view class="card">
				<view style="width: 70%;" @click="clue_info">
					<view style="display: flex;align-items: center;padding: 20rpx;">
						<view><image src="@/static/images/index/myk.png" class="card-image"></image></view>
						<view class="card-text">包子皮</view>
						<view class="card-label">试听</view>
					</view>
					<view class="card-con">
						首联系人：包念念 <span class="card-con-span">妈妈</span>
					</view>
					<view class="card-date">
						<view class="card-con">08-30 14:25  跟进</view>
						<view style="margin-left: 30rpx;">
							<view style="display: flex;align-items: center;">
								<view style="padding: 12rpx;">
									<image src="@/static/images/index/intention1.png" class="drop-image-x"></image>
								</view>
								<view class="title-x">意向：低</view>
							</view>
						</view>
					</view>
				</view>
				<view style="width: 15%;">
					<image src="@/static/images/index/message.png" class="image"></image>
				</view>
				<view style="width: 15%;">
					<image src="@/static/images/index/phone.png" class="image"></image>
				</view>
			</view>
			<view class="card">
				<view style="width: 70%;" @click="clue_info">
					<view style="display: flex;align-items: center;padding: 20rpx;">
						<view><image src="@/static/images/index/myk.png" class="card-image"></image></view>
						<view class="card-text">包子皮</view>
						<view class="card-label">试听</view>
					</view>
					<view class="card-con">
						首联系人：包念念 <span class="card-con-span">妈妈</span>
					</view>
					<view class="card-date">
						<view class="card-con">08-30 14:25  跟进</view>
						<view style="margin-left: 30rpx;">
							<view style="display: flex;align-items: center;">
								<view style="padding: 12rpx;">
									<image src="@/static/images/index/intention3.png" class="drop-image-x"></image>
								</view>
								<view class="title-x">意向：高</view>
							</view>
						</view>
					</view>
				</view>
				<view style="width: 15%;">
					<image src="@/static/images/index/message.png" class="image"></image>
				</view>
				<view style="width: 15%;">
					<image src="@/static/images/index/phone.png" class="image"></image>
				</view>
			</view>
			<view class="card">
				<view style="width: 70%;" @click="clue_info">
					<view style="display: flex;align-items: center;padding: 20rpx;">
						<view><image src="@/static/images/index/myk.png" class="card-image"></image></view>
						<view class="card-text">包子皮</view>
						<view class="card-label">试听</view>
					</view>
					<view class="card-con">
						首联系人：包念念 <span class="card-con-span">妈妈</span>
					</view>
					<view class="card-date">
						<view class="card-con">08-30 14:25  跟进</view>
						<view style="margin-left: 30rpx;">
							<view style="display: flex;align-items: center;">
								<view style="padding: 12rpx;">
									<image src="@/static/images/index/intention2.png" class="drop-image-x"></image>
								</view>
								<view class="title-x">意向：中</view>
							</view>
						</view>
					</view>
				</view>
				<view style="width: 15%;">
					<image src="@/static/images/index/message.png" class="image"></image>
				</view>
				<view style="width: 15%;">
					<image src="@/static/images/index/phone.png" class="image"></image>
				</view>
			</view>
			<view class="card">
				<view style="width: 70%;" @click="clue_info">
					<view style="display: flex;align-items: center;padding: 20rpx;">
						<view><image src="@/static/images/index/myk.png" class="card-image"></image></view>
						<view class="card-text">包子皮</view>
						<view class="card-label">试听</view>
					</view>
					<view class="card-con">
						首联系人：包念念 <span class="card-con-span">妈妈</span>
					</view>
					<view class="card-date">
						<view class="card-con">待跟进</view>
						<view style="margin-left: 30rpx;">
							<view style="display: flex;align-items: center;">
								<view style="padding: 12rpx;">
									<image src="@/static/images/index/intention1.png" class="drop-image-x"></image>
								</view>
								<view class="title-x">意向：低</view>
							</view>
						</view>
					</view>
				</view>
				<view style="width: 15%;">
					<image src="@/static/images/index/message.png" class="image"></image>
				</view>
				<view style="width: 15%;">
					<image src="@/static/images/index/phone.png" class="image"></image>
				</view>
			</view>
			<view class="card">
				<view style="width: 70%;" @click="clue_info">
					<view style="display: flex;align-items: center;padding: 20rpx;">
						<view><image src="@/static/images/index/myk.png" class="card-image"></image></view>
						<view class="card-text">包子皮</view>
						<view class="card-label">试听</view>
					</view>
					<view class="card-con">
						首联系人：包念念 <span class="card-con-span">妈妈</span>
					</view>
					<view class="card-date">
						<view class="card-con">08-30 14:25  跟进</view>
						<view style="margin-left: 30rpx;">
							<view style="display: flex;align-items: center;">
								<view style="padding: 12rpx;">
									<image src="@/static/images/index/intention1.png" class="drop-image-x"></image>
								</view>
								<view class="title-x">意向：低</view>
							</view>
						</view>
					</view>
				</view>
				<view style="width: 15%;">
					<image src="@/static/images/index/message.png" class="image"></image>
				</view>
				<view style="width: 15%;">
					<image src="@/static/images/index/phone.png" class="image"></image>
				</view>
			</view>
		</view>
		<view v-if="segmented_type == 2">
			<view style="color: #999999;padding: 20rpx 30rpx;">
				今日待领（15/30）
			</view>
			<view class="card">
				<view style="width: 70%;" @click="clue_info">
					<view style="display: flex;align-items: center;padding: 20rpx;">
						<view><image src="@/static/images/index/myk.png" class="card-image"></image></view>
						<view class="card-text">包子皮</view>
						<view class="card-label">试听</view>
					</view>
					<view class="card-con">
						首联系人：包念念 <span class="card-con-span">妈妈</span>
					</view>
					<view class="card-date">
						<view class="card-con">08-30 14:25  跟进</view>
						<view style="margin-left: 30rpx;">
							<view style="display: flex;align-items: center;">
								<view style="padding: 12rpx;">
									<image src="@/static/images/index/intention1.png" class="drop-image-x"></image>
								</view>
								<view class="title-x">意向：低</view>
							</view>
						</view>
					</view>
				</view>
				<view style="width: 30%;display: flex;justify-content: center;">
					<view class="neck">
						领
					</view>
				</view>
			</view>
			<view class="card">
				<view style="width: 70%;" @click="clue_info">
					<view style="display: flex;align-items: center;padding: 20rpx;">
						<view><image src="@/static/images/index/myk.png" class="card-image"></image></view>
						<view class="card-text">包子皮</view>
						<view class="card-label">试听</view>
					</view>
					<view class="card-con">
						首联系人：包念念 <span class="card-con-span">妈妈</span>
					</view>
					<view class="card-date">
						<view class="card-con">08-30 14:25  跟进</view>
						<view style="margin-left: 30rpx;">
							<view style="display: flex;align-items: center;">
								<view style="padding: 12rpx;">
									<image src="@/static/images/index/intention1.png" class="drop-image-x"></image>
								</view>
								<view class="title-x">意向：低</view>
							</view>
						</view>
					</view>
				</view>
				<view style="width: 30%;display: flex;justify-content: center;">
					<view class="neck">
						领
					</view>
				</view>
			</view>
			<view class="card">
				<view style="width: 70%;" @click="clue_info">
					<view style="display: flex;align-items: center;padding: 20rpx;">
						<view><image src="@/static/images/index/myk.png" class="card-image"></image></view>
						<view class="card-text">包子皮</view>
						<view class="card-label">试听</view>
					</view>
					<view class="card-con">
						首联系人：包念念 <span class="card-con-span">妈妈</span>
					</view>
					<view class="card-date">
						<view class="card-con">08-30 14:25  跟进</view>
						<view style="margin-left: 30rpx;">
							<view style="display: flex;align-items: center;">
								<view style="padding: 12rpx;">
									<image src="@/static/images/index/intention1.png" class="drop-image-x"></image>
								</view>
								<view class="title-x">意向：低</view>
							</view>
						</view>
					</view>
				</view>
				<view style="width: 30%;display: flex;justify-content: center;">
					<view class="neck">
						领
					</view>
				</view>
			</view>
			<view class="card">
				<view style="width: 70%;" @click="clue_info">
					<view style="display: flex;align-items: center;padding: 20rpx;">
						<view><image src="@/static/images/index/myk.png" class="card-image"></image></view>
						<view class="card-text">包子皮</view>
						<view class="card-label">试听</view>
					</view>
					<view class="card-con">
						首联系人：包念念 <span class="card-con-span">妈妈</span>
					</view>
					<view class="card-date">
						<view class="card-con">08-30 14:25  跟进</view>
						<view style="margin-left: 30rpx;">
							<view style="display: flex;align-items: center;">
								<view style="padding: 12rpx;">
									<image src="@/static/images/index/intention1.png" class="drop-image-x"></image>
								</view>
								<view class="title-x">意向：低</view>
							</view>
						</view>
					</view>
				</view>
				<view style="width: 30%;display: flex;justify-content: center;">
					<view class="neck">
						领
					</view>
				</view>
			</view>
			<view class="card">
				<view style="width: 70%;" @click="clue_info">
					<view style="display: flex;align-items: center;padding: 20rpx;">
						<view><image src="@/static/images/index/myk.png" class="card-image"></image></view>
						<view class="card-text">包子皮</view>
						<view class="card-label">试听</view>
					</view>
					<view class="card-con">
						首联系人：包念念 <span class="card-con-span">妈妈</span>
					</view>
					<view class="card-date">
						<view class="card-con">08-30 14:25  跟进</view>
						<view style="margin-left: 30rpx;">
							<view style="display: flex;align-items: center;">
								<view style="padding: 12rpx;">
									<image src="@/static/images/index/intention1.png" class="drop-image-x"></image>
								</view>
								<view class="title-x">意向：低</view>
							</view>
						</view>
					</view>
				</view>
				<view style="width: 30%;display: flex;justify-content: center;">
					<view class="neck">
						领
					</view>
				</view>
			</view>
			<view class="card">
				<view style="width: 70%;" @click="clue_info">
					<view style="display: flex;align-items: center;padding: 20rpx;">
						<view><image src="@/static/images/index/myk.png" class="card-image"></image></view>
						<view class="card-text">包子皮</view>
						<view class="card-label">试听</view>
					</view>
					<view class="card-con">
						首联系人：包念念 <span class="card-con-span">妈妈</span>
					</view>
					<view class="card-date">
						<view class="card-con">08-30 14:25  跟进</view>
						<view style="margin-left: 30rpx;">
							<view style="display: flex;align-items: center;">
								<view style="padding: 12rpx;">
									<image src="@/static/images/index/intention1.png" class="drop-image-x"></image>
								</view>
								<view class="title-x">意向：低</view>
							</view>
						</view>
					</view>
				</view>
				<view style="width: 30%;display: flex;justify-content: center;">
					<view class="neck">
						领
					</view>
				</view>
			</view>
		</view>
		<view style="height: 170rpx;"></view>
		<AQTabber />
	</view>
</template>

<script>
	import AQTabber from "@/components/AQ/AQTabber.vue"
	export default {
		components: {
			AQTabber,
		},
		data() {
			return {
				values: [{
					id: 1,
					name: '我的客户'
				}, {
					id: 2,
					name: '区域公海'
				}],
				select_type: 1,
				segmented_type: 1,
			}
		},
		methods: {
			getSelect(type){
				this.select_type = type
			},
			segmented(index){
				this.segmented_type = index.id
			},
			clue_info(){
				uni.navigateTo({
					url: '/pages/market/clue/clue_info'
				})
			},
		}
	}
</script>

<style>
	.assemble{
		width: 100%;
		height: 100vh;
		background-color: #292929;
		overflow: auto;
	}
	.search{
		width: 92%;
		margin: auto;
		display: flex;
		margin-top: 20rpx;
	}
	.selected{
		background: #294e48;
		border-radius: 16rpx;
		padding: 12rpx 8rpx;
		text-align: center;
		color: #29d3b4;
		margin-left: 5rpx;
	}
	.not-selected{
		margin-left: 5rpx;
		background: #ffffff;
		border: 4rpx #959595 solid;
		border-radius: 16rpx;
		padding: 12rpx 8rpx;
		text-align: center;
	}
	.card{
		width: 92%;
		margin: 20rpx auto;
		background: #434544;
		border-radius: 16rpx;
		display: flex;
		align-items: center;
	}
	.card-image{
		width: 60rpx;
		height: 60rpx;
	}
	.card-text{
		font-size: 46rpx;
		padding-left: 16rpx;
		color: #fff;
	}
	.card-label{
		margin-left: 30rpx;
		background: #76575a;
		width: 130rpx;
		padding: 8rpx 20rpx;
		color: #c9595a;
		text-align: center;
		border-radius: 0 50rpx 50rpx 40rpx;
	}
	.card-con{
		font-size: 30rpx;
		padding: 20rpx 10rpx 20rpx 16rpx;
		color: #fff;
	}
	.card-con-span{
		font-size: 24rpx;
		color: #a47332;
		padding-left: 12rpx;
	}
	.drop-image-x {
		width: 20rpx;
		height: 20rpx;
	}
	.title-x {
		font-size: 28rpx;
		color: #fff;
		padding-left: 10rpx;
	}
	.card-date{
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.image{
		width: 70rpx;
		height: 70rpx;
	}
	.neck{
		width: 60rpx;
		height: 60rpx;
		border-radius: 50%;
		background: #f59a23;
		color: #fff;
		line-height: 60rpx;
		text-align: center;
	}
</style>
