index.vue 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200
  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.prescriptionList"
  157. :key="fertilizerI"
  158. >
  159. <span v-for="(pest, pestI) in fertilizer.pesticideFertilizerList" :key="'sub' + pestI">
  160. {{ pest.defaultName }}
  161. <span
  162. v-if="
  163. (pestI !== fertilizer.pesticideFertilizerList.length - 1) || (fertilizerI !== card.prescriptionList.length - 1)
  164. "
  165. >
  166. +
  167. </span>
  168. </span>
  169. </span>
  170. </div>
  171. <div class="detail-text">查看详情></div>
  172. </div>
  173. </div>
  174. <div class="card-link" v-if="card.execute === 0 || card.execute === 2|| (card.execute === 3 && card.orderStatus === null)" @click.stop="handlePage(card)">
  175. <!-- <img src="@/assets/img/weather_index/expert-icon.png" /> -->
  176. <img class="expert-icon" :src="card.expertIcon" />
  177. <div class="expert-name">
  178. {{ card.expertName
  179. }}<el-icon size="12" class="icon"><ArrowRightBold /></el-icon>
  180. </div>
  181. </div>
  182. <div class="step-box" v-else>
  183. <step-box :orderStatus="card.orderStatus" v-if="card.orderStatus || card.orderStatus === 0"></step-box>
  184. </div>
  185. </div>
  186. <chart
  187. v-if="card.execute === 3 && card.indexChart.length"
  188. :key="cardI"
  189. :indexName="card.indexName"
  190. :type="(card.execute === 2 || card.execute === 0) ? 'feature' : 'normal'"
  191. :chartData="card.indexChart"
  192. ></chart>
  193. <div v-if="(card.orderStatus === 4 || card.orderStatus === 5) && card.userEvaluation">
  194. <div class="evaluate">
  195. <div class="evaluate-title">用户评价</div>
  196. <div class="comment">
  197. <div class="user-info">
  198. <el-avatar
  199. class="avatar"
  200. :size="40"
  201. :src="card.userEvaluation.icon"
  202. />
  203. <div class="user-name">
  204. <div>{{ card.userEvaluation.commentUserName || "麦田守望者" }}</div>
  205. <span>{{ card.userEvaluation.commentDate }}</span>
  206. </div>
  207. </div>
  208. <div class="rate">
  209. <div class="rate-item">
  210. <span class="name">专家</span>
  211. <el-rate v-model="card.userEvaluation.expertServiceRating" size="small" />
  212. </div>
  213. <div class="rate-item">
  214. <span class="name">农资</span>
  215. <el-rate v-model="card.userEvaluation.agricultureServiceRating" size="small" />
  216. </div>
  217. <div class="rate-item">
  218. <span class="name">农服</span>
  219. <el-rate v-model="card.userEvaluation.farmServiceRating" size="small" />
  220. </div>
  221. </div>
  222. <div class="text van-multi-ellipsis--l2">
  223. {{ card.userEvaluation.detailedComment }}
  224. </div>
  225. </div>
  226. </div>
  227. </div>
  228. </div>
  229. </div>
  230. <div v-if="card.execute !== 0 && card.execute !== 2" :class="['over-img']">
  231. <!-- 图片列表 -->
  232. <album-carousel7d
  233. :key="farmName"
  234. :farmId="farmId"
  235. :farmWork="card"
  236. ></album-carousel7d>
  237. </div>
  238. </div>
  239. </div>
  240. <!-- 新增农事 -->
  241. <div class="expert-add-btn">
  242. <div class="btn-box" @click="addWork">
  243. <el-icon color="#fff"><Plus /></el-icon>
  244. <span class="PangMenZhengDao-FONT add-text">新增农事</span>
  245. </div>
  246. </div>
  247. </div>
  248. </div>
  249. </div>
  250. </div>
  251. </template>
  252. <script setup>
  253. import { onMounted, ref, computed, onUnmounted, nextTick, onActivated, onDeactivated } from "vue";
  254. import { useStore } from "vuex";
  255. import { useRoute, useRouter } from "vue-router";
  256. import stepBox from "@/components/common/stepBox.vue";
  257. import eventBus from "@/api/eventBus";
  258. import chart from "./components/chart.vue";
  259. import indicatorChart from "./components/indicatorChart.vue";
  260. const store = useStore();
  261. import AlbumCarousel7d from "./album_compoents/albumCarousel7d";
  262. const miniUserId = 81881;
  263. const addWork = () =>{
  264. router.push({path: '/add_farm', query: {isAdd: true}})
  265. }
  266. const route = useRoute();
  267. // 监听页面滚动,更新当前激活的锚点
  268. const handleScroll = () => {
  269. const scrollPosition = window.scrollY; // 加上头部偏移量
  270. farmWorkList.value.forEach((_, index) => {
  271. const section = document.getElementById(`section${index}`);
  272. if (section && section.offsetTop <= scrollPosition) {
  273. activeSection.value = index;
  274. }
  275. });
  276. };
  277. // 防抖函数
  278. function debounce(func, wait) {
  279. let timeout;
  280. return function (...args) {
  281. const later = () => {
  282. clearTimeout(timeout);
  283. func.apply(this, args);
  284. };
  285. clearTimeout(timeout);
  286. timeout = setTimeout(later, wait);
  287. };
  288. }
  289. const handleRightScroll = () => {
  290. activeSection.value = null;
  291. };
  292. const debouncedHandleScroll = debounce(handleScroll, 100);
  293. const debouncedHandleScroll2 = debounce(handleRightScroll, 501);
  294. // onMounted(() => {
  295. // window.addEventListener("scroll", debouncedHandleScroll);
  296. // // myPushChart = echarts.init(chartPushRef.value);
  297. // // myPushChart.setOption(galleryLine);
  298. // getFarmDetail(farmId);
  299. // getFarmWorkList(farmId);
  300. // });
  301. const handlePage = (item) =>{
  302. router.push('/expert_page?name='+item.expertName)
  303. }
  304. const toExpert = (expertName) =>{
  305. router.push('/expert_page?name='+expertName)
  306. }
  307. eventBus.off('garden:organId', getListData)
  308. eventBus.on('garden:organId', getListData)
  309. const areaIdVal = ref(2)
  310. eventBus.off('area:id')
  311. eventBus.on('area:id', ({areaId,farmId}) => {
  312. console.log('areaId', areaId);
  313. areaIdVal.value = areaId
  314. getFarmLog()
  315. })
  316. onMounted(() => {
  317. // farmId.value = 88388;
  318. farmId.value = sessionStorage.getItem("farmId")
  319. getFarmDetail(farmId.value);
  320. getFarmWorkList(farmId.value);
  321. getFarmLog()
  322. // window.addEventListener("scroll", debouncedHandleScroll);
  323. window.addEventListener("scroll", debouncedHandleScroll);
  324. });
  325. eventBus.off("area:id", areaId);
  326. eventBus.on("area:id", areaId);
  327. const regionId = ref(null)
  328. function areaId({ areaId, farmId }) {
  329. regionId.value = areaId
  330. getFarmWorkList(farmId)
  331. // farmId.value = farmId
  332. }
  333. function getListData(farmIdVal) {
  334. farmId.value = farmIdVal
  335. getFarmDetail(farmId.value);
  336. getFarmWorkList(farmId.value);
  337. getFarmLog()
  338. }
  339. const farmId = ref(null);
  340. // 移除滚动事件监听
  341. onUnmounted(() => {
  342. window.removeEventListener("scroll", debouncedHandleScroll);
  343. });
  344. // 果园日志
  345. const indicatorChartData = ref({})
  346. const getFarmLog = () => {
  347. VE_API.farm.fetchFarmLog({id: areaIdVal.value, farmId: farmId.value}).then(({data,code}) => {
  348. if(code === 0){
  349. indicatorChartData.value = data
  350. eventBus.emit('chart:updateOption', indicatorChartData.value)
  351. } else {
  352. indicatorChartData.value = {}
  353. }
  354. })
  355. }
  356. // 农场详情
  357. const farmDetail = ref({});
  358. const getFarmDetail = (id) => {
  359. VE_API.farm.fetchFarmDetail({ id }).then(({ data }) => {
  360. farmDetail.value = data;
  361. });
  362. };
  363. // 农事列表
  364. const farmWorkList = ref([]);
  365. const getFarmWorkList = (farmId) => {
  366. // regionId
  367. VE_API.farm.fetchFarmWorkList({ farmId, regionId: regionId.value }).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. .desc-title {
  938. color: #494949;
  939. }
  940. .rescription-wrap {
  941. display: flex;
  942. align-items: center;
  943. .detail-text {
  944. color: #FFD489;
  945. padding-left: 6px;
  946. }
  947. }
  948. .rescription {
  949. max-width: 100px;
  950. white-space: nowrap;
  951. overflow: hidden;
  952. text-overflow: ellipsis;
  953. }
  954. .expert-link {
  955. display: inline-flex;
  956. align-items: center;
  957. color: #F0AC37;
  958. .icon {
  959. padding-left: 4px;
  960. }
  961. }
  962. }
  963. .step-box {
  964. position: absolute;
  965. right: 0px;
  966. top: 32px;
  967. }
  968. .card-link {
  969. display: flex;
  970. flex-direction: column;
  971. align-items: center;
  972. justify-content: center;
  973. color: #A46700;
  974. font-size: 12px;
  975. position: absolute;
  976. right: 6px;
  977. top: 20px;
  978. .expert-name {
  979. background: #FFD489;
  980. border-radius: 4px;
  981. padding: 2px 6px 3px 10px;
  982. margin-top: 4px;
  983. display: flex;
  984. align-items: center;
  985. }
  986. img {
  987. width: 64px;
  988. }
  989. .icon {
  990. padding-right: 2px;
  991. }
  992. }
  993. }
  994. .card-chart {
  995. padding: 8px 4px 0 4px;
  996. height: 130px;
  997. border-top: 1px solid rgba(255, 238, 208, 0.2);
  998. }
  999. }
  1000. .done-card {
  1001. margin-bottom: 10px;
  1002. }
  1003. .card-dom {
  1004. position: relative;
  1005. // top: -216px;
  1006. top: -6px;
  1007. }
  1008. .over-img {
  1009. transition: all 0.2s ease-in-out;
  1010. position: relative;
  1011. z-index: 2;
  1012. ::v-deep {
  1013. img {
  1014. border-radius: 8px;
  1015. }
  1016. }
  1017. }
  1018. .log-wrap {
  1019. padding: 4px 0 10px 0;
  1020. .log-box {
  1021. background: #232323;
  1022. border-radius: 8px;
  1023. color: #FFD489;
  1024. border: 1px solid rgba(255, 212, 137, 0.3);
  1025. .log-title {
  1026. font-family: "PangMenZhengDao";
  1027. position: relative;
  1028. top: -4px;
  1029. background: url("@/assets/img/gallery/log-bg.png") no-repeat top center / cover;
  1030. width: 97px;
  1031. height: 42px;
  1032. text-align: center;
  1033. font-size: 18px;
  1034. color: #fff;
  1035. span {
  1036. position: absolute;
  1037. top: 7px;
  1038. display: flex;
  1039. align-items: center;
  1040. justify-content: center;
  1041. width: 100%;
  1042. }
  1043. }
  1044. .log-content {
  1045. padding-bottom: 10px;
  1046. .log-desc {
  1047. padding: 0 10px;
  1048. font-size: 14px;
  1049. line-height: 22px;
  1050. }
  1051. }
  1052. .time-img {
  1053. width: 100%;
  1054. height: 100%;
  1055. img {
  1056. width: 100%;
  1057. }
  1058. }
  1059. }
  1060. }
  1061. }
  1062. }
  1063. .flashing {
  1064. position: relative;
  1065. &::after {
  1066. content: "";
  1067. position: absolute;
  1068. top: 0;
  1069. left: -2px;
  1070. width: 100%;
  1071. height: calc(100% - 2px);
  1072. border: 2px solid #F0AC37;
  1073. animation: flash 0.4s infinite alternate;
  1074. border-radius: 8px;
  1075. pointer-events: none;
  1076. }
  1077. }
  1078. @keyframes flash {
  1079. 0% {
  1080. box-shadow: 0 0 5px #F0AC37;
  1081. border-color: #F0AC37;
  1082. }
  1083. 100% {
  1084. box-shadow: 0 0 20px #F0AC37;
  1085. border: 2px solid #F0AC37;
  1086. }
  1087. }
  1088. }
  1089. .evaluate {
  1090. border-top: 1px solid rgba(255, 238, 208, 0.2);
  1091. color: #fff;
  1092. .evaluate-title {
  1093. padding-top: 8px;
  1094. font-size: 14px;
  1095. color: #fff;
  1096. display: flex;
  1097. align-items: center;
  1098. justify-content: space-between;
  1099. margin-bottom: 8px;
  1100. .more {
  1101. font-size: 14px;
  1102. color: #fff;
  1103. font-weight: 400;
  1104. display: flex;
  1105. align-items: center;
  1106. }
  1107. }
  1108. .rate {
  1109. display: flex;
  1110. justify-content: space-between;
  1111. ::v-deep {
  1112. .el-rate {
  1113. --el-rate-icon-margin: 0;
  1114. }
  1115. .el-rate--small .el-rate__icon {
  1116. font-size: 11px;
  1117. }
  1118. }
  1119. .rate-item {
  1120. display: flex;
  1121. align-items: center;
  1122. // background: #f5f5f5;
  1123. border-radius: 4px;
  1124. padding: 4px 0px;
  1125. font-size: 10px;
  1126. .name {
  1127. // margin-right: 2px;
  1128. color: #fff;
  1129. }
  1130. .num {
  1131. color: #f3c11d;
  1132. margin-left: 2px;
  1133. }
  1134. }
  1135. }
  1136. .comment {
  1137. margin-top: 12px;
  1138. .user-info {
  1139. display: flex;
  1140. align-items: center;
  1141. margin-bottom: 2px;
  1142. .user-name {
  1143. font-weight: 500;
  1144. margin-left: 8px;
  1145. span {
  1146. font-weight: 400;
  1147. font-size: 12px;
  1148. color: #fff;
  1149. }
  1150. }
  1151. }
  1152. }
  1153. }
  1154. }
  1155. }
  1156. </style>