index.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991
  1. <template>
  2. <div class="achievement-report-page" :style="{ height: `calc(100vh - ${tabBarHeight}px)` }">
  3. <!-- 天气遮罩 -->
  4. <div class="weather-mask" v-show="isExpanded" @click="handleMaskClick"></div>
  5. <!-- 组件:天气 -->
  6. <weather-info ref="weatherInfoRef" class="weather-info" @weatherExpanded="weatherExpanded"
  7. @changeGarden="changeGarden" :isGarden="true"></weather-info>
  8. <div class="report-content-wrap" v-if="hasReport" v-loading="loading">
  9. <swipe class="my-swipe" :loop="false" indicator-color="white" @change="handleSwipeChange">
  10. <swipe-item v-for="(item, index) in regionsData" :key="index">
  11. <div class="report-content has-report" :style="{ minHeight: `calc(100vh - ${tabBarHeight}px)` }">
  12. <!-- <img src="@/assets/img/home/qrcode.png" alt="" class="code-icon" /> -->
  13. <img class="header-img" src="@/assets/img/home/report.png" alt="" />
  14. <div class="report-header">
  15. <!-- <img class="header-book" src="@/assets/img/home/book.png" alt="" /> -->
  16. <div class="time-tag">{{ workItems?.[0]?.reportDate }}</div>
  17. <div class="report-title">{{regionsData[currentIndex]?.regionName}}长势报告</div>
  18. <div class="report-info">
  19. <div class="info-item">
  20. <img class="info-icon" src="@/assets/img/home/farm.png" alt="" />
  21. <span class="info-text">{{ currentFarmName }}</span>
  22. </div>
  23. </div>
  24. <!-- 左滑查看更多 -->
  25. <div class="swipe-more-tag" v-show="currentIndex < regionsData.length - 1">
  26. 左滑查看更多分区
  27. </div>
  28. </div>
  29. <div class="report-box">
  30. <div class="box-title warning">今日巡园重点</div>
  31. <div class="box-text w-100">
  32. <div class="row">
  33. <div v-for="(card, cardI) in todayPatrolFocus" :key="cardI" class="status-card" :class="card.type"
  34. >
  35. <!-- <badge class="status-badge" dot
  36. :offset="[80, -10]">
  37. </badge> -->
  38. <div class="status-title">
  39. {{ card.title }}
  40. </div>
  41. <div class="status-sub" v-if="card.source === 'NEXT_PHENOLOGY'">
  42. 预计{{card.daysUntilNext}}天后进入
  43. </div>
  44. <div class="status-sub" v-else>
  45. {{ card.description }}
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="report-box">
  52. <div class="box-title warning">待执行农事</div>
  53. <div class="box-text w-100">
  54. <div class="row">
  55. <div v-for="(card, cardI) in pendingFarmWork" :key="cardI" class="status-card" :class="card.type"
  56. >
  57. <!-- <badge class="status-badge" dot
  58. :offset="[80, -10]">
  59. </badge> -->
  60. <div class="status-title">
  61. {{ card.name }}
  62. </div>
  63. <div class="status-sub">
  64. {{ card.status }}
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="report-box" v-for="(work, workI) in workItems" :key="workI">
  71. <div class="box-title">{{ work?.title }}</div>
  72. <div class="box-text">
  73. <div class="box-bg" v-show="work?.backgroundDesc">
  74. <span class="box-subtitle">背景描述:</span>
  75. <div v-html="work?.backgroundDesc"></div>
  76. </div>
  77. <div class="box-advice" v-show="work?.suggestion">
  78. <span class="box-subtitle">对策建议:</span>
  79. <div v-html="work?.suggestion"></div>
  80. </div>
  81. <div class="box-sum" v-show="work?.summary" v-html="work?.summary"></div>
  82. </div>
  83. </div>
  84. <!-- <div class="report-box">
  85. <div class="box-text next-info">
  86. <div class="box-bg">
  87. <span class="box-subtitle">下一次农情互动预告:</span>
  88. <div v-html="workItem?.nextInteractionPreview"></div>
  89. </div>
  90. </div>
  91. </div> -->
  92. </div>
  93. </swipe-item>
  94. </swipe>
  95. </div>
  96. <div v-else class="fake-report-wrap report-content-wrap">
  97. <div class="report-content">
  98. <img class="header-img" src="@/assets/img/home/report.png" alt="" />
  99. <div class="report-header">
  100. <!-- <img class="header-book" src="@/assets/img/home/book.png" alt="" /> -->
  101. <div class="time-tag">{{ new Date().toISOString().split('T')[0] }}</div>
  102. <div class="report-title">作物长势报告</div>
  103. <div class="report-info pb-4">
  104. <div class="info-item">
  105. <img class="info-icon" src="@/assets/img/home/farm.png" alt="" />
  106. <span class="info-text">示范农场</span>
  107. </div>
  108. </div>
  109. </div>
  110. <div class="fake-img">
  111. <img src="@/assets/img/home/fake.png" alt="" class="fake-img-item" />
  112. </div>
  113. <div class="lock-img" @click="handleLockClick">
  114. <img src="@/assets/img/home/lock-blue.png" alt="" class="lock-img-item" />
  115. <div class="lock-text">
  116. 专属数字农场,种好卖好
  117. <div>点击解锁一键溯源增产</div>
  118. </div>
  119. <div class="lock-btn">点击解锁</div>
  120. </div>
  121. <div class="lock-bg"></div>
  122. </div>
  123. </div>
  124. <!-- 首次进入页面的左滑查看提示遮罩 -->
  125. <div class="swipe-guide-mask" v-if="showSwipeGuide" @click="closeSwipeGuide">
  126. <div class="swipe-guide-content">
  127. <img class="swipe-guide-icon" src="@/assets/img/home/point.png" alt="swipe" />
  128. <div class="swipe-guide-text">左滑查看其它分区报告</div>
  129. </div>
  130. </div>
  131. <tip-popup v-model:show="showBindSuccess" type="success" text="您的农场已绑定成功" />
  132. <start-interact-popup ref="startInteractPopupRef" />
  133. </div>
  134. </template>
  135. <script setup>
  136. import wx from "weixin-js-sdk";
  137. import weatherInfo from "@/components/weatherInfo.vue";
  138. import { ref, onActivated, onDeactivated, onUnmounted, computed } from "vue";
  139. import { useRoute, useRouter } from "vue-router";
  140. import { useStore } from "vuex";
  141. import { Swipe, SwipeItem, Badge } from 'vant';
  142. import tipPopup from "@/components/popup/tipPopup.vue";
  143. import startInteractPopup from "@/components/popup/startInteractPopup.vue";
  144. const store = useStore();
  145. const tabBarHeight = computed(() => store.state.home.tabBarHeight);
  146. const route = useRoute();
  147. const router = useRouter();
  148. const loading = ref(false);
  149. const hasReport = ref(false);
  150. const workItems = ref([]);
  151. const paramsPage = ref({});
  152. const showBindSuccess = ref(false);
  153. const startInteractPopupRef = ref(null);
  154. // 天气组件相关
  155. const isExpanded = ref(false);
  156. const weatherInfoRef = ref(null);
  157. // 首次进入页面的左滑提示遮罩
  158. const showSwipeGuide = ref(false);
  159. const weatherExpanded = (isExpandedValue) => {
  160. isExpanded.value = isExpandedValue;
  161. };
  162. // 点击遮罩时收起天气
  163. const handleMaskClick = () => {
  164. if (weatherInfoRef.value && weatherInfoRef.value.toggleExpand) {
  165. weatherInfoRef.value.toggleExpand();
  166. }
  167. };
  168. const currentFarmName = ref('');
  169. // 切换农场时,更新报告数据
  170. const changeGarden = ({ id, name }) => {
  171. if (!id) return;
  172. currentFarmName.value = name;
  173. paramsPage.value = {
  174. ...(paramsPage.value || {}),
  175. subjectId: id,
  176. };
  177. startInteractPopupRef.value.getPhenologyInitOrConfirmStatus();
  178. getRegions();
  179. };
  180. onActivated(() => {
  181. window.scrollTo(0, 0);
  182. // 如果路由中带有 miniJson,并且其中有 showBind,则展示绑定成功弹窗
  183. const { miniJson } = route.query || {};
  184. if (miniJson) {
  185. try {
  186. const parsed = typeof miniJson === "string" ? JSON.parse(miniJson) : miniJson;
  187. if (parsed && parsed.showBind) {
  188. showBindSuccess.value = true;
  189. // 处理完后清空路由中的 miniJson 参数,避免重复弹出
  190. const newQuery = { ...(route.query || {}) };
  191. delete newQuery.miniJson;
  192. router.replace({ path: route.path, query: newQuery });
  193. }
  194. } catch (e) {
  195. // miniJson 解析失败时忽略,不影响正常流程
  196. }
  197. }
  198. // getResultReport();
  199. });
  200. // 关闭左滑提示遮罩
  201. const closeSwipeGuide = () => {
  202. showSwipeGuide.value = false;
  203. };
  204. const handleLockClick = () => {
  205. wx.miniProgram.navigateTo({
  206. url: '/pages/subPages/phone_auth/index',
  207. });
  208. // wx.miniProgram.navigateTo({
  209. // url: `/pages/subPages/share_page/index?pageParams=${JSON.stringify(query)}&type=sharePage`,
  210. // });
  211. }
  212. const setReadStatus = (id) => {
  213. VE_API.farm.readReportByFarm({ id, isRead: 1 }).then(({ data }) => {
  214. console.log(data);
  215. });
  216. }
  217. const todayPatrolFocus = ref([]);
  218. const pendingFarmWork = ref([]);
  219. const getTodayPatrolFocus = () => {
  220. VE_API.report.todayPatrolFocus({ farmId: paramsPage.value.farmId, regionId:paramsPage.value.regionId }).then(({ data }) => {
  221. todayPatrolFocus.value = data || [];
  222. });
  223. }
  224. const getPendingFarmWork = () => {
  225. VE_API.report.pendingFarmWork({ farmId: paramsPage.value.farmId, regionId: paramsPage.value.regionId }).then(({ data }) => {
  226. pendingFarmWork.value = data || [];
  227. });
  228. }
  229. const currentIndex = ref(0);
  230. const handleSwipeChange = (index) => {
  231. currentIndex.value = index;
  232. if (paramsPage.value.regionId !== regionsData.value[index].regionId) {
  233. paramsPage.value = {
  234. ...(paramsPage.value || {}),
  235. farmId: regionsData.value[index].farmId,
  236. regionId: regionsData.value[index].regionId,
  237. };
  238. getTodayPatrolFocus();
  239. getPendingFarmWork();
  240. getDetail();
  241. }
  242. }
  243. const getDetail = () => {
  244. if (!paramsPage.value.farmId) return;
  245. loading.value = true;
  246. VE_API.report
  247. .reproductiveReport({ farmId: paramsPage.value.farmId, regionId: paramsPage.value.regionId })
  248. .then(({ data }) => {
  249. console.log('data', data);
  250. workItems.value = data || [];
  251. // data?.[0]?.id && setReadStatus(data[0]?.id);
  252. })
  253. .finally(() => {
  254. loading.value = false;
  255. });
  256. };
  257. const regionsData = ref([]);
  258. const getRegions = async () => {
  259. VE_API.monitor.listRegionsBySubjectId({
  260. subjectId: paramsPage.value.subjectId,
  261. }).then(({ data }) => {
  262. regionsData.value = data || [];
  263. if(regionsData.value.length > 0) {
  264. const guideKey = "GROWTH_REPORT_SWIPE_GUIDE_SHOWN";
  265. if (!localStorage.getItem(guideKey)) {
  266. showSwipeGuide.value = true;
  267. localStorage.setItem(guideKey, "1");
  268. }
  269. hasReport.value = true;
  270. paramsPage.value = {
  271. ...(paramsPage.value || {}),
  272. farmId: regionsData.value[0].farmId,
  273. regionId: regionsData.value[0].regionId,
  274. };
  275. getTodayPatrolFocus();
  276. getPendingFarmWork();
  277. getDetail();
  278. } else {
  279. hasReport.value = false;
  280. }
  281. });
  282. }
  283. // 清理数据的函数
  284. const clearData = () => {
  285. workItems.value = [];
  286. paramsPage.value = {};
  287. loading.value = false;
  288. };
  289. onDeactivated(() => {
  290. clearData();
  291. });
  292. onUnmounted(() => {
  293. clearData();
  294. });
  295. </script>
  296. <style lang="scss" scoped>
  297. .achievement-report-page {
  298. width: 100%;
  299. height: 100vh;
  300. background: linear-gradient(195.35deg, #d4e4ff 16.34%, rgba(93, 189, 255, 0) 50.3%),
  301. linear-gradient(156.64deg, rgba(255, 255, 255, 0.16) 27.7%, rgba(255, 255, 255, 0) 72.82%);
  302. .weather-mask {
  303. position: fixed;
  304. top: 0;
  305. left: 0;
  306. width: 100%;
  307. height: 100%;
  308. background-color: rgba(0, 0, 0, 0.52);
  309. z-index: 11;
  310. }
  311. .weather-info {
  312. width: calc(100% - 20px);
  313. position: absolute;
  314. z-index: 12;
  315. left: 10px;
  316. top: 12px;
  317. }
  318. .fake-report-wrap {
  319. width: 100%;
  320. .no-report-img {
  321. width: 100%;
  322. }
  323. .fake-img {
  324. position: relative;
  325. .fake-img-item {
  326. width: 100%;
  327. }
  328. }
  329. }
  330. .report-content-wrap {
  331. height: 100%;
  332. // padding-bottom: 60px;
  333. overflow: auto;
  334. box-sizing: border-box;
  335. position: relative;
  336. .bottom-btn {
  337. z-index: 2;
  338. position: fixed;
  339. bottom: 0;
  340. left: 0;
  341. width: 100%;
  342. background: #fff;
  343. height: 60px;
  344. display: flex;
  345. align-items: center;
  346. justify-content: space-between;
  347. padding: 0 12px;
  348. box-sizing: border-box;
  349. box-shadow: 2px 2px 4.5px 0px rgba(0, 0, 0, 0.4);
  350. .btn-item {
  351. height: 40px;
  352. line-height: 40px;
  353. padding: 0 24px;
  354. border-radius: 20px;
  355. font-size: 14px;
  356. &.second {
  357. color: #666666;
  358. border: 1px solid rgba(153, 153, 153, 0.5);
  359. }
  360. &.primay {
  361. padding: 0 34px;
  362. background: linear-gradient(180deg, #76c3ff, #2199f8);
  363. color: #fff;
  364. }
  365. }
  366. }
  367. }
  368. // 首次进入页面左滑提示遮罩
  369. .swipe-guide-mask {
  370. position: fixed;
  371. left: 0;
  372. top: 0;
  373. width: 100%;
  374. height: 100%;
  375. background: rgba(0, 0, 0, 0.6);
  376. z-index: 99999;
  377. display: flex;
  378. align-items: center;
  379. justify-content: center;
  380. .swipe-guide-content {
  381. display: flex;
  382. flex-direction: column;
  383. align-items: center;
  384. justify-content: center;
  385. color: #ffffff;
  386. text-align: center;
  387. }
  388. .swipe-guide-icon {
  389. width: 71px;
  390. height: 79px;
  391. object-fit: contain;
  392. margin-bottom: 23px;
  393. }
  394. .swipe-guide-text {
  395. font-size: 20px;
  396. }
  397. }
  398. .code-icon {
  399. position: absolute;
  400. right: 10px;
  401. top: 12px;
  402. width: 48px;
  403. }
  404. .report-content {
  405. // background: url("@/assets/img/home/report_bg.png") no-repeat center center;
  406. // background: linear-gradient(0deg, #9BCCFF, #9BCCFF),
  407. // linear-gradient(160deg, rgba(255, 255, 255, 0.16) 30%, rgba(255, 255, 255, 0) 72%);
  408. background: #abd4ff;
  409. background-size: 100% auto;
  410. background-position: top center;
  411. padding: 0 16px 26px 16px;
  412. box-sizing: border-box;
  413. position: relative;
  414. &.has-report {
  415. min-height: 100%;
  416. background: linear-gradient(0deg, #9BCCFF, #9BCCFF),
  417. linear-gradient(156.64deg, rgba(255, 255, 255, 0.16) 27.7%, rgba(255, 255, 255, 0) 72.82%);
  418. }
  419. .lock-bg {
  420. position: absolute;
  421. top: 230px;
  422. left: 0;
  423. width: 100%;
  424. height: calc(100% - 230px);
  425. background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0) 100%),
  426. linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
  427. }
  428. .lock-img {
  429. position: fixed;
  430. z-index: 10;
  431. top: 50%;
  432. left: 50%;
  433. transform: translate(-50%, -20%);
  434. width: 100%;
  435. display: flex;
  436. align-items: center;
  437. justify-content: center;
  438. flex-direction: column;
  439. gap: 16px;
  440. .lock-img-item {
  441. width: 57px;
  442. }
  443. .lock-text {
  444. font-size: 14px;
  445. color: #000;
  446. padding: 5px 64px;
  447. line-height: 21px;
  448. background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 50%, rgba(255, 255, 255, 0) 100%);
  449. }
  450. .lock-btn {
  451. width: 140px;
  452. height: 40px;
  453. line-height: 40px;
  454. text-align: center;
  455. background: linear-gradient(180deg, #76C3FF 0%, #2199F8 100%);
  456. border-radius: 25px;
  457. color: #fff;
  458. font-size: 16px;
  459. }
  460. }
  461. .header-img {
  462. position: absolute;
  463. top: 0;
  464. left: 0;
  465. width: 100%;
  466. }
  467. .report-header {
  468. position: relative;
  469. padding-top: 112px;
  470. .header-book {
  471. position: absolute;
  472. right: 0;
  473. bottom: -6px;
  474. height: 88px;
  475. z-index: 10;
  476. }
  477. .time-tag {
  478. background: #2199F8;
  479. border-radius: 5px 0 5px 0;
  480. height: 23px;
  481. line-height: 23px;
  482. font-size: 13px;
  483. font-weight: 500;
  484. color: #fff;
  485. padding: 0 9px;
  486. width: fit-content;
  487. margin-bottom: 2px;
  488. }
  489. .report-title {
  490. font-family: "PangMenZhengDao";
  491. font-size: 34px;
  492. line-height: 38px;
  493. color: #000000;
  494. }
  495. .report-info {
  496. padding: 12px 0 28px 0;
  497. &.pb-4 {
  498. padding-bottom: 4px;
  499. }
  500. .info-item {
  501. width: fit-content;
  502. display: flex;
  503. height: 33px;
  504. align-items: center;
  505. padding: 0 18px 0 6px;
  506. background: linear-gradient(90deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.0696) 100%);
  507. border-radius: 20px;
  508. border: 0.5px solid rgba(33, 153, 248, 0.35);
  509. gap: 6px;
  510. .info-icon {
  511. width: 26px;
  512. height: 26px;
  513. object-fit: cover;
  514. border-radius: 50%;
  515. }
  516. .info-text {
  517. font-size: 14px;
  518. color: #000;
  519. }
  520. }
  521. .info-item+.info-item {
  522. margin-top: 5px;
  523. }
  524. }
  525. // 左滑查看更多标签
  526. .swipe-more-tag {
  527. position: absolute;
  528. bottom: 10px;
  529. right: -16px;
  530. box-sizing: border-box;
  531. width: 36px;
  532. height: 134px;
  533. padding: 0px 10px 2px 0;
  534. background: rgba(0, 0, 0, 0.7);
  535. border-radius: 10px 0 0 10px;
  536. letter-spacing: 2px;
  537. color: #ffffff;
  538. font-size: 12px;
  539. text-align: center;
  540. line-height: 20px;
  541. writing-mode: vertical-rl;
  542. text-orientation: mixed;
  543. }
  544. }
  545. .report-box {
  546. display: flex;
  547. align-items: center;
  548. padding: 8px;
  549. background: linear-gradient(0deg, #ffffff 86.32%, #2199f8 136.87%);
  550. border: 1px solid #ffffff;
  551. border-radius: 8px;
  552. gap: 5px;
  553. position: relative;
  554. .report-box-item {
  555. flex: 1;
  556. background: rgba(33, 153, 248, 0.1);
  557. border-radius: 8px;
  558. min-height: 62px;
  559. box-sizing: border-box;
  560. padding: 2px 4px;
  561. display: flex;
  562. flex-direction: column;
  563. justify-content: center;
  564. .item-content {
  565. color: #2199f8;
  566. font-size: 14px;
  567. text-align: center;
  568. }
  569. .item-title {
  570. color: #000000;
  571. font-size: 10px;
  572. text-align: center;
  573. padding-top: 5px;
  574. }
  575. }
  576. .box-title {
  577. position: absolute;
  578. top: -8px;
  579. left: -1px;
  580. height: 32px;
  581. line-height: 26px;
  582. font-family: "PangMenZhengDao";
  583. font-size: 14px;
  584. padding: 0 10px;
  585. color: #ffffff;
  586. background: url("@/assets/img/home/title-bg.png") no-repeat center center / 100% 100%;
  587. &.warning {
  588. background: url("@/assets/img/home/title-bg-warning.png") no-repeat center center / 100% 100%;
  589. }
  590. }
  591. .w-100 {
  592. width: 100%;
  593. }
  594. .box-text {
  595. padding: 22px 0 8px 0;
  596. font-weight: 350;
  597. line-height: 21px;
  598. .box-subtitle {
  599. color: #000;
  600. }
  601. .box-bg {
  602. font-weight: 400;
  603. color: rgba(0, 0, 0, 0.5);
  604. }
  605. .box-advice {
  606. color: rgba(0, 0, 0, 0.5);
  607. padding-top: 10px;
  608. }
  609. .box-sum {
  610. margin-top: 10px;
  611. background: rgba(33, 153, 248, 0.1);
  612. border-radius: 5px;
  613. padding: 10px;
  614. line-height: 20px;
  615. color: #2199F8;
  616. }
  617. &.next-info {
  618. padding: 8px 0 8px 0;
  619. }
  620. }
  621. .row {
  622. display: grid;
  623. grid-template-columns: repeat(3, 1fr);
  624. gap: 6px;
  625. .status-card {
  626. border-radius: 2px;
  627. padding: 7px 0;
  628. background: #ffffff;
  629. border: 0.5px solid #e5e6eb;
  630. display: flex;
  631. flex-direction: column;
  632. align-items: center;
  633. justify-content: center;
  634. .status-badge {
  635. // position: absolute;
  636. // top: 0;
  637. // right: 0;
  638. }
  639. .status-title {
  640. font-size: 16px;
  641. }
  642. .status-sub {
  643. font-size: 10px;
  644. color: rgba(32, 32, 32, 0.4);
  645. }
  646. &.risk-strong {
  647. background: #FF6A6A;
  648. border-color: #FF6A6A;
  649. .status-title,
  650. .status-sub {
  651. color: #ffffff;
  652. }
  653. }
  654. &.danger {
  655. background: #FFE9E9;
  656. border-color: #ff8e8e;
  657. .status-sub {
  658. color: #FF6A6A;
  659. }
  660. }
  661. }
  662. }
  663. }
  664. .report-box+.report-box {
  665. margin-top: 20px;
  666. }
  667. .report-excute {
  668. position: relative;
  669. margin-top: 12px;
  670. .tag-label {
  671. position: absolute;
  672. top: 0;
  673. left: 0;
  674. padding: 4px 10px;
  675. background: rgba(54, 52, 52, 0.8);
  676. color: #fff;
  677. font-size: 12px;
  678. border-radius: 8px 0 8px 0;
  679. z-index: 1;
  680. }
  681. ::v-deep {
  682. .carousel-container .carousel-wrapper .carousel-img {
  683. min-width: calc(100vw - 32px);
  684. width: calc(100vw - 32px);
  685. }
  686. }
  687. }
  688. }
  689. .download-btn {
  690. position: fixed;
  691. bottom: 20px;
  692. left: 50%;
  693. // background: #fff;
  694. // box-shadow: 2px 2px 4.5px 0px #00000066;
  695. // width: 100%;
  696. transform: translateX(-50%);
  697. }
  698. .review-hide-box {
  699. position: absolute;
  700. left: 0;
  701. width: 100%;
  702. height: 100%;
  703. z-index: -1;
  704. bottom: 0;
  705. }
  706. .review-image {
  707. position: relative;
  708. display: flex;
  709. align-items: center;
  710. justify-content: center;
  711. gap: 8px;
  712. margin: 12px;
  713. background: #fff;
  714. border-radius: 8px;
  715. .review-mask {
  716. z-index: 1;
  717. pointer-events: none;
  718. position: absolute;
  719. left: 0;
  720. top: 0;
  721. width: 100%;
  722. height: 100%;
  723. border-radius: 8px;
  724. background: linear-gradient(360deg,
  725. rgba(0, 0, 0, 0.78) 0%,
  726. rgba(0, 0, 0, 0.437208) 19.87%,
  727. rgba(0, 0, 0, 0) 33.99%);
  728. display: flex;
  729. flex-direction: column;
  730. align-items: baseline;
  731. justify-content: end;
  732. padding: 12px;
  733. box-sizing: border-box;
  734. color: #fff;
  735. .review-text {
  736. font-family: "PangMenZhengDao";
  737. font-size: 16px;
  738. margin-bottom: 1px;
  739. }
  740. .review-content {
  741. font-size: 10px;
  742. line-height: 15px;
  743. }
  744. }
  745. .vs-wrap {
  746. position: absolute;
  747. left: 50%;
  748. top: 50%;
  749. transform: translate(-50%, -50%);
  750. width: 40px;
  751. height: 40px;
  752. z-index: 10;
  753. img {
  754. width: 100%;
  755. height: 100%;
  756. object-fit: cover;
  757. }
  758. }
  759. .review-image-item {
  760. position: relative;
  761. flex: 1;
  762. .review-image-item-title {
  763. position: absolute;
  764. top: 0;
  765. left: 0;
  766. background: rgba(54, 52, 52, 0.6);
  767. padding: 4px 10px;
  768. border-radius: 8px 0 8px 0;
  769. backdrop-filter: 4px;
  770. font-size: 12px;
  771. color: #fff;
  772. }
  773. // .review-image-item-img {
  774. // width: 100%;
  775. // height: 250px;
  776. // object-fit: cover;
  777. // }
  778. .review-image-item-img {
  779. width: 100%;
  780. height: 100%;
  781. object-fit: cover;
  782. object-position: center;
  783. }
  784. .left-img {
  785. border-radius: 8px 0 0 8px;
  786. }
  787. .right-img {
  788. border-radius: 0 8px 8px 0;
  789. }
  790. }
  791. }
  792. }
  793. .cavans-popup {
  794. width: 100%;
  795. max-width: 100%;
  796. max-height: 92vh;
  797. background: none;
  798. border-radius: 12px;
  799. overflow: auto;
  800. display: flex;
  801. flex-direction: column;
  802. backdrop-filter: 4px;
  803. .cavans-content {
  804. text-align: center;
  805. padding: 0 12px;
  806. height: fit-content;
  807. overflow: auto;
  808. .current-img {
  809. width: 100%;
  810. }
  811. }
  812. // 底部操作按钮
  813. .bottom-actions {
  814. flex-shrink: 0;
  815. .action-buttons {
  816. padding: 12px 0 4px 0;
  817. display: flex;
  818. justify-content: space-around;
  819. .action-btn {
  820. display: flex;
  821. flex-direction: column;
  822. align-items: center;
  823. cursor: pointer;
  824. &.text-btn {
  825. font-size: 12px;
  826. color: rgba(255, 255, 255, 0.7);
  827. }
  828. .icon-circle {
  829. width: 48px;
  830. height: 48px;
  831. border-radius: 50%;
  832. display: flex;
  833. align-items: center;
  834. justify-content: center;
  835. color: #fff;
  836. margin-bottom: 4px;
  837. .el-icon {
  838. color: #fff;
  839. }
  840. img {
  841. width: 50px;
  842. }
  843. }
  844. &.blue-btn .icon-circle {
  845. background: #2199f8;
  846. }
  847. &.green-btn .icon-circle {
  848. background: #07c160;
  849. }
  850. &.orange-btn .icon-circle {
  851. background: #ff790b;
  852. }
  853. .btn-label {
  854. font-size: 12px;
  855. color: #fff;
  856. }
  857. }
  858. }
  859. .cancel-btn {
  860. text-align: center;
  861. font-size: 18px;
  862. color: #fff;
  863. cursor: pointer;
  864. }
  865. }
  866. }
  867. </style>