<template>
	<view>
		<view class="top">
			<uni-search-bar class="search" radius="5" placeholder="请输入客户名称" clearButton="auto" cancelButton="none" @confirm="search" />
			<image src="@/static/filter.png" mode=""></image>
		</view>
		
		<uni-card :is-shadow="false" :border="false" is-full>
			<ul class="list">
				<li @click="toDetail">
					<view class="name">中山大学</view>	
					<view class="info">
						<view class="left">
							<view class="text">联系人：海文</view>
							<view class="text">账号：海文</view>
							<view class="text">产品到期时间：海文</view>
							<view class="text">商务经理：海文</view>
						</view>
						<view class="type">
							试用客户
						</view>
					</view>
				</li>
			</ul>
		</uni-card>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			search(res) {
				uni.showToast({
					title: '搜索：' + res.value,
					icon: 'none'
				})
			},
			toDetail() {
				console.log(33)
				uni.navigateTo({
					url: '/pages/clientDetail/clientDetail'
				})
			}
		}
	}
</script>

<style lang="scss">
.top {
	display: flex;
	align-items: center;
	padding: 5px 15px 5px 5px;
	margin-bottom: 10px;
	background-color: #fff;
	.search {
		flex: 1;
	}
	image {
		width: 18px;
		height: 18px;
	}
}
.list {
	.name {
		font-size: 16px;
		color: #333;
	}
	.info {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-top: 10px;
	}
	.text {
		font-size: 13px;
		color: #ccc;
	}
	.type {
		font-size: 14px;
		color: $uni-primary;
	}
}
</style>
