<template>
	<!-- 病虫害百科详情 -->
	<view class="page-panel pest-panel">
		<!-- 图片 -->
		<image :src="pestInfo.img_urls?pestInfo.img_urls:'http://106.119.196.18:10004/static/img/noimage.689b20a.png'" class="pest-cover" mode="widthFix"></image>
		<!-- 百科标题 -->
		<view class="pest-title">{{pestInfo.name}}</view>
		<view class="pest-paragraph">{{pestInfo.prevention}}</view>
		<!-- 百科内容 -->
		<!-- <view class="pest-subtitle">别称</view>
		<view class="pest-paragraph">麦穗枯、烂麦头、红麦头</view>
		<view class="pest-subtitle">病原体</view>
		<view class="pest-paragraph">真菌、禾谷镰孢、燕麦镰孢等</view>
		<view class="pest-subtitle">分布</view>
		<view class="pest-paragraph">在全世界普遍发生，主要分布与潮湿和半潮湿区域</view>
		<view class="pest-subtitle">病原体特征</view>
		<view class="pest-paragraph">小麦赤霉病由多种镰刀菌引起。如禾谷镰孢（Fusarium graminearum schw.）、燕麦镰孢（Fusarium avenaceum (Fr.)
			Sacc.）、串珠镰孢（Fusarium moniliforme sheld.）、黄色镰孢（Fusarium culmorum (W. G. Smith) Sacc）和税顶镰孢（Fusarium acuminatum
			(ElL et Ev) Wr）等也能引起小麦赤霉病。</view>
		<view class="pest-subtitle">综合症状</view>
		<view class="pest-paragraph">麦生长的各个阶段都能受害，苗期侵染引小麦赤霉病的发生流行主要与小麦生育期、气候条件、菌源等因素引起苗腐，中后期侵染引起秆腐和穗腐，以穗腐危害性最大。</view> -->

	</view>
</template>

<script>
	export default {
		data() {
			return {
				pestInfo:{},
			};
		},
		onLoad(options) {
			this.pestInfo=JSON.parse(options.params);
		}
	}
</script>

<style lang="scss">
	// 病虫害百科面板
	.pest-panel {
		padding: 24rpx;
	}

	.pest-cover {
		display: block;
		width: 100%;
		margin-bottom: 48rpx;
		border-radius: 4rpx;
	}

	.pest-title {
		margin-bottom: 10rpx;
		font-size: 32rpx;
		color: #333;
		line-height: 45rpx;
	}

	.pest-subtitle {
		position: relative;
		padding-left: 36rpx;
		margin-bottom: 12rpx;
		font-size: 32rpx;
		color: #666666;
		line-height: 45rpx;

		&:before {
			content: '';
			position: absolute;
			top: 5rpx;
			left: 10rpx;
			display: block;
			width: 0;
			
			border-color:transparent transparent transparent #317AFD;
			border-width: 18rpx;
			border-style: solid;
			
			transform: scaleY(0.6);
		}
	}

	.pest-paragraph {
		word-break: break-word;
		margin-left: 36rpx;
		margin-bottom: 24rpx;
		font-size: 28rpx;
		font-weight: normal;
		color: #999999;
		line-height: 40rpx;
	}
</style>
