diagnosisReport.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813
  1. <template>
  2. <div class="diagnosis-report-page">
  3. <div class="report-header">
  4. <div class="report-header__title">
  5. 种植报告
  6. <img src="@/assets/img/report/star.png" alt="" class="report-header__star">
  7. </div>
  8. <div class="report-header__desc">梅县区雁洋镇南福村的飞鸟智慧农业</div>
  9. <div class="report-header__desc">梅州柚子基地</div>
  10. </div>
  11. <div class="report-main">
  12. <div class="base-bg">
  13. <div class="base-title">
  14. <img src="@/assets/img/report/base-title.png" alt="" class="base-title__icon">
  15. <span class="base-title__text">基本信息</span>
  16. </div>
  17. <div class="base-content">
  18. <div class="base-content__row">
  19. <span class="base-content__label">种植作物:</span>
  20. <span class="base-content__value">柚子—金柚</span>
  21. </div>
  22. <div class="base-content__row">
  23. <span class="base-content__label">品种特质:</span>
  24. <span class="base-content__value">晚熟型特色柚类品种,生育周期长、品质形成期较长,能够充分利用成熟前的光温条件,因此对膨果期水分管理和成熟期气候调控要求较高。</span>
  25. </div>
  26. <div class="base-content__row">
  27. <span class="base-content__label">物候信息:</span>
  28. <span class="base-content__value">当前处于果实膨大后期至成熟前期,预计11月上中旬采收。</span>
  29. </div>
  30. <div class="base-content__row">
  31. <span class="base-content__label">土壤条件:</span>
  32. <span class="base-content__value">土壤类型为赤红壤,表层(0-30 cm)黏粒含量约35%,属于偏黏质地;土壤pH约5.2,有机碳含量约12 g/kg,总氮含量约0.8 g/kg。根据土壤养分评价,该地块氮素供应处于中等偏低水平。</span>
  33. </div>
  34. <div class="base-content__row">
  35. <span class="base-content__label">地形条件:</span>
  36. <span class="base-content__value">丘陵缓坡,海拔约150 m,坡度约8°,东南坡。</span>
  37. </div>
  38. </div>
  39. </div>
  40. <!-- Tab 切换 -->
  41. <div class="report-tabs">
  42. <div
  43. v-for="tab in tabs"
  44. :key="tab.key"
  45. class="report-tabs__item"
  46. :class="{ active: activeTab === tab.key }"
  47. @click="activeTab = tab.key"
  48. >
  49. <svg class="report-tabs__icon" viewBox="0 0 24 24" fill="none">
  50. <path
  51. v-for="(d, i) in tab.paths"
  52. :key="i"
  53. :d="d"
  54. stroke="currentColor"
  55. stroke-width="1.6"
  56. stroke-linecap="round"
  57. stroke-linejoin="round"
  58. />
  59. </svg>
  60. <span>{{ tab.label }}</span>
  61. <i v-if="activeTab === tab.key" class="report-tabs__arrow"></i>
  62. </div>
  63. </div>
  64. <div class="report-panel">
  65. <div class="report-panel__title">
  66. <span>{{ tabs.find((t) => t.key === activeTab)?.label }}</span>
  67. </div>
  68. <div
  69. v-for="(section, sIdx) in SECTION_MAP[activeTab]"
  70. :key="`${activeTab}-${sIdx}`"
  71. class="report-block"
  72. >
  73. <div
  74. v-if="section.title"
  75. class="report-block__divider"
  76. :class="{ 'report-block__divider--plain': section.titlePlain }"
  77. >
  78. <span class="report-block__title-text">{{ section.title }}</span>
  79. <span
  80. v-if="section.titleHint"
  81. class="report-block__title-hint"
  82. >{{ section.titleHint }}</span>
  83. </div>
  84. <!-- 导语在图表前(品质潜力) -->
  85. <p
  86. v-if="section.intro && section.introFirst"
  87. class="report-block__intro"
  88. >{{ section.intro }}</p>
  89. <!-- 图例(病虫风险等,图片外单独绘制) -->
  90. <ul
  91. v-if="section.legend?.length"
  92. class="report-block__legend"
  93. :class="{ 'report-block__legend--split': section.legendSplit }"
  94. >
  95. <li
  96. v-for="(item, lIdx) in section.legend"
  97. :key="lIdx"
  98. class="report-block__legend-item"
  99. >
  100. <i
  101. class="report-block__legend-dot"
  102. :style="{ background: item.color }"
  103. ></i>
  104. <span>{{ item.label }}</span>
  105. </li>
  106. </ul>
  107. <!-- 图表占位(后续替换图片) -->
  108. <div
  109. v-if="section.showChart && !section.chartAfter"
  110. class="report-block__chart"
  111. :class="{ 'report-block__chart--framed': section.chartFramed }"
  112. >
  113. <img
  114. class="report-block__chart-img"
  115. :class="{ 'report-block__chart-img--natural': section.chartNatural }"
  116. :src="section.chartSrc || ''"
  117. alt=""
  118. />
  119. </div>
  120. <p v-if="section.note" class="report-block__note">{{ section.note }}</p>
  121. <!-- 导语在图表后 -->
  122. <p
  123. v-if="section.intro && !section.introFirst"
  124. class="report-block__intro"
  125. >{{ section.intro }}</p>
  126. <!-- 段落型 -->
  127. <div
  128. v-if="section.type === 'text'"
  129. class="report-block__card"
  130. >
  131. <p class="report-block__text">{{ section.content }}</p>
  132. </div>
  133. <!-- 条目型 -->
  134. <template v-else-if="section.type === 'list'">
  135. <div
  136. v-for="(item, iIdx) in section.items"
  137. :key="iIdx"
  138. class="report-block__card"
  139. :class="{
  140. 'report-block__card--plain': section.plain,
  141. 'report-block__card--blue': section.cardTone === 'blue',
  142. }"
  143. >
  144. <div class="report-block__item-title">{{ item.title }}</div>
  145. <p class="report-block__text">{{ item.content }}</p>
  146. </div>
  147. </template>
  148. <!-- 图表在内容后(农事管理 / 病虫表格) -->
  149. <div
  150. v-if="section.chartAfterSrc || (section.showChart && section.chartAfter)"
  151. class="report-block__chart report-block__chart--after"
  152. :class="{
  153. 'report-block__chart--framed': section.chartFramed,
  154. 'report-block__chart--table': section.chartAfterTable,
  155. }"
  156. >
  157. <img
  158. class="report-block__chart-img"
  159. :src="section.chartAfterSrc || section.chartSrc || ''"
  160. alt=""
  161. />
  162. </div>
  163. </div>
  164. </div>
  165. </div>
  166. <!-- <div class="share-btn" @click="handleShare">转发报告</div> -->
  167. </div>
  168. </template>
  169. <script setup>
  170. import { ref } from "vue";
  171. import { useRoute } from "vue-router";
  172. import wx from "weixin-js-sdk";
  173. // ---------------------------------------------------------------------------
  174. // 常量
  175. // ---------------------------------------------------------------------------
  176. const TABS = [
  177. {
  178. key: "weather",
  179. label: "气象胁迫",
  180. paths: ["M13 2L4 14h7l-1 8 9-12h-7l1-8z"],
  181. },
  182. {
  183. key: "pest",
  184. label: "病虫风险",
  185. paths: [
  186. "M8 7l-2-2",
  187. "M16 7l2-2",
  188. "M12 5v2",
  189. "M8.5 10a3.5 3.5 0 0 1 7 0v5a3.5 3.5 0 0 1-7 0v-5z",
  190. "M5 12h3",
  191. "M16 12h3",
  192. "M5 16h3",
  193. "M16 16h3",
  194. ],
  195. },
  196. {
  197. key: "quality",
  198. label: "品质潜力",
  199. paths: [
  200. "M12 21c0-6 4-10 9-11-1 6-5 10-9 11z",
  201. "M12 21c0-6-4-10-9-11 1 6 5 10 9 11z",
  202. "M12 21V10",
  203. ],
  204. },
  205. {
  206. key: "input",
  207. label: "必要投入",
  208. paths: [
  209. "M7 3h7l4 4v14a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z",
  210. "M14 3v4h4",
  211. "M9 13h6",
  212. "M9 17h6",
  213. ],
  214. },
  215. {
  216. key: "manage",
  217. label: "农事管理",
  218. paths: [
  219. "M6 4h12a1 1 0 0 1 1 1v15H5V5a1 1 0 0 1 1-1z",
  220. "M9 2v3",
  221. "M15 2v3",
  222. "M5 9h14",
  223. "M9 13h.01",
  224. "M12 13h.01",
  225. "M15 13h.01",
  226. "M9 17h.01",
  227. "M12 17h.01",
  228. ],
  229. },
  230. ];
  231. /** 各模块演示内容(后续接接口解析结果) */
  232. const SECTION_MAP = {
  233. weather: [
  234. {
  235. title: "气候条件",
  236. type: "text",
  237. content:
  238. "梅州属亚热带季风气候,年平均气温约21~23℃,年降雨量约1470~1800 mm,无霜期300天以上,光热水资源总体充足,能够较好满足金柚生长需求(适宜年均温约18~21℃,≥10℃积温约6000℃以上,年降雨量约1500 mm左右或以上)。",
  239. },
  240. {
  241. title: "异常气象导致的营养胁迫风险",
  242. type: "text",
  243. content:
  244. "2026年春季金柚开花、谢花阶段经历持续春旱,随后出现旱涝急转过程。与常年同期相比,春季干旱持续时间明显增加,随后降雨快速集中,导致土壤水分和根系吸收环境发生明显变化,树体营养供应受到影响,重点表现为钙、硼等元素吸收障碍。",
  245. },
  246. {
  247. title: "气象指标10年统计值",
  248. titleHint: "(柱顶标注原始值)",
  249. titlePlain: true,
  250. chartFramed: true,
  251. showChart: true,
  252. chartSrc: require("@/assets/img/report/p1.png"),
  253. legendSplit: true,
  254. legend: [
  255. { color: "linear-gradient(180deg, #41ABFF 0%, #2199F8 100%)", label: "累计降水量(mm)" },
  256. { color: "linear-gradient(180deg, #FEC99D 0%, #FF9843 100%)", label: "平均气温(°C)" },
  257. { color: "linear-gradient(180deg, #A1D8AB 0%, #71C280 100%)", label: "平均相对湿度(%)" },
  258. { color: "linear-gradient(180deg, #FCD993 0%, #FCCB6C 100%)", label: "累计日照时数(h)" },
  259. { color: "linear-gradient(180deg, #DB95FF 0%, #D27AFF 100%)", label: "连续干旱时长(d)" },
  260. { color: "linear-gradient(180deg, #FAB6BE 0%, #FA9AA6 100%)", label: "连续寡照时长(d)" },
  261. { color: "linear-gradient(90deg, #9EDFE2 0%, #6ACFD4 100%)", label: "旱涝急转频次(次)" },
  262. ],
  263. },
  264. {
  265. type: "list",
  266. items: [
  267. {
  268. title: "谢花期持续干旱,降低钙硼吸收与果实供应能力",
  269. content:
  270. "2026年开花—谢花期出现超过10天的持续干旱,较常年同期干旱持续时间增加约4天(约50%)。土壤水分不足会降低根系吸收能力,限制钙、硼等元素供应;同时干旱增强叶片蒸腾,使吸收的钙更多向叶片分配,进一步减少果实获得量。钙硼不足会影响果皮细胞壁形成和组织稳定性,增加后期裂果、落果风险。",
  271. },
  272. {
  273. title: "旱涝急转削弱根系功能,加剧营养胁迫",
  274. content:
  275. "2026年干旱后快速转入强降雨,形成明显旱涝急转。该点位坐果—幼果期旱涝急转频次达到全年最高的3次,较常年偏多;同期累计降水量达到656 mm,较常年增加约15%。前期干旱降低根系活力,后期强降雨又易造成养分淋失和根区缺氧;同时酸性土壤条件下铝毒胁迫可能进一步限制根系吸收,加剧钙硼供应不足。",
  276. },
  277. ],
  278. },
  279. ],
  280. pest: [
  281. {
  282. title: "异常气象诱发的病虫害风险",
  283. type: "text",
  284. content:
  285. "2026年春季干旱和后续旱涝急转过程,在影响树体营养状态的同时,也增加了病虫害发生风险。其中,重点关注蓟马危害及后期病害风险。",
  286. },
  287. {
  288. title: "各物候期病虫害风险等级",
  289. titlePlain: true,
  290. chartFramed: true,
  291. showChart: true,
  292. chartSrc: require("@/assets/img/report/p4.png"),
  293. legend: [
  294. { color: "linear-gradient(180deg, #41ABFF 0%, #2199F8 100%)", label: "真菌型病害" },
  295. { color: "linear-gradient(180deg, #FEC99D 0%, #FF9843 100%)", label: "蓟马" },
  296. { color: "linear-gradient(180deg, #A1D8AB 0%, #71C280 100%)", label: "刺吸式害虫" },
  297. { color: "linear-gradient(180deg, #FCD993 0%, #FCCB6C 100%)", label: "细菌型病害" },
  298. ],
  299. note: "注:图一因指标量纲不同,采用标准化直方图对比阶段差异;病虫害风险等级为1低、2中、3高。",
  300. },
  301. {
  302. type: "list",
  303. items: [
  304. {
  305. title: "春季持续干旱,增加蓟马发生风险",
  306. content:
  307. "2026年春梢—开花期连续干旱超过10天,较常年同期明显偏长。温暖偏干环境有利于蓟马繁殖,而此时金柚处于嫩花和花器发育阶段,组织幼嫩,易受蓟马危害,影响授粉和坐果稳定。该年气象过程与2020—2021年蓟马风险较高年份较为相似,均表现为春季干旱偏重,因此需重点关注花期防控。",
  308. },
  309. {
  310. title: "前期钙硼不足叠加高温高湿,增加后期溃疡病风险",
  311. content:
  312. "2026年果实膨大期平均气温达到26.8℃,较常年同期偏高约0.5℃;累计降水量达到804 mm,较常年增加约10%,并出现2次旱涝急转过程。前期干旱造成钙硼供应不足,削弱果皮细胞壁结构和组织抗性;进入膨果—成熟阶段后,高温高湿和持续湿润环境有利于病原菌扩散,叠加风雨伤口,易诱发溃疡病、炭疽病、疫霉褐腐病等病害。",
  313. },
  314. ],
  315. },
  316. ],
  317. quality: [
  318. {
  319. type: "list",
  320. introFirst: true,
  321. intro: "注:橙色表示高于平均水平,蓝色表示低于平均水平;单元格内上方为偏离幅度,下方为原始值(点位/平均水下)",
  322. showChart: true,
  323. chartNatural: true,
  324. chartSrc: require("@/assets/img/report/p2.png"),
  325. note: "注:橙色表示高于平均水平,蓝色表示低于平均水平;单元格内上方为偏离幅度,下方为原始值(点位/平均水平)",
  326. items: [
  327. {
  328. title: "生长环境条件总体适宜,为金柚生长提供基础保障",
  329. content:
  330. "重点关注温度和水分条件。该点位各物候阶段平均气温整体与梅州平均水平接近,秋梢生长期、春梢—开花期和果实膨大期平均气温分别为27.1℃、17.0℃和26.8℃,能够满足金柚正常生长和果实发育需求。对应累计降水量分别为537 mm、353 mm和804 mm,水分条件总体充足,但膨果期降水偏多,需关注高湿环境带来的病害风险。",
  331. },
  332. {
  333. title: "光合积累条件整体较好,有利于品质形成",
  334. content:
  335. "重点关注日照条件。该点位春梢—开花期累计日照时数达到420 h,高于梅州平均水平(380 h),有利于花期前后树体营养积累;果实膨大期和转色—成熟期累计日照时数分别为650 h和450 h,均高于平均水平(620 h、420 h),能够促进果实干物质积累和糖分形成。",
  336. },
  337. {
  338. title: "果实发育期温差优势明显,有利于糖分积累和品质提升",
  339. content:
  340. "重点关注膨果期和成熟期温光条件。果实膨大期平均昼夜温差达到9.1℃,高于梅州平均水平(7.5℃),同时高温日数仅为22天,低于平均水平(35天),较大的昼夜温差和较低的高温胁迫有利于果实稳定膨大和品质形成。进入转色—成熟期后,平均昼夜温差达到9.8℃,高于平均水平(8.8℃),有利于糖分积累和风味形成。",
  341. },
  342. {
  343. title: "成熟期水分偏多,是品质稳定的主要限制因素",
  344. content:
  345. "重点关注成熟期降水条件。该点位转色—成熟期累计降水量为88 mm,低于梅州平均水平(120 mm),整体水分条件较适宜,有利于果实成熟;但若叠加短期强降雨过程,仍可能造成果实吸水波动,增加裂果和品质不稳定风险。",
  346. },
  347. ],
  348. },
  349. ],
  350. input: [
  351. {
  352. type: "list",
  353. cardTone: "blue",
  354. items: [
  355. {
  356. title: "必须投入",
  357. content:
  358. "排灌设施:当前处于果实膨大后期至成熟前期,果实对水分稳定性要求较高。该点位土壤偏黏,雨后排水压力较大,建议配置蓄水、滴灌/微喷及排水沟,实现旱时补水、雨时排涝。",
  359. },
  360. {
  361. title: "建议投入",
  362. content:
  363. "防风防灾设施:该点位位于丘陵缓坡区域,成熟前期果实负载增加,强风和强降雨可能造成落果、枝条损伤及坡面冲刷。建议加强树体支撑、防风加固和坡面排水措施。",
  364. },
  365. {
  366. title: "优化投入",
  367. content:
  368. "水肥一体化与墒情监测:土壤保肥保水能力一般,且养分供应存在不足风险。建议配置墒情监测和水肥一体化设备,根据果实膨大和成熟需求精准调控水肥,提高果实品质和投入效率。",
  369. },
  370. ],
  371. },
  372. ],
  373. manage: [
  374. {
  375. type: "text",
  376. content: "结合金柚生长发育特点,将风险防控措施与关键农事目标相结合,形成全年动态管理方案。",
  377. showChart: true,
  378. chartAfter: true,
  379. chartSrc: require("@/assets/img/report/p3.png"),
  380. },
  381. ],
  382. };
  383. // ---------------------------------------------------------------------------
  384. // 页面状态
  385. // ---------------------------------------------------------------------------
  386. const route = useRoute();
  387. const activeTab = ref("weather");
  388. const tabs = TABS;
  389. const handleShare = () => {
  390. const query = {
  391. askInfo: { title: "转发报告", content: "是否分享给好友" },
  392. shareText: "",
  393. targetUrl: "diagnosis_report",
  394. paramsPage: JSON.stringify({
  395. id: route.query.id,
  396. zone_id: route.query.zone_id || route.query.zoneId || 42,
  397. fromShare: 1,
  398. }),
  399. imageUrl: "https://birdseye-img.sysuimars.com/temp/field.png",
  400. };
  401. wx.miniProgram.navigateTo({
  402. url: `/pages/subPages/share_page/index?pageParams=${JSON.stringify(query)}&type=sharePage`,
  403. });
  404. };
  405. </script>
  406. <style lang="scss" scoped>
  407. .diagnosis-report-page {
  408. height: 100vh;
  409. overflow-y: auto;
  410. -webkit-overflow-scrolling: touch;
  411. background: #f5f6f8;
  412. box-sizing: border-box;
  413. padding-bottom: 60px;
  414. .report-header {
  415. width: 100%;
  416. height: 148px;
  417. box-sizing: border-box;
  418. padding: 26px 20px 0;
  419. background: url("@/assets/img/report/title-bg.png") no-repeat center center;
  420. background-size: 100% 100%;
  421. color: #fff;
  422. &__title {
  423. position: relative;
  424. font-size: 35px;
  425. font-family: 'pangmenzhengdao';
  426. }
  427. &__star {
  428. width: 23px;
  429. height: 23px;
  430. margin-top: -8px;
  431. }
  432. &__desc {
  433. font-size: 14px;
  434. line-height: 20px;
  435. font-weight: 400;
  436. opacity: 0.95;
  437. }
  438. }
  439. }
  440. .report-main {
  441. padding: 0 12px;
  442. position: relative;
  443. z-index: 1;
  444. .base-bg {
  445. width: 100%;
  446. height: 380px;
  447. margin: 12px 0;
  448. padding: 5px;
  449. box-sizing: border-box;
  450. background: url("@/assets/img/report/base-bg.png") no-repeat center center /100% 100%;
  451. .base-title {
  452. display: flex;
  453. gap: 5px;
  454. .base-title__icon {
  455. width: 44px;
  456. height: 44px;
  457. }
  458. .base-title__text {
  459. font-size: 18px;
  460. font-weight: 500;
  461. color: #fff;
  462. margin-top: 5px;
  463. }
  464. }
  465. .base-content {
  466. background: linear-gradient(180deg, rgba(255, 255, 255, 0.79) 0%, #FFFFFF 11.7%, #FFFFFF 100%);
  467. border-radius: 10px;
  468. border: 1px solid #FFFFFF;
  469. padding: 12px 14px;
  470. margin-top: -10px;
  471. font-size: 14px;
  472. line-height: 22px;
  473. &__row {
  474. & + & {
  475. margin-top: 8px;
  476. }
  477. }
  478. &__label {
  479. color: #86909c;
  480. }
  481. &__value {
  482. color: #1d2129;
  483. }
  484. }
  485. }
  486. }
  487. .report-tabs {
  488. display: flex;
  489. gap: 8px;
  490. padding-bottom: 6px;
  491. overflow-x: auto;
  492. -webkit-overflow-scrolling: touch;
  493. scrollbar-width: none;
  494. &::-webkit-scrollbar {
  495. display: none;
  496. }
  497. &__item {
  498. position: relative;
  499. flex: 0 0 auto;
  500. min-width: 76px;
  501. display: flex;
  502. flex-direction: column;
  503. align-items: center;
  504. justify-content: center;
  505. gap: 4px;
  506. height: 64px;
  507. border-radius: 10px;
  508. background: #eef0f3;
  509. color: #86909c;
  510. font-size: 14px;
  511. line-height: 16px;
  512. text-align: center;
  513. padding: 0 10px;
  514. box-sizing: border-box;
  515. border: 1px solid transparent;
  516. white-space: nowrap;
  517. &.active {
  518. background: #fff;
  519. border-color: rgba(33, 153, 248, 0.45);
  520. color: #1d2129;
  521. font-weight: 500;
  522. box-shadow: 0 2px 8px rgba(33, 153, 248, 0.08);
  523. .report-tabs__icon {
  524. color: #2199f8;
  525. }
  526. }
  527. }
  528. &__icon {
  529. width: 22px;
  530. height: 22px;
  531. color: #86909c;
  532. }
  533. &__arrow {
  534. position: absolute;
  535. left: 50%;
  536. bottom: -6px;
  537. width: 0;
  538. height: 0;
  539. margin-left: -6px;
  540. border-left: 6px solid transparent;
  541. border-right: 6px solid transparent;
  542. border-top: 6px solid #fff;
  543. filter: drop-shadow(0 1px 0 rgba(33, 153, 248, 0.25));
  544. }
  545. }
  546. .report-panel {
  547. margin-top: 12px;
  548. padding: 16px 12px 18px;
  549. border-radius: 12px;
  550. background: #fff;
  551. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  552. &__title {
  553. position: relative;
  554. display: inline-block;
  555. margin-bottom: 16px;
  556. font-size: 18px;
  557. font-weight: 700;
  558. line-height: 26px;
  559. color: #1d2129;
  560. &::after {
  561. content: "";
  562. position: absolute;
  563. left: 0;
  564. bottom: 2px;
  565. width: 36px;
  566. height: 8px;
  567. border-radius: 4px;
  568. background: rgba(33, 153, 248, 0.35);
  569. z-index: -1;
  570. }
  571. }
  572. }
  573. .report-block {
  574. & + & {
  575. margin-top: 16px;
  576. }
  577. &__divider {
  578. display: flex;
  579. align-items: center;
  580. gap: 10px;
  581. margin-bottom: 10px;
  582. color: #1d2129;
  583. font-size: 14px;
  584. font-weight: 500;
  585. line-height: 20px;
  586. &::before,
  587. &::after {
  588. content: "";
  589. flex: 1;
  590. height: 1px;
  591. background: #e5e6eb;
  592. }
  593. &--plain {
  594. display: block;
  595. font-size: 14px;
  596. font-weight: 600;
  597. line-height: 22px;
  598. color: #1d2129;
  599. &::before,
  600. &::after {
  601. display: none;
  602. }
  603. }
  604. }
  605. &__title-hint {
  606. margin-left: 4px;
  607. font-size: 13px;
  608. font-weight: 400;
  609. line-height: 18px;
  610. color: #86909c;
  611. }
  612. &__legend {
  613. display: flex;
  614. flex-wrap: wrap;
  615. gap: 8px 14px;
  616. margin: 0 0 10px;
  617. padding: 0;
  618. list-style: none;
  619. &--split {
  620. display: grid;
  621. grid-template-columns: 1fr 1fr;
  622. column-gap: 100px;
  623. row-gap: 8px;
  624. .report-block__legend-dot {
  625. width: 20px;
  626. }
  627. }
  628. }
  629. &__legend-item {
  630. display: flex;
  631. align-items: center;
  632. gap: 5px;
  633. min-width: 0;
  634. font-size: 12px;
  635. line-height: 16px;
  636. color: #4e5969;
  637. }
  638. &__legend-dot {
  639. display: block;
  640. width: 15px;
  641. height: 6px;
  642. border-radius: 4px;
  643. flex-shrink: 0;
  644. }
  645. &__chart {
  646. margin-bottom: 10px;
  647. width: 100%;
  648. overflow-x: auto;
  649. overflow-y: hidden;
  650. -webkit-overflow-scrolling: touch;
  651. border-radius: 8px;
  652. &--framed {
  653. // border: 1px solid #e5e6eb;
  654. background: #fff;
  655. padding: 8px 4px 4px;
  656. }
  657. &--after {
  658. margin-top: 10px;
  659. margin-bottom: 0;
  660. .report-block__chart-img {
  661. height: 550px;
  662. }
  663. }
  664. &--table {
  665. .report-block__chart-img {
  666. height: 410px;
  667. }
  668. }
  669. }
  670. &__chart-img {
  671. display: block;
  672. width: auto;
  673. max-width: none;
  674. height: 175px;
  675. &--natural {
  676. height: 440px;
  677. }
  678. }
  679. &__intro {
  680. margin: 0 0 10px;
  681. font-size: 14px;
  682. line-height: 20px;
  683. color: #1d2129;
  684. }
  685. &__note {
  686. margin: 0 0 12px;
  687. font-size: 14px;
  688. line-height: 18px;
  689. color: #86909c;
  690. }
  691. &__plain {
  692. & + & {
  693. margin-top: 12px;
  694. }
  695. }
  696. &__card {
  697. padding: 12px;
  698. border-radius: 8px;
  699. background: #f7f8fa;
  700. box-sizing: border-box;
  701. & + & {
  702. margin-top: 10px;
  703. }
  704. &--blue {
  705. background: #edf6ff;
  706. .report-block__item-title {
  707. color: #2199f8;
  708. }
  709. .report-block__text {
  710. color: #1d2129;
  711. }
  712. }
  713. }
  714. &__item-title {
  715. margin-bottom: 4px;
  716. font-size: 14px;
  717. font-weight: 600;
  718. line-height: 22px;
  719. color: #1d2129;
  720. }
  721. &__text {
  722. margin: 0;
  723. font-size: 14px;
  724. line-height: 20px;
  725. color: #4e5969;
  726. }
  727. }
  728. .share-btn {
  729. position: fixed;
  730. left: 50%;
  731. bottom: 64px;
  732. z-index: 10;
  733. transform: translateX(-50%);
  734. min-width: 120px;
  735. height: 40px;
  736. box-sizing: border-box;
  737. padding: 0 30px;
  738. border-radius: 22px;
  739. background: linear-gradient(180deg, #72c1ff 0%, #2199f8 100%);
  740. color: #fff;
  741. font-size: 14px;
  742. line-height: 40px;
  743. text-align: center;
  744. box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1);
  745. }
  746. </style>