index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782
  1. <route lang="json5" type="page">
  2. {
  3. layout: 'default',
  4. type: 'home',
  5. style: {
  6. navigationBarTitleText: '首页',
  7. navigationStyle: 'custom',
  8. disableScroll: true,
  9. 'app-plus': {
  10. bounce: 'none',
  11. },
  12. },
  13. }
  14. </route>
  15. <template>
  16. <view class="home-container">
  17. <scroll-view class="scroll-view" scroll-y>
  18. <!-- 状态栏占位 -->
  19. <view class="status-bar-placeholder" :style="{ height: statusBarHeight + 'px' }"></view>
  20. <!-- 头部 -->
  21. <view class="header">
  22. <text class="header-title">广州特检院</text>
  23. </view>
  24. <!-- Tab 栏 -->
  25. <view class="tab-bar">
  26. <view class="tab-item tab-item-active">
  27. <text class="tab-item-text-active">检验检测</text>
  28. </view>
  29. </view>
  30. <!-- 待办事项标题 -->
  31. <view class="todo-title-box">
  32. <text class="todo-title">我的待办事项</text>
  33. <view class="equip-picker" @click="showEquipPopup = true">
  34. <text class="equip-picker-text">{{ equipTypeLabel }}</text>
  35. <text class="equip-picker-arrow">›</text>
  36. </view>
  37. </view>
  38. <!-- 待办卡片列表 -->
  39. <view class="todo-cards">
  40. <CardItem
  41. v-for="card in cardList"
  42. :key="card.id"
  43. :ref="(el: any) => (cardItemRef[card.id] = el)"
  44. :card="card"
  45. :user-id="userId"
  46. :width="windowWidth"
  47. @navigate="pushCard"
  48. />
  49. </view>
  50. <!-- 功能栏 -->
  51. <view class="home-section">
  52. <view class="section-header">
  53. <text class="todo-title">功能栏</text>
  54. </view>
  55. <view class="cap-section-content">
  56. <view
  57. v-for="cap in capabilityList"
  58. :key="cap.title"
  59. class="section-item"
  60. :style="{ backgroundColor: cap.backgroundColor }"
  61. @click="pushCard(cap)"
  62. >
  63. <view class="cap-info">
  64. <text class="cap-title">{{ cap.title }}</text>
  65. <text class="cap-desc">{{ cap.desc }}</text>
  66. </view>
  67. <image class="cap-section-image" :src="cap.iconUrl" mode="aspectFit" />
  68. </view>
  69. </view>
  70. </view>
  71. </scroll-view>
  72. <!-- 网络状态提示 -->
  73. <view v-if="!networkStatus" class="network-toast">
  74. <text class="network-toast-text">当前网络不可用</text>
  75. </view>
  76. <!-- 设备类型选择弹窗 -->
  77. <view v-if="showEquipPopup" class="popup-mask" @click="showEquipPopup = false">
  78. <view class="popup-content" @click.stop>
  79. <view class="popup-header">
  80. <text class="popup-title">选择设备类型</text>
  81. <view class="popup-close" @click="showEquipPopup = false">
  82. <text class="popup-close-icon">✕</text>
  83. </view>
  84. </view>
  85. <view
  86. v-for="item in equipOptions"
  87. :key="item.value"
  88. class="popup-option"
  89. :class="{ 'popup-option-active': item.value === equipType }"
  90. @click="onEquipSelect(item.value)"
  91. >
  92. <text class="popup-option-label">{{ item.label }}</text>
  93. <view v-if="item.value === equipType" class="popup-option-check">
  94. <text class="popup-check-icon">✓</text>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. </view>
  100. </template>
  101. <script lang="ts" setup>
  102. import { ref, reactive, computed, onMounted, onUnmounted } from 'vue'
  103. import { onShow, onLoad } from '@dcloudio/uni-app'
  104. import { useUserStore } from '@/store/user'
  105. import { useConfigStore } from '@/store/config'
  106. import { EquipmentType } from '@/utils/dictMap'
  107. import { getTaskOrder } from '@/api/task'
  108. import iconMap from '@/utils/imagesMap'
  109. import CardItem, { type CardObj } from './components/CardItem.vue'
  110. import { requestFunc, IndexFuncName } from '@/api/ApiRouter/index'
  111. defineOptions({
  112. name: 'home',
  113. })
  114. // 常量
  115. const NUM = 2 // 一行多少个卡片
  116. const SPACE = 15 // 卡片之间的间距
  117. const PADDING = 20 // 左右边距
  118. // 状态
  119. const refresh = ref(false)
  120. const userId = ref('')
  121. const cardItemRef = reactive<Record<string, any>>({})
  122. const windowWidth = ref(0)
  123. const statusBarHeight = ref(20)
  124. const networkStatus = ref(true)
  125. const userStore = useUserStore()
  126. const userInfo = computed(() => userStore.userInfo)
  127. const configStore = useConfigStore()
  128. const equipType = computed(() => configStore.getEquipType())
  129. const showEquipPopup = ref(false)
  130. const equipTypeLabel = computed(() => {
  131. const map: Record<string, string> = {
  132. [EquipmentType.CONTAINER]: '压力容器',
  133. [EquipmentType.BOILER]: '锅炉',
  134. [EquipmentType.PIPE]: '管道',
  135. }
  136. return map[equipType.value] || '请选择'
  137. })
  138. const equipOptions = [
  139. { label: '压力容器', value: EquipmentType.CONTAINER },
  140. { label: '锅炉', value: EquipmentType.BOILER },
  141. { label: '管道', value: EquipmentType.PIPE },
  142. ]
  143. const onEquipSelect = (value: EquipmentType) => {
  144. if (value === EquipmentType.CONTAINER) {
  145. // 容器:通知 RN 端跳转首页
  146. if (window.ReactNativeWebView) {
  147. window.ReactNativeWebView.postMessage(
  148. JSON.stringify({ type: 'switchEquipType', equipType: EquipmentType.CONTAINER })
  149. )
  150. }
  151. return
  152. }
  153. // 锅炉、管道:切换设备类型
  154. if (value !== equipType.value) {
  155. configStore.switchEquipType(value)
  156. refreshAllCards()
  157. }
  158. showEquipPopup.value = false
  159. }
  160. onShow(() => {
  161. // 登录后首次进入且未选择过设备类型,自动弹出选择弹窗
  162. const hasChosenEquipType = equipType.value !== null
  163. if (!hasChosenEquipType) {
  164. showEquipPopup.value = true
  165. }
  166. refreshAllCards()
  167. })
  168. // 获取屏幕宽度
  169. const getWindowWidth = () => {
  170. const systemInfo = uni.getSystemInfoSync()
  171. windowWidth.value = systemInfo.windowWidth || 375
  172. statusBarHeight.value = systemInfo.statusBarHeight || 20
  173. }
  174. // 监听网络状态
  175. const onNetworkStatusChange = (res: any) => {
  176. networkStatus.value = res.isConnected
  177. }
  178. // 检查网络状态
  179. const checkNetworkStatus = () => {
  180. uni.getNetworkType({
  181. success: (res) => {
  182. networkStatus.value = res.networkType !== 'none'
  183. },
  184. fail: () => {
  185. networkStatus.value = false
  186. },
  187. })
  188. }
  189. // 防抖刷新函数
  190. const refreshAllCards = () => {
  191. const currentUserInfo = userStore.userInfo
  192. if (currentUserInfo?.id) {
  193. console.log('🔄 Home 页面自动刷新任务状态')
  194. cardList.forEach((card) => {
  195. cardItemRef[card.id]?.getCount(currentUserInfo.id)
  196. })
  197. }
  198. }
  199. onMounted(() => {
  200. getWindowWidth()
  201. getUserId()
  202. checkNetworkStatus()
  203. // 监听网络状态变化
  204. uni.onNetworkStatusChange(onNetworkStatusChange)
  205. })
  206. onUnmounted(() => {
  207. uni.offNetworkStatusChange(onNetworkStatusChange)
  208. })
  209. // 获取用户 id
  210. const getUserId = async () => {
  211. try {
  212. const res = await uni.getStorage({ key: 'APP_USER_INFO' })
  213. if (res.data?.id) {
  214. userId.value = res.data.id
  215. } else if (userInfo.value?.id) {
  216. userId.value = userInfo.value.id
  217. }
  218. } catch (e) {
  219. console.error('获取用户信息失败', e)
  220. }
  221. }
  222. // 查询待认领数量
  223. const getUnClaimNum = async () => {
  224. const params = {
  225. pageNo: 1,
  226. pageSize: 10,
  227. taskStatus: 100,
  228. }
  229. const result = await requestFunc(IndexFuncName.PreClaimNumberApi, equipType.value, params)
  230. const num = result?.data?.total
  231. return num || 0
  232. }
  233. // 查询本地待下载的任务
  234. const queryLocalTask = async (userId: string) => {
  235. const getServer = async () => {
  236. const result = await getTaskOrder({ pageNo: 1, pageSize: 5 })
  237. return result?.data?.total || 0
  238. }
  239. // TODO: 需要实现本地数据库查询
  240. const getLocal = async () => {
  241. return 0
  242. }
  243. const result = await Promise.all([getServer(), getLocal()])
  244. const num = result[0] - result[1]
  245. return num || 0
  246. }
  247. // 获取待录入数量
  248. const getUnEnterNum = async (userId: string) => {
  249. // TODO: 需要实现本地数据库查询
  250. return 0
  251. }
  252. // 获取分配项目数量
  253. const getCheckerOwnTaskNum = async () => {
  254. const result = await requestFunc(IndexFuncName.TaskEquipNumberApi, equipType.value, {
  255. pageNo: 1,
  256. pageSize: 10,
  257. taskStatusList: [400, 500, 510],
  258. isClaim: false,
  259. planCheckUserIds: userInfo.value?.id ? [userInfo.value.id] : [],
  260. })
  261. if (result?.code == 0 && result?.data?.total) {
  262. return result.data.total
  263. }
  264. return 0
  265. }
  266. // 获取待校核数量
  267. const getVerificationListNum = async () => {
  268. if (!userInfo.value || !userInfo.value.id) return 0
  269. const result = await requestFunc(IndexFuncName.PendingVerificationNumberApi, equipType.value, {
  270. pageNo: 1,
  271. pageSize: 10,
  272. recheckStrIds: userInfo.value.id,
  273. recheckStatus: '100',
  274. })
  275. if (result?.code == 0 && result?.data?.total) {
  276. return result.data.total
  277. }
  278. return 0
  279. }
  280. // 获取待编制数量
  281. const getPendingPreparationListNum = async () => {
  282. if (!userInfo.value || !userInfo.value.id) return 0
  283. const result = await requestFunc(IndexFuncName.PendingPreparationNumberApi, equipType.value, {
  284. pageNo: 1,
  285. pageSize: 10,
  286. mainCheckerStrIds: userInfo.value.id,
  287. })
  288. if (result?.code == 0 && result?.data?.total) {
  289. return result.data.total
  290. }
  291. return 0
  292. }
  293. // 获取待审核数量
  294. const getApprovalListNum = async () => {
  295. if (!userInfo.value || !userInfo.value.id) return 0
  296. const result = await requestFunc(IndexFuncName.ApprovalNumberApi, equipType.value, {
  297. pageNo: 1,
  298. pageSize: 10,
  299. approveStrIds: userInfo.value.id,
  300. })
  301. if (result?.code == 0 && result?.data?.total) {
  302. return result.data.total
  303. }
  304. return 0
  305. }
  306. // 获取待审批数量
  307. const getRatifyListNum = async () => {
  308. if (!userInfo.value || !userInfo.value.id) return 0
  309. const result = await requestFunc(IndexFuncName.RatifyNumberApi, equipType.value, {
  310. pageNo: 1,
  311. pageSize: 10,
  312. ratifyStrIds: userInfo.value.id,
  313. })
  314. if (result?.code == 0 && result?.data?.total) {
  315. return result.data.total
  316. }
  317. return 0
  318. }
  319. // 获取检验方案审核数量
  320. const getInspectionPlanAuditListNum = async (params: Record<string, any>) => {
  321. if (!userInfo.value || !userInfo.value.id) return 0
  322. const result = await requestFunc(IndexFuncName.MajorIssuesAuditNumberApi, equipType.value, {
  323. pageNo: 1,
  324. pageSize: 10,
  325. ...params,
  326. })
  327. if (result?.code == 0 && result?.data?.total) {
  328. return result.data.total || 0
  329. }
  330. return 0
  331. }
  332. // 卡片列表
  333. const cardList: CardObj[] = [
  334. {
  335. title: '待认领',
  336. id: 'unClaim',
  337. description: '条任务待认领',
  338. path: '/pages/unClaim/unClaimList',
  339. iconUrl: 'deviceExam',
  340. getCountFun: getUnClaimNum,
  341. netWork: true,
  342. },
  343. {
  344. title: '在线录入',
  345. id: 'taskOnlinePage',
  346. description: '条待完成',
  347. path: '/pages/taskOnlinePage/taskOnline',
  348. iconUrl: 'unitQuery',
  349. getCountFun: getCheckerOwnTaskNum,
  350. netWork: true,
  351. },
  352. {
  353. title: '待校核',
  354. id: 'pendingVerification',
  355. description: '条待校核',
  356. path: '/pages/pendingVerification/list/PendingVerificationList',
  357. iconUrl: 'unitQuery',
  358. getCountFun: getVerificationListNum,
  359. netWork: true,
  360. },
  361. // {
  362. // title: '待编制',
  363. // id: 'endingPreparation',
  364. // description: '条待编制',
  365. // path: '/pages/pendingPreparation/list/PendingPreparationList',
  366. // iconUrl: 'unitQuery',
  367. // getCountFun: getPendingPreparationListNum,
  368. // netWork: true,
  369. // },
  370. // {
  371. // title: '待审核',
  372. // id: 'pendingApproval',
  373. // description: '条待审核',
  374. // path: '/pages/pendingApproval/list/PendingApprovalList',
  375. // iconUrl: 'unitQuery',
  376. // getCountFun: getApprovalListNum,
  377. // netWork: true,
  378. // },
  379. // {
  380. // title: '待审批',
  381. // id: 'pendingRatify',
  382. // description: '条待审批',
  383. // path: '/pages/pendingRatify/list/PendingRatifyList',
  384. // iconUrl: 'unitQuery',
  385. // getCountFun: getRatifyListNum,
  386. // netWork: true,
  387. // },
  388. {
  389. title: '检验方案审批',
  390. id: 'inspectionPlanAudit',
  391. description: '条待审批',
  392. path: '/pages/inspectionPlanAudit/list/InspectionPlanAuditList',
  393. iconUrl: 'unitQuery',
  394. getCountFun: () =>
  395. getInspectionPlanAuditListNum({
  396. reportType: 600,
  397. status: 100,
  398. bpmUserId: userInfo.value?.id,
  399. }),
  400. netWork: true,
  401. },
  402. // {
  403. // title: '检验方案批准',
  404. // id: 'inspectionApproval',
  405. // description: '条待审批',
  406. // path: '/pages/inspectionApproval/list/inspectionApprovalList',
  407. // iconUrl: 'unitQuery',
  408. // getCountFun: () =>
  409. // getInspectionPlanAuditListNum({
  410. // reportType: 600,
  411. // secondStatus: 100,
  412. // flag: 1,
  413. // bpmUserId: userInfo.value?.id,
  414. // isInspectionSchemeRatify: true,
  415. // }),
  416. // netWork: true,
  417. // },
  418. {
  419. title: '操作指导书批准',
  420. id: 'workInstructionAudit',
  421. description: '条待审批',
  422. path: '/pages/workInstructionAudit/list/WorkInstructionAuditList',
  423. iconUrl: 'unitQuery',
  424. getCountFun: () =>
  425. getInspectionPlanAuditListNum({
  426. reportType: 700,
  427. status: 100,
  428. bpmUserId: userInfo.value?.id,
  429. }),
  430. netWork: true,
  431. },
  432. ]
  433. // 功能栏列表
  434. const capabilityList = [
  435. {
  436. title: '设备查询',
  437. desc: '查看全部设备',
  438. iconUrl: iconMap.deviceExam,
  439. path: '/pages/deviceExam/deviceExam',
  440. backgroundColor: '#F6FAFE',
  441. },
  442. {
  443. title: '单位信息',
  444. desc: '查看单位信息',
  445. iconUrl: iconMap.unitQuery,
  446. path: '/pages/unitQuery/unitQuery',
  447. backgroundColor: '#FEF7F6',
  448. },
  449. // {
  450. // title: '体系文件',
  451. // desc: '查看体系文件',
  452. // iconUrl: iconMap.systemFile,
  453. // path: '/pages/systemFile/systemFile',
  454. // backgroundColor: '#F6FBF6',
  455. // },
  456. ]
  457. // 跳转
  458. const pushCard = (card: CardObj) => {
  459. // 检查网络状态
  460. if (card?.netWork && !networkStatus.value) {
  461. return uni.showToast({ title: '当前网络不可用', icon: 'error' })
  462. }
  463. uni.navigateTo({ url: card.path })
  464. }
  465. // 下拉刷新
  466. const onRefresh = () => {
  467. refresh.value = true
  468. const currentUserInfo = userStore.userInfo
  469. cardList.forEach((card) => {
  470. cardItemRef[card.id]?.getCount(currentUserInfo.id + '')
  471. })
  472. setTimeout(() => {
  473. refresh.value = false
  474. }, 500)
  475. }
  476. </script>
  477. <style lang="scss" scoped>
  478. .home-container {
  479. display: flex;
  480. flex-direction: column;
  481. min-height: 100vh;
  482. background-color: #f2f2f2;
  483. }
  484. .scroll-view {
  485. flex: 1;
  486. background-color: #f2f2f2;
  487. }
  488. .status-bar-placeholder {
  489. width: 100%;
  490. background-color: #071f50;
  491. }
  492. .header {
  493. padding: 0 20px 20px;
  494. padding-top: 50px;
  495. background-color: #071f50;
  496. }
  497. .header-title {
  498. font-size: 32px;
  499. color: #fff;
  500. }
  501. .tab-bar {
  502. display: flex;
  503. flex-direction: row;
  504. align-items: flex-start;
  505. background-color: #071f50;
  506. }
  507. .tab-item {
  508. display: flex;
  509. flex: 1;
  510. flex-direction: row;
  511. align-items: center;
  512. justify-content: center;
  513. max-width: calc(100vw / 3);
  514. padding: 12px;
  515. }
  516. .tab-item-active {
  517. background-color: #fff;
  518. border-top-left-radius: 15px;
  519. border-top-right-radius: 15px;
  520. }
  521. .tab-item-text-active {
  522. font-size: 15px;
  523. font-weight: bold;
  524. color: rgb(59, 59, 59);
  525. }
  526. .todo-title-box {
  527. display: flex;
  528. flex-direction: row;
  529. align-items: center;
  530. justify-content: space-between;
  531. padding: 20px;
  532. background-color: #fff;
  533. }
  534. .equip-picker {
  535. display: flex;
  536. flex-direction: row;
  537. align-items: center;
  538. flex-shrink: 0;
  539. }
  540. .equip-picker-text {
  541. font-size: 14px;
  542. color: #666;
  543. }
  544. .equip-picker-arrow {
  545. margin-left: 4px;
  546. font-size: 16px;
  547. color: #999;
  548. }
  549. .todo-title {
  550. font-size: 18px;
  551. color: rgb(51, 51, 51);
  552. }
  553. .todo-cards {
  554. display: flex;
  555. flex-direction: row;
  556. flex-wrap: wrap;
  557. justify-content: space-between;
  558. padding: 0 10px;
  559. margin: 0 10px;
  560. background-color: #fff;
  561. border-radius: 0 0 12px 12px;
  562. }
  563. .home-section {
  564. padding: 0 12px 20px 12px;
  565. margin: 10px;
  566. background-color: #ffffff;
  567. border-radius: 6px;
  568. }
  569. .section-header {
  570. padding: 16px 8px 16px 8px;
  571. border-bottom: 1px solid #eee;
  572. }
  573. .cap-section-content {
  574. display: flex;
  575. flex-direction: row;
  576. flex-wrap: nowrap;
  577. gap: 12px;
  578. padding: 0 8px 15px;
  579. margin-top: 15px;
  580. }
  581. .section-item {
  582. position: relative;
  583. flex: 1;
  584. padding: 20px 15px;
  585. }
  586. .cap-info {
  587. width: 100%;
  588. }
  589. .cap-title {
  590. display: block;
  591. margin-bottom: 4px;
  592. font-size: 15px;
  593. font-weight: 500;
  594. color: #333333;
  595. }
  596. .cap-desc {
  597. display: block;
  598. font-size: 12px;
  599. color: #666;
  600. }
  601. .cap-section-image {
  602. display: block;
  603. width: 100%;
  604. height: 50px;
  605. }
  606. .network-toast {
  607. position: fixed;
  608. top: 50%;
  609. left: 50%;
  610. z-index: 9999;
  611. padding: 15px 25px;
  612. background-color: rgba(0, 0, 0, 0.7);
  613. border-radius: 8px;
  614. transform: translate(-50%, -50%);
  615. }
  616. .network-toast-text {
  617. font-size: 14px;
  618. color: #fff;
  619. }
  620. .popup-mask {
  621. position: fixed;
  622. top: 0;
  623. left: 0;
  624. z-index: 9999;
  625. display: flex;
  626. align-items: center;
  627. justify-content: center;
  628. width: 100%;
  629. height: 100%;
  630. background-color: rgba(0, 0, 0, 0.5);
  631. }
  632. .popup-content {
  633. width: 80%;
  634. max-width: 360px;
  635. padding: 0 20px 20px;
  636. background-color: #fff;
  637. border-radius: 12px;
  638. }
  639. .popup-header {
  640. display: flex;
  641. flex-direction: row;
  642. align-items: center;
  643. justify-content: space-between;
  644. padding: 20px 0 16px;
  645. border-bottom: 1px solid #eee;
  646. }
  647. .popup-title {
  648. font-size: 18px;
  649. font-weight: bold;
  650. color: #333;
  651. }
  652. .popup-close {
  653. padding: 4px;
  654. }
  655. .popup-close-icon {
  656. font-size: 18px;
  657. color: #999;
  658. }
  659. .popup-option {
  660. display: flex;
  661. flex-direction: row;
  662. align-items: center;
  663. justify-content: space-between;
  664. padding: 16px 12px;
  665. margin-top: 8px;
  666. background-color: #f9f9f9;
  667. border-radius: 8px;
  668. border-left: 4px solid transparent;
  669. }
  670. .popup-option-active {
  671. border-left-color: #071f50;
  672. background-color: #f0f4fa;
  673. }
  674. .popup-option-label {
  675. font-size: 16px;
  676. color: #333;
  677. }
  678. .popup-option-check {
  679. display: flex;
  680. align-items: center;
  681. justify-content: center;
  682. width: 22px;
  683. height: 22px;
  684. background-color: #071f50;
  685. border-radius: 11px;
  686. }
  687. .popup-check-icon {
  688. font-size: 12px;
  689. color: #fff;
  690. }
  691. </style>