details.vue 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <template>
  2. <!-- 病虫害百科详情 -->
  3. <view class="page-panel pest-panel">
  4. <!-- 图片 -->
  5. <image :src="pestInfo.img_urls" class="pest-cover" mode="widthFix"></image>
  6. <!-- 百科标题 -->
  7. <view class="pest-title">{{pestInfo.name}}</view>
  8. <view class="pest-paragraph">{{pestInfo.prevention}}</view>
  9. <!-- 百科内容 -->
  10. <!-- <view class="pest-subtitle">别称</view>
  11. <view class="pest-paragraph">麦穗枯、烂麦头、红麦头</view>
  12. <view class="pest-subtitle">病原体</view>
  13. <view class="pest-paragraph">真菌、禾谷镰孢、燕麦镰孢等</view>
  14. <view class="pest-subtitle">分布</view>
  15. <view class="pest-paragraph">在全世界普遍发生,主要分布与潮湿和半潮湿区域</view>
  16. <view class="pest-subtitle">病原体特征</view>
  17. <view class="pest-paragraph">小麦赤霉病由多种镰刀菌引起。如禾谷镰孢(Fusarium graminearum schw.)、燕麦镰孢(Fusarium avenaceum (Fr.)
  18. Sacc.)、串珠镰孢(Fusarium moniliforme sheld.)、黄色镰孢(Fusarium culmorum (W. G. Smith) Sacc)和税顶镰孢(Fusarium acuminatum
  19. (ElL et Ev) Wr)等也能引起小麦赤霉病。</view>
  20. <view class="pest-subtitle">综合症状</view>
  21. <view class="pest-paragraph">麦生长的各个阶段都能受害,苗期侵染引小麦赤霉病的发生流行主要与小麦生育期、气候条件、菌源等因素引起苗腐,中后期侵染引起秆腐和穗腐,以穗腐危害性最大。</view> -->
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. pestInfo:{},
  29. };
  30. },
  31. onLoad(options) {
  32. this.pestInfo=JSON.parse(options.params);
  33. }
  34. }
  35. </script>
  36. <style lang="scss">
  37. // 病虫害百科面板
  38. .pest-panel {
  39. padding: 24rpx;
  40. }
  41. .pest-cover {
  42. display: block;
  43. width: 100%;
  44. margin-bottom: 48rpx;
  45. border-radius: 4rpx;
  46. }
  47. .pest-title {
  48. margin-bottom: 10rpx;
  49. font-size: 32rpx;
  50. color: #333;
  51. line-height: 45rpx;
  52. }
  53. .pest-subtitle {
  54. position: relative;
  55. padding-left: 36rpx;
  56. margin-bottom: 12rpx;
  57. font-size: 32rpx;
  58. color: #666666;
  59. line-height: 45rpx;
  60. &:before {
  61. content: '';
  62. position: absolute;
  63. top: 5rpx;
  64. left: 10rpx;
  65. display: block;
  66. width: 0;
  67. border-color:transparent transparent transparent #317AFD;
  68. border-width: 18rpx;
  69. border-style: solid;
  70. transform: scaleY(0.6);
  71. }
  72. }
  73. .pest-paragraph {
  74. word-break: break-word;
  75. margin-left: 36rpx;
  76. margin-bottom: 24rpx;
  77. font-size: 28rpx;
  78. font-weight: normal;
  79. color: #999999;
  80. line-height: 40rpx;
  81. }
  82. </style>