<template>
	<view>
		<view class="form-area">
			<view class="upper-ipt">
				<uni-easyinput suffixIcon="search" v-model="codeVal" placeholder="请输入编码" @iconClick="searchCode"></uni-easyinput>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				codeVal: ''
			}
		},
		methods: {
			searchCode () {
				let that = this
				console.log(that.codeVal);
			}
		}
	}
</script>

<style lang="scss">
	.form-area{
		width: 90%;
		margin: 40rpx auto;
		.upper-ipt{
			width: 100%;
			display: flex;
			align-items: center;
		}
	}
</style>
