index.vue 34 KB

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