<template>
	<view class="page">
		<view style="padding: 20rpx 5rpx 10rpx;">
			<view class="flex justify-between padding-right-10">
				<view class="bg-blue" style="width: 65%;">
					<u-cell-group :border="false">
						<u-cell-item :icon-style="iconStyle"  :arrow="false"  icon="account-fill"  title="姓名: " :value="detailData.personName || '未知'"></u-cell-item>
						<u-cell-item :icon-style="iconStyle"  :arrow="false"  icon="phone-fill"  title="手机号: " :value="detailData.phone || '未知'"></u-cell-item>
						<u-cell-item :icon-style="iconStyle"  :arrow="false"  icon="info-circle-fill"  title="体温: " :value="detailData.temperature+' ℃'"></u-cell-item>
					</u-cell-group>
				</view>
				<image @click="previewImg(detailData.faceUrl)" :src="detailData.faceUrl" mode="scaleToFill" style="width: 240rpx;height: 240rpx;"></image>
			</view>
			<u-cell-group :border="false">
				<u-cell-item :value-style="detailData.isException==0?titleStyle0:titleStyle1" :icon-style="iconStyle"  :arrow="false"  icon="question-circle-fill"  title="是否异常:" :value="detailData.isException==0?'否':'异常'"></u-cell-item>
				<u-cell-item :icon-style="iconStyle"  :arrow="false"  icon="bookmark-fill"  title="设备名称:" :value="detailData.cameraName"></u-cell-item>
				<u-cell-item :icon-style="iconStyle"  :arrow="false"  icon="clock-fill"  title="测温时间:" :value="detailData.recogTime"></u-cell-item>
				<u-cell-item :icon-style="iconStyle"  :arrow="false"  icon="map-fill"  title="安装位置:" :value="detailData.address || '未知'"></u-cell-item>
			</u-cell-group>
		</view>
	</view>
</template>

<script>
export default {
	name: '',
	data() {
		return {
			detailData:{},
			iconStyle:{
				color:"#5064eb"
			},
			titleStyle0:{
				color:"#005500"
			},
			titleStyle1:{
				color:"#aa0000"
			},
		};
	},
	onLoad() {
		
	},
	onShow() {
		this.detailData=getApp().globalData.staffTemperature
	},
	methods:{
		previewImg(img){
			let imgs=[]
			imgs.push(img)
			uni.previewImage({
				urls:imgs
			})
		}
	}
};
</script>

<style lang="scss" scoped>
	.page{
		background-color: #FFFFFF;
		min-height: 100vh;
	}
</style>