<template>
	<view>
		<view class="search">
			<view class="box">
				<view class="icon">
					<uni-icons type="search" size="16" color="#BBBBBB"></uni-icons>
				</view>
				<view class="text">
					<input type="text" v-model="search_text" value="" placeholder="搜索" confirm-type="search"
						placeholder-style="font-size: 30rpx;color: #BBBBBB;" @input="get_list()" />
				</view>
			</view>
		</view>

		<view class="content">
			<view class="title">
				<view class="text">搜索结果：</view>
			</view>

			<view class="list">
				<view class="item" v-for="(item,index) in list" :key="index">
					<view class="left">
						<view class="text">{{item.name}}</view>
					</view>
					<view class="right">
						<uni-icons type="compose"></uni-icons>
					</view>
				</view>

				<view v-if="list.length == 0" style="font-size: 32rpx;text-align: center;line-height: 400rpx;">暂无搜索结果
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				mine_code: "",
				search_text: "",
				
				list: [

				],

			};
		},
		onLoad() {
			
		},
		methods: {
			get_list() {
				this.list = [
					{
						name:"工单名称1",
					},
					{
						name:"工单名称2",
					},
					{
						name:"工单名称3"
					}
				]
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F3F8F7;
	}

	.search {
		margin-bottom: 20rpx;
		background-color: #FFFFFF;
		box-sizing: border-box;
		padding: 25rpx 30rpx;

		.box {
			height: 80rpx;
			background-color: #F4F4F4;
			border-radius: 50rpx;

			display: flex;
			align-items: center;

			box-sizing: border-box;
			padding: 0 25rpx;

			.icon {
				margin-right: 10rpx;
			}

			.text {
				font-size: 30rpx;
				color: #BBBBBB;

			}
		}
	}

	.content {
		background-color: #FFFFFF;

		.title {
			height: 110rpx;
			display: flex;
			align-items: center;

			box-sizing: border-box;
			padding: 0 36rpx;
			border-bottom: 1rpx solid #F3F8F7;

			.text {
				margin-left: 20rpx;
				font-size: 36rpx;
				font-weight: 700;
			}
		}

		.list {
			box-sizing: border-box;
			padding: 0 20rpx;

			.item {
				height: 110rpx;

				display: flex;
				justify-content: space-between;
				align-items: center;

				margin-left: 58rpx;
				border-bottom: 1rpx solid #F3F8F7;
				
				box-sizing: border-box;
				padding-right: 20rpx;

				.left {
					display: flex;
					.text {
						margin-left: 18rpx;
						font-size: 30rpx;

					}
				}

				.right {
					
				}
			}

		}

	}
</style>
