index.vue 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068
  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 v-html="work?.backgroundDesc"></div>
  85. </div>
  86. <div class="box-advice" v-show="work?.suggestion">
  87. <span class="box-subtitle">对策建议:</span>
  88. <div v-html="work?.suggestion"></div>
  89. </div>
  90. <div class="box-sum" v-show="work?.summary" v-html="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. .box-subtitle {
  644. color: #000;
  645. }
  646. .box-bg {
  647. font-weight: 400;
  648. color: rgba(0, 0, 0, 0.5);
  649. }
  650. .box-advice {
  651. color: rgba(0, 0, 0, 0.5);
  652. padding-top: 10px;
  653. }
  654. .box-sum {
  655. margin-top: 10px;
  656. background: rgba(33, 153, 248, 0.1);
  657. border-radius: 5px;
  658. padding: 10px;
  659. line-height: 20px;
  660. color: #2199F8;
  661. }
  662. &.next-info {
  663. padding: 8px 0 8px 0;
  664. }
  665. }
  666. .row {
  667. display: grid;
  668. grid-template-columns: repeat(3, 1fr);
  669. gap: 6px;
  670. .status-card {
  671. border-radius: 2px;
  672. padding: 7px 0;
  673. background: #ffffff;
  674. border: 0.5px solid #e5e6eb;
  675. color: #000;
  676. display: flex;
  677. flex-direction: column;
  678. align-items: center;
  679. justify-content: center;
  680. &.pending-card {
  681. color: #fff;
  682. position: relative;
  683. padding: 9px 0 7px 0;
  684. .tag-name {
  685. position: absolute;
  686. top: -8px;
  687. right: 0;
  688. background: #fff;
  689. color: #FF6A6A;
  690. font-size: 10px;
  691. height: 17px;
  692. line-height: 17px;
  693. padding: 0 3px;
  694. border-radius: 2px;
  695. box-sizing: border-box;
  696. border: 0.5px solid #FF6A6A;
  697. }
  698. }
  699. .status-badge {
  700. // position: absolute;
  701. // top: 0;
  702. // right: 0;
  703. }
  704. .status-title {
  705. font-size: 16px;
  706. line-height: 24px;
  707. }
  708. .status-sub {
  709. font-size: 10px;
  710. color: rgba(32, 32, 32, 0.4);
  711. line-height: 15px;
  712. &.pending-sub {
  713. color: #fff;
  714. line-height: 13px;
  715. }
  716. }
  717. &.risk-strong {
  718. background: #FF6A6A;
  719. border-color: #FF6A6A;
  720. .status-title,
  721. .status-sub {
  722. color: #ffffff;
  723. }
  724. }
  725. &.danger {
  726. background: #FFE9E9;
  727. border-color: #ff8e8e;
  728. .status-sub {
  729. color: #FF6A6A;
  730. }
  731. }
  732. }
  733. }
  734. }
  735. .report-box+.report-box {
  736. margin-top: 20px;
  737. }
  738. .report-excute {
  739. position: relative;
  740. margin-top: 12px;
  741. .tag-label {
  742. position: absolute;
  743. top: 0;
  744. left: 0;
  745. padding: 4px 10px;
  746. background: rgba(54, 52, 52, 0.8);
  747. color: #fff;
  748. font-size: 12px;
  749. border-radius: 8px 0 8px 0;
  750. z-index: 1;
  751. }
  752. ::v-deep {
  753. .carousel-container .carousel-wrapper .carousel-img {
  754. min-width: calc(100vw - 32px);
  755. width: calc(100vw - 32px);
  756. }
  757. }
  758. }
  759. }
  760. .download-btn {
  761. position: fixed;
  762. bottom: 20px;
  763. left: 50%;
  764. // background: #fff;
  765. // box-shadow: 2px 2px 4.5px 0px #00000066;
  766. // width: 100%;
  767. transform: translateX(-50%);
  768. }
  769. .review-hide-box {
  770. position: absolute;
  771. left: 0;
  772. width: 100%;
  773. height: 100%;
  774. z-index: -1;
  775. bottom: 0;
  776. }
  777. .review-image {
  778. position: relative;
  779. display: flex;
  780. align-items: center;
  781. justify-content: center;
  782. gap: 8px;
  783. margin: 12px;
  784. background: #fff;
  785. border-radius: 8px;
  786. .review-mask {
  787. z-index: 1;
  788. pointer-events: none;
  789. position: absolute;
  790. left: 0;
  791. top: 0;
  792. width: 100%;
  793. height: 100%;
  794. border-radius: 8px;
  795. background: linear-gradient(360deg,
  796. rgba(0, 0, 0, 0.78) 0%,
  797. rgba(0, 0, 0, 0.437208) 19.87%,
  798. rgba(0, 0, 0, 0) 33.99%);
  799. display: flex;
  800. flex-direction: column;
  801. align-items: baseline;
  802. justify-content: end;
  803. padding: 12px;
  804. box-sizing: border-box;
  805. color: #fff;
  806. .review-text {
  807. font-family: "PangMenZhengDao";
  808. font-size: 16px;
  809. margin-bottom: 1px;
  810. }
  811. .review-content {
  812. font-size: 10px;
  813. line-height: 15px;
  814. }
  815. }
  816. .vs-wrap {
  817. position: absolute;
  818. left: 50%;
  819. top: 50%;
  820. transform: translate(-50%, -50%);
  821. width: 40px;
  822. height: 40px;
  823. z-index: 10;
  824. img {
  825. width: 100%;
  826. height: 100%;
  827. object-fit: cover;
  828. }
  829. }
  830. .review-image-item {
  831. position: relative;
  832. flex: 1;
  833. .review-image-item-title {
  834. position: absolute;
  835. top: 0;
  836. left: 0;
  837. background: rgba(54, 52, 52, 0.6);
  838. padding: 4px 10px;
  839. border-radius: 8px 0 8px 0;
  840. backdrop-filter: 4px;
  841. font-size: 12px;
  842. color: #fff;
  843. }
  844. // .review-image-item-img {
  845. // width: 100%;
  846. // height: 250px;
  847. // object-fit: cover;
  848. // }
  849. .review-image-item-img {
  850. width: 100%;
  851. height: 100%;
  852. object-fit: cover;
  853. object-position: center;
  854. }
  855. .left-img {
  856. border-radius: 8px 0 0 8px;
  857. }
  858. .right-img {
  859. border-radius: 0 8px 8px 0;
  860. }
  861. }
  862. }
  863. }
  864. .cavans-popup {
  865. width: 100%;
  866. max-width: 100%;
  867. max-height: 92vh;
  868. background: none;
  869. border-radius: 12px;
  870. overflow: auto;
  871. display: flex;
  872. flex-direction: column;
  873. backdrop-filter: 4px;
  874. .cavans-content {
  875. text-align: center;
  876. padding: 0 12px;
  877. height: fit-content;
  878. overflow: auto;
  879. .current-img {
  880. width: 100%;
  881. }
  882. }
  883. // 底部操作按钮
  884. .bottom-actions {
  885. flex-shrink: 0;
  886. .action-buttons {
  887. padding: 12px 0 4px 0;
  888. display: flex;
  889. justify-content: space-around;
  890. .action-btn {
  891. display: flex;
  892. flex-direction: column;
  893. align-items: center;
  894. cursor: pointer;
  895. &.text-btn {
  896. font-size: 12px;
  897. color: rgba(255, 255, 255, 0.7);
  898. }
  899. .icon-circle {
  900. width: 48px;
  901. height: 48px;
  902. border-radius: 50%;
  903. display: flex;
  904. align-items: center;
  905. justify-content: center;
  906. color: #fff;
  907. margin-bottom: 4px;
  908. .el-icon {
  909. color: #fff;
  910. }
  911. img {
  912. width: 50px;
  913. }
  914. }
  915. &.blue-btn .icon-circle {
  916. background: #2199f8;
  917. }
  918. &.green-btn .icon-circle {
  919. background: #07c160;
  920. }
  921. &.orange-btn .icon-circle {
  922. background: #ff790b;
  923. }
  924. .btn-label {
  925. font-size: 12px;
  926. color: #fff;
  927. }
  928. }
  929. }
  930. .cancel-btn {
  931. text-align: center;
  932. font-size: 18px;
  933. color: #fff;
  934. cursor: pointer;
  935. }
  936. }
  937. }
  938. </style>