index.vue 38 KB

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