|
|
@@ -2,90 +2,99 @@
|
|
|
<div class="achievement-report-page">
|
|
|
<custom-header name="报告详情"></custom-header>
|
|
|
<div class="report-content-wrap" v-loading="loading">
|
|
|
- <div class="report-content" ref="reportDom">
|
|
|
- <!-- <img src="@/assets/img/home/qrcode.png" alt="" class="code-icon" /> -->
|
|
|
- <img class="header-img" src="@/assets/img/home/report.png" alt="" />
|
|
|
- <div class="report-header">
|
|
|
- <!-- <img class="header-book" src="@/assets/img/home/book.png" alt="" /> -->
|
|
|
- <div class="time-tag">{{ workItem?.reportDate }}</div>
|
|
|
- <div class="report-title">桂味长势报告</div>
|
|
|
- <div class="report-info">
|
|
|
- <div class="info-item">
|
|
|
- <img class="info-icon" src="@/assets/img/home/farm.png" alt="" />
|
|
|
- <span class="info-text">{{ workItem?.orchardName }}</span>
|
|
|
+ <swipe class="my-swipe" :loop="false" indicator-color="white">
|
|
|
+ <swipe-item v-for="(item, index) in 4" :key="index">
|
|
|
+
|
|
|
+ <div class="report-content">
|
|
|
+ <!-- <img src="@/assets/img/home/qrcode.png" alt="" class="code-icon" /> -->
|
|
|
+ <img class="header-img" src="@/assets/img/home/report.png" alt="" />
|
|
|
+ <div class="report-header">
|
|
|
+ <!-- <img class="header-book" src="@/assets/img/home/book.png" alt="" /> -->
|
|
|
+ <div class="time-tag">{{ workItem?.reportDate }}</div>
|
|
|
+ <div class="report-title">桂味长势报告</div>
|
|
|
+ <div class="report-info">
|
|
|
+ <div class="info-item">
|
|
|
+ <img class="info-icon" src="@/assets/img/home/farm.png" alt="" />
|
|
|
+ <span class="info-text">{{ workItem?.orchardName }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 左滑查看更多 -->
|
|
|
+ <div class="swipe-more-tag">
|
|
|
+ 左滑查看更多
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
|
|
|
- <!-- <div class="report-box">
|
|
|
- <div class="box-title">农情总结</div>
|
|
|
- <div class="box-text">
|
|
|
- {{ workItem?.summaryAgricultural || "--" }}
|
|
|
- </div>
|
|
|
- </div> -->
|
|
|
-
|
|
|
- <div class="report-box">
|
|
|
- <div class="box-title">物候与长势</div>
|
|
|
- <div class="box-text">
|
|
|
- <div class="box-bg">
|
|
|
- <span class="box-subtitle">背景描述:</span>
|
|
|
- <div v-html="workItem?.phenologyBackground"></div>
|
|
|
- </div>
|
|
|
- <div class="box-advice">
|
|
|
- <span class="box-subtitle">对策建议:</span>
|
|
|
- <div v-html="workItem?.phenologySuggestion"></div>
|
|
|
- </div>
|
|
|
- <div class="box-sum" v-html="workItem?.phenologySummary"></div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- <div class="report-box">
|
|
|
- <div class="box-title">病虫害问题</div>
|
|
|
- <div class="box-text">
|
|
|
- <div class="box-bg">
|
|
|
- <span class="box-subtitle">背景描述:</span>
|
|
|
- <div v-html="workItem?.pestBackground"></div>
|
|
|
- </div>
|
|
|
- <div class="box-advice">
|
|
|
- <span class="box-subtitle">对策建议:</span>
|
|
|
- <div v-html="workItem?.pestSuggestion"></div>
|
|
|
- </div>
|
|
|
- <div class="box-sum">
|
|
|
- <div v-html="workItem?.pestSummary"></div>
|
|
|
+ <!-- <div class="report-box">
|
|
|
+ <div class="box-title">农情总结</div>
|
|
|
+ <div class="box-text">
|
|
|
+ {{ workItem?.summaryAgricultural || "--" }}
|
|
|
+ </div>
|
|
|
+ </div> -->
|
|
|
+
|
|
|
+ <div class="report-box">
|
|
|
+ <div class="box-title">物候与长势</div>
|
|
|
+ <div class="box-text">
|
|
|
+ <div class="box-bg">
|
|
|
+ <span class="box-subtitle">背景描述:</span>
|
|
|
+ <div v-html="workItem?.phenologyBackground"></div>
|
|
|
+ </div>
|
|
|
+ <div class="box-advice">
|
|
|
+ <span class="box-subtitle">对策建议:</span>
|
|
|
+ <div v-html="workItem?.phenologySuggestion"></div>
|
|
|
+ </div>
|
|
|
+ <div class="box-sum" v-html="workItem?.phenologySummary"></div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="report-box">
|
|
|
- <div class="box-title">未来预测</div>
|
|
|
- <div class="box-text">
|
|
|
- <div class="box-bg">
|
|
|
- <span class="box-subtitle">背景描述:</span>
|
|
|
- <div v-html="workItem?.forecastBackground"></div>
|
|
|
+
|
|
|
+ <!-- <div class="report-box">
|
|
|
+ <div class="box-title">病虫害问题</div>
|
|
|
+ <div class="box-text">
|
|
|
+ <div class="box-bg">
|
|
|
+ <span class="box-subtitle">背景描述:</span>
|
|
|
+ <div v-html="workItem?.pestBackground"></div>
|
|
|
+ </div>
|
|
|
+ <div class="box-advice">
|
|
|
+ <span class="box-subtitle">对策建议:</span>
|
|
|
+ <div v-html="workItem?.pestSuggestion"></div>
|
|
|
+ </div>
|
|
|
+ <div class="box-sum">
|
|
|
+ <div v-html="workItem?.pestSummary"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="box-advice">
|
|
|
- <span class="box-subtitle">对策建议:</span>
|
|
|
- <div v-html="workItem?.forecastSuggestion"></div>
|
|
|
+
|
|
|
+ <div class="report-box">
|
|
|
+ <div class="box-title">未来预测</div>
|
|
|
+ <div class="box-text">
|
|
|
+ <div class="box-bg">
|
|
|
+ <span class="box-subtitle">背景描述:</span>
|
|
|
+ <div v-html="workItem?.forecastBackground"></div>
|
|
|
+ </div>
|
|
|
+ <div class="box-advice">
|
|
|
+ <span class="box-subtitle">对策建议:</span>
|
|
|
+ <div v-html="workItem?.forecastSuggestion"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class="report-box">
|
|
|
+ <div class="box-text next-info">
|
|
|
+ <div class="box-bg">
|
|
|
+ <span class="box-subtitle">下一次农情互动预告:</span>
|
|
|
+ <div v-html="workItem?.nextInteractionPreview"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
- <div class="report-box">
|
|
|
- <div class="box-text next-info">
|
|
|
- <div class="box-bg">
|
|
|
- <span class="box-subtitle">下一次农情互动预告:</span>
|
|
|
- <div v-html="workItem?.nextInteractionPreview"></div>
|
|
|
+ <!-- 底部按钮 -->
|
|
|
+ <div class="bottom-btn center-btn">
|
|
|
+ <div class="btn-item warning" @click="showQrCodePopup">
|
|
|
+ 解锁详细报告
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div> -->
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- 底部按钮 -->
|
|
|
- <div class="bottom-btn center-btn">
|
|
|
- <div class="btn-item warning" @click="showQrCodePopup">
|
|
|
- 解锁详细报告
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ </swipe-item>
|
|
|
+ </swipe>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
@@ -103,6 +112,7 @@ import CustomHeader from "@/components/customHeader.vue";
|
|
|
import { ref, onActivated, onDeactivated, onUnmounted } from "vue";
|
|
|
import { useRoute } from "vue-router";
|
|
|
import qrCodePopup from "@/components/popup/qrCodePopup.vue";
|
|
|
+import { Swipe, SwipeItem } from 'vant';
|
|
|
|
|
|
const route = useRoute();
|
|
|
const loading = ref(false);
|
|
|
@@ -190,10 +200,13 @@ onUnmounted(() => {
|
|
|
overflow: auto;
|
|
|
box-sizing: border-box;
|
|
|
position: relative;
|
|
|
+ .my-swipe {
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
|
|
|
.bottom-btn {
|
|
|
z-index: 2;
|
|
|
- position: fixed;
|
|
|
+ position: absolute;
|
|
|
bottom: 0;
|
|
|
left: 0;
|
|
|
width: 100%;
|
|
|
@@ -265,6 +278,27 @@ onUnmounted(() => {
|
|
|
.report-header {
|
|
|
position: relative;
|
|
|
|
|
|
+ // 左滑查看更多标签
|
|
|
+ .swipe-more-tag {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ right: -18px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ width: 36px;
|
|
|
+ height: 116px;
|
|
|
+ padding: 10px 10px 2px 0;
|
|
|
+ background: rgba(0, 0, 0, 0.7);
|
|
|
+ border-radius: 16px 0 0 16px;
|
|
|
+ letter-spacing: 2px;
|
|
|
+ color: #ffffff;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 500;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 20px;
|
|
|
+ writing-mode: vertical-rl;
|
|
|
+ text-orientation: mixed;
|
|
|
+ }
|
|
|
+
|
|
|
.header-book {
|
|
|
position: absolute;
|
|
|
right: 0;
|