index.vue 51 KB

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