index.vue 52 KB

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