|
@@ -0,0 +1,699 @@
|
|
|
|
|
+<template>
|
|
|
|
|
+ <div class="abnormal-diagnosis-page">
|
|
|
|
|
+ <custom-header
|
|
|
|
|
+ :name="pageTitle"
|
|
|
|
|
+ :isClose="isFromShare"
|
|
|
|
|
+ :showClose="false"
|
|
|
|
|
+ />
|
|
|
|
|
+ <div class="abnormal-diagnosis-body" v-loading="loading">
|
|
|
|
|
+ <div class="abnormal-diagnosis-content">
|
|
|
|
|
+ <!-- 综合研判 + 作物摘要 -->
|
|
|
|
|
+ <div v-if="summary.conclusion || summary.cropName" class="analysis-top">
|
|
|
|
|
+ <div class="analysis-card">
|
|
|
|
|
+ <div class="analysis-card__content">
|
|
|
|
|
+ <div class="section-title section-title--pill">综合研判</div>
|
|
|
|
|
+ <div v-if="summary.conclusion" class="section-desc">
|
|
|
|
|
+ {{ summary.conclusion }}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div v-if="summary.cropName || summary.rows.length" class="crop-panel">
|
|
|
|
|
+ <div class="crop-panel__content">
|
|
|
|
|
+ <div class="crop-panel__head">
|
|
|
|
|
+ <img class="crop-panel__cover" :src="summary.cover" alt="" />
|
|
|
|
|
+ <span class="crop-panel__name">{{ summary.cropName }}</span>
|
|
|
|
|
+ <span v-if="summary.badge" class="crop-panel__tag">当前作物</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div v-if="summary.rows.length" class="crop-panel__list">
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-for="item in summary.rows"
|
|
|
|
|
+ :key="item.key || item.label"
|
|
|
|
|
+ class="crop-metric"
|
|
|
|
|
+ >
|
|
|
|
|
+ <img class="crop-metric__icon" :src="item.icon" alt="" />
|
|
|
|
|
+ <div class="crop-metric__content">
|
|
|
|
|
+ <div class="crop-metric__label">{{ item.label }}</div>
|
|
|
|
|
+ <div class="crop-metric__value">{{ item.value }}</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- panels:巡园结果 / 影响分析 / 农事建议 -->
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-for="panel in panels"
|
|
|
|
|
+ :key="panel.key"
|
|
|
|
|
+ class="timeline-section"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div class="timeline-section__head">
|
|
|
|
|
+ <span class="timeline-section__dot"></span>
|
|
|
|
|
+ <span class="timeline-section__title">{{ panel.title }}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 巡园结果:左图 + tag + content -->
|
|
|
|
|
+ <div v-if="panel.key === 'inspection'" class="patrol-list">
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-for="item in panel.items"
|
|
|
|
|
+ :key="item.id"
|
|
|
|
|
+ class="patrol-item"
|
|
|
|
|
+ >
|
|
|
|
|
+ <img
|
|
|
|
|
+ v-if="item.cover"
|
|
|
|
|
+ class="patrol-item__cover"
|
|
|
|
|
+ :src="item.cover"
|
|
|
|
|
+ alt=""
|
|
|
|
|
+ />
|
|
|
|
|
+ <div class="patrol-item__body">
|
|
|
|
|
+ <div class="patrol-item__title">{{ item.tag || item.title }}</div>
|
|
|
|
|
+ <div class="patrol-item__desc">{{ item.content }}</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 表现影响:tag 角标 + title + content -->
|
|
|
|
|
+ <div v-else-if="panel.key === 'impact'" class="diag-list">
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-for="item in panel.items"
|
|
|
|
|
+ :key="item.id"
|
|
|
|
|
+ class="diag-item"
|
|
|
|
|
+ >
|
|
|
|
|
+ <span v-if="item.tag" class="diag-item__tag">{{ item.tag }}</span>
|
|
|
|
|
+ <div v-if="item.title" class="diag-item__title">{{ item.title }}</div>
|
|
|
|
|
+ <div v-if="item.content" class="diag-item__desc">{{ item.content }}</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 农事建议:同一卡片内编号列表 -->
|
|
|
|
|
+ <div v-else-if="panel.key === 'farmwork'" class="advice-card">
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-for="item in panel.items"
|
|
|
|
|
+ :key="item.id"
|
|
|
|
|
+ class="advice-item"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div class="advice-item__title">
|
|
|
|
|
+ <span class="advice-item__index">{{ item.index }}</span>
|
|
|
|
|
+ <span>{{ item.title }}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="advice-item__desc">{{ item.content }}</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 兜底:按 impact 卡片样式 -->
|
|
|
|
|
+ <div v-else class="diag-list">
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-for="item in panel.items"
|
|
|
|
|
+ :key="item.id"
|
|
|
|
|
+ class="diag-item"
|
|
|
|
|
+ >
|
|
|
|
|
+ <span v-if="item.tag" class="diag-item__tag">{{ item.tag }}</span>
|
|
|
|
|
+ <div v-if="item.title" class="diag-item__title">{{ item.title }}</div>
|
|
|
|
|
+ <div v-if="item.content" class="diag-item__desc">{{ item.content }}</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div v-if="!loading && !hasContent" class="empty-tip">暂无诊断报告</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div v-if="hasContent" class="share-btn" @click="handleShare">
|
|
|
|
|
+ <div class="share-btn__text">{{ footerAction }}</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</template>
|
|
|
|
|
+
|
|
|
|
|
+<script setup>
|
|
|
|
|
+import { computed, onMounted, ref } from "vue";
|
|
|
|
|
+import { useRoute } from "vue-router";
|
|
|
|
|
+import customHeader from "@/components/customHeader.vue";
|
|
|
|
|
+import { resolveCropIcon } from "@/utils/cropIcon";
|
|
|
|
|
+import wx from "weixin-js-sdk";
|
|
|
|
|
+
|
|
|
|
|
+// ---------- 常量 ----------
|
|
|
|
|
+const ICON_MAP = {
|
|
|
|
|
+ phenophase: require("@/assets/img/common/header-icon-3.png"),
|
|
|
|
|
+ weather: require("@/assets/img/common/header-icon-1.png"),
|
|
|
|
|
+ soil: require("@/assets/img/common/header-icon-2.png"),
|
|
|
|
|
+};
|
|
|
|
|
+const defaultCropCover = require("@/assets/img/home/plant.png");
|
|
|
|
|
+
|
|
|
|
|
+// ---------- 页面状态 ----------
|
|
|
|
|
+const route = useRoute();
|
|
|
|
|
+const loading = ref(false);
|
|
|
|
|
+const pageTitle = ref("诊断报告");
|
|
|
|
|
+const footerAction = ref("转发报告");
|
|
|
|
|
+const summary = ref({
|
|
|
|
|
+ conclusion: "",
|
|
|
|
|
+ cropName: "",
|
|
|
|
|
+ badge: "",
|
|
|
|
|
+ cover: defaultCropCover,
|
|
|
|
|
+ rows: [],
|
|
|
|
|
+});
|
|
|
|
|
+const panels = ref([]);
|
|
|
|
|
+
|
|
|
|
|
+// ---------- 计算属性 ----------
|
|
|
|
|
+const isFromShare = computed(() => {
|
|
|
|
|
+ if (isTruthyFlag(route.query.fromShare)) return true;
|
|
|
|
|
+ const paramsPage = parseMaybeJson(route.query.paramsPage);
|
|
|
|
|
+ if (isTruthyFlag(paramsPage?.fromShare)) return true;
|
|
|
|
|
+ const miniJson = parseMaybeJson(route.query.miniJson);
|
|
|
|
|
+ if (isTruthyFlag(miniJson?.fromShare)) return true;
|
|
|
|
|
+ if (isTruthyFlag(parseMaybeJson(miniJson?.paramsPage)?.fromShare)) return true;
|
|
|
|
|
+ return false;
|
|
|
|
|
+});
|
|
|
|
|
+
|
|
|
|
|
+const hasContent = computed(
|
|
|
|
|
+ () => Boolean(summary.value.conclusion || summary.value.cropName || panels.value.length),
|
|
|
|
|
+);
|
|
|
|
|
+
|
|
|
|
|
+// ---------- 工具函数 ----------
|
|
|
|
|
+function isTruthyFlag(value) {
|
|
|
|
|
+ return value === 1 || value === "1" || value === true || value === "true";
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+function parseMaybeJson(value) {
|
|
|
|
|
+ if (value == null || value === "") return null;
|
|
|
|
|
+ if (typeof value === "object") return value;
|
|
|
|
|
+ try {
|
|
|
|
|
+ return JSON.parse(value);
|
|
|
|
|
+ } catch {
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/** 分享落地可能把参数塞在 paramsPage / miniJson 里 */
|
|
|
|
|
+const resolveQueryBag = () => {
|
|
|
|
|
+ const paramsPage = parseMaybeJson(route.query.paramsPage) || {};
|
|
|
|
|
+ const miniJson = parseMaybeJson(route.query.miniJson) || {};
|
|
|
|
|
+ const nested = parseMaybeJson(miniJson.paramsPage) || {};
|
|
|
|
|
+ return { ...nested, ...paramsPage, ...route.query };
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+const getTaskId = () => {
|
|
|
|
|
+ const q = resolveQueryBag();
|
|
|
|
|
+ const taskId = q.task_id;
|
|
|
|
|
+ return taskId != null && String(taskId).trim() !== "" ? String(taskId) : "";
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+const resolveRowIcon = (iconKey) => ICON_MAP[iconKey] || ICON_MAP.phenophase;
|
|
|
|
|
+
|
|
|
|
|
+const padIndex = (index, fallback) => {
|
|
|
|
|
+ if (index != null && String(index).trim() !== "") return String(index);
|
|
|
|
|
+ return String(fallback).padStart(2, "0");
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+const mapPanelItems = (items = []) =>
|
|
|
|
|
+ (Array.isArray(items) ? items : []).map((item, index) => {
|
|
|
|
|
+ const images = Array.isArray(item.images) ? item.images : [];
|
|
|
|
|
+ const cover = images[0]?.cloud_url || "";
|
|
|
|
|
+ return {
|
|
|
|
|
+ id: `${item.index || index}-${item.title || item.tag || index}`,
|
|
|
|
|
+ index: padIndex(item.index, index + 1),
|
|
|
|
|
+ tag: item.tag || "",
|
|
|
|
|
+ title: item.title || "",
|
|
|
|
|
+ content: item.content || "",
|
|
|
|
|
+ cover,
|
|
|
|
|
+ };
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+/** 把单份 report.view 灌入页面状态 */
|
|
|
|
|
+const applyReport = (report) => {
|
|
|
|
|
+ if (!report) return;
|
|
|
|
|
+ const view = report.view || {};
|
|
|
|
|
+ const viewSummary = view.summary || {};
|
|
|
|
|
+ const cropName = viewSummary.crop_name || report.crop_name || "";
|
|
|
|
|
+
|
|
|
|
|
+ pageTitle.value = view.title || "诊断报告";
|
|
|
|
|
+ footerAction.value = view.footer?.action || "转发报告";
|
|
|
|
|
+
|
|
|
|
|
+ summary.value = {
|
|
|
|
|
+ conclusion: viewSummary.conclusion || report.interact_explain || "",
|
|
|
|
|
+ cropName,
|
|
|
|
|
+ badge: viewSummary.badge || "",
|
|
|
|
|
+ cover: resolveCropIcon(cropName, defaultCropCover),
|
|
|
|
|
+ rows: (Array.isArray(viewSummary.rows) ? viewSummary.rows : [])
|
|
|
|
|
+ .map((row) => ({
|
|
|
|
|
+ key: row.key || row.icon || row.label,
|
|
|
|
|
+ label: row.label || "",
|
|
|
|
|
+ value: row.value || "",
|
|
|
|
|
+ icon: resolveRowIcon(row.icon || row.key),
|
|
|
|
|
+ }))
|
|
|
|
|
+ .filter((row) => row.value),
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ panels.value = (Array.isArray(view.panels) ? view.panels : [])
|
|
|
|
|
+ .map((panel) => ({
|
|
|
|
|
+ key: panel.key || "",
|
|
|
|
|
+ title: panel.title || "",
|
|
|
|
|
+ items: mapPanelItems(panel.items),
|
|
|
|
|
+ }))
|
|
|
|
|
+ .filter((panel) => panel.items.length);
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+// ---------- 业务逻辑 ----------
|
|
|
|
|
+const fetchDetail = async () => {
|
|
|
|
|
+ const taskId = getTaskId();
|
|
|
|
|
+ if (!taskId) return;
|
|
|
|
|
+
|
|
|
|
|
+ loading.value = true;
|
|
|
|
|
+ try {
|
|
|
|
|
+ const res = await VE_API.pheno.getAbnormalAnalysisReport({
|
|
|
|
|
+ task_id: taskId,
|
|
|
|
|
+ });
|
|
|
|
|
+ const data = res?.data || {};
|
|
|
|
|
+ const reports = Array.isArray(data.reports) ? data.reports : [];
|
|
|
|
|
+ applyReport(reports[0] || null);
|
|
|
|
|
+ } catch (e) {
|
|
|
|
|
+ console.warn("[abnormal_diagnosis_report] fetch failed", e);
|
|
|
|
|
+ } finally {
|
|
|
|
|
+ loading.value = false;
|
|
|
|
|
+ }
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+const handleShare = () => {
|
|
|
|
|
+ const query = {
|
|
|
|
|
+ askInfo: { title: "转发报告", content: "是否分享给好友" },
|
|
|
|
|
+ shareText: "诊断报告已生成,请点击查看吧!",
|
|
|
|
|
+ targetUrl: "abnormal_diagnosis_report",
|
|
|
|
|
+ paramsPage: JSON.stringify({
|
|
|
|
|
+ task_id: getTaskId(),
|
|
|
|
|
+ title: pageTitle.value || "诊断报告",
|
|
|
|
|
+ fromShare: 1,
|
|
|
|
|
+ }),
|
|
|
|
|
+ imageUrl: "https://birdseye-img.sysuimars.com/farm-h5/report_cover.png",
|
|
|
|
|
+ };
|
|
|
|
|
+ wx.miniProgram.navigateTo({
|
|
|
|
|
+ url: `/pages/subPages/share_page/index?pageParams=${JSON.stringify(query)}&type=sharePage`,
|
|
|
|
|
+ });
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+// ---------- 生命周期 ----------
|
|
|
|
|
+onMounted(() => {
|
|
|
|
|
+ const q = resolveQueryBag();
|
|
|
|
|
+ if (q.title) pageTitle.value = String(q.title);
|
|
|
|
|
+ fetchDetail();
|
|
|
|
|
+});
|
|
|
|
|
+</script>
|
|
|
|
|
+
|
|
|
|
|
+<style lang="scss" scoped>
|
|
|
|
|
+.abnormal-diagnosis-page {
|
|
|
|
|
+ min-height: 100vh;
|
|
|
|
|
+ background: #0b0b0b;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.abnormal-diagnosis-body {
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ overflow-y: auto;
|
|
|
|
|
+ height: calc(100vh - 40px - env(safe-area-inset-bottom));
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+
|
|
|
|
|
+ .abnormal-diagnosis-content {
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ padding: 24px 12px 10px;
|
|
|
|
|
+ overflow-y: auto;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .share-btn {
|
|
|
|
|
+ flex-shrink: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ :deep(.el-loading-mask) {
|
|
|
|
|
+ background-color: rgba(11, 11, 11, 0.7);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.analysis-top {
|
|
|
|
|
+ margin-bottom: 16px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.analysis-card {
|
|
|
|
|
+ padding: 1px;
|
|
|
|
|
+ border-radius: 12px;
|
|
|
|
|
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 72.15%);
|
|
|
|
|
+
|
|
|
|
|
+ &__content {
|
|
|
|
|
+ padding: 11px 13px;
|
|
|
|
|
+ border-radius: 12px;
|
|
|
|
|
+ background: linear-gradient(180deg, #1a191d 0%, #121216 100%);
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.section-title {
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
|
+ font-weight: 500;
|
|
|
|
|
+ line-height: 24px;
|
|
|
|
|
+ color: #f2e9d8;
|
|
|
|
|
+
|
|
|
|
|
+ &--pill {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ gap: 8px;
|
|
|
|
|
+
|
|
|
|
|
+ &::before {
|
|
|
|
|
+ content: "";
|
|
|
|
|
+ width: 4px;
|
|
|
|
|
+ height: 16px;
|
|
|
|
|
+ border-radius: 2px;
|
|
|
|
|
+ background: #ffd489;
|
|
|
|
|
+ flex-shrink: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.section-desc {
|
|
|
|
|
+ margin-top: 10px;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ line-height: 22px;
|
|
|
|
|
+ color: rgba(255, 255, 255, 0.55);
|
|
|
|
|
+ word-break: break-all;
|
|
|
|
|
+ text-align: justify;
|
|
|
|
|
+ font-weight: 350;
|
|
|
|
|
+ white-space: pre-line;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.crop-panel {
|
|
|
|
|
+ margin-top: 12px;
|
|
|
|
|
+ border-radius: 12px;
|
|
|
|
|
+ padding: 1px;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ background: linear-gradient(180deg, rgba(255, 212, 137, 0.4) 0%, rgba(255, 212, 137, 0) 72.15%);
|
|
|
|
|
+
|
|
|
|
|
+ .crop-panel__content {
|
|
|
|
|
+ padding: 10px 12px;
|
|
|
|
|
+ border-radius: 12px;
|
|
|
|
|
+ background: rgba(26, 24, 20, 1);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__head {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ gap: 8px;
|
|
|
|
|
+ padding-bottom: 14px;
|
|
|
|
|
+ border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__cover {
|
|
|
|
|
+ width: 40px;
|
|
|
|
|
+ height: 40px;
|
|
|
|
|
+ border-radius: 50%;
|
|
|
|
|
+ object-fit: cover;
|
|
|
|
|
+ flex-shrink: 0;
|
|
|
|
|
+ border: 1px solid rgba(255, 212, 137, 0.5);
|
|
|
|
|
+ background: rgba(255, 255, 255, 0.08);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__name {
|
|
|
|
|
+ font-size: 18px;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__tag {
|
|
|
|
|
+ padding: 0 6px;
|
|
|
|
|
+ border-radius: 3px;
|
|
|
|
|
+ background: rgba(255, 212, 137, 0.1);
|
|
|
|
|
+ border: 1px solid rgba(255, 212, 137, 0.16);
|
|
|
|
|
+ color: #ffd489;
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ height: 19px;
|
|
|
|
|
+ line-height: 19px;
|
|
|
|
|
+ flex-shrink: 0;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__list {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.crop-metric {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: flex-start;
|
|
|
|
|
+ gap: 8px;
|
|
|
|
|
+ padding-top: 14px;
|
|
|
|
|
+
|
|
|
|
|
+ &:last-child {
|
|
|
|
|
+ .crop-metric__content {
|
|
|
|
|
+ border-bottom: none;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__icon {
|
|
|
|
|
+ width: 16px;
|
|
|
|
|
+ height: 16px;
|
|
|
|
|
+ flex-shrink: 0;
|
|
|
|
|
+ object-fit: contain;
|
|
|
|
|
+ filter: brightness(0) invert(0.7);
|
|
|
|
|
+ margin-top: 3px;
|
|
|
|
|
+ opacity: 0.85;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__content {
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ min-width: 0;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ line-height: 22px;
|
|
|
|
|
+ padding-bottom: 10px;
|
|
|
|
|
+ word-break: break-all;
|
|
|
|
|
+ border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__label {
|
|
|
|
|
+ color: rgba(255, 255, 255, 0.6);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__value {
|
|
|
|
|
+ padding-top: 3px;
|
|
|
|
|
+ color: rgba(255, 255, 255, 0.9);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.timeline-section {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ padding-bottom: 20px;
|
|
|
|
|
+ padding-left: 18px;
|
|
|
|
|
+
|
|
|
|
|
+ &::before {
|
|
|
|
|
+ content: "";
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ left: 6px;
|
|
|
|
|
+ top: 19px;
|
|
|
|
|
+ bottom: 0;
|
|
|
|
|
+ width: 1px;
|
|
|
|
|
+ background: linear-gradient(180deg, rgba(255, 212, 137, 0.45) 0%, rgba(255, 212, 137, 0.12) 100%);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &:last-of-type::before {
|
|
|
|
|
+ bottom: 12px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__head {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ gap: 10px;
|
|
|
|
|
+ margin-bottom: 12px;
|
|
|
|
|
+ margin-left: -18px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__dot {
|
|
|
|
|
+ width: 14px;
|
|
|
|
|
+ height: 14px;
|
|
|
|
|
+ border-radius: 50%;
|
|
|
|
|
+ border: 1px solid rgba(255, 212, 137, 0.3);
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ flex-shrink: 0;
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ z-index: 1;
|
|
|
|
|
+ &::after {
|
|
|
|
|
+ content: "";
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ left: 50%;
|
|
|
|
|
+ top: 50%;
|
|
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
|
|
+ width: 7px;
|
|
|
|
|
+ height: 7px;
|
|
|
|
|
+ background: #FFD489;
|
|
|
|
|
+ border-radius: 50%;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__title {
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
|
+ font-weight: 500;
|
|
|
|
|
+ line-height: 24px;
|
|
|
|
|
+ color: #ffd489;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.patrol-list {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ gap: 10px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.patrol-item {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: flex-start;
|
|
|
|
|
+ gap: 10px;
|
|
|
|
|
+ background: rgba(255, 255, 255, 0.04);
|
|
|
|
|
+ padding: 10px;
|
|
|
|
|
+ border-radius: 10px;
|
|
|
|
|
+ border: 1px solid rgba(255, 255, 255, 0.06);
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+
|
|
|
|
|
+ &__cover {
|
|
|
|
|
+ width: 100px;
|
|
|
|
|
+ height: 86px;
|
|
|
|
|
+ border-radius: 6px;
|
|
|
|
|
+ object-fit: cover;
|
|
|
|
|
+ flex-shrink: 0;
|
|
|
|
|
+ background: rgba(255, 255, 255, 0.06);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__body {
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ min-width: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__title {
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ font-weight: 500;
|
|
|
|
|
+ line-height: 22px;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__desc {
|
|
|
|
|
+ margin-top: 4px;
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ line-height: 20px;
|
|
|
|
|
+ color: rgba(255, 255, 255, 0.5);
|
|
|
|
|
+ word-break: break-all;
|
|
|
|
|
+ text-align: justify;
|
|
|
|
|
+ display: -webkit-box;
|
|
|
|
|
+ -webkit-line-clamp: 4;
|
|
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.diag-list {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ gap: 10px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.diag-item {
|
|
|
|
|
+ padding: 12px;
|
|
|
|
|
+ border-radius: 10px;
|
|
|
|
|
+ background: rgba(255, 255, 255, 0.05);
|
|
|
|
|
+ border: 1px solid rgba(255, 255, 255, 0.06);
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+
|
|
|
|
|
+ &__tag {
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ padding: 0 8px;
|
|
|
|
|
+ height: 22px;
|
|
|
|
|
+ line-height: 20px;
|
|
|
|
|
+ border-radius: 3px;
|
|
|
|
|
+ background: rgba(255, 212, 137, 0.08);
|
|
|
|
|
+ border: 1px solid rgba(255, 212, 137, 0.5);
|
|
|
|
|
+ color: #ffd489;
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__title {
|
|
|
|
|
+ margin-top: 8px;
|
|
|
|
|
+ font-size: 15px;
|
|
|
|
|
+ font-weight: 500;
|
|
|
|
|
+ line-height: 22px;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__desc {
|
|
|
|
|
+ margin-top: 6px;
|
|
|
|
|
+ font-size: 13px;
|
|
|
|
|
+ line-height: 20px;
|
|
|
|
|
+ color: rgba(255, 255, 255, 0.5);
|
|
|
|
|
+ word-break: break-all;
|
|
|
|
|
+ text-align: justify;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.advice-card {
|
|
|
|
|
+ padding: 2px 4px;
|
|
|
|
|
+ border-radius: 10px;
|
|
|
|
|
+ background: rgba(255, 255, 255, 0.04);
|
|
|
|
|
+ border: 1px solid rgba(255, 255, 255, 0.06);
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.advice-item {
|
|
|
|
|
+ padding: 14px 10px;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+
|
|
|
|
|
+ & + & {
|
|
|
|
|
+ border-top: 1px solid rgba(255, 255, 255, 0.08);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__title {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: flex-start;
|
|
|
|
|
+ gap: 8px;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ line-height: 22px;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__index {
|
|
|
|
|
+ color: #ffd489;
|
|
|
|
|
+ font-size: 15px;
|
|
|
|
|
+ font-weight: 600;
|
|
|
|
|
+ line-height: 22px;
|
|
|
|
|
+ flex-shrink: 0;
|
|
|
|
|
+ font-variant-numeric: tabular-nums;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &__desc {
|
|
|
|
|
+ margin-top: 6px;
|
|
|
|
|
+ margin-left: 30px;
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ line-height: 20px;
|
|
|
|
|
+ color: rgba(255, 255, 255, 0.5);
|
|
|
|
|
+ word-break: break-all;
|
|
|
|
|
+ white-space: pre-line;
|
|
|
|
|
+ text-align: justify;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.empty-tip {
|
|
|
|
|
+ padding: 48px 0;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ color: rgba(255, 255, 255, 0.45);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.share-btn {
|
|
|
|
|
+ padding-top: 6px;
|
|
|
|
|
+ border-top: 1px solid rgba(255, 255, 255, 0.06);
|
|
|
|
|
+ background: rgba(18, 18, 20, 1);
|
|
|
|
|
+
|
|
|
|
|
+ .share-btn__text {
|
|
|
|
|
+ margin: 0 12px calc(22px + env(safe-area-inset-bottom)) 12px;
|
|
|
|
|
+ border-radius: 10px;
|
|
|
|
|
+ background: linear-gradient(90deg, #ffebc9 0%, #ffca6d 100%);
|
|
|
|
|
+ width: calc(100% - 24px);
|
|
|
|
|
+ height: 44px;
|
|
|
|
|
+ color: #000;
|
|
|
|
|
+ line-height: 44px;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|