<template>
	<view>
		<!-- <uni-nav-bar @clickRight="clickRight" left-icon="back" left-text="返回"  >
			<view slot="default">
				<input type="text" confirm-type="search" value="对对对" />
			</view>
		</uni-nav-bar> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				device_type_id:''
			}
		},
		onLoad(option){
			this.device_type_id=option.device_type_id
		},
		async onNavigationBarSearchInputConfirmed(e) {
		  //在这里执行搜索操作
		  let pages = getCurrentPages()
		  let nowPage = pages[ pages.length - 1];  //当前页页面实例
		  let prevPage = pages[ pages.length - 2 ];  //上一页页面实例
		  // prevPage.$vm.searchVal = 1211
		  prevPage.$vm.device_id=e.text
		  prevPage.$vm.searchEquip()
		  uni.navigateBack({
		      delta: 1
		  });
		  // let _this=this
		  // const res=await this.$myRequest({
		  // 	url:'/api/api_gateway?method=forecast.worm_lamp.lamp_list',
		  // 	data:{
		  // 		device_type_id:this.device_type_id,
		  // 		device_id:e.text,
		  // 	}
		  // })
		},
		methods: {
			
		},
	}
</script>

<style>

</style>
