index.vue 52 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213
  1. <template>
  2. <div class="album-page">
  3. <div class="album-wrap" ref="scrollContainer">
  4. <!-- <div class="barrage-title">
  5. 农情动态
  6. </div> -->
  7. <div class="album-content">
  8. <div class="album-bottom">
  9. <el-affix :offset="108">
  10. <div class="album-l">
  11. <el-menu default-active="0" class="el-menu-vertical-demo">
  12. <el-menu-item
  13. v-for="(item, index) in farmWorkList"
  14. :key="index"
  15. :index="index.toString()"
  16. :id="'menu' + index"
  17. :class="{ active: activeSection === index }"
  18. @click="scrollToSection(index)"
  19. v-show="item.menu"
  20. >
  21. <img
  22. class="menu-icon"
  23. :src="
  24. require('@/assets/img/gallery/icon-' +
  25. item.icon + '.png')
  26. "
  27. />
  28. <div
  29. :class="[
  30. 'menu-name',
  31. {
  32. feature: item.execute === 0 ||item.execute === 2,
  33. onTime: item.execute === 1,
  34. now: item.execute === 3,
  35. },
  36. ]"
  37. >
  38. {{ item.farmWorkName }}
  39. </div>
  40. </el-menu-item>
  41. </el-menu>
  42. </div>
  43. </el-affix>
  44. <div class="album-r" @scroll="debouncedHandleScroll2">
  45. <!-- <div class="log-wrap">
  46. <div class="log-box">
  47. <div class="log-title PangMenZhengDao-FONT">
  48. <span>果园日志</span>
  49. </div>
  50. <div class="log-content">
  51. <div class="log-desc" v-html="indicatorChartData?.content"></div>
  52. <indicatorChart
  53. :key="cardI+'log'"
  54. :isDark="true"
  55. :chartData="indicatorChartData"
  56. ></indicatorChart>
  57. </div>
  58. </div>
  59. </div> -->
  60. <div
  61. class="done-card section"
  62. v-for="(card, cardI) in farmWorkList"
  63. :key="cardI"
  64. >
  65. <div
  66. class="card-dom"
  67. :id="'section' + cardI"
  68. ></div>
  69. <div class="card-wrap" :class="{ noCarousel: (card.execute !== 0 && card.execute !== 2), 'done': (card.execute === 4 || card.execute === 5) }">
  70. <div
  71. class="card-content"
  72. :class="{ push: card.execute === 3, hasBg: (card.execute === 0 || card.execute === 2) && !card.hasBg }"
  73. >
  74. <div
  75. class="card-top"
  76. @click.stop="showDetail(card)"
  77. >
  78. <!-- :class="{ noChart: !card.indexChart.length }" -->
  79. <div class="card-title serve-title">
  80. <div class="title-name">{{ card.farmWorkName }}</div>
  81. <div v-if="card.type === 1" class="status-tag standard">标准农事</div>
  82. <div v-if="card.type === 2" class="status-tag advice">推荐农事</div>
  83. <div v-if="card.type === 0" class="status-tag warning">预警农事</div>
  84. <!-- 右上角角标 -->
  85. <div v-if="card.execute === 0" class="add-btn">
  86. 未触发
  87. </div>
  88. <div
  89. v-if="card.execute === 2"
  90. class="add-btn unactive"
  91. >
  92. 未激活
  93. </div>
  94. <div v-if="card.execute === 3" class="add-btn">待执行</div>
  95. <div v-if="card.execute === 4" class="add-btn recheck">
  96. 已完成
  97. </div>
  98. <div v-if="card.execute === 5" class="add-btn recheck">
  99. 已复核
  100. </div>
  101. <div v-if="card.execute === 1" class="add-btn unactive">已失效</div>
  102. </div>
  103. <!-- <div v-else class="card-title">
  104. <div class="title-name">{{ card.farmWorkName }}</div>
  105. <div class="status-tag blue">{{ card.reCheck ? "已复核" : "已完成" }}</div>
  106. <div class="status-tag blue good-wrap">
  107. 优<img class="good" src="@/assets/img/weather_index/good.png" />
  108. </div>
  109. </div> -->
  110. <div v-if="card.execute === 4 || card.execute === 5">
  111. <!-- 已完成 -->
  112. <div class="card-desc">
  113. <span class="desc-title">服务主体:</span>
  114. <span class="desc-val">{{ card.serviceMain || "大荔农业" }}</span>
  115. </div>
  116. <div class="card-desc">
  117. <span class="desc-title">执行主体:</span>
  118. <span class="desc-val short">{{ card.executeMain || "大荔农业" }}</span>
  119. </div>
  120. <div class="card-desc">
  121. <span class="desc-title">执行时间:</span>
  122. {{ card.executeDate }}
  123. </div>
  124. <div class="card-desc">
  125. <span class="desc-title">指导专家:</span>
  126. <span class="expert-link" @click="toExpert(card.expertName)">
  127. {{ card.expertName }}
  128. <!-- <el-icon color="#F0AC37" class="icon" size="12"><Link /></el-icon> -->
  129. </span>
  130. </div>
  131. </div>
  132. <div v-else>
  133. <div class="card-desc condition-wrap">
  134. <span class="desc-title">触发条件:</span>
  135. {{ card.condition }}
  136. </div>
  137. <div v-if="card.executeDate || card.solarName" class="card-desc">
  138. <span class="desc-title">推荐时间:</span>
  139. {{ card.executeDate || card.solarName }}
  140. </div>
  141. <div v-if="card.execute === 4" class="card-desc">
  142. <span class="desc-title">{{
  143. card.execute === 5 ? "复核时间:" : "执行时间:"
  144. }}</span>
  145. {{ card.executeDate }}
  146. </div>
  147. <div class="card-desc">
  148. <span class="desc-title">农事编号:</span>
  149. {{ card.code }}
  150. </div>
  151. </div>
  152. <div class="card-desc last-desc">
  153. <span class="desc-title">药物处方:</span>
  154. <div class="rescription-wrap">
  155. <div class="rescription">
  156. <span
  157. v-for="(
  158. fertilizer, fertilizerI
  159. ) in card.prescriptionList"
  160. :key="fertilizerI"
  161. >
  162. <span v-for="(pest, pestI) in fertilizer.pesticideFertilizerList" :key="'sub' + pestI">
  163. {{ pest.defaultName }}
  164. <span
  165. v-if="
  166. (pestI !== fertilizer.pesticideFertilizerList.length - 1) || (fertilizerI !== card.prescriptionList.length - 1)
  167. "
  168. >
  169. +
  170. </span>
  171. </span>
  172. </span>
  173. </div>
  174. <div class="detail-text">查看详情></div>
  175. </div>
  176. </div>
  177. <div class="card-link" v-if="card.execute === 0 || card.execute === 2|| (card.execute === 3 && card.orderStatus === null) || card.orderStatus <0" @click.stop="handlePage(card)">
  178. <!-- <img src="@/assets/img/weather_index/expert-icon.png" /> -->
  179. <img class="expert-icon" :src="card.expertIcon" />
  180. <div class="expert-name">
  181. {{ card.expertName}}
  182. <!-- <el-icon size="12" class="icon"><ArrowRightBold /></el-icon> -->
  183. </div>
  184. </div>
  185. <div class="step-box" v-else>
  186. <step-box :orderStatus="card.orderStatus" v-if="card.orderStatus || card.orderStatus === 0"></step-box>
  187. </div>
  188. </div>
  189. <chart
  190. v-if="card.execute === 3 && card.indexChart.length"
  191. :key="cardI"
  192. :indexName="card.indexName"
  193. :type="(card.execute === 2 || card.execute === 0) ? 'feature' : 'normal'"
  194. :chartData="card.indexChart"
  195. ></chart>
  196. <div v-if="(card.orderStatus === 4 || card.orderStatus === 5) && card.userEvaluation">
  197. <div class="evaluate">
  198. <div class="evaluate-title">用户评价</div>
  199. <div class="comment">
  200. <div class="user-info">
  201. <el-avatar
  202. class="avatar"
  203. :size="40"
  204. :src="card.userEvaluation.icon"
  205. />
  206. <div class="user-name">
  207. <div>{{ card.userEvaluation.commentUserName || "麦田守望者" }}</div>
  208. <span>{{ card.userEvaluation.commentDate }}</span>
  209. </div>
  210. </div>
  211. <div class="rate">
  212. <div class="rate-item">
  213. <span class="name">专家</span>
  214. <el-rate v-model="card.userEvaluation.expertServiceRating" size="small" />
  215. </div>
  216. <div class="rate-item">
  217. <span class="name">农资</span>
  218. <el-rate v-model="card.userEvaluation.agricultureServiceRating" size="small" />
  219. </div>
  220. <div class="rate-item">
  221. <span class="name">农服</span>
  222. <el-rate v-model="card.userEvaluation.farmServiceRating" size="small" />
  223. </div>
  224. </div>
  225. <div class="text van-multi-ellipsis--l2">
  226. {{ card.userEvaluation.detailedComment }}
  227. </div>
  228. </div>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. <div v-if="card.execute !== 0 && card.execute !== 2" :class="['over-img']">
  234. <!-- 图片列表 -->
  235. <album-carousel7d
  236. :key="farmName+cardI"
  237. :farmId="farmId"
  238. :farmWork="card"
  239. ></album-carousel7d>
  240. </div>
  241. </div>
  242. </div>
  243. <!-- 新增农事 -->
  244. <div class="expert-add-btn">
  245. <div class="btn-box" @click="addWork">
  246. <el-icon color="#fff"><Plus /></el-icon>
  247. <span class="PangMenZhengDao-FONT add-text">新增农事</span>
  248. </div>
  249. </div>
  250. </div>
  251. </div>
  252. </div>
  253. </div>
  254. </template>
  255. <script setup>
  256. import { onMounted, ref, computed, onUnmounted, nextTick, onActivated, onDeactivated } from "vue";
  257. import { useStore } from "vuex";
  258. import { useRoute, useRouter } from "vue-router";
  259. import stepBox from "@/components/common/stepBox.vue";
  260. import eventBus from "@/api/eventBus";
  261. import chart from "./components/chart.vue";
  262. import indicatorChart from "./components/indicatorChart.vue";
  263. const store = useStore();
  264. import AlbumCarousel7d from "./album_compoents/albumCarousel7d";
  265. const miniUserId = 81881;
  266. const addWork = () =>{
  267. router.push({path: '/add_farm', query: {isAdd: true}})
  268. }
  269. const route = useRoute();
  270. // 监听页面滚动,更新当前激活的锚点
  271. const handleScroll = () => {
  272. const scrollPosition = window.scrollY; // 加上头部偏移量
  273. farmWorkList.value.forEach((_, index) => {
  274. const section = document.getElementById(`section${index}`);
  275. if (section && section.offsetTop <= scrollPosition) {
  276. activeSection.value = index;
  277. }
  278. });
  279. };
  280. // 防抖函数
  281. function debounce(func, wait) {
  282. let timeout;
  283. return function (...args) {
  284. const later = () => {
  285. clearTimeout(timeout);
  286. func.apply(this, args);
  287. };
  288. clearTimeout(timeout);
  289. timeout = setTimeout(later, wait);
  290. };
  291. }
  292. const handleRightScroll = () => {
  293. activeSection.value = null;
  294. };
  295. const debouncedHandleScroll = debounce(handleScroll, 100);
  296. const debouncedHandleScroll2 = debounce(handleRightScroll, 501);
  297. // onMounted(() => {
  298. // window.addEventListener("scroll", debouncedHandleScroll);
  299. // // myPushChart = echarts.init(chartPushRef.value);
  300. // // myPushChart.setOption(galleryLine);
  301. // getFarmDetail(farmId);
  302. // getFarmWorkList(farmId);
  303. // });
  304. const handlePage = (item) =>{
  305. // router.push('/expert_page?name='+item.expertName)
  306. }
  307. const toExpert = (expertName) =>{
  308. // router.push('/expert_page?name='+expertName)
  309. }
  310. eventBus.off('garden:organId', getListData)
  311. eventBus.on('garden:organId', getListData)
  312. onMounted(() => {
  313. // farmId.value = 88388;
  314. farmId.value = sessionStorage.getItem("farmId")
  315. // getFarmDetail(farmId.value);
  316. // getFarmWorkList(farmId.value);
  317. // window.addEventListener("scroll", debouncedHandleScroll);
  318. window.addEventListener("scroll", debouncedHandleScroll);
  319. });
  320. eventBus.off("area:id", toggleAreaId);
  321. eventBus.on("area:id", toggleAreaId);
  322. const regionId = ref(null)
  323. function toggleAreaId({ areaId, farmId }) {
  324. console.log('aaaaareid', areaId);
  325. regionId.value = areaId
  326. farmWorkList.value = []
  327. getFarmWorkList(farmId)
  328. console.log('farmId', farmId);
  329. // getFarmLog()
  330. // farmId.value = farmId
  331. }
  332. function getListData(farmIdVal) {
  333. console.log('farmIdVal', farmIdVal);
  334. farmId.value = farmIdVal
  335. // getFarmDetail(farmId.value);
  336. // getFarmWorkList(farmId.value);
  337. }
  338. const farmId = ref(null);
  339. // 移除滚动事件监听
  340. onUnmounted(() => {
  341. window.removeEventListener("scroll", debouncedHandleScroll);
  342. });
  343. // 果园日志
  344. const indicatorChartData = ref({})
  345. const getFarmLog = () => {
  346. VE_API.farm.fetchFarmLog({id: regionId.value, farmId: farmId.value}).then(({data,code}) => {
  347. if(code === 0){
  348. indicatorChartData.value = data
  349. eventBus.emit('chart:updateOption', indicatorChartData.value)
  350. } else {
  351. indicatorChartData.value = {}
  352. }
  353. })
  354. }
  355. // 农场详情
  356. const farmDetail = ref({});
  357. const getFarmDetail = (id) => {
  358. VE_API.farm.fetchFarmDetail({ id }).then(({ data }) => {
  359. farmDetail.value = data;
  360. });
  361. };
  362. // 农事列表
  363. const farmWorkList = ref([]);
  364. const getFarmWorkList = (farmId) => {
  365. // regionId
  366. const regionVal = regionId.value ? regionId.value : null
  367. VE_API.farm.fetchFarmWorkList({ farmId, regionId: regionVal }).then(({ data }) => {
  368. getSecondLastIndex(data);
  369. // farmWorkList.value = data;
  370. // nextTick(() => {
  371. // initScrollToSection(secondLastIndex.value);
  372. // });
  373. // setTimeout(() => {
  374. // startFlashing();
  375. // }, 100);
  376. });
  377. };
  378. const router = useRouter();
  379. const activeSection = ref(0);
  380. const scrollContainer = ref(null);
  381. // 点击左侧菜单项,滚动到对应内容
  382. const scrollToSection = (index) => {
  383. // const section = farmWorkList.value[index];
  384. const sectionElement = document.getElementById(`section${index}`);
  385. if (sectionElement) {
  386. sectionElement.scrollIntoView({ behavior: "smooth" });
  387. activeSection.value = index;
  388. setTimeout(() => {
  389. // 获取滚动容器的当前滚动位置
  390. let scrollTop = scrollContainer.value.scrollTop;
  391. scrollTop += 44; // 加多 44px,头部的高度
  392. // 滚动至目标位置
  393. scrollContainer.value.scrollTop = scrollTop;
  394. }, 300);
  395. }
  396. };
  397. // 点击左侧菜单项,滚动到对应内容
  398. const initScrollToSection = (index) => {
  399. const menuElement = document.getElementById(`menu${index}`);
  400. if (menuElement) {
  401. menuElement.scrollIntoView({ behavior: "smooth" });
  402. activeSection.value = index;
  403. setTimeout(() => {
  404. scrollToSection(index);
  405. }, 0);
  406. }
  407. };
  408. const secondLastIndex = ref(-1); // 初始化索引值
  409. const getSecondLastIndex = (data) => {
  410. // 过滤出 status 为 2 的项
  411. const filteredItems = data.filter((item) => item.execute === 3);
  412. // 获取倒数第二项
  413. if (filteredItems.length >= 1) {
  414. const secondLastItem = filteredItems[filteredItems.length - 1];
  415. // 获取该项在原数组中的索引
  416. secondLastIndex.value = data.indexOf(secondLastItem);
  417. const lastTwoItems = filteredItems.slice(-1);
  418. farmWorkList.value = data.map((item) => {
  419. // 如果是最后两项之一,则添加 feature 属性
  420. if (lastTwoItems.includes(item)) {
  421. return { ...item, hasBg: true };
  422. }
  423. return item;
  424. });
  425. } else {
  426. secondLastIndex.value = -1; // 如果没有足够的项,设置为 -1
  427. farmWorkList.value = data
  428. }
  429. };
  430. const isFlashing = ref(false);
  431. const startFlashing = () => {
  432. isFlashing.value = true;
  433. // 使用 setTimeout 在一段时间后停止闪动
  434. setTimeout(() => {
  435. isFlashing.value = false;
  436. }, 3000); // 3 秒后停止闪动
  437. };
  438. // 显示详情
  439. const showDetail = (card) => {
  440. // eventBus.emit("detailDialog:showDialog", pageParams);
  441. // if (card.orderStatus === 5 || card.orderStatus === 4) {
  442. // // 农事成效
  443. // router.push({ path: "/work_completed", query: { data: JSON.stringify(card) } });
  444. // } else
  445. if (card.orderStatus === 0) {
  446. router.push({ path: "/add_farm", query: { farmId: card.farmId, libId: card.farmWorkId, id: card.id } });
  447. } else if (card.orderStatus) {
  448. router.push({ path: "/work_detail", query: { farmId: card.farmId, libId: card.farmWorkId, id: card.id } });
  449. }
  450. };
  451. const farmName = ref("")
  452. //用户果园数据
  453. const userFarmData = ref([]);
  454. const initUserGardenData = () => {
  455. VE_API.garden.userGarden({ userId: miniUserId, show3dFarm: false }).then(({ data }) => {
  456. userFarmData.value = data;
  457. const arr = data.filter(item =>item.organId===farmId.value)
  458. farmName.value = arr[0].organId
  459. });
  460. };
  461. function addNsRecord(){
  462. router.push({
  463. path: "/edit_ns_record",
  464. query: { recordId: null },
  465. });
  466. }
  467. </script>
  468. <style lang="scss" scoped>
  469. .album-page {
  470. position: relative;
  471. width: 100%;
  472. height: 100%;
  473. overflow: hidden;
  474. background: #011217;
  475. .album-wrap {
  476. width: 100%;
  477. height: 100%;
  478. .slot-right {
  479. width: 70%;
  480. cursor: pointer;
  481. display: flex;
  482. flex-direction: row;
  483. justify-content: right;
  484. align-items: center;
  485. padding-right: 12px;
  486. .btn {
  487. cursor: pointer;
  488. background: url("@/assets/img/tabs_btn3.png") no-repeat center center /
  489. 100% 100%;
  490. margin-right: 5px;
  491. color: rgba(180,255,251,.8);
  492. font-weight: bold;
  493. font-size: 15px;
  494. width: 92px;
  495. height: 32px;
  496. text-align: center;
  497. line-height: 32px;
  498. }
  499. }
  500. .barrage-title {
  501. height: 44px;
  502. line-height: 44px;
  503. text-align: center;
  504. font-size: 17px;
  505. font-weight: bold;
  506. border: 1px solid #f5f5f5;
  507. width: 100%;
  508. background: #fff;
  509. position: fixed;
  510. top: 0;
  511. left: 0;
  512. z-index: 9;
  513. .title-icon {
  514. cursor: pointer;
  515. position: absolute;
  516. left: 16px;
  517. top: 13px;
  518. }
  519. }
  520. .album-content {
  521. height: 100%;
  522. // overflow: auto;
  523. // margin-top: 45px;
  524. .album-fixed {
  525. position: fixed;
  526. top: 0;
  527. z-index: 10;
  528. background: #fff;
  529. width: 100%;
  530. }
  531. .album-top {
  532. display: flex;
  533. padding: 12px 10px 16px 10px;
  534. width: 100%;
  535. overflow: hidden;
  536. box-sizing: border-box;
  537. .album-img {
  538. img {
  539. width: 78px;
  540. height: 78px;
  541. object-fit: cover;
  542. border-radius: 6px;
  543. }
  544. }
  545. .garden-content {
  546. position: relative;
  547. padding-left: 12px;
  548. display: flex;
  549. flex-direction: column;
  550. justify-content: center;
  551. .report_btn{
  552. position: absolute;
  553. bottom: 0px;
  554. right: 0px;
  555. z-index: 1000;
  556. width: 40px;
  557. height: 40px;
  558. display: flex;
  559. flex-direction: column;
  560. align-items: center;
  561. justify-content: center;
  562. font-size: 8px;
  563. color:#ffffff;
  564. background: rgba(30, 34, 83, 0.44);
  565. border-radius: 5px;
  566. }
  567. .garden-name {
  568. font-weight: bold;
  569. font-size: 16px;
  570. color: #000000;
  571. display: flex;
  572. align-items: center;
  573. flex-wrap: wrap;
  574. .tag-wrap {
  575. display: flex;
  576. flex-wrap: wrap;
  577. flex: 1;
  578. }
  579. .type-tag {
  580. margin-top: 2px;
  581. font-weight: normal;
  582. margin-left: 4px;
  583. padding: 0 6px;
  584. height: 21px;
  585. line-height: 21px;
  586. background: rgba(255, 149, 61, 0.32);
  587. border-radius: 2px;
  588. // border: 0.5px solid #FF953D;
  589. font-size: 12px;
  590. color: #fc8a2c;
  591. &.item-type {
  592. background: #f0e0fe;
  593. color: #ac4dff;
  594. }
  595. }
  596. }
  597. .garden-text {
  598. display: flex;
  599. align-items: flex-end;
  600. justify-content: space-between;
  601. .edit-btn {
  602. border: 1px solid #F0AC37;
  603. border-radius: 5px;
  604. color: #F0AC37;
  605. text-align: center;
  606. padding: 4px 2px;
  607. font-size: 9px;
  608. font-weight: bold;
  609. box-sizing: border-box;
  610. background: rgba(33, 153, 248, 0.22);
  611. }
  612. }
  613. .garden-desc {
  614. padding-top: 4px;
  615. font-size: 13px;
  616. color: #666666;
  617. }
  618. }
  619. }
  620. .album-camera {
  621. width: 100%;
  622. padding: 0 10px 10px;
  623. box-sizing: border-box;
  624. position: relative;
  625. .tips-text {
  626. position: absolute;
  627. left: calc(50% + 20px);
  628. top: 8px;
  629. height: 17px;
  630. padding: 1px 5px 2px 8px;
  631. color: #fff;
  632. font-size: 12px;
  633. border-radius: 24px 20px 20px 0;
  634. line-height: 18px;
  635. background: linear-gradient(45deg, #00d4ff, #008eff);
  636. }
  637. img {
  638. width: 100%;
  639. }
  640. }
  641. .album-bottom {
  642. display: flex;
  643. position: relative;
  644. background: rgba(73, 73, 73, 0.3);
  645. height: 100%;
  646. justify-content: center;
  647. overflow: hidden;
  648. .expert-add-btn {
  649. position: absolute;
  650. z-index: 9;
  651. bottom: 112px;
  652. // right: 36px;
  653. cursor: pointer;
  654. margin-left: 90px;
  655. width: 183px;
  656. height: 32px;
  657. background: #fff;
  658. border-radius: 30px;
  659. padding: 2px;
  660. box-sizing: border-box;
  661. box-shadow: 0 2px 4px #ccc;
  662. .btn-box {
  663. height: 100%;
  664. background: linear-gradient(0deg,#fce6c0 0%, #FF9500 31% , #FF9500 78%);
  665. border-radius: 30px;
  666. display: flex;
  667. align-items: center;
  668. justify-content: center;
  669. color: #fff;
  670. .add-text {
  671. padding-left: 4px;
  672. font-size: 15px;
  673. }
  674. }
  675. }
  676. .export-btn {
  677. position: fixed;
  678. z-index: 999;
  679. left: 0;
  680. bottom: 0px;
  681. height: 60px;
  682. padding-top: 10px;
  683. background: #f2f2f4;
  684. .btn-item {
  685. font-size: 14px;
  686. color: #fff;
  687. display: flex;
  688. align-items: center;
  689. justify-content: center;
  690. background: linear-gradient(45deg, #00d4ff, #008eff);
  691. width: 90px;
  692. height: 36px;
  693. }
  694. img {
  695. width: 24px;
  696. }
  697. }
  698. .album-l {
  699. width: 90px;
  700. height: 100%;
  701. overflow: auto;
  702. background: rgba(73, 73, 73, 0.31);
  703. border-radius: 0 4px 4px 0;
  704. .menu-icon {
  705. width: 16px;
  706. margin-right: 4px;
  707. }
  708. .menu-name {
  709. max-width: 80px;
  710. white-space: nowrap;
  711. overflow: hidden;
  712. text-overflow: ellipsis;
  713. }
  714. ::v-deep {
  715. .el-menu {
  716. background: transparent;
  717. border-right: 0;
  718. .el-menu-item {
  719. height: 32px;
  720. line-height: 32px;
  721. justify-content: center;
  722. color: #CECECE;
  723. margin: 10px 0;
  724. padding: 4px;
  725. &:hover {
  726. background: none;
  727. }
  728. &.is-active {
  729. background: transparent;
  730. // color: #F0AC37;
  731. .menu-name {
  732. // color: #666666;
  733. }
  734. }
  735. &.active {
  736. background: #232323;
  737. color: #F0AC37;
  738. .menu-name {
  739. color: #F0AC37;
  740. }
  741. }
  742. }
  743. }
  744. }
  745. .noTime {
  746. // color: #cccccc;
  747. }
  748. .feature {
  749. color: rgba(255, 212, 137, 0.6);
  750. }
  751. .now {
  752. color: #F0AC37;
  753. }
  754. .onTime {
  755. color: rgba(255, 212, 137, 0.6);
  756. }
  757. }
  758. ::v-deep {
  759. .el-affix {
  760. background: transparent;
  761. border-radius: 0 4px 4px 0;
  762. width: 90px !important;
  763. & > div {
  764. height: 100%;
  765. }
  766. }
  767. }
  768. .album-r {
  769. padding: 2px 10px 10px 10px;
  770. flex: 1;
  771. background: #232323;
  772. height: 100%;
  773. overflow: auto;
  774. box-sizing: border-box;
  775. .common-btn {
  776. background: #F0AC37;
  777. border-radius: 4px;
  778. color: #fff;
  779. padding: 8px 10px;
  780. text-align: center;
  781. }
  782. .card-wrap {
  783. // border: 1px solid #dddddd;
  784. // padding: 8px 8px;
  785. border-radius: 8px;
  786. position: relative;
  787. z-index: 1;
  788. // margin-top: -20px;
  789. &.noCarousel {
  790. padding: 0;
  791. // margin-top: 12px;
  792. // padding-top: 10px;
  793. border: none;
  794. .card-top .card-link {
  795. top: 24px;
  796. }
  797. }
  798. &.done {
  799. padding: 0;
  800. border: none;
  801. }
  802. }
  803. .card-content {
  804. // background: #001917;
  805. border-radius: 8px;
  806. padding: 0 8px 8px 8px;
  807. border: 1px solid rgba(255, 218, 102, 0.3);
  808. background: rgba(105, 73, 13, 0.1);
  809. &.push {
  810. padding: 0 8px 12px 8px;
  811. // margin-bottom: 8px;
  812. // border: 1px solid rgba(102, 102, 102, 0.38);
  813. }
  814. &.hasBg {
  815. border: 1px solid #494949;
  816. padding: 0 8px 12px 8px;
  817. background: transparent;
  818. // border: 1px solid #045151;
  819. .card-top {
  820. border-bottom: none;
  821. padding-bottom: 0;
  822. }
  823. }
  824. .card-top {
  825. padding-bottom: 12px;
  826. // border-bottom: 1px solid rgba(255, 238, 208, 0.2);
  827. position: relative;
  828. &.noChart {
  829. border-bottom: 0;
  830. padding-bottom: 0;
  831. }
  832. .card-title {
  833. display: flex;
  834. align-items: center;
  835. padding-bottom: 8px;
  836. .serve-btn {
  837. padding: 3px 10px;
  838. background: #F0AC37;
  839. border-radius: 22px;
  840. color: #fff;
  841. text-align: center;
  842. }
  843. .title-name {
  844. color: #FFFFFF;
  845. font-size: 20px;
  846. padding-right: 8px;
  847. font-weight: 600;
  848. }
  849. img {
  850. width: 24px;
  851. }
  852. .status-tag {
  853. color: #f3a302;
  854. font-size: 12px;
  855. padding: 2px 6px;
  856. border-radius: 2px;
  857. background: rgba(243, 163, 2, 0.2);
  858. border: 1px solid transparent;
  859. &.blue {
  860. color: #F0AC37;
  861. background: rgba(33, 153, 248, 0.2);
  862. }
  863. &.good-wrap {
  864. margin-left: 4px;
  865. display: flex;
  866. align-items: center;
  867. .good {
  868. margin-left: 3px;
  869. width: 13px;
  870. }
  871. }
  872. &.standard {
  873. color: #F0AC37;
  874. background: #232323;
  875. border-color: #F0AC37;
  876. }
  877. &.advice {
  878. color: rgba(252, 167, 3, 0.9);
  879. background: rgba(255, 220, 104, 0.38);
  880. }
  881. &.warning {
  882. color: #ff4221;
  883. background: rgba(255, 175, 160, 0.24);
  884. }
  885. }
  886. &.serve-title {
  887. padding: 12px 0 8px 0;
  888. display: flex;
  889. align-items: center;
  890. position: relative;
  891. .add-btn {
  892. position: absolute;
  893. right: -8px;
  894. top: 0;
  895. background: #F7BE5A;
  896. color: #fff;
  897. font-size: 12px;
  898. border-radius: 0 8px 0 8px;
  899. padding: 2px 6px;
  900. &.unactive {
  901. color: #9F9F9F;
  902. background: #494949;
  903. }
  904. &.recheck {
  905. background: #f3c11d;
  906. }
  907. }
  908. .tag {
  909. display: flex;
  910. align-items: center;
  911. color: #ff7000;
  912. font-size: 10px;
  913. .desc {
  914. position: relative;
  915. left: -4px;
  916. }
  917. .photo-grid {
  918. display: flex;
  919. .photo {
  920. position: relative;
  921. img {
  922. width: 18px; /* 示例宽度,你可以根据需要调整 */
  923. height: 18px;
  924. object-fit: cover;
  925. border-radius: 50%;
  926. display: block; /* 去除图片底部的空白间隙 */
  927. }
  928. }
  929. }
  930. }
  931. }
  932. }
  933. .card-desc {
  934. color: #9F9F9F;
  935. font-size: 12px;
  936. line-height: 18.2px;
  937. display: flex;
  938. align-items: center;
  939. .desc-title {
  940. color: #494949;
  941. }
  942. .desc-val {
  943. max-width: 100px;
  944. white-space: nowrap;
  945. overflow: hidden;
  946. text-overflow: ellipsis;
  947. &.short {
  948. max-width: 80px;
  949. }
  950. }
  951. .rescription-wrap {
  952. display: flex;
  953. align-items: center;
  954. .detail-text {
  955. color: #FFD489;
  956. padding-left: 6px;
  957. cursor: pointer;
  958. }
  959. }
  960. .rescription {
  961. max-width: 100px;
  962. white-space: nowrap;
  963. overflow: hidden;
  964. text-overflow: ellipsis;
  965. }
  966. .expert-link {
  967. display: inline-flex;
  968. align-items: center;
  969. // color: #F0AC37;
  970. .icon {
  971. padding-left: 4px;
  972. }
  973. }
  974. }
  975. .step-box {
  976. position: absolute;
  977. right: 0px;
  978. top: 56px;
  979. }
  980. .card-link {
  981. display: flex;
  982. flex-direction: column;
  983. align-items: center;
  984. justify-content: center;
  985. color: #A46700;
  986. font-size: 12px;
  987. position: absolute;
  988. right: 6px;
  989. top: 20px;
  990. .expert-name {
  991. background: #FFD489;
  992. border-radius: 4px;
  993. padding: 2px 6px 3px 10px;
  994. margin-top: 4px;
  995. display: flex;
  996. align-items: center;
  997. }
  998. img {
  999. width: 36px;
  1000. }
  1001. .icon {
  1002. padding-right: 2px;
  1003. }
  1004. }
  1005. }
  1006. .card-chart {
  1007. padding: 8px 4px 0 4px;
  1008. height: 130px;
  1009. border-top: 1px solid rgba(255, 238, 208, 0.2);
  1010. }
  1011. }
  1012. .done-card {
  1013. margin-bottom: 10px;
  1014. }
  1015. .card-dom {
  1016. position: relative;
  1017. // top: -216px;
  1018. top: -6px;
  1019. }
  1020. .over-img {
  1021. transition: all 0.2s ease-in-out;
  1022. position: relative;
  1023. z-index: 2;
  1024. ::v-deep {
  1025. img {
  1026. border-radius: 8px;
  1027. }
  1028. }
  1029. }
  1030. .log-wrap {
  1031. padding: 4px 0 10px 0;
  1032. .log-box {
  1033. background: #232323;
  1034. border-radius: 8px;
  1035. color: #FFD489;
  1036. border: 1px solid rgba(255, 212, 137, 0.3);
  1037. .log-title {
  1038. font-family: "PangMenZhengDao";
  1039. position: relative;
  1040. top: -4px;
  1041. background: url("@/assets/img/gallery/log-bg.png") no-repeat top center / cover;
  1042. width: 97px;
  1043. height: 42px;
  1044. text-align: center;
  1045. font-size: 18px;
  1046. color: #fff;
  1047. span {
  1048. position: absolute;
  1049. top: 7px;
  1050. display: flex;
  1051. align-items: center;
  1052. justify-content: center;
  1053. width: 100%;
  1054. }
  1055. }
  1056. .log-content {
  1057. padding-bottom: 10px;
  1058. .log-desc {
  1059. padding: 0 10px;
  1060. font-size: 14px;
  1061. line-height: 22px;
  1062. }
  1063. }
  1064. .time-img {
  1065. width: 100%;
  1066. height: 100%;
  1067. img {
  1068. width: 100%;
  1069. }
  1070. }
  1071. }
  1072. }
  1073. }
  1074. }
  1075. .flashing {
  1076. position: relative;
  1077. &::after {
  1078. content: "";
  1079. position: absolute;
  1080. top: 0;
  1081. left: -2px;
  1082. width: 100%;
  1083. height: calc(100% - 2px);
  1084. border: 2px solid #F0AC37;
  1085. animation: flash 0.4s infinite alternate;
  1086. border-radius: 8px;
  1087. pointer-events: none;
  1088. }
  1089. }
  1090. @keyframes flash {
  1091. 0% {
  1092. box-shadow: 0 0 5px #F0AC37;
  1093. border-color: #F0AC37;
  1094. }
  1095. 100% {
  1096. box-shadow: 0 0 20px #F0AC37;
  1097. border: 2px solid #F0AC37;
  1098. }
  1099. }
  1100. }
  1101. .evaluate {
  1102. border-top: 1px solid rgba(255, 238, 208, 0.2);
  1103. color: #fff;
  1104. .evaluate-title {
  1105. padding-top: 8px;
  1106. font-size: 14px;
  1107. color: #fff;
  1108. display: flex;
  1109. align-items: center;
  1110. justify-content: space-between;
  1111. margin-bottom: 8px;
  1112. .more {
  1113. font-size: 14px;
  1114. color: #fff;
  1115. font-weight: 400;
  1116. display: flex;
  1117. align-items: center;
  1118. }
  1119. }
  1120. .rate {
  1121. display: flex;
  1122. justify-content: space-between;
  1123. ::v-deep {
  1124. .el-rate {
  1125. --el-rate-icon-margin: 0;
  1126. }
  1127. .el-rate--small .el-rate__icon {
  1128. font-size: 11px;
  1129. }
  1130. }
  1131. .rate-item {
  1132. display: flex;
  1133. align-items: center;
  1134. // background: #f5f5f5;
  1135. border-radius: 4px;
  1136. padding: 4px 0px;
  1137. font-size: 10px;
  1138. .name {
  1139. // margin-right: 2px;
  1140. color: #fff;
  1141. }
  1142. .num {
  1143. color: #f3c11d;
  1144. margin-left: 2px;
  1145. }
  1146. }
  1147. }
  1148. .comment {
  1149. margin-top: 12px;
  1150. .user-info {
  1151. display: flex;
  1152. align-items: center;
  1153. margin-bottom: 2px;
  1154. .user-name {
  1155. font-weight: 500;
  1156. margin-left: 8px;
  1157. span {
  1158. font-weight: 400;
  1159. font-size: 12px;
  1160. color: #fff;
  1161. }
  1162. }
  1163. }
  1164. }
  1165. }
  1166. }
  1167. }
  1168. </style>