<template>
	<view class="Intelligent">
			<view class="Intelligent-box" @click="Intelligentbox">
				<img src="/static/shenfenz.png" alt="" />
				<view class="">
					身份证识别
				</view>
			</view>
			<view class="Intelligent-box1" @click="Intelligentbox1">
				<img src="/static/yuyan.png" alt="" />
				<view class="">
					填写病例
				</view>
			</view>
	</view>
</template>

<script>
	 import {request} from '../../request/request.js'
	export default {
		mounted() {
			this.getPatient()
		},
		data(){
			return {
				patientForm:{
					
				}
			}
		},
		methods:{
			
			async	getPatient	(){
				const res = await request({url:'/patient'})	
				console.log(res,'res');
				this.patientForm = res
			},
			//跳转相机扫描
			Intelligentbox(){
				uni.navigateTo({
					url:'/pages/cardscanning/index'
				})
			},
			Intelligentbox1(){
				const userInfo = {
					id: this.patientForm.id
				}
				uni.navigateTo({
					url:`/pages/lnterpolation/index?userInfo=${JSON.stringify(userInfo)}`
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.Intelligent{
		padding: 32rpx;
		.Intelligent-box,.Intelligent-box1{
			width: 690rpx;
			height: 185rpx;
			background: #FFFFFF;
			box-shadow: 4rpx 0rpx 20rpx 0rpx #ADB9BE;
			border-radius: 12rpx 12rpx 12rpx 12rpx;
			opacity: 0.9;
			margin-bottom: 40rpx;
			display: flex;
			align-items: center;
			img{
				width: 100rpx;
				height: 100rpx;
				margin:0  30rpx;
			}
			view:{
				font-family: Adobe Heiti Std;
				font-size: 32rpx;
				color: #111111;
				line-height: 16rpx;
				text-align: left;
				font-style: normal;
				text-transform: none;
			};
		}
	}
</style>