restorePlantingPopup.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684
  1. <template>
  2. <popup
  3. v-model:show="visible"
  4. round
  5. teleport="body"
  6. :z-index="20000"
  7. class="restore-planting-popup"
  8. :close-on-click-overlay="true"
  9. >
  10. <div class="popup-content">
  11. <img
  12. class="restore-planting-popup__decor"
  13. src="@/assets/img/agricultural/question.png"
  14. alt=""
  15. />
  16. <div class="restore-planting-popup__header">
  17. <div class="restore-planting-popup__title">
  18. <div>{{ t("agriFile.restoreFillQuestions") }}</div>
  19. <div>{{ t("agriFile.restorePlantingService") }}</div>
  20. </div>
  21. </div>
  22. <!-- 问题一:选择时间 -->
  23. <div v-if="questionType === 'time'" class="restore-planting-popup__card">
  24. <div class="restore-planting-popup__question">
  25. <template v-if="highlightWord && questionText.includes(highlightWord)">
  26. <span>{{ questionText.split(highlightWord)[0] }}</span>
  27. <span class="restore-planting-popup__keyword">{{ highlightWord }}</span>
  28. <span>{{ questionText.split(highlightWord).slice(1).join(highlightWord) }}</span>
  29. </template>
  30. <template v-else>{{ questionText }}</template>
  31. </div>
  32. <div class="restore-planting-popup__hint">{{ hintText }}</div>
  33. <div class="restore-planting-popup__photo">
  34. <img :src="sampleImage" alt="" />
  35. </div>
  36. <el-date-picker
  37. v-model="selectedDate"
  38. class="restore-planting-popup__date-picker"
  39. type="date"
  40. format="YYYY.MM.DD"
  41. value-format="YYYY.MM.DD"
  42. :placeholder="t('agriFile.selectTime')"
  43. :editable="false"
  44. :clearable="false"
  45. teleported
  46. popper-class="restore-planting-date-popper"
  47. style="width: 100%"
  48. />
  49. </div>
  50. <!-- 问题二:物候期选择 -->
  51. <div v-else class="restore-planting-popup__card">
  52. <div class="restore-planting-popup__question">
  53. <template v-if="phenologyHighlight && phenologyQuestion.includes(phenologyHighlight)">
  54. <span>{{ phenologyQuestion.split(phenologyHighlight)[0] }}</span>
  55. <span class="restore-planting-popup__keyword">{{ phenologyHighlight }}</span>
  56. <span>{{ phenologyQuestion.split(phenologyHighlight).slice(1).join(phenologyHighlight) }}</span>
  57. </template>
  58. <template v-else>{{ phenologyQuestion }}</template>
  59. </div>
  60. <div class="restore-planting-popup__photo restore-planting-popup__photo--guide">
  61. <img :src="phenologyImage" alt="" />
  62. <photo-provider :photo-closable="true">
  63. <photo-consumer :src="patrolGuideImage" :intro="patrolGuideImage">
  64. <div class="restore-planting-popup__guide-btn">
  65. {{ t("agriFile.viewPatrolGuide") }}
  66. </div>
  67. </photo-consumer>
  68. </photo-provider>
  69. </div>
  70. <div class="restore-planting-popup__options">
  71. <div
  72. v-for="item in phenologyOptions"
  73. :key="item.value"
  74. class="restore-planting-popup__option"
  75. :class="{ active: phenologyAnswer === item.value }"
  76. @click="handlePhenologySelect(item.value)"
  77. >
  78. <span>{{ item.label }}</span>
  79. <span v-if="phenologyAnswer === item.value" class="restore-planting-popup__option-check">
  80. <el-icon><Check /></el-icon>
  81. </span>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="restore-planting-popup__actions">
  86. <div
  87. class="restore-planting-popup__btn restore-planting-popup__btn--primary"
  88. :class="{ disabled: submitting }"
  89. @click="handleConfirm"
  90. >
  91. {{ questionType === "time" ? t("agriFile.confirmNow") : t("agriFile.submitInfo") }}
  92. </div>
  93. </div>
  94. </div>
  95. </popup>
  96. </template>
  97. <script setup>
  98. import { computed, onActivated, onDeactivated, ref } from "vue";
  99. import { Popup } from "vant";
  100. import { Check } from "@element-plus/icons-vue";
  101. import { ElMessage } from "element-plus";
  102. import { useI18n } from "@/i18n";
  103. import { base_img_url2 } from "@/api/config";
  104. const { t } = useI18n();
  105. const emit = defineEmits(["success"]);
  106. // ---------------------------------------------------------------------------
  107. // Props
  108. // ---------------------------------------------------------------------------
  109. const props = defineProps({
  110. /** 分区 id;不传则读当前选中农场缓存 */
  111. zoneId: { type: [Number, String], default: null },
  112. });
  113. // ---------------------------------------------------------------------------
  114. // 常量
  115. // ---------------------------------------------------------------------------
  116. const PHENOLOGY_PREFIX = "您的农场是否进入到 ";
  117. const DEFAULT_SAMPLE_IMAGE = require("@/assets/img/agricultural/baidian.png");
  118. const DEFAULT_PHENOLOGY_IMAGE = require("@/assets/img/common/sd-1.jpg");
  119. /** 巡园向导预览图 */
  120. const PATROL_GUIDE_IMAGE_PATH =
  121. "e84a8f1b-9842-434c-951f-068ff6963f31/6c8b7135-95b7-4c04-82ef-a2daeb674d0c/DJI_202608190758_001_6c8b7135-95b7-4c04-82ef-a2daeb674d0c/DJI_20260819080818_0085_V_code-ws0fsmg8zg8u.jpeg";
  122. const patrolGuideImage = base_img_url2 + PATROL_GUIDE_IMAGE_PATH;
  123. // ---------------------------------------------------------------------------
  124. // 页面状态
  125. // ---------------------------------------------------------------------------
  126. /** 弹窗显隐由接口数据控制,默认不展示 */
  127. const visible = ref(false);
  128. const questionType = ref("time"); // time | phenology
  129. const selectedDate = ref("");
  130. const phenologyAnswer = ref("");
  131. const submitting = ref(false);
  132. const hasDateInteract = ref(false);
  133. const hasOptionsInteract = ref(false);
  134. /** date_interact 原始数据,提交时可能用到 */
  135. const dateInteractData = ref(null);
  136. /** options_interact.interact 映射表,key 为 start_with 同类序号 */
  137. const interactMap = ref({});
  138. /** 当前展示的物候期序号(对应 interact 的 key) */
  139. const currentInteractKey = ref("");
  140. /** 用户确认「已到达」后写入,提交接口使用 */
  141. const selectedPeriodCode = ref("");
  142. const questionText = ref("");
  143. const highlightWord = ref("");
  144. const hintText = ref("");
  145. const sampleImage = ref(DEFAULT_SAMPLE_IMAGE);
  146. const phenologyQuestion = ref("");
  147. const phenologyHighlight = ref("");
  148. const phenologyImage = ref(DEFAULT_PHENOLOGY_IMAGE);
  149. // ---------------------------------------------------------------------------
  150. // 计算属性
  151. // ---------------------------------------------------------------------------
  152. const phenologyOptions = computed(() => [
  153. { value: "not_reached", label: t("agriFile.notReached") },
  154. { value: "reached", label: t("agriFile.reached") },
  155. { value: "passed", label: t("agriFile.passed") },
  156. ]);
  157. const interactKeys = computed(() =>
  158. Object.keys(interactMap.value).sort((a, b) => Number(a) - Number(b))
  159. );
  160. const getSelectedFarmId = () => {
  161. try {
  162. const farm = JSON.parse(localStorage.getItem("selectedFarmData") || "{}");
  163. return String(
  164. localStorage.getItem("selectedFarmId") || farm.farm_id || farm.id || ""
  165. );
  166. } catch {
  167. return String(localStorage.getItem("selectedFarmId") || "");
  168. }
  169. };
  170. const getSelectedZoneId = () => {
  171. try {
  172. const farm = JSON.parse(localStorage.getItem("selectedFarmData") || "{}");
  173. return farm.zone_id ?? farm.zoneId ?? null;
  174. } catch {
  175. return null;
  176. }
  177. };
  178. /** 每次实时读缓存,避免 computed 缓存旧 zone_id */
  179. const resolveZoneId = () => props.zoneId ?? getSelectedZoneId();
  180. /** 上次成功请求对应的农场/分区 */
  181. let lastFetchedFarmKey = "";
  182. /** 递增后旧请求的返回不再打开弹窗 */
  183. let requestSeq = 0;
  184. /** 当前页是否处于前台,离开后迟到的响应不展示 */
  185. let pageActive = false;
  186. const getFarmFetchKey = () => `${getSelectedFarmId()}|${resolveZoneId() ?? ""}`;
  187. // ---------------------------------------------------------------------------
  188. // 工具函数
  189. // ---------------------------------------------------------------------------
  190. /** 当天日期 YYYY-MM-DD */
  191. const formatToday = () => {
  192. const d = new Date();
  193. const y = d.getFullYear();
  194. const m = String(d.getMonth() + 1).padStart(2, "0");
  195. const day = String(d.getDate()).padStart(2, "0");
  196. return `${y}-${m}-${day}`;
  197. };
  198. /** 日期选择器 YYYY.MM.DD → 接口 YYYY-MM-DD */
  199. const toApiDate = (value) => (value ? String(value).replace(/\./g, "-") : "");
  200. /** 拼接 CDN 图片地址 */
  201. const resolveImageUrl = (path) => {
  202. if (!path) return "";
  203. if (/^https?:\/\//i.test(path)) return path;
  204. return base_img_url2 + String(path).replace(/^\//, "");
  205. };
  206. /** 从 interact_theme 引号中提取高亮词,如「来梢」 */
  207. const extractHighlightWord = (text) => {
  208. if (!text) return "";
  209. const match = String(text).match(/[“"「]([^”"」]+)[”"」]/);
  210. return match ? match[1] : "";
  211. };
  212. /** Message 需高于弹窗 z-index: 20000 */
  213. const showMessage = (message, type = "warning") => {
  214. ElMessage({
  215. message,
  216. type,
  217. customClass: "restore-planting-message",
  218. zIndex: 40000,
  219. });
  220. };
  221. const showWarning = (message) => showMessage(message, "warning");
  222. const resetForm = () => {
  223. questionType.value = hasDateInteract.value ? "time" : "phenology";
  224. selectedDate.value = "";
  225. phenologyAnswer.value = "";
  226. selectedPeriodCode.value = "";
  227. };
  228. // ---------------------------------------------------------------------------
  229. // 业务逻辑:填充问题 / 物候期切换
  230. // ---------------------------------------------------------------------------
  231. const applyDateInteract = (data) => {
  232. dateInteractData.value = data;
  233. questionText.value = data.interact_theme || "";
  234. highlightWord.value = extractHighlightWord(data.interact_theme);
  235. hintText.value = data.interact_reason || "";
  236. sampleImage.value = resolveImageUrl(data.guide_url) || DEFAULT_SAMPLE_IMAGE;
  237. };
  238. /** 按 interact key 刷新问题二文案与配图 */
  239. const applyPhenologyByKey = (key) => {
  240. const item = interactMap.value[key];
  241. if (!item) return;
  242. currentInteractKey.value = String(key);
  243. const name = item.period_name || "";
  244. phenologyHighlight.value = name;
  245. phenologyQuestion.value = `${PHENOLOGY_PREFIX}${name} ?`;
  246. phenologyImage.value = resolveImageUrl(item.url) || DEFAULT_PHENOLOGY_IMAGE;
  247. selectedPeriodCode.value = "";
  248. };
  249. /** 暂未到达 → 前一个;已过 → 后一个 */
  250. const movePhenology = (direction) => {
  251. const keys = interactKeys.value;
  252. const idx = keys.indexOf(String(currentInteractKey.value));
  253. if (idx < 0) return false;
  254. const nextIdx = direction === "prev" ? idx - 1 : idx + 1;
  255. if (nextIdx < 0 || nextIdx >= keys.length) {
  256. showWarning(direction === "prev" ? "已是最早物候期" : "已是最晚物候期");
  257. return false;
  258. }
  259. applyPhenologyByKey(keys[nextIdx]);
  260. phenologyAnswer.value = "";
  261. return true;
  262. };
  263. const applyQuestionData = (data) => {
  264. hasDateInteract.value = !!data?.date_interact;
  265. hasOptionsInteract.value = !!data?.options_interact?.interact;
  266. if (hasDateInteract.value) {
  267. applyDateInteract(data.date_interact);
  268. }
  269. if (hasOptionsInteract.value) {
  270. interactMap.value = data.options_interact.interact || {};
  271. const startKey = String(data.options_interact.start_with ?? interactKeys.value[0] ?? "");
  272. applyPhenologyByKey(startKey);
  273. }
  274. // 有时间题优先展示;仅物候题则直接进入问题二
  275. questionType.value = hasDateInteract.value ? "time" : "phenology";
  276. visible.value = hasDateInteract.value || hasOptionsInteract.value;
  277. };
  278. /** 请求接口判断是否展示,并填充问题内容 */
  279. const checkShouldShow = async () => {
  280. const seq = ++requestSeq;
  281. const zoneId = resolveZoneId();
  282. const fetchKey = getFarmFetchKey();
  283. if (!pageActive) return;
  284. if (zoneId == null || zoneId === "") {
  285. visible.value = false;
  286. lastFetchedFarmKey = fetchKey;
  287. return;
  288. }
  289. try {
  290. const res = await VE_API.questionnaire.getInitialInteraction({
  291. zone_id: zoneId,
  292. date: formatToday(),
  293. });
  294. // 已切页或已有更新的请求时,丢弃这次结果,避免弹窗叠加
  295. if (seq !== requestSeq || !pageActive) return;
  296. if (res?.code === 200 && res.data) {
  297. applyQuestionData(res.data);
  298. } else {
  299. visible.value = false;
  300. }
  301. lastFetchedFarmKey = fetchKey;
  302. } catch (e) {
  303. if (seq !== requestSeq || !pageActive) return;
  304. visible.value = false;
  305. }
  306. };
  307. // ---------------------------------------------------------------------------
  308. // 事件处理 / 生命周期
  309. // ---------------------------------------------------------------------------
  310. // 进入 / 从其他页返回时重新请求;离开时已关弹窗,不能因「农场未变」跳过
  311. onActivated(() => {
  312. pageActive = true;
  313. visible.value = false;
  314. resetForm();
  315. checkShouldShow();
  316. });
  317. onDeactivated(() => {
  318. pageActive = false;
  319. requestSeq += 1;
  320. visible.value = false;
  321. lastFetchedFarmKey = "";
  322. });
  323. /**
  324. * 暂未到达 / 已过:立刻切到相邻物候期;
  325. * 已到达:选中并记下当前 period_code,供提交使用
  326. */
  327. const handlePhenologySelect = (value) => {
  328. if (value === "not_reached") {
  329. movePhenology("prev");
  330. return;
  331. }
  332. if (value === "passed") {
  333. movePhenology("next");
  334. return;
  335. }
  336. phenologyAnswer.value = "reached";
  337. const current = interactMap.value[currentInteractKey.value];
  338. selectedPeriodCode.value = current?.period_code || "";
  339. };
  340. /**
  341. * 组装保存感知结果载荷
  342. * @param {'time'|'phenology'} type 问题一不含 period_code;问题二不含 interact_code
  343. */
  344. const buildSubmitPayload = (type = "time") => {
  345. const payload = {
  346. zone_id: Number(resolveZoneId()) || resolveZoneId(),
  347. date: toApiDate(selectedDate.value) || formatToday(),
  348. };
  349. if (type === "time") {
  350. payload.interact_code = dateInteractData.value?.interact_code || "";
  351. } else {
  352. payload.period_code = selectedPeriodCode.value || "";
  353. }
  354. return payload;
  355. };
  356. /** 从 axios 错误中取出可读信息 */
  357. const getRequestErrorMessage = (err) => {
  358. const data = err?.response?.data;
  359. if (typeof data === "string" && data) return data;
  360. if (data?.msg) return data.msg;
  361. if (data?.message) return data.message;
  362. if (err?.message) return err.message;
  363. return "提交失败,请稍后再试";
  364. };
  365. /**
  366. * 调用保存感知结果接口
  367. * @param {'time'|'phenology'} type
  368. * @param {{ closeOnSuccess?: boolean }} options closeOnSuccess=false 时成功后不关弹窗(用于继续答问题二)
  369. */
  370. const submitInteractResult = async (type = "time", { closeOnSuccess = true } = {}) => {
  371. if (submitting.value) return false;
  372. submitting.value = true;
  373. try {
  374. const res = await VE_API.questionnaire.saveInteractResult(buildSubmitPayload(type));
  375. if (res?.code === 200) {
  376. if (closeOnSuccess) {
  377. showMessage(res.msg || "提交成功", "success");
  378. visible.value = false;
  379. resetForm();
  380. emit("success");
  381. }
  382. return true;
  383. }
  384. showMessage(res?.msg || "提交失败,请稍后再试", "error");
  385. return false;
  386. } catch (err) {
  387. showMessage(getRequestErrorMessage(err), "error");
  388. return false;
  389. } finally {
  390. submitting.value = false;
  391. }
  392. };
  393. const handleConfirm = async () => {
  394. if (submitting.value) return;
  395. // 问题一:立即确认 → 提交(不含 period_code)
  396. if (questionType.value === "time") {
  397. if (!selectedDate.value) {
  398. showWarning(t("agriFile.selectTime"));
  399. return;
  400. }
  401. const ok = await submitInteractResult("time", {
  402. // 还有问题二则提交成功后继续展示,不关弹窗
  403. closeOnSuccess: !hasOptionsInteract.value,
  404. });
  405. if (ok && hasOptionsInteract.value) {
  406. questionType.value = "phenology";
  407. }
  408. return;
  409. }
  410. // 问题二:需已选择「已到达」并写入 period_code;提交不含 interact_code
  411. if (phenologyAnswer.value !== "reached" || !selectedPeriodCode.value) {
  412. const current = interactMap.value[currentInteractKey.value];
  413. if (phenologyAnswer.value === "reached" && current?.period_code) {
  414. selectedPeriodCode.value = current.period_code;
  415. } else {
  416. showWarning("请确认当前物候期是否已到达");
  417. return;
  418. }
  419. }
  420. await submitInteractResult("phenology");
  421. };
  422. defineExpose({
  423. checkShouldShow,
  424. buildSubmitPayload,
  425. selectedPeriodCode,
  426. });
  427. </script>
  428. <style scoped lang="scss">
  429. .restore-planting-popup {
  430. width: 86%;
  431. padding: 18px 14px 16px;
  432. box-sizing: border-box;
  433. background: linear-gradient(180deg, #d7ecff 0%, #ffffff 28%);
  434. overflow: visible;
  435. &__header {
  436. display: flex;
  437. align-items: flex-start;
  438. justify-content: space-between;
  439. }
  440. &__title {
  441. font-size: 22px;
  442. line-height: 25px;
  443. color: #111;
  444. div {
  445. font-family: "PangMenZhengDao";
  446. }
  447. }
  448. .popup-content {
  449. position: relative;
  450. }
  451. &__decor {
  452. position: absolute;
  453. top: -8px;
  454. right: -4px;
  455. width: 78px;
  456. height: 78px;
  457. object-fit: contain;
  458. pointer-events: none;
  459. }
  460. &__card {
  461. margin-top: 12px;
  462. padding: 10px 12px 12px;
  463. border-radius: 12px;
  464. background: #eaf5ff;
  465. box-sizing: border-box;
  466. position: relative;
  467. z-index: 2;
  468. }
  469. &__question {
  470. font-size: 15px;
  471. line-height: 24px;
  472. color: #252525;
  473. font-weight: 500;
  474. }
  475. &__keyword {
  476. color: #2199f8;
  477. }
  478. &__hint {
  479. margin-top: 4px;
  480. font-size: 12px;
  481. line-height: 16px;
  482. color: #9e9e9e;
  483. }
  484. &__photo {
  485. position: relative;
  486. margin: 12px 0;
  487. border-radius: 8px;
  488. overflow: hidden;
  489. background: #dfeaf5;
  490. img {
  491. display: block;
  492. width: 100%;
  493. height: 148px;
  494. object-fit: cover;
  495. }
  496. &--guide img {
  497. height: 132px;
  498. }
  499. }
  500. &__guide-btn {
  501. position: absolute;
  502. top: 8px;
  503. right: 8px;
  504. height: 28px;
  505. padding: 0 10px;
  506. border-radius: 14px;
  507. background: rgba(0, 0, 0, 0.55);
  508. color: #fff;
  509. font-size: 12px;
  510. display: flex;
  511. align-items: center;
  512. justify-content: center;
  513. }
  514. &__options {
  515. margin-top: 12px;
  516. display: flex;
  517. gap: 8px;
  518. }
  519. &__option {
  520. position: relative;
  521. flex: 1;
  522. height: 36px;
  523. border-radius: 8px;
  524. background: #fff;
  525. border: 1px solid transparent;
  526. display: flex;
  527. align-items: center;
  528. justify-content: center;
  529. font-size: 13px;
  530. color: #333;
  531. box-sizing: border-box;
  532. &.active {
  533. border-color: #2199f8;
  534. color: #2199f8;
  535. }
  536. }
  537. &__option-check {
  538. position: absolute;
  539. top: 0;
  540. right: 0;
  541. width: 16px;
  542. height: 16px;
  543. border-radius: 0 6px 0 6px;
  544. background: #2199f8;
  545. color: #fff;
  546. display: flex;
  547. align-items: center;
  548. justify-content: center;
  549. font-size: 10px;
  550. }
  551. &__date-picker {
  552. width: 100%;
  553. :deep(.el-input__wrapper) {
  554. height: 40px;
  555. border-radius: 8px;
  556. box-shadow: none !important;
  557. background: #fff;
  558. padding: 0 12px;
  559. }
  560. :deep(.el-input__inner) {
  561. font-size: 14px;
  562. color: #333;
  563. }
  564. :deep(.el-input__prefix),
  565. :deep(.el-input__suffix) {
  566. color: rgba(0, 0, 0, 0.35);
  567. }
  568. }
  569. &__actions {
  570. margin-top: 12px;
  571. display: flex;
  572. align-items: center;
  573. justify-content: center;
  574. }
  575. &__btn {
  576. height: 40px;
  577. line-height: 40px;
  578. padding: 0 30px;
  579. border-radius: 20px;
  580. display: flex;
  581. align-items: center;
  582. justify-content: center;
  583. font-size: 16px;
  584. font-weight: 500;
  585. box-sizing: border-box;
  586. &--primary {
  587. // flex: 1;
  588. background: linear-gradient(180deg, #76c3ff 0%, #2199f8 100%);
  589. color: #fff;
  590. &.disabled {
  591. opacity: 0.6;
  592. pointer-events: none;
  593. }
  594. }
  595. }
  596. }
  597. </style>
  598. <!-- 日期面板 / 图片预览 / Message teleport 到 body,需高于弹窗 z-index: 20000 -->
  599. <style lang="scss">
  600. .restore-planting-date-popper {
  601. z-index: 30000 !important;
  602. }
  603. .PhotoSlider__Wrapper {
  604. z-index: 30001 !important;
  605. }
  606. .el-message.restore-planting-message {
  607. z-index: 40000 !important;
  608. }
  609. </style>