index.vue 51 KB

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