index.vue 33 KB

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