<template>
	<view class="szItem_countCard3" @click="toPage">
		<div class="szItem_countCard3_top">
			<div>{{record.name}}</div>
			<div :class="{ 'red-text': record.status==='0' }">{{record.tm}}</div>
		</div>
		<div class="szItem_countCard3_content">
			<div class="szItem_countCard3_content_item" style="width: 20%">
				<div class="szItem_countCard3_content_item_top" style="background: rgba(189, 238, 154, 1);">pH值</div>
				<div class="szItem_countCard3_content_item_content" style="border-color: rgba(189, 238, 154, 1);">{{record.ph}}</div>
			</div>
			<div class="szItem_countCard3_content_item" style="width: 25%">
				<div class="szItem_countCard3_content_item_top" style="background: rgba(189, 238, 154, 1);">总磷(mg/L)</div>
				<div class="szItem_countCard3_content_item_content" style="border-color: rgba(189, 238, 154, 1);">{{record.p}}</div>
			</div>
			<div class="szItem_countCard3_content_item" style="width: 25%">
				<div class="szItem_countCard3_content_item_top" style="background: rgba(154, 212, 162, 1);">CODcr(mg/L)</div>
				<div class="szItem_countCard3_content_item_content" style="border-color: rgba(154, 212, 162, 1);">{{record.cod}}</div>
			</div>
			<div class="szItem_countCard3_content_item" style="width: 25%">
				<div class="szItem_countCard3_content_item_top" style="background: rgba(167, 219, 251, 1);">氨氮(mg/L)</div>
				<div class="szItem_countCard3_content_item_content" style="border-color: rgba(167, 219, 251, 1);">{{record.ad}}</div>
			</div>
		</div>
	</view>
</template>

<script>
	
		
	export default {
		props: {
		  record: Object,
		},
		data() {
			return {
			}
		},
		mounted() {
		},
		methods: {
			toPage() {
				uni.navigateTo({
				    url: `/pages/szPage/index?id=${this.record.mn}&name=${this.record.name}`
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
.szItem_countCard3{
	width: calc( 100% - 32px );
	margin: 5px 5px;
	padding: 10px;
	background: #ffffff;
	border-radius: 8px;
	border: 1px solid #eee;
}
.szItem_countCard3_top{
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #595959;
	padding-bottom: 5px;
	border-bottom: 1px solid #eee;
}
.szItem_countCard3_content{
	margin-top: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.szItem_countCard3_content_item{
	font-size: 12px;
	color: #333333;
}
.szItem_countCard3_content_item_top{
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(189, 238, 154, 1);
	border-radius: 5px 5px 0 0;
}
.szItem_countCard3_content_item_content{
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid;
}
.red-text{
	color: red;
}
</style>
