index.vue 81 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052
  1. <template>
  2. <div class="portal-home min-h-screen" :style="homeBackgroundStyle">
  3. <div v-if="showDingTalkLoginMask" class="portal-login-mask">
  4. <div class="portal-login-mask__content">
  5. <div class="portal-login-mask__spinner"></div>
  6. <p class="portal-login-mask__text">正在登录,请稍候...</p>
  7. </div>
  8. </div>
  9. <Header />
  10. <main class="px-5 md:px-20 pb-8 pt-20">
  11. <section class="hero-banner overflow-hidden rounded-[6px] relative">
  12. <div class="">
  13. <!-- 轮播容器 -->
  14. <div class="carousel-container relative h-[50%]">
  15. <!-- 轮播项 -->
  16. <div
  17. class="carousel-slide absolute inset-0 transition-opacity duration-500 ease-in-out"
  18. v-for="(slide, index) in slides"
  19. :key="index"
  20. v-show="currentIndex === index"
  21. :class="{
  22. 'opacity-100': currentIndex === index,
  23. 'opacity-0': currentIndex !== index,
  24. 'z-10': currentIndex === index,
  25. 'z-0 pointer-events-none': currentIndex !== index,
  26. }"
  27. >
  28. <div class="hero-copy carousel-caption">
  29. <p class="hero-text mt-6 text-[30px]!">
  30. {{ slide.text }}
  31. </p>
  32. </div>
  33. <!-- 轮播背景图 -->
  34. <div class="hero-visual absolute inset-0">
  35. <img
  36. :src="slide.image"
  37. alt="Banner"
  38. class="w-full h-full object-cover"
  39. />
  40. </div>
  41. </div>
  42. <!-- 指示器 -->
  43. <div
  44. class="carousel-indicators absolute bottom-4 left-1/2 z-30 flex transform -translate-x-1/2 space-x-2"
  45. >
  46. <span
  47. v-for="(_, i) in slides"
  48. :key="i"
  49. @click="currentIndex = i"
  50. :class="{
  51. 'bg-[#0c4eb5]': currentIndex === i,
  52. 'bg-[#2f333c]/50': currentIndex !== i,
  53. }"
  54. class="w-3 h-3 rounded-full transition-colors"
  55. ></span>
  56. </div>
  57. </div>
  58. </div>
  59. </section>
  60. <section class="portal-mobile-shortcuts mt-3 md:hidden!">
  61. <button
  62. type="button"
  63. class="portal-mobile-shortcut flex flex-col items-center justify-center cursor-pointer"
  64. @click="router.push('/flow')"
  65. >
  66. <img src="../assets//images/flow.png" alt="" class="w-10 h-10" />
  67. {{ $t("nav.flow") }}
  68. </button>
  69. <button
  70. v-hasPermi="['portal:dashboard:view']"
  71. type="button"
  72. class="portal-mobile-shortcut flex flex-col items-center justify-center cursor-pointer"
  73. @click="router.push('/drive')"
  74. >
  75. <img src="../assets//images/driveicon.png" alt="" class="w-10 h-10" />
  76. {{ $t("nav.drive") }}
  77. </button>
  78. <button
  79. type="button"
  80. class="portal-mobile-shortcut flex flex-col items-center justify-center cursor-pointer"
  81. >
  82. <img src="../assets//images/report.png" alt="" class="w-10 h-10" />
  83. {{ $t("nav.report") }}
  84. </button>
  85. </section>
  86. <section class="mt-3 grid gap-4 xl:grid-cols-[1.74fr_0.74fr] grid-cols-1">
  87. <div class="space-y-4">
  88. <div class="top-nav-bar">
  89. <!-- 中间搜索框 -->
  90. <div class="search-container hidden! md:flex!">
  91. <Icon icon="mdi:magnify" class="search-icon" />
  92. <input
  93. v-model="searchKeyword"
  94. type="text"
  95. :placeholder="$t('flow.palceholder')"
  96. class="search-input"
  97. @keyup.enter="handleSearch"
  98. />
  99. <!-- <span class="shortcut-key">⌘K</span> -->
  100. </div>
  101. <!-- 右侧快捷入口 -->
  102. <div class="quick-access">
  103. <el-dropdown
  104. trigger="click"
  105. popper-class="quick-access-dropdown"
  106. @command="handleQuickAccessCommand"
  107. >
  108. <button type="button" class="quick-btn quick-btn--dropdown">
  109. <img src="../assets//images//td.png" class="w-5 h-5" alt="" />
  110. <span class="btn-label quick-btn__meta">{{
  111. $t("flow.todo")
  112. }}</span>
  113. <span class="quick-btn__count quick-btn__count--todo">{{
  114. todo
  115. }}</span>
  116. <!-- <Icon icon="mdi:chevron-down" class="quick-btn__arrow" /> -->
  117. </button>
  118. <template #dropdown>
  119. <el-dropdown-menu>
  120. <el-dropdown-item command="todo-oa">
  121. <div class="p-2 flex items-center gap-3 text-[#e26669]!">
  122. <span>OA</span>
  123. <span>{{ oatodo }}</span>
  124. </div>
  125. </el-dropdown-item>
  126. <el-dropdown-item command="todo-crm">
  127. <div class="p-2 flex items-center gap-3 text-[#e26669]!">
  128. <span>CRM</span>
  129. <span>{{ crmtodo }}</span>
  130. </div>
  131. </el-dropdown-item>
  132. <el-dropdown-item command="todo-srm">
  133. <div class="p-2 flex items-center gap-3 text-[#e26669]!">
  134. <span>SRM</span>
  135. <span>{{ srmtodo }}</span>
  136. </div>
  137. </el-dropdown-item>
  138. <el-dropdown-item command="todo-ehr">
  139. <div class="p-2 flex items-center gap-3 text-[#e26669]!">
  140. <span>EHR</span>
  141. <span>{{ ehrtodo }}</span>
  142. </div>
  143. </el-dropdown-item>
  144. </el-dropdown-menu>
  145. </template>
  146. </el-dropdown>
  147. <el-dropdown
  148. trigger="click"
  149. popper-class="quick-access-dropdown"
  150. @command="handleQuickAccessCommand"
  151. >
  152. <button type="button" class="quick-btn quick-btn--dropdown">
  153. <Icon icon="mdi:check" class="btn-icon" />
  154. <span class="btn-label quick-btn__meta">{{
  155. $t("flow.done")
  156. }}</span>
  157. <span
  158. class="p-2 inline-block quick-btn__count quick-btn__count--done"
  159. >{{ done }}</span
  160. >
  161. <!-- <Icon icon="mdi:chevron-down" class="quick-btn__arrow" /> -->
  162. </button>
  163. <template #dropdown>
  164. <el-dropdown-menu>
  165. <el-dropdown-item command="done-oa">
  166. <div class="p-2 flex items-center gap-3 text-[#2da04d]!">
  167. <span>OA</span>
  168. <span>{{ oadone }}</span>
  169. </div>
  170. </el-dropdown-item>
  171. <el-dropdown-item command="done-crm">
  172. <div class="p-2 flex items-center gap-3 text-[#2da04d]!">
  173. <span>CRM</span>
  174. <span>{{ crmdone }}</span>
  175. </div></el-dropdown-item
  176. >
  177. <el-dropdown-item command="done-srm">
  178. <div class="p-2 flex items-center gap-3 text-[#2da04d]!">
  179. <span>SRM</span>
  180. <span>{{ srmdone }}</span>
  181. </div></el-dropdown-item
  182. >
  183. </el-dropdown-menu>
  184. </template>
  185. </el-dropdown>
  186. </div>
  187. </div>
  188. <article
  189. v-for="section in filteredSections"
  190. :key="section.code"
  191. class="platform-block rounded-sm md:flex"
  192. :style="{ minHeight: section.height }"
  193. >
  194. <div class="platform-block__header">
  195. <img
  196. v-if="section.code === '数'"
  197. src="../assets//images/icon.png"
  198. alt=""
  199. class="w-20 h-20"
  200. />
  201. <img
  202. v-if="section.code === '智'"
  203. src="../assets//images/icon2.png"
  204. alt=""
  205. class="w-18 h-18"
  206. />
  207. <img
  208. v-if="section.code === 'AI'"
  209. src="../assets//images/icon3.png"
  210. alt=""
  211. class="w-20 h-20"
  212. />
  213. <div class="platform-block__title-wrap">
  214. <p class="platform-block__title">{{ section.title }}</p>
  215. <span class="platform-block__subtitle">{{
  216. section.subtitle
  217. }}</span>
  218. </div>
  219. </div>
  220. <div
  221. v-if="section.apps?.length"
  222. class="grid grid-cols-[repeat(2,minmax(0,1fr))] gap-2 p-6 px-3 md:px-4 md:grid-cols-[repeat(3,minmax(0,1fr))] xl:grid-cols-[repeat(3,minmax(0,1fr))]"
  223. >
  224. <template
  225. v-for="(app, appIndex) in section.apps"
  226. :key="`${section.code}-${appIndex}-${app.label}`"
  227. >
  228. <button
  229. v-if="app.key === 'fm'"
  230. v-hasPermi="['portal:financial:view']"
  231. type="button"
  232. :class="[
  233. 'platform-app',
  234. boldLabes.includes(app.label)
  235. ? 'platform-app--active'
  236. : 'platform-app--ghost',
  237. ]"
  238. @click="handlePortalAppClick(app)"
  239. >
  240. <span class="platform-app__icon">
  241. <img
  242. v-if="app.image"
  243. :src="app.image"
  244. :alt="app.label"
  245. class="h-7 w-7 object-contain rounded-md"
  246. />
  247. <Icon
  248. v-else
  249. :icon="app.icon || 'mdi:dots-grid'"
  250. class="text-[24px]"
  251. />
  252. </span>
  253. <span
  254. class="platform-app__label md:text-sm text-[12px] text-left"
  255. >{{ app.label }}</span
  256. >
  257. </button>
  258. <button
  259. v-else
  260. type="button"
  261. :class="[
  262. 'platform-app',
  263. boldLabes.includes(app.label)
  264. ? 'platform-app--active'
  265. : 'platform-app--ghost',
  266. ]"
  267. @click="handlePortalAppClick(app)"
  268. >
  269. <span class="platform-app__icon">
  270. <img
  271. v-if="app.image"
  272. :src="app.image"
  273. :alt="app.label"
  274. class="h-7 w-7 object-contain rounded-md"
  275. />
  276. <Icon
  277. v-else
  278. :icon="app.icon || 'mdi:dots-grid'"
  279. class="text-[24px]"
  280. />
  281. </span>
  282. <span
  283. class="platform-app__label md:text-sm text-[12px] text-left"
  284. >{{ app.label }}</span
  285. >
  286. </button>
  287. </template>
  288. </div>
  289. </article>
  290. </div>
  291. <aside class="space-y-4">
  292. <section
  293. class="side-card side-card--notice side-card--documents rounded-md p-2"
  294. >
  295. <div class="side-card__header w-[95%] ml-[8px]">
  296. <div class="notice-tabs">
  297. <button
  298. v-for="tab in noticeTabs"
  299. :key="tab.key"
  300. type="button"
  301. :class="[
  302. 'notice-tab',
  303. activeNoticeTab === tab.key ? 'notice-tab--active' : '',
  304. ]"
  305. @click="handleNoticeTabChange(tab.key)"
  306. >
  307. {{ tab.label }}
  308. </button>
  309. </div>
  310. <button
  311. type="button"
  312. class="side-card__more side-card__more--documents"
  313. @click="handleNoticeMoreClick"
  314. >
  315. {{ $t("common.more") }}
  316. <span class="side-card__more-arrows">&gt;&gt;&gt;</span>
  317. </button>
  318. </div>
  319. <div class="space-y-2 p-2 pt-3">
  320. <div
  321. v-if="!userStore.getUser.username"
  322. class="flex h-full items-center justify-center"
  323. >
  324. <div class="text-[#8a9ab0] pt-5">
  325. {{ $t("common.loginRequired") }}
  326. </div>
  327. </div>
  328. <div
  329. v-if="!currentNoticeList.length && userStore.getUser.username"
  330. class="flex h-[120px] items-center justify-center text-[#8a9ab0]"
  331. >
  332. {{ $t("common.noMsg") }}
  333. </div>
  334. <article
  335. v-if="userStore.getUser.username"
  336. v-for="notice in currentNoticeList"
  337. :key="notice.id"
  338. class="notice-item cursor-pointer"
  339. @click="handleNoticeItemClick(notice)"
  340. >
  341. <div class="notice-item__desc">{{ notice.docsubject }}</div>
  342. <div class="date text-[12px] text-[#9cadc0]">
  343. {{ notice.docvaliddate }}
  344. </div>
  345. </article>
  346. </div>
  347. </section>
  348. <section
  349. class="side-card side-card--notice side-card--todo-panel rounded-md p-2"
  350. :style="{ minHeight: '190px' }"
  351. >
  352. <div class="side-card__header w-[91%] ml-[15px]">
  353. <div class="notice-badge px-2 pb-2">{{ todoPanelTitle }}</div>
  354. <button
  355. type="button"
  356. class="side-card__more side-card__more--todo-panel"
  357. @click="router.push('/todo-list')"
  358. >
  359. {{ $t("common.all") }}
  360. <span class="side-card__more-arrows">&gt;&gt;&gt;</span>
  361. </button>
  362. </div>
  363. <div class="space-y-2 pt-2">
  364. <div
  365. v-if="!userStore.getUser.username"
  366. class="flex h-full items-center justify-center"
  367. >
  368. <div class="text-[#8a9ab0] pt-10">
  369. {{ $t("common.loginRequired") }}
  370. </div>
  371. </div>
  372. <div
  373. v-if="!oaTasks.length && userStore.getUser.username"
  374. class="flex h-full items-center justify-center"
  375. >
  376. <div class="text-[#8a9ab0] pt-10">{{ $t("common.noMsg") }}</div>
  377. </div>
  378. <article
  379. v-if="userStore.getUser.username"
  380. v-for="task in oaTasks"
  381. :key="task.requestId"
  382. @click="handleTask(task)"
  383. class="todo-item rounded-md cursor-pointer"
  384. >
  385. <div class="flex min-w-0 items-start justify-between gap-3">
  386. <div class="min-w-0">
  387. <div class="truncate text-[14px] font-semibold">
  388. {{ task.requestName }}
  389. </div>
  390. <div class="mt-1 text-[12px] text-[#8a9ab0]">
  391. {{ $t("flow.createPerson") }}:{{ task.creatorName }} ·
  392. {{ task.createTime }}
  393. </div>
  394. </div>
  395. <span
  396. :class="['todo-item__tag', getTagClass(task.requesLevel)]"
  397. >{{ getTagName(task.requesLevel) }}</span
  398. >
  399. </div>
  400. </article>
  401. <div class="quick-todo-bar">
  402. <el-dropdown
  403. trigger="click"
  404. popper-class="quick-access-dropdown"
  405. @command="handleQuickAccessCommand"
  406. >
  407. <button type="button" class="quick-todo-btn">
  408. <div class="number">{{ todo }}</div>
  409. <div class="flex gap-2 items-center">
  410. <div class="!text-[10px] aside-btn">
  411. {{ $t("flow.todo") }}
  412. </div>
  413. <Icon
  414. icon="mdi:clipboard-text-outline"
  415. color="#7f2c33"
  416. class="icon"
  417. />
  418. </div>
  419. </button>
  420. <template #dropdown>
  421. <el-dropdown-menu>
  422. <el-dropdown-item command="todo-oa">
  423. <div
  424. class="p-2 flex items-center gap-3 text-[#f56c6c]!"
  425. >
  426. <span>OA</span>
  427. <span>{{ oatodo }}</span>
  428. </div>
  429. </el-dropdown-item>
  430. <el-dropdown-item command="todo-crm">
  431. <div
  432. class="p-2 flex items-center gap-3 text-[#f56c6c]!"
  433. >
  434. <span>CRM</span>
  435. <span>{{ crmtodo }}</span>
  436. </div>
  437. </el-dropdown-item>
  438. <el-dropdown-item command="todo-srm">
  439. <div
  440. class="p-2 flex items-center gap-3 text-[#e43c2f]!"
  441. >
  442. <span>SRM</span>
  443. <span>{{ srmtodo }}</span>
  444. </div>
  445. </el-dropdown-item>
  446. <el-dropdown-item command="todo-ehr">
  447. <div
  448. class="p-2 flex items-center gap-3 text-[#e26669]!"
  449. >
  450. <span>EHR</span>
  451. <span>{{ ehrtodo }}</span>
  452. </div>
  453. </el-dropdown-item>
  454. </el-dropdown-menu>
  455. </template>
  456. </el-dropdown>
  457. <el-dropdown
  458. trigger="click"
  459. popper-class="quick-access-dropdown"
  460. @command="handleQuickAccessCommand"
  461. >
  462. <button
  463. type="button"
  464. class="quick-todo-btn quick-todo-btn--center"
  465. >
  466. <div class="number text-[#2d8767]!">{{ done }}</div>
  467. <div class="flex gap-2 items-center pl-2">
  468. <div class="!text-[10px] aside-btn">
  469. {{ $t("flow.done") }}
  470. </div>
  471. <Icon
  472. icon="mdi:check-circle-outline"
  473. color="#2d8767"
  474. class="icon"
  475. />
  476. </div>
  477. </button>
  478. <template #dropdown>
  479. <el-dropdown-menu>
  480. <el-dropdown-item command="done-oa">
  481. <div
  482. class="p-2 flex items-center gap-3 text-[#2d8767]!"
  483. >
  484. <span>OA</span>
  485. <span>{{ oadone }}</span>
  486. </div>
  487. </el-dropdown-item>
  488. <el-dropdown-item command="done-crm">
  489. <div
  490. class="p-2 flex items-center gap-3 text-[#2d8767]!"
  491. >
  492. <span>CRM</span>
  493. <span>{{ crmdone }}</span>
  494. </div>
  495. </el-dropdown-item>
  496. <el-dropdown-item command="done-srm">
  497. <div
  498. class="p-2 flex items-center gap-3 text-[#2d8767]!"
  499. >
  500. <span>SRM</span>
  501. <span>{{ srmdone }}</span>
  502. </div>
  503. </el-dropdown-item>
  504. </el-dropdown-menu>
  505. </template>
  506. </el-dropdown>
  507. </div>
  508. </div>
  509. </section>
  510. <section
  511. class="side-card side-card--content p-2 rounded-md"
  512. :style="{ minHeight: '180px' }"
  513. >
  514. <div class="side-card__header w-[90%] ml-[15px]">
  515. <div class="news notice-badge pb-2">{{ newsPanelTitle }}</div>
  516. <button type="button" class="side-card__more" @click="goNews">
  517. {{ $t("common.more") }}
  518. <Icon icon="mingcute:right-line" class="text-[18px]" />
  519. </button>
  520. </div>
  521. <div class="space-y-2 p-4 pt-2">
  522. <div
  523. v-if="!userStore.getUser.username"
  524. class="flex h-full items-center justify-center"
  525. >
  526. <div class="text-[#8a9ab0] pt-10">
  527. {{ $t("common.loginRequired") }}
  528. </div>
  529. </div>
  530. <div
  531. v-if="!newsList.length && userStore.getUser.username"
  532. class="flex h-full items-center justify-center"
  533. >
  534. <div class="text-[#8a9ab0] pt-10">
  535. {{ $t("common.noNews") }}
  536. </div>
  537. </div>
  538. <article
  539. v-for="news in newsList"
  540. :key="news.id"
  541. class="news-mini cursor-pointer rounded-md"
  542. @click="handleNoticeItemClick(news)"
  543. >
  544. <div class="min-w-0 flex-1">
  545. <div
  546. class="line-clamp-1 text-[13px] font-semibold leading-[1.45]"
  547. >
  548. {{ news.docsubject }}
  549. </div>
  550. <div class="mt-2 text-[12px] text-[#9cadc0]">
  551. {{ news.docvaliddate }}
  552. </div>
  553. </div>
  554. </article>
  555. </div>
  556. </section>
  557. <section
  558. v-if="userStore.getUser.username"
  559. class="side-card side-card--placeholder rounded-md"
  560. :style="{ minHeight: '78px', backgroundColor: '#3575e4' }"
  561. >
  562. <div class="placeholder-panel flex flex-col text-left">
  563. <!-- <div class="text-sm">需要帮助?</div> -->
  564. <div class="text-[10px]">{{ t("home.consultTip") }}</div>
  565. <div
  566. class="bg-[#79ebfa] text-sm text-center text-[#004098] py-1 px-2 rounded-full mt-2 w-[30%] cursor-pointer"
  567. @click="openConsult"
  568. >
  569. {{ t("home.consult") }}
  570. </div>
  571. </div>
  572. </section>
  573. </aside>
  574. </section>
  575. </main>
  576. <el-dialog v-model="dialogVisible" title="提示" width="500">
  577. <template #header="{ close, titleId, titleClass }">
  578. <div class="my-header">
  579. <h4 :id="titleId" class="flex gap-2 items-center">
  580. <Icon
  581. :icon="'si:warning-line'"
  582. color="#ef6c1a"
  583. size="16"
  584. class="text-[20px]"
  585. /><span class="text-black">提示</span>
  586. </h4>
  587. </div>
  588. </template>
  589. <span class="text-black">账号未授权</span>
  590. <template #footer>
  591. <div class="dialog-footer">
  592. <el-button @click="dialogVisible = false">确定</el-button>
  593. <!-- <el-button type="primary" color="#063e8d" @click="confirmSrm">
  594. 继续访问
  595. </el-button> -->
  596. </div>
  597. </template>
  598. </el-dialog>
  599. <Footer />
  600. </div>
  601. </template>
  602. <script setup lang="ts">
  603. import { computed, onMounted, onUnmounted, watch, ref } from "vue";
  604. import * as authUtil from "@/utils/auth";
  605. import * as dd from "dingtalk-jsapi";
  606. import Header from "@components/home/header.vue";
  607. import Footer from "@components/home/Footer.vue";
  608. import { useRouter } from "vue-router";
  609. import axios from "axios";
  610. import { Icon } from "@iconify/vue";
  611. import { useI18n } from "@/i18n";
  612. const { t } = useI18n();
  613. import {
  614. getMCSsoToken,
  615. ssoLogin,
  616. zentaoSsoLogin,
  617. getOATasks,
  618. getCRMTasks,
  619. getSRMTasks,
  620. getEHRTasks,
  621. getNotices,
  622. getRedHeadFiles,
  623. getNews,
  624. srmLogin,
  625. ehrLogin,
  626. } from "@/api/user";
  627. import { useUserStore } from "@/stores/useUserStore";
  628. import { useThemeStore } from "@/stores/useThemeStore";
  629. import { getAccessToken } from "@/utils/auth";
  630. import { deleteUserCache } from "@hooks/useCache";
  631. import { manualLogoutKey, reloginCancelKey } from "@/config/axios/service";
  632. import banner1 from "@/assets/images/banner1.png";
  633. import banner2 from "@/assets/images/banner2.png";
  634. import oaimage from "@/assets/images/oa.png";
  635. import crmimage from "@/assets/images/crm.png";
  636. import ehrimage from "@/assets/images/ehr.png";
  637. import scmimage from "@/assets/images/scm.png";
  638. import erpimage from "@/assets/images/fm.png";
  639. import driveimage from "@/assets/images/drive.png";
  640. import pmsimage from "@/assets/images/pms.jpeg";
  641. import zhonghangimage from "@/assets/images/中航.png";
  642. import lianyouimage from "@/assets/images/lianyou.png";
  643. import qhseimage from "@/assets/images/qhse.png";
  644. import zuanjingimage from "@/assets/images/zuanjing.jpeg";
  645. import yalieimage from "@/assets/images/yalie.png";
  646. import zhuqiimage from "@/assets/images/zhuqi.png";
  647. import pmimage from "@/assets/images/pm.png";
  648. import okrimage from "@/assets/images/okr.png";
  649. import dataimage from "@/assets/images/data2.png";
  650. import thinkimage from "@/assets/images/think.png";
  651. import aiimage from "@/assets/images/ai.png";
  652. import agentimage from "@/assets/images/icon2.png";
  653. import videoimage from "@/assets/images/video.png";
  654. import fileagent from "@/assets/images/fileagent.png";
  655. import zhiduagent from "@/assets/images/zhiduagent.png";
  656. import jishuimage2 from "@/assets/images/jishuimage.png";
  657. import zhanlueimage from "@/assets/images/zhanlue.png"; // 战略解码
  658. import safeimage from "@/assets/images/safe.png"; // 安全合规管理
  659. import zuzhiimage from "@/assets/images/zuzhi.png";
  660. import youimage from "@/assets/images/youcnag.png"; // ai智能体
  661. import hongpan from "@/assets/images/pan.png"; // ai智能体
  662. import ask from "@/assets/images/ask.png";
  663. import degitial from "@/assets/images/degitial.png";
  664. import wms from "@/assets/images/wms.png";
  665. import banner2_white from "@/assets/images/banner2_white.png";
  666. import banner1_white from "@/assets/images/banner1_white.png";
  667. import banner3_white from "@/assets/images/banner3_white.png";
  668. import huabanBg from "@/assets/images/huaban.jpg";
  669. type PortalApp = {
  670. key: string;
  671. label: string;
  672. icon?: string;
  673. image?: string;
  674. active?: boolean;
  675. };
  676. type PortalSection = {
  677. code: string;
  678. title: string;
  679. subtitle: string;
  680. height: string;
  681. apps?: PortalApp[];
  682. };
  683. type NoticeItem = {
  684. id?: string | number;
  685. title?: string;
  686. desc?: string;
  687. docsubject?: string;
  688. };
  689. const router = useRouter();
  690. const userStore = useUserStore();
  691. const themeStore = useThemeStore();
  692. const isDingTalkClient = () => {
  693. const ua = window.navigator.userAgent.toLowerCase();
  694. return ua.includes("dingtalk") || ua.includes("dingtalkwork");
  695. };
  696. const showDingTalkLoginMask = ref(
  697. isDingTalkClient() && !userStore.getUser.username && !getAccessToken(),
  698. );
  699. const todoPanelTitle = computed(() => t("home.todoCenter"));
  700. const newsPanelTitle = computed(() => t("home.news"));
  701. type NoticeTabKey = "redHead" | "notice";
  702. const noticeTabs = computed<{ key: NoticeTabKey; label: string }[]>(() => [
  703. { key: "redHead", label: t("home.red") },
  704. { key: "notice", label: t("home.notice") },
  705. ]);
  706. const portalSections = computed<PortalSection[]>(() => [
  707. {
  708. code: "数",
  709. title: t("DigitalOperationPlatform.title"),
  710. subtitle: t("DigitalOperationPlatform.subTitle"),
  711. height: "220px",
  712. apps: [
  713. {
  714. key: "oa",
  715. label: t("DigitalOperationPlatform.oa"),
  716. image: oaimage,
  717. active: true,
  718. },
  719. { key: "crm", label: t("DigitalOperationPlatform.crm"), image: crmimage },
  720. { key: "ehr", label: t("DigitalOperationPlatform.ehr"), image: ehrimage },
  721. { key: "srm", label: t("DigitalOperationPlatform.srm"), image: scmimage },
  722. { key: "mc", label: t("DigitalOperationPlatform.mc"), image: driveimage },
  723. { key: "pm", label: t("DigitalOperationPlatform.pm"), image: pmimage },
  724. {
  725. key: "zhanlue",
  726. label: t("DigitalOperationPlatform.zhanlue"),
  727. image: zhanlueimage,
  728. },
  729. { key: "fm", label: t("DigitalOperationPlatform.fm"), image: erpimage },
  730. {
  731. key: "rd",
  732. label: t("DigitalOperationPlatform.rd"),
  733. image: jishuimage2,
  734. },
  735. {
  736. key: "zuzhi",
  737. label: t("DigitalOperationPlatform.zuzhi"),
  738. image: zuzhiimage,
  739. },
  740. {
  741. key: "fengxian",
  742. label: t("DigitalOperationPlatform.fengxian"),
  743. image: safeimage,
  744. },
  745. {
  746. key: "kaifa",
  747. label: t("DigitalOperationPlatform.kaifa"),
  748. image: jishuimage2,
  749. },
  750. {
  751. key: "hongpan",
  752. label: t("DigitalOperationPlatform.hongpan"),
  753. image: hongpan,
  754. },
  755. ],
  756. },
  757. {
  758. code: "智",
  759. title: t("command.title"),
  760. subtitle: t("command.subTitle"),
  761. height: "210px",
  762. apps: [
  763. { key: "pms", label: t("command.pms"), image: pmsimage, active: true },
  764. { key: "qhse", label: t("command.qhse"), image: qhseimage },
  765. {
  766. key: "zhonghang",
  767. label: t("command.zhonghang"),
  768. image: zhonghangimage,
  769. },
  770. { key: "lianyou", label: t("command.lianyou"), image: lianyouimage },
  771. { key: "zhuqi", label: t("command.zhuqi"), image: zhuqiimage },
  772. { key: "video", label: t("command.video"), image: videoimage },
  773. { key: "zuanjing", label: t("command.zuanjing"), image: zuanjingimage },
  774. { key: "wms", label: t("command.wms"), image: wms },
  775. { key: "yalie", label: t("command.yalie"), image: yalieimage },
  776. { key: "youcang", label: t("command.youcang"), image: youimage },
  777. ],
  778. },
  779. {
  780. code: "AI",
  781. title: t("ai.title"),
  782. subtitle: t("ai.subTitle"),
  783. height: "160px",
  784. apps: [
  785. {
  786. key: "dataCenter",
  787. label: t("ai.dataCenter"),
  788. image: dataimage,
  789. active: true,
  790. },
  791. { key: "juece", label: t("ai.juece"), image: thinkimage },
  792. { key: "aimodel", label: t("ai.aimodel"), image: aiimage },
  793. { key: "agent", label: t("ai.agent"), image: agentimage },
  794. { key: "file", label: t("ai.file"), image: fileagent },
  795. { key: "rule", label: t("ai.rule"), image: zhiduagent },
  796. { key: "ask", label: t("ai.ask"), image: ask },
  797. { key: "person", label: t("ai.person"), image: degitial },
  798. ],
  799. },
  800. ]);
  801. const boldLabes = computed(() => [
  802. t("DigitalOperationPlatform.oa"),
  803. t("DigitalOperationPlatform.crm"),
  804. t("command.pms"),
  805. t("command.zhonghang"),
  806. t("command.lianyou"),
  807. t("command.qhse"),
  808. t("command.zhuqi"),
  809. t("command.video"),
  810. t("DigitalOperationPlatform.kaifa"),
  811. t("DigitalOperationPlatform.mc"),
  812. t("DigitalOperationPlatform.pm"),
  813. t("DigitalOperationPlatform.hongpan"),
  814. t("command.zuanjing"),
  815. t("DigitalOperationPlatform.srm"),
  816. t("DigitalOperationPlatform.ehr"),
  817. t("DigitalOperationPlatform.zhanlue"),
  818. t("DigitalOperationPlatform.fm"),
  819. ]);
  820. const searchKeyword = ref("");
  821. // 2. 实现搜索处理函数
  822. const handleSearch = () => {
  823. if (!searchKeyword.value.trim()) return;
  824. console.log("执行搜索:", searchKeyword.value);
  825. // 如果需要跳转到独立搜索页,可以在这里添加 router.push
  826. };
  827. const handleQuickAccessCommand = (command: string) => {
  828. const ua = window.navigator.userAgent; // const ua = navigator.userAgent;
  829. const isDesktop =
  830. ua.includes("DingTalk") &&
  831. (ua.includes("Windows") || ua.includes("Macintosh"));
  832. let ua2 = navigator.userAgent.toLowerCase();
  833. let isMobile = ua2.indexOf("dingtalk") > -1;
  834. const routeMap: Record<string, string> = {
  835. "todo-oa": "/todo-list?type=oa",
  836. "done-oa": "/oa-done-list?type=oa",
  837. "todo-crm": "/crm-todo-list?type=crm",
  838. "done-crm": "/crm-done-list?type=crm",
  839. "todo-srm": "/srm-todo-list?type=srm",
  840. "done-srm": "/srm-done-list?type=srm",
  841. "todo-ehr": "/ehr-todo-list?type=ehr",
  842. };
  843. const routeMap2: Record<string, string> = {
  844. "todo-oa": "/mobile-todo-list?type=oa",
  845. "done-oa": "/oa-done-list?type=oa",
  846. "todo-crm": "/mobile-crm-todo-list?type=crm",
  847. "done-crm": "/crm-done-list?type=crm",
  848. "todo-srm": "/mobile-srm-todo-list?type=srm",
  849. "done-srm": "/srm-done-list?type=srm",
  850. "todo-ehr": "/ehr-todo-list?type=ehr",
  851. };
  852. let target = null;
  853. if (ua2.includes("dingtalk") || ua2.includes("dingtalkwork")) {
  854. if (isMobile && !isDesktop) {
  855. if (command === "todo-oa" || command === "done-oa") {
  856. dd.biz.util.openLink({
  857. url: `https://yfding.keruioil.com:9443/wxapi/wxclientmenu/61c40c87c45346ce9695f223ea823278`,
  858. onSuccess: () => {},
  859. });
  860. return;
  861. } else {
  862. target = routeMap2[command];
  863. }
  864. } else if (isDesktop) {
  865. target = routeMap[command];
  866. }
  867. } else {
  868. // 浏览器环境
  869. target = routeMap[command];
  870. }
  871. console.log(
  872. "🚀 ~ file: index.vue ~ line 91 ~ handleQuickAccessCommand ~ target",
  873. target,
  874. );
  875. // 跳转
  876. if (target) {
  877. router.push(target);
  878. }
  879. };
  880. const filteredSections = computed(() => {
  881. const keyword = searchKeyword.value.trim().toLowerCase();
  882. // 如果没有关键词,返回原始数据
  883. if (!keyword) {
  884. return portalSections.value;
  885. }
  886. // 过滤逻辑:遍历每个板块,保留匹配的应用
  887. return portalSections.value
  888. .map((section) => {
  889. if (!section.apps) return { ...section, apps: [] };
  890. const matchedApps = section.apps.filter((app) =>
  891. app.label.toLowerCase().includes(keyword),
  892. );
  893. return {
  894. ...section,
  895. apps: matchedApps,
  896. };
  897. })
  898. .filter((section) => section.apps && section.apps.length > 0); // 移除没有匹配应用的空板块
  899. });
  900. const slides = computed(() => {
  901. if (themeStore.theme === "light") {
  902. return [
  903. {
  904. image: banner2_white,
  905. text: t("banner.banner1"),
  906. },
  907. {
  908. image: banner3_white,
  909. text: t("banner.banner2"),
  910. },
  911. {
  912. image: banner1_white,
  913. text: t("banner.banner3"),
  914. },
  915. ];
  916. }
  917. return [
  918. {
  919. image: banner2,
  920. text: t("banner.banner1"),
  921. },
  922. {
  923. image: banner1,
  924. text: t("banner.banner2"),
  925. },
  926. {
  927. image: banner1,
  928. text: t("banner.banner3"),
  929. },
  930. ];
  931. });
  932. const homeBackgroundStyle = computed(() =>
  933. themeStore.theme === "light"
  934. ? { backgroundImage: `url(${huabanBg})` }
  935. : undefined,
  936. );
  937. // 当前索引
  938. const currentIndex = ref(0);
  939. let slideTimer: ReturnType<typeof setInterval> | null = null;
  940. // 下一页
  941. const nextSlide = () => {
  942. currentIndex.value = (currentIndex.value + 1) % slides.value.length;
  943. };
  944. const activeNoticeTab = ref<NoticeTabKey>("redHead");
  945. const noticeListMap = ref<Record<NoticeTabKey, NoticeItem[]>>({
  946. notice: [],
  947. redHead: [],
  948. });
  949. const newsList = ref([]);
  950. const currentNoticeList = computed(
  951. () => noticeListMap.value[activeNoticeTab.value] ?? [],
  952. );
  953. let todo = ref(0);
  954. let done = ref(0);
  955. let oatodo = ref(0);
  956. let oadone = ref(0);
  957. let crmtodo = ref(0);
  958. let crmdone = ref(0);
  959. let srmtodo = ref(0);
  960. let srmdone = ref(0);
  961. let ehrtodo = ref(0);
  962. const loadHomeData = async () => {
  963. try {
  964. await loadNoticeList(activeNoticeTab.value);
  965. } catch (error) {
  966. console.error("loadNoticeList failed:", error);
  967. }
  968. if (!userStore.getUser.username) return;
  969. const withFallback = async <T,>(
  970. request: Promise<T>,
  971. fallback: T,
  972. requestName: string,
  973. ): Promise<T> => {
  974. try {
  975. return await request;
  976. } catch (error) {
  977. console.error(`${requestName} failed:`, error);
  978. return fallback;
  979. }
  980. };
  981. const [oaRes, crmRes, crmDoneRes, srmRes, ehrRes, newsRes] =
  982. await Promise.all([
  983. withFallback(
  984. getOATasks({
  985. id: userStore.getUser.username,
  986. pageNum: 1,
  987. pageSize: 10,
  988. }),
  989. { todoList: [], todoCount: 0, doneCount: 0 },
  990. "getOATasks",
  991. ),
  992. withFallback(
  993. getCRMTasks({
  994. id: userStore.getUser.username,
  995. type: "pending",
  996. pageNum: 1,
  997. pageSize: 10,
  998. }),
  999. { todoCount: 0 },
  1000. "getCRMTasks(pending)",
  1001. ),
  1002. withFallback(
  1003. getCRMTasks({
  1004. id: userStore.getUser.username,
  1005. type: "approved",
  1006. pageNum: 1,
  1007. pageSize: 10,
  1008. }),
  1009. { todoCount: 0 },
  1010. "getCRMTasks(approved)",
  1011. ),
  1012. withFallback(
  1013. getSRMTasks({
  1014. id: userStore.getUser.username,
  1015. pageNum: 1,
  1016. pageSize: 10,
  1017. }),
  1018. { todoCount: 0, doneCount: 0 },
  1019. "getSRMTasks",
  1020. ),
  1021. withFallback(
  1022. getEHRTasks({
  1023. id: userStore.getUser.username,
  1024. pageNum: 1,
  1025. pageSize: 10,
  1026. }),
  1027. { todoCount: 0 },
  1028. "getEHRTasks",
  1029. ),
  1030. withFallback(
  1031. getNews({
  1032. pageNum: 1,
  1033. pageSize: 10,
  1034. }),
  1035. { list: [] },
  1036. "getNews",
  1037. ),
  1038. ]);
  1039. oaTasks.value = oaRes.todoList.slice(0, 3);
  1040. todo.value =
  1041. Number(oaRes.todoCount) +
  1042. crmRes.todoCount +
  1043. srmRes.todoCount +
  1044. ehrRes.todoCount;
  1045. done.value =
  1046. Number(oaRes.doneCount) + crmDoneRes.todoCount + srmRes.doneCount;
  1047. oatodo.value = oaRes.todoCount;
  1048. oadone.value = oaRes.doneCount;
  1049. crmtodo.value = crmRes.todoCount;
  1050. crmdone.value = crmDoneRes.todoCount;
  1051. srmtodo.value = srmRes.todoCount;
  1052. srmdone.value = srmRes.doneCount;
  1053. ehrtodo.value = ehrRes.todoCount;
  1054. newsList.value = newsRes.list.slice(0, 3);
  1055. };
  1056. const loadNoticeList = async (tabKey: NoticeTabKey) => {
  1057. const requestApi = tabKey === "notice" ? getNotices : getRedHeadFiles;
  1058. const res = await requestApi({
  1059. pageNum: 1,
  1060. pageSize: 10,
  1061. });
  1062. noticeListMap.value[tabKey] = (res?.list || []).slice(0, 3);
  1063. };
  1064. let currentTabKey = ref<NoticeTabKey>("redHead");
  1065. const handleNoticeTabChange = async (tabKey: NoticeTabKey) => {
  1066. activeNoticeTab.value = tabKey;
  1067. currentTabKey.value = tabKey;
  1068. // if (noticeListMap.value[tabKey].length) return;
  1069. if (userStore.getUser.username) {
  1070. await loadNoticeList(tabKey);
  1071. }
  1072. };
  1073. const handleNoticeMoreClick = () => {
  1074. router.push({
  1075. path: "/notice-redhead",
  1076. query: {
  1077. tabKey: currentTabKey.value,
  1078. },
  1079. });
  1080. };
  1081. const protectedOpen = (url: string) => {
  1082. if (userStore.getUser.username && getAccessToken()) {
  1083. window.open(url, "_blank");
  1084. } else {
  1085. router.push({ path: "/login" });
  1086. }
  1087. };
  1088. let dialogVisible = ref(false);
  1089. let ua2 = navigator.userAgent.toLowerCase();
  1090. let isDing = ua2.includes("dingtalk") || ua2.includes("dingtalkwork");
  1091. const handlePortalAppClick = async (app: PortalApp) => {
  1092. if (!app.key) return;
  1093. if (app.key === "pm") {
  1094. protectedOpen(
  1095. `${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=yyhy`,
  1096. );
  1097. }
  1098. if (app.key === "oa") {
  1099. if (userStore.getUser.username && getAccessToken()) {
  1100. const ua = window.navigator.userAgent; // const ua = navigator.userAgent;
  1101. const isDesktop =
  1102. ua.includes("DingTalk") &&
  1103. (ua.includes("Windows") || ua.includes("Macintosh"));
  1104. let ua2 = navigator.userAgent.toLowerCase();
  1105. let isMobile = ua2.indexOf("dingtalk") > -1;
  1106. if (ua2.includes("dingtalk") || ua2.includes("dingtalkwork")) {
  1107. if (isMobile && !isDesktop) {
  1108. dd.biz.util.openLink({
  1109. url: `https://yfding.keruioil.com:9443/wxapi/wxclientmenu/d5605d17b3cd4c1987e333ab0d945070`,
  1110. onSuccess: () => {},
  1111. });
  1112. } else if (isDesktop) {
  1113. const res = await ssoLogin({
  1114. workcode: userStore.getUser.username,
  1115. uri: `https://yfoa.keruioil.com/wui/index.html`,
  1116. });
  1117. dd.biz.util.openLink({
  1118. url: JSON.parse(res).ssoUrl, // 先跳你的 SSO 链接
  1119. onSuccess: () => {},
  1120. });
  1121. }
  1122. } else {
  1123. const res = await ssoLogin({
  1124. workcode: userStore.getUser.username,
  1125. uri: `https://yfoa.keruioil.com/wui/index.html`,
  1126. });
  1127. window.open(JSON.parse(res).ssoUrl, "_blank");
  1128. }
  1129. } else {
  1130. router.push({ path: "/login" });
  1131. }
  1132. }
  1133. if (app.key === "crm") {
  1134. if (userStore.getUser.username && getAccessToken()) {
  1135. const ua = window.navigator.userAgent; // const ua = navigator.userAgent;
  1136. const isDesktop =
  1137. ua.includes("DingTalk") &&
  1138. (ua.includes("Windows") || ua.includes("Macintosh"));
  1139. let ua2 = navigator.userAgent.toLowerCase();
  1140. var isMobile = ua2.indexOf("dingtalk") > -1;
  1141. if (ua2.includes("dingtalk") || ua2.includes("dingtalkwork")) {
  1142. if (isMobile && !isDesktop) {
  1143. const originPath =
  1144. "/bff/spa/crmh5/index.html#/home?platform=H5&deviceType=0";
  1145. // 连续三次encodeURIComponent
  1146. let e1 = encodeURIComponent(originPath);
  1147. let e2 = encodeURIComponent(e1);
  1148. let e3 = encodeURIComponent(e2);
  1149. dd.biz.util.openLink({
  1150. url: `https://crm-tencent.xiaoshouyi.com/global/sso/callback/00APEB9EEEA9B2E338B686B7ECFA8585808C.action?token=${getAccessToken()}&returnUri=${e3}`,
  1151. onSuccess: () => {},
  1152. });
  1153. } else if (isDesktop) {
  1154. window.open(
  1155. `https://crm-tencent.xiaoshouyi.com/global/sso/callback/00APEB9EEEA9B2E338B686B7ECFA8585808C.action?token=${getAccessToken()}`,
  1156. "_blank",
  1157. );
  1158. }
  1159. } else {
  1160. window.open(
  1161. `https://crm-tencent.xiaoshouyi.com/global/sso/callback/00APEB9EEEA9B2E338B686B7ECFA8585808C.action?token=${getAccessToken()}`,
  1162. "_blank",
  1163. );
  1164. }
  1165. } else {
  1166. router.push({ path: "/login" });
  1167. }
  1168. }
  1169. if (app.key === "pms") {
  1170. protectedOpen(
  1171. `${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}`,
  1172. );
  1173. }
  1174. if (app.key === "zhonghang") {
  1175. protectedOpen("https://zhbdgps.cn");
  1176. }
  1177. if (app.key === "lianyou") {
  1178. protectedOpen(
  1179. `${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=zhly`,
  1180. );
  1181. }
  1182. if (app.key === "zhuqi") {
  1183. protectedOpen(
  1184. `${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=zhzq`,
  1185. );
  1186. }
  1187. if (app.key === "video") {
  1188. protectedOpen(
  1189. `${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=spzx`,
  1190. );
  1191. }
  1192. if (app.key === "qhse") {
  1193. protectedOpen(
  1194. `${import.meta.env.VITE_PMS_URL}/portalLogin?username=${userStore.getUser.username}&source=qhse_nav`,
  1195. );
  1196. }
  1197. if (app.key === "mc") {
  1198. if (userStore.getUser.username && getAccessToken()) {
  1199. const res = await getMCSsoToken();
  1200. if (res) {
  1201. window.open(
  1202. `https://report.deepoil.cc/webroot/decision/v10/entry/access/9fb42908-894a-4373-a6be-ce046a42851d?preview=true&page_number=1&ssoToken=${res}`,
  1203. "_blank",
  1204. );
  1205. }
  1206. } else {
  1207. router.push({ path: "/login" });
  1208. }
  1209. }
  1210. if (app.key === "kaifa") {
  1211. if (userStore.getUser.username && getAccessToken()) {
  1212. const res = await zentaoSsoLogin({
  1213. username: userStore.getUser.username,
  1214. });
  1215. if (res) {
  1216. window.open(
  1217. `http://project.deepoil.cc/zentao/api.php?m=user&f=apilogin&account=${res.jobNumber}&code=${res.code}&time=${res.timestamp}&token=${res.token}`,
  1218. "_blank",
  1219. );
  1220. }
  1221. } else {
  1222. router.push({ path: "/login" });
  1223. }
  1224. }
  1225. if (app.key === "ehr") {
  1226. if (userStore.getUser.username && getAccessToken()) {
  1227. const res = await ehrLogin({
  1228. username: userStore.getUser.username,
  1229. });
  1230. const ua = window.navigator.userAgent;
  1231. const isDesktop =
  1232. ua.includes("DingTalk") &&
  1233. (ua.includes("Windows") || ua.includes("Macintosh"));
  1234. let ua2 = navigator.userAgent.toLowerCase();
  1235. var isMobile = ua2.indexOf("dingtalk") > -1;
  1236. if (ua2.includes("dingtalk") || ua2.includes("dingtalkwork")) {
  1237. if (isMobile && !isDesktop) {
  1238. dd.biz.util.openLink({
  1239. url: `${res.ehrUrl}/gateway/login/free?loginfree_licence=${res.licence}&signature=${res.sign}&redirect_url=/proxy/h5/home`,
  1240. onSuccess: () => {},
  1241. });
  1242. } else if (isDesktop) {
  1243. window.open(
  1244. `${res.ehrUrl}/gateway/login/free?loginfree_licence=${res.licence}&signature=${res.sign}&redirect_url=${res.redirect}`,
  1245. "_blank",
  1246. );
  1247. }
  1248. } else {
  1249. // 浏览器环境
  1250. window.open(
  1251. `${res.ehrUrl}/gateway/login/free?loginfree_licence=${res.licence}&signature=${res.sign}&redirect_url=${res.redirect}`,
  1252. "_blank",
  1253. );
  1254. }
  1255. } else {
  1256. router.push({ path: "/login" });
  1257. }
  1258. }
  1259. if (app.key === "srm") {
  1260. if (userStore.getUser.username && getAccessToken()) {
  1261. const ua = window.navigator.userAgent;
  1262. const isDesktop =
  1263. ua.includes("DingTalk") &&
  1264. (ua.includes("Windows") || ua.includes("Macintosh"));
  1265. let ua2 = navigator.userAgent.toLowerCase();
  1266. let isMobile = ua2.indexOf("dingtalk") > -1;
  1267. const res = await srmLogin({
  1268. username: userStore.getUser.username,
  1269. });
  1270. if (JSON.parse(res).msg === "账号未授权") {
  1271. dialogVisible.value = true;
  1272. return;
  1273. }
  1274. if (ua2.includes("dingtalk") || ua2.includes("dingtalkwork")) {
  1275. if (isMobile && !isDesktop) {
  1276. // alert("SRM判断是钉钉手机端登录");
  1277. dd.biz.util.openLink({
  1278. url: `https://srm-m.deepoil.cc:7777/#/mixed-page/view/MXP00048?Authorization=${JSON.parse(res).msg}`,
  1279. onSuccess: () => {},
  1280. });
  1281. } else if (isDesktop) {
  1282. window.open(
  1283. `https://srm.deepoil.cc/#/mixed-page/view/MXP00048?Authorization=${JSON.parse(res).msg}`,
  1284. "_blank",
  1285. );
  1286. }
  1287. } else {
  1288. // 浏览器环境
  1289. window.open(
  1290. `https://srm.deepoil.cc/#/mixed-page/view/MXP00048?Authorization=${JSON.parse(res).msg}`,
  1291. "_blank",
  1292. );
  1293. }
  1294. } else {
  1295. router.push({ path: "/login" });
  1296. }
  1297. }
  1298. if (app.key === "zuanjing") {
  1299. if (userStore.getUser.username && getAccessToken()) {
  1300. window.open(`http://172.21.0.224:8001/#/login`, "_blank");
  1301. } else {
  1302. router.push({ path: "/login" });
  1303. }
  1304. }
  1305. if (app.key === "hongpan") {
  1306. if (userStore.getUser.username && getAccessToken()) {
  1307. window.open(`https://pan.keruioil.com:52180`, "_blank");
  1308. } else {
  1309. router.push({ path: "/login" });
  1310. }
  1311. }
  1312. if (app.key === "zhanlue") {
  1313. if (userStore.getUser.username && getAccessToken()) {
  1314. if (isDing) {
  1315. dd.biz.util.openLink({
  1316. url: `https://dingokr.eapps.dingtalkcloud.com/web/index.html?corpId=dingbe7f9a7e8cffa2bd35c2f4657eb6378f`,
  1317. onSuccess: () => {},
  1318. });
  1319. } else {
  1320. window.open(
  1321. `https://dingokr.eapps.dingtalkcloud.com/web/index.html?corpId=dingbe7f9a7e8cffa2bd35c2f4657eb6378f`,
  1322. "_blank",
  1323. );
  1324. }
  1325. } else {
  1326. router.push({ path: "/login" });
  1327. }
  1328. }
  1329. if (app.key === "fm") {
  1330. const ua = window.navigator.userAgent;
  1331. const isDesktop =
  1332. ua.includes("DingTalk") &&
  1333. (ua.includes("Windows") || ua.includes("Macintosh"));
  1334. let ua2 = navigator.userAgent.toLowerCase();
  1335. let isMobile = ua2.indexOf("dingtalk") > -1;
  1336. const res = await getMCSsoToken();
  1337. if (ua2.includes("dingtalk") || ua2.includes("dingtalkwork")) {
  1338. if (isMobile && !isDesktop) {
  1339. dd.biz.util.openLink({
  1340. url: `${"https://report.deepoil.cc/webroot/decision/v10/entry/access/e836fb5b-092c-4d64-a324-3beeb4fac0cc?preview=true&page_number=1"}&ssoToken=${res}`,
  1341. onSuccess: () => {},
  1342. });
  1343. } else if (isDesktop) {
  1344. window.open(
  1345. `${"https://report.deepoil.cc/webroot/decision/v10/entry/access/e836fb5b-092c-4d64-a324-3beeb4fac0cc?preview=true&page_number=1"}&ssoToken=${res}`,
  1346. "_blank",
  1347. );
  1348. }
  1349. } else {
  1350. // 浏览器环境
  1351. window.open(
  1352. `${"https://report.deepoil.cc/webroot/decision/v10/entry/access/e836fb5b-092c-4d64-a324-3beeb4fac0cc?preview=true&page_number=1"}&ssoToken=${res}`,
  1353. "_blank",
  1354. );
  1355. }
  1356. }
  1357. };
  1358. async function loginWithDingTalk() {
  1359. const ddCorpId = import.meta.env.VITE_DD_CORPID;
  1360. const ddClientId = import.meta.env.VITE_DD_CLIENTID;
  1361. if (!ddCorpId || !ddClientId) return false;
  1362. return await new Promise<boolean>((resolve) => {
  1363. dd.requestAuthCode({
  1364. corpId: ddCorpId,
  1365. clientId: ddClientId,
  1366. success: async (res: any) => {
  1367. try {
  1368. const { code } = res;
  1369. const response = await axios.post(
  1370. import.meta.env.BASE_URL + "/admin-api/system/auth/h5SocialLogin",
  1371. {
  1372. code,
  1373. type: 20,
  1374. state: new Date().getTime(),
  1375. },
  1376. {
  1377. headers: {
  1378. "Content-Type": "application/json",
  1379. "tenant-id": 1,
  1380. },
  1381. },
  1382. );
  1383. deleteUserCache();
  1384. userStore.resetState();
  1385. authUtil.setToken(response.data.data);
  1386. sessionStorage.removeItem(manualLogoutKey);
  1387. sessionStorage.removeItem(reloginCancelKey);
  1388. await userStore.setUserInfoAction();
  1389. resolve(true);
  1390. } catch (error) {
  1391. console.log("dingTalk login error :>> ", error);
  1392. resolve(false);
  1393. }
  1394. },
  1395. fail: (err: any) => {
  1396. console.log("err :>> ", err);
  1397. resolve(false);
  1398. },
  1399. });
  1400. });
  1401. }
  1402. async function dingTalkAutoLogin() {
  1403. const ua = window.navigator.userAgent.toLowerCase();
  1404. if (
  1405. (ua.includes("dingtalk") || ua.includes("dingtalkwork")) &&
  1406. !userStore.getUser.username &&
  1407. !getAccessToken()
  1408. ) {
  1409. return await loginWithDingTalk();
  1410. }
  1411. return false;
  1412. }
  1413. const getTagClass = (tag: string) => {
  1414. return tag === "0"
  1415. ? "bg-[#2e1e6d] text-white/90"
  1416. : tag === "1"
  1417. ? "bg-[#2e1e6d] text-white/90"
  1418. : tag === "2"
  1419. ? "bg-[#2e1e6d] text-white/90"
  1420. : "bg-[#2e1e6d] text-white/90";
  1421. };
  1422. const getTagName = (tag: string) => {
  1423. return tag === "0"
  1424. ? t("common.normal")
  1425. : tag === "1"
  1426. ? "重要"
  1427. : tag === "2"
  1428. ? "紧急"
  1429. : t("common.normal");
  1430. };
  1431. let oaTasks = ref([]);
  1432. onMounted(async () => {
  1433. slideTimer = setInterval(nextSlide, 5000);
  1434. if (showDingTalkLoginMask.value) {
  1435. try {
  1436. await dingTalkAutoLogin();
  1437. } finally {
  1438. showDingTalkLoginMask.value = false;
  1439. }
  1440. }
  1441. await loadHomeData();
  1442. });
  1443. const handleNoticeItemClick = async (notice: any) => {
  1444. const res = await ssoLogin({
  1445. workcode: userStore.getUser.username,
  1446. uri: `https://yfoa.keruioil.com/spa/document/index.jsp?openAttachment=0&id=${notice.id}`,
  1447. });
  1448. window.open(JSON.parse(res).ssoUrl, "_blank");
  1449. };
  1450. const handleTask = async (row: any) => {
  1451. const res = await ssoLogin({
  1452. workcode: userStore.getUser.username,
  1453. uri: `https://yfoa.keruioil.com/spa/workflow/static4form/index.html?_rdm=1776063595284#/main/workflow/req?requestid=${row.requestId}`,
  1454. });
  1455. if (JSON.parse(res).ssoUrl) {
  1456. const ua = window.navigator.userAgent.toLowerCase();
  1457. if (ua.includes("dingtalk") || ua.includes("dingtalkwork")) {
  1458. dd.biz.util.openLink({
  1459. url: JSON.parse(res).ssoUrl, // 先跳你的 SSO 链接
  1460. onSuccess: () => {},
  1461. });
  1462. } else {
  1463. window.open(JSON.parse(res).ssoUrl, "_blank");
  1464. }
  1465. }
  1466. };
  1467. const openConsult = async () => {
  1468. const res = await ssoLogin({
  1469. workcode: userStore.getUser.username,
  1470. uri: `https://yfoa.keruioil.com/spa/workflow/static4form/index.html?_rdm=1778289187850#/main/workflow/req?iscreate=1&workflowid=488`,
  1471. });
  1472. if (JSON.parse(res).ssoUrl) {
  1473. const ua = window.navigator.userAgent.toLowerCase();
  1474. if (ua.includes("dingtalk") || ua.includes("dingtalkwork")) {
  1475. dd.biz.util.openLink({
  1476. url: JSON.parse(res).ssoUrl, // 先跳你的 SSO 链接
  1477. onSuccess: () => {},
  1478. });
  1479. } else {
  1480. window.open(JSON.parse(res).ssoUrl, "_blank");
  1481. }
  1482. }
  1483. };
  1484. const goNews = () => {
  1485. router.push("/news");
  1486. };
  1487. onUnmounted(() => {
  1488. if (slideTimer) {
  1489. clearInterval(slideTimer);
  1490. slideTimer = null;
  1491. }
  1492. });
  1493. </script>
  1494. <style scoped>
  1495. .portal-home {
  1496. --portal-text: #17345f;
  1497. --portal-text-muted: #5f6f83;
  1498. --portal-text-soft: #7f8fa6;
  1499. --portal-text-secondary: #184dd3;
  1500. --portal-title: #163867;
  1501. --portal-subtitle: rgba(61, 92, 135, 0.86);
  1502. --portal-line: rgba(126, 156, 201, 0.24);
  1503. --portal-card: rgba(255, 255, 255, 0.82);
  1504. --portal-card-2: rgba(248, 251, 255, 0.94);
  1505. --portal-card-3: rgba(240, 246, 255, 0.88);
  1506. --portal-card-4: rgba(231, 239, 251, 0.92);
  1507. --portal-nav-bg: rgba(255, 255, 255, 0.72);
  1508. --portal-nav-hover: rgba(219, 232, 252, 0.8);
  1509. --portal-input-bg: rgba(255, 255, 255, 0.7);
  1510. --portal-input-hover: rgba(255, 255, 255, 0.92);
  1511. --portal-shadow: 0 18px 40px rgba(23, 52, 95, 0.12);
  1512. --portal-shadow-strong: 0 24px 60px rgba(23, 52, 95, 0.16);
  1513. --portal-accent: #245edb;
  1514. --portal-accent-2: #4e8cff;
  1515. --portal-accent-soft: rgba(36, 94, 219, 0.14);
  1516. --portal-todo-bg: rgba(242, 247, 255, 0.94);
  1517. --portal-todo-hover: rgba(228, 238, 252, 0.95);
  1518. --portal-number-todo: #e15a5a;
  1519. --portal-number-done: #2da04d;
  1520. color: var(--portal-text);
  1521. background-color: #eef3f9;
  1522. background-position: center top;
  1523. background-repeat: no-repeat;
  1524. background-size: cover;
  1525. }
  1526. .portal-login-mask {
  1527. position: fixed;
  1528. inset: 0;
  1529. z-index: 9999;
  1530. display: flex;
  1531. align-items: center;
  1532. justify-content: center;
  1533. background: rgba(9, 16, 32, 0.52);
  1534. backdrop-filter: blur(6px);
  1535. -webkit-backdrop-filter: blur(6px);
  1536. }
  1537. .portal-login-mask__content {
  1538. display: flex;
  1539. flex-direction: column;
  1540. align-items: center;
  1541. gap: 16px;
  1542. padding: 28px 36px;
  1543. /* border: 1px solid rgba(255, 255, 255, 0.12); */
  1544. border-radius: 18px;
  1545. }
  1546. .portal-login-mask__spinner {
  1547. width: 34px;
  1548. height: 34px;
  1549. border: 3px solid rgba(255, 255, 255, 0.2);
  1550. border-top-color: #ffffff;
  1551. border-radius: 999px;
  1552. animation: portal-login-spin 0.9s linear infinite;
  1553. }
  1554. .portal-login-mask__text {
  1555. margin: 0;
  1556. color: #ffffff;
  1557. font-size: 14px;
  1558. letter-spacing: 0.04em;
  1559. }
  1560. @keyframes portal-login-spin {
  1561. to {
  1562. transform: rotate(360deg);
  1563. }
  1564. }
  1565. :global([data-theme="dark"] .portal-home) {
  1566. --portal-text: #eaf1ff;
  1567. --portal-text-muted: rgba(234, 241, 255, 0.95);
  1568. --portal-text-soft: #8a9ab0;
  1569. --portal-text-secondary: #eaf1ff;
  1570. --portal-title: #f4f7ff;
  1571. --portal-subtitle: rgba(188, 205, 255, 0.82);
  1572. --portal-line: rgba(97, 129, 206, 0.28);
  1573. --portal-card: rgba(10, 19, 43, 0.8);
  1574. --portal-card-2: rgba(12, 24, 52, 0.92);
  1575. --portal-card-3: rgba(17, 25, 48, 0.8);
  1576. --portal-card-4: rgba(15, 24, 45, 0.82);
  1577. --portal-nav-bg: rgba(10, 19, 43, 0.8);
  1578. --portal-nav-hover: rgba(28, 40, 72, 0.8);
  1579. --portal-input-bg: rgba(255, 255, 255, 0.08);
  1580. --portal-input-hover: rgba(255, 255, 255, 0.12);
  1581. --portal-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  1582. --portal-shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.38);
  1583. --portal-accent: #6e7dff;
  1584. --portal-accent-2: #8d4dff;
  1585. --portal-accent-soft: rgba(110, 125, 255, 0.16);
  1586. --portal-todo-bg: #070e20;
  1587. --portal-todo-hover: rgba(28, 40, 72, 0.8);
  1588. --portal-number-todo: #f56c6c;
  1589. --portal-number-done: #ffffff;
  1590. color: var(--portal-text);
  1591. background:
  1592. radial-gradient(
  1593. circle at 18% 12%,
  1594. rgba(79, 82, 221, 0.34),
  1595. transparent 22%
  1596. ),
  1597. radial-gradient(circle at 82% 20%, rgba(28, 95, 255, 0.2), transparent 20%),
  1598. radial-gradient(
  1599. circle at 50% 100%,
  1600. rgba(103, 46, 255, 0.16),
  1601. transparent 28%
  1602. ),
  1603. linear-gradient(180deg, #040814 0%, #060d1d 46%, #040814 100%);
  1604. }
  1605. .hero-banner {
  1606. position: relative;
  1607. min-height: 310px;
  1608. border: 1px solid var(--portal-line);
  1609. border-radius: 10px;
  1610. background:
  1611. linear-gradient(135deg, var(--portal-accent-soft), transparent 32%),
  1612. linear-gradient(180deg, var(--portal-card), var(--portal-card-2));
  1613. box-shadow:
  1614. var(--portal-shadow-strong),
  1615. inset 0 1px 0 rgba(255, 255, 255, 0.06);
  1616. overflow: hidden;
  1617. }
  1618. .hero-banner::before {
  1619. content: "";
  1620. position: absolute;
  1621. inset: 0;
  1622. background:
  1623. linear-gradient(120deg, rgba(128, 77, 255, 0.14) 0%, transparent 26%),
  1624. radial-gradient(
  1625. circle at 20% 36%,
  1626. rgba(123, 84, 255, 0.22),
  1627. transparent 22%
  1628. ),
  1629. radial-gradient(
  1630. circle at 74% 52%,
  1631. rgba(54, 170, 255, 0.18),
  1632. transparent 24%
  1633. ),
  1634. linear-gradient(
  1635. 90deg,
  1636. rgba(255, 255, 255, 0.04),
  1637. transparent 40%,
  1638. rgba(255, 255, 255, 0.02)
  1639. );
  1640. pointer-events: none;
  1641. }
  1642. .hero-copy {
  1643. position: relative;
  1644. z-index: 2;
  1645. }
  1646. .hero-script {
  1647. display: none;
  1648. }
  1649. .hero-text {
  1650. margin-top: 0;
  1651. color: var(--portal-text-secondary);
  1652. font-size: 46px;
  1653. font-weight: 500;
  1654. line-height: 1.2;
  1655. letter-spacing: 0.02em;
  1656. max-width: 540px;
  1657. }
  1658. .hero-visual {
  1659. position: absolute;
  1660. inset: 0;
  1661. min-height: 310px;
  1662. }
  1663. .carousel-container {
  1664. position: relative;
  1665. height: 310px;
  1666. overflow: hidden;
  1667. }
  1668. .platform-block {
  1669. overflow: hidden;
  1670. border-radius: 8px;
  1671. background: linear-gradient(to right, #e4f1ff 0%, #e4f1ff 50%, #f6fbfe 100%);
  1672. }
  1673. :global([data-theme="dark"] .platform-block) {
  1674. background: linear-gradient(180deg, var(--portal-card), var(--portal-card-2));
  1675. }
  1676. .platform-block__header {
  1677. display: flex;
  1678. align-items: center;
  1679. justify-content: flex-start;
  1680. flex: 0 0 190px;
  1681. width: 190px;
  1682. min-width: 190px;
  1683. min-height: 48px;
  1684. padding: 0 20px 0 0px;
  1685. box-sizing: border-box;
  1686. background: linear-gradient(90deg, var(--portal-accent-soft), transparent);
  1687. }
  1688. .platform-block__title-wrap {
  1689. display: flex;
  1690. flex-direction: column;
  1691. align-items: baseline;
  1692. gap: 18px;
  1693. min-width: 0;
  1694. flex: 1;
  1695. }
  1696. .platform-block__title {
  1697. color: var(--portal-title);
  1698. font-size: 15px;
  1699. font-weight: 800;
  1700. min-width: 0;
  1701. flex: 0 1 auto;
  1702. white-space: nowrap;
  1703. overflow: hidden;
  1704. text-overflow: ellipsis;
  1705. letter-spacing: 0.02em;
  1706. }
  1707. .platform-block__subtitle {
  1708. color: var(--portal-subtitle);
  1709. font-size: 13px;
  1710. font-weight: 500;
  1711. flex: 0 0 auto;
  1712. white-space: nowrap;
  1713. }
  1714. .platform-block__watermark {
  1715. color: rgba(119, 145, 214, 0.24);
  1716. font-size: 42px;
  1717. font-weight: 800;
  1718. line-height: 1;
  1719. letter-spacing: 0.08em;
  1720. }
  1721. .platform-app {
  1722. display: flex;
  1723. width: 100%;
  1724. min-width: 0;
  1725. min-height: 40px;
  1726. align-items: center;
  1727. justify-content: flex-start;
  1728. gap: 6px;
  1729. border: 1px solid var(--portal-line);
  1730. border-radius: 10px;
  1731. padding: 0 8px;
  1732. background: var(--portal-card-3);
  1733. font-size: 14px;
  1734. cursor: pointer;
  1735. transition:
  1736. transform 0.2s ease,
  1737. box-shadow 0.2s ease,
  1738. background 0.2s ease;
  1739. }
  1740. .platform-app:hover {
  1741. transform: translateY(-2px);
  1742. border-color: rgba(133, 163, 255, 0.45);
  1743. box-shadow: 0 10px 26px rgba(34, 54, 110, 0.18);
  1744. }
  1745. .platform-app--active {
  1746. background: linear-gradient(
  1747. 90deg,
  1748. rgba(76, 103, 224, 0.5),
  1749. var(--portal-card)
  1750. );
  1751. color: var(--portal-title);
  1752. border-color: rgba(129, 145, 255, 0.44);
  1753. box-shadow: inset 0 0 0 1px rgba(159, 173, 255, 0.08);
  1754. }
  1755. .platform-app--ghost {
  1756. background: var(--portal-card-4);
  1757. color: var(--portal-text);
  1758. }
  1759. .platform-app__icon {
  1760. display: inline-flex;
  1761. align-items: center;
  1762. justify-content: center;
  1763. flex: 0 0 28px;
  1764. color: var(--portal-accent-2);
  1765. filter: drop-shadow(0 0 8px rgba(90, 122, 255, 0.24));
  1766. }
  1767. .platform-app__label {
  1768. min-width: auto;
  1769. flex: 1;
  1770. white-space: nowrap;
  1771. overflow: visible;
  1772. text-overflow: clip;
  1773. font-size: 13px;
  1774. line-height: 1;
  1775. color: var(--portal-text);
  1776. white-space: nowrap;
  1777. overflow: hidden;
  1778. text-overflow: ellipsis;
  1779. }
  1780. .platform-block > .grid {
  1781. flex: 1;
  1782. align-content: start;
  1783. }
  1784. .portal-mobile-shortcuts {
  1785. display: grid;
  1786. grid-template-columns: repeat(3, minmax(0, 1fr));
  1787. gap: 8px;
  1788. }
  1789. .portal-mobile-shortcut {
  1790. min-width: 0;
  1791. border: 1px solid var(--portal-line);
  1792. border-radius: 12px;
  1793. padding: 10px 8px;
  1794. background: linear-gradient(180deg, var(--portal-card), var(--portal-card-2));
  1795. color: var(--portal-text);
  1796. font-size: 13px;
  1797. font-weight: 600;
  1798. box-shadow: var(--portal-shadow);
  1799. }
  1800. .side-card {
  1801. overflow: hidden;
  1802. border: 1px solid var(--portal-line);
  1803. border-radius: 14px;
  1804. background: linear-gradient(180deg, var(--portal-card), var(--portal-card-2));
  1805. box-shadow:
  1806. var(--portal-shadow),
  1807. inset 0 1px 0 rgba(255, 255, 255, 0.04);
  1808. }
  1809. .side-card--documents {
  1810. min-height: 310px;
  1811. padding: 16px 36px 18px !important;
  1812. border: 0;
  1813. border-radius: 6px;
  1814. background: rgba(255, 255, 255, 0.98);
  1815. box-shadow: 0 14px 32px rgba(72, 126, 190, 0.1);
  1816. }
  1817. .side-card--documents .side-card__header {
  1818. width: 100% !important;
  1819. min-height: 34px;
  1820. margin-left: 0 !important;
  1821. padding: 0;
  1822. border-bottom: 2px solid #b8ccef;
  1823. }
  1824. .side-card--documents .notice-tabs {
  1825. height: 34px;
  1826. gap: 24px;
  1827. }
  1828. .side-card--documents .notice-tab {
  1829. min-width: 72px;
  1830. height: 34px;
  1831. padding: 0;
  1832. border-radius: 0;
  1833. color: #4b6e9b;
  1834. font-size: 14px;
  1835. font-weight: 800;
  1836. }
  1837. .side-card--documents .notice-tab--active {
  1838. color: #0c5aee;
  1839. }
  1840. .side-card--documents .notice-tab--active::before {
  1841. left: 0;
  1842. bottom: -2px;
  1843. width: 72px;
  1844. height: 3px;
  1845. transform: none;
  1846. background: #0c5aee;
  1847. box-shadow: none;
  1848. }
  1849. .side-card--documents .side-card__more--documents {
  1850. gap: 6px;
  1851. color: #0c5aee;
  1852. font-size: 14px;
  1853. font-weight: 800;
  1854. }
  1855. .side-card--documents .side-card__more-arrows {
  1856. font-size: 13px;
  1857. letter-spacing: 0;
  1858. }
  1859. .side-card--documents > .space-y-2 {
  1860. padding: 4px 0 0 !important;
  1861. }
  1862. .side-card--documents .notice-item {
  1863. padding: 16px 18px 15px;
  1864. border-bottom: 2px dashed #bfd0e9;
  1865. border-radius: 0;
  1866. box-shadow: none;
  1867. }
  1868. .side-card--documents .notice-item:hover {
  1869. background: rgba(228, 240, 255, 0.44);
  1870. box-shadow: none;
  1871. transform: none;
  1872. }
  1873. .side-card--documents .notice-item__desc {
  1874. color: #3f6291;
  1875. font-size: 14px;
  1876. font-weight: 800;
  1877. line-height: 1.45;
  1878. }
  1879. .side-card--documents .date {
  1880. margin-top: 4px;
  1881. color: #9aa9bb !important;
  1882. font-size: 12px;
  1883. font-weight: 700;
  1884. }
  1885. :global([data-theme="dark"] .side-card--documents) {
  1886. min-height: auto;
  1887. padding: 8px !important;
  1888. border: 1px solid var(--portal-line);
  1889. border-radius: 14px;
  1890. background: linear-gradient(180deg, var(--portal-card), var(--portal-card-2));
  1891. box-shadow:
  1892. var(--portal-shadow),
  1893. inset 0 1px 0 rgba(255, 255, 255, 0.04);
  1894. }
  1895. :global([data-theme="dark"] .side-card--documents .side-card__header) {
  1896. width: 95% !important;
  1897. min-height: 20px;
  1898. margin-left: 8px !important;
  1899. padding-right: 10px;
  1900. border-bottom: 1px solid var(--portal-line);
  1901. }
  1902. :global([data-theme="dark"] .side-card--documents .notice-tabs) {
  1903. height: auto;
  1904. gap: 8px;
  1905. }
  1906. :global([data-theme="dark"] .side-card--documents .notice-tab) {
  1907. height: 25px;
  1908. min-width: 68px;
  1909. padding: 0 14px;
  1910. border-radius: 999px;
  1911. color: var(--portal-subtitle);
  1912. font-weight: 400;
  1913. }
  1914. :global([data-theme="dark"] .side-card--documents .notice-tab--active) {
  1915. color: var(--portal-title);
  1916. }
  1917. :global([data-theme="dark"] .side-card--documents .notice-tab--active::before) {
  1918. left: 50%;
  1919. bottom: -2px;
  1920. width: 90%;
  1921. height: 2px;
  1922. transform: translateX(-50%);
  1923. background: linear-gradient(
  1924. to right,
  1925. #5f3abf 0%,
  1926. #7044c5 30%,
  1927. #7044c5 40%,
  1928. rgba(255, 255, 255, 0.7) 50%,
  1929. #7044c5 60%,
  1930. #7044c5 70%,
  1931. #5f3abf 100%
  1932. );
  1933. box-shadow: 0 0 12px rgba(112, 120, 255, 0.95);
  1934. }
  1935. :global([data-theme="dark"] .side-card--documents .side-card__more--documents) {
  1936. color: var(--portal-subtitle);
  1937. font-size: 12px;
  1938. font-weight: 400;
  1939. }
  1940. :global([data-theme="dark"] .side-card--documents > .space-y-2) {
  1941. padding: 8px !important;
  1942. padding-top: 12px !important;
  1943. }
  1944. :global([data-theme="dark"] .side-card--documents .notice-item) {
  1945. padding: 8px 14px;
  1946. border-bottom: 0;
  1947. border-radius: 12px;
  1948. box-shadow: 0 10px 22px rgba(23, 52, 95, 0.08);
  1949. }
  1950. :global([data-theme="dark"] .side-card--documents .notice-item:hover) {
  1951. box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  1952. transform: translateY(-1px);
  1953. }
  1954. :global([data-theme="dark"] .side-card--documents .notice-item__desc) {
  1955. color: var(--portal-text);
  1956. font-size: 13px;
  1957. font-weight: 400;
  1958. }
  1959. .side-card--content {
  1960. padding-top: 10px;
  1961. }
  1962. .side-card--todo-panel {
  1963. min-height: 320px !important;
  1964. padding: 18px 38px 18px !important;
  1965. border: 0;
  1966. border-radius: 6px;
  1967. background: rgba(255, 255, 255, 0.98);
  1968. box-shadow: 0 14px 32px rgba(72, 126, 190, 0.1);
  1969. }
  1970. .side-card--todo-panel .side-card__header {
  1971. width: 100% !important;
  1972. min-height: 34px;
  1973. margin-left: 0 !important;
  1974. padding: 0;
  1975. border-bottom: 2px solid #b8ccef;
  1976. }
  1977. .side-card--todo-panel .notice-badge {
  1978. justify-content: flex-start;
  1979. height: 34px;
  1980. min-width: 76px;
  1981. padding: 0 !important;
  1982. color: #0c5aee;
  1983. font-size: 14px;
  1984. font-weight: 800;
  1985. }
  1986. .side-card--todo-panel .side-card__more--todo-panel {
  1987. gap: 6px;
  1988. color: #0c5aee;
  1989. font-size: 13px;
  1990. font-weight: 800;
  1991. }
  1992. .side-card--todo-panel > .space-y-2 {
  1993. padding: 24px 0 0 !important;
  1994. }
  1995. .side-card--todo-panel .todo-item {
  1996. min-height: 74px;
  1997. padding: 16px 16px 16px 18px;
  1998. border: 1px solid #a9c8f8;
  1999. border-left: 0;
  2000. border-radius: 14px;
  2001. background: linear-gradient(90deg, #edf6ff 0%, #ffffff 100%);
  2002. box-shadow: none;
  2003. }
  2004. .side-card--todo-panel .todo-item + .todo-item {
  2005. margin-top: 14px;
  2006. }
  2007. .side-card--todo-panel .todo-item:hover {
  2008. background: linear-gradient(90deg, #e5f2ff 0%, #ffffff 100%);
  2009. border-color: #8db8f7;
  2010. box-shadow: none;
  2011. transform: none;
  2012. }
  2013. .side-card--todo-panel .todo-item .truncate {
  2014. color: #155fc2;
  2015. font-size: 14px;
  2016. font-weight: 800;
  2017. }
  2018. .side-card--todo-panel .todo-item .text-\[\#8a9ab0\] {
  2019. color: #4f6f96 !important;
  2020. font-size: 13px;
  2021. font-weight: 700;
  2022. }
  2023. .side-card--todo-panel .todo-item__tag {
  2024. min-width: 56px;
  2025. justify-content: center;
  2026. border-radius: 999px;
  2027. padding: 4px 8px;
  2028. background: linear-gradient(90deg, #5aa7ff 0%, #0c5aee 100%) !important;
  2029. color: #ffffff !important;
  2030. font-size: 12px !important;
  2031. font-weight: 500;
  2032. }
  2033. .side-card--todo-panel .quick-todo-bar {
  2034. width: fit-content;
  2035. gap: 28px;
  2036. margin-top: 18px;
  2037. padding: 0;
  2038. border: 0;
  2039. border-radius: 0;
  2040. background: transparent;
  2041. box-shadow: none;
  2042. backdrop-filter: none;
  2043. -webkit-backdrop-filter: none;
  2044. }
  2045. .side-card--todo-panel .quick-todo-btn {
  2046. min-width: 154px;
  2047. height: 26px;
  2048. flex-direction: row;
  2049. align-items: center;
  2050. justify-content: center;
  2051. gap: 14px;
  2052. border-radius: 999px;
  2053. background: #eef6ff;
  2054. }
  2055. .side-card--todo-panel .quick-todo-btn--center {
  2056. align-items: center;
  2057. }
  2058. .side-card--todo-panel .quick-todo-btn .number {
  2059. min-width: auto;
  2060. color: #e00024;
  2061. font-size: 22px;
  2062. line-height: 1;
  2063. }
  2064. .side-card--todo-panel .quick-todo-btn--center .number {
  2065. color: #00a650 !important;
  2066. }
  2067. .side-card--todo-panel .quick-todo-btn .aside-btn {
  2068. color: #4f6f96;
  2069. font-size: 13px !important;
  2070. font-weight: 800;
  2071. }
  2072. .side-card--todo-panel .quick-todo-btn .icon {
  2073. display: none;
  2074. }
  2075. :global([data-theme="dark"] .side-card--todo-panel) {
  2076. min-height: 190px !important;
  2077. padding: 8px !important;
  2078. border: 1px solid var(--portal-line);
  2079. border-radius: 14px;
  2080. background: linear-gradient(180deg, var(--portal-card), var(--portal-card-2));
  2081. box-shadow:
  2082. var(--portal-shadow),
  2083. inset 0 1px 0 rgba(255, 255, 255, 0.04);
  2084. }
  2085. :global([data-theme="dark"] .side-card--todo-panel .side-card__header) {
  2086. width: 91% !important;
  2087. min-height: 20px;
  2088. margin-left: 15px !important;
  2089. padding-right: 10px;
  2090. border-bottom: 1px solid var(--portal-line);
  2091. }
  2092. :global([data-theme="dark"] .side-card--todo-panel .notice-badge) {
  2093. justify-content: center;
  2094. height: 25px;
  2095. min-width: 70px;
  2096. padding: 0 8px 8px !important;
  2097. color: var(--portal-title);
  2098. font-size: 14px;
  2099. font-weight: 400;
  2100. }
  2101. :global(
  2102. [data-theme="dark"] .side-card--todo-panel .side-card__more--todo-panel
  2103. ) {
  2104. color: var(--portal-subtitle);
  2105. font-size: 12px;
  2106. font-weight: 400;
  2107. }
  2108. :global([data-theme="dark"] .side-card--todo-panel > .space-y-2) {
  2109. padding: 16px !important;
  2110. padding-top: 8px !important;
  2111. }
  2112. :global([data-theme="dark"] .side-card--todo-panel .todo-item) {
  2113. min-height: 0;
  2114. padding: 8px 12px;
  2115. border: 1px solid var(--portal-line);
  2116. border-radius: 8px;
  2117. background: var(--portal-card-4);
  2118. box-shadow: 0 10px 22px rgba(23, 52, 95, 0.08);
  2119. }
  2120. :global([data-theme="dark"] .side-card--todo-panel .todo-item:hover) {
  2121. background: var(--portal-todo-hover);
  2122. transform: translateY(-1px);
  2123. border-color: rgba(109, 137, 213, 0.2);
  2124. }
  2125. :global([data-theme="dark"] .side-card--todo-panel .todo-item .truncate) {
  2126. color: var(--portal-text);
  2127. font-size: 14px;
  2128. font-weight: 600;
  2129. }
  2130. :global(
  2131. [data-theme="dark"] .side-card--todo-panel .todo-item .text-\[\#8a9ab0\]
  2132. ) {
  2133. color: #8a9ab0 !important;
  2134. font-size: 12px;
  2135. font-weight: 400;
  2136. }
  2137. :global([data-theme="dark"] .side-card--todo-panel .todo-item__tag) {
  2138. min-width: 0;
  2139. padding: 2px 8px;
  2140. font-size: 11px;
  2141. font-weight: 400;
  2142. }
  2143. :global([data-theme="dark"] .side-card--todo-panel .quick-todo-bar) {
  2144. display: flex;
  2145. width: auto;
  2146. gap: 16px;
  2147. margin-top: 0;
  2148. padding: 8px 16px;
  2149. border: 1px solid var(--portal-line);
  2150. border-radius: 8px;
  2151. background: var(--portal-todo-bg);
  2152. box-shadow: var(--portal-shadow);
  2153. backdrop-filter: blur(10px);
  2154. -webkit-backdrop-filter: blur(10px);
  2155. }
  2156. :global([data-theme="dark"] .side-card--todo-panel .quick-todo-btn) {
  2157. min-width: 0;
  2158. height: auto;
  2159. flex-direction: column;
  2160. align-items: flex-start;
  2161. justify-content: center;
  2162. gap: 8px;
  2163. border-radius: 0;
  2164. background: transparent;
  2165. }
  2166. :global([data-theme="dark"] .side-card--todo-panel .quick-todo-btn--center) {
  2167. align-items: center;
  2168. }
  2169. :global([data-theme="dark"] .side-card--todo-panel .quick-todo-btn .number) {
  2170. min-width: 24px;
  2171. color: var(--portal-number-todo);
  2172. font-size: 18px;
  2173. }
  2174. :global(
  2175. [data-theme="dark"] .side-card--todo-panel .quick-todo-btn--center .number
  2176. ) {
  2177. color: #2d8767 !important;
  2178. }
  2179. :global([data-theme="dark"] .side-card--todo-panel .quick-todo-btn .aside-btn) {
  2180. color: var(--portal-text-soft);
  2181. font-size: 10px !important;
  2182. font-weight: 400;
  2183. }
  2184. :global([data-theme="dark"] .side-card--todo-panel .quick-todo-btn .icon) {
  2185. display: inline-flex;
  2186. }
  2187. .side-card__header {
  2188. display: flex;
  2189. align-items: center;
  2190. justify-content: space-between;
  2191. min-height: 20px;
  2192. padding-right: 10px;
  2193. /* border-radius: 999px; */
  2194. /* background: rgba(28, 39, 72, 0.86); */
  2195. border-bottom: 1px solid var(--portal-line);
  2196. }
  2197. .notice-badge {
  2198. position: relative;
  2199. display: inline-flex;
  2200. align-items: center;
  2201. justify-content: center;
  2202. height: 25px;
  2203. min-width: 70px;
  2204. color: var(--portal-title);
  2205. font-size: 14px;
  2206. }
  2207. .news.notice-badge {
  2208. position: relative;
  2209. display: inline-flex;
  2210. align-items: center;
  2211. justify-content: center;
  2212. height: 25px;
  2213. min-width: 70px;
  2214. color: var(--portal-title);
  2215. font-size: 14px;
  2216. border-bottom: 2px solid var(--portal-accent);
  2217. }
  2218. .notice-tabs {
  2219. display: inline-flex;
  2220. align-items: center;
  2221. gap: 8px;
  2222. }
  2223. .notice-tab {
  2224. height: 25px;
  2225. min-width: 68px;
  2226. padding: 0 14px;
  2227. border: 0;
  2228. border-radius: 999px;
  2229. background: transparent;
  2230. color: var(--portal-subtitle);
  2231. font-size: 14px;
  2232. cursor: pointer;
  2233. transition:
  2234. background 0.2s ease,
  2235. color 0.2s ease;
  2236. }
  2237. .notice-tab--active {
  2238. position: relative;
  2239. color: var(--portal-title);
  2240. }
  2241. .notice-tab--active::before {
  2242. content: "";
  2243. position: absolute;
  2244. left: 50%;
  2245. bottom: -2px;
  2246. width: 90%;
  2247. height: 2px;
  2248. transform: translateX(-50%);
  2249. border-radius: 999px;
  2250. background: linear-gradient(
  2251. to right,
  2252. #5f3abf 0%,
  2253. #7044c5 30%,
  2254. #7044c5 40%,
  2255. rgba(255, 255, 255, 0.7) 50%,
  2256. #7044c5 60%,
  2257. #7044c5 70%,
  2258. #5f3abf 100%
  2259. );
  2260. box-shadow: 0 0 12px rgba(112, 120, 255, 0.95);
  2261. }
  2262. .notice-badge::after {
  2263. content: "";
  2264. position: absolute;
  2265. top: 0;
  2266. right: -15px;
  2267. }
  2268. .side-card__more {
  2269. display: inline-flex;
  2270. align-items: center;
  2271. justify-content: center;
  2272. border: 0;
  2273. background: transparent;
  2274. color: var(--portal-subtitle);
  2275. cursor: pointer;
  2276. font-size: 12px;
  2277. }
  2278. .notice-item {
  2279. /* background: rgba(14, 22, 42, 0.88); */
  2280. padding: 8px 14px;
  2281. box-shadow: 0 10px 22px rgba(23, 52, 95, 0.08);
  2282. border-radius: 12px;
  2283. }
  2284. .notice-item:hover {
  2285. box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  2286. transition: all 0.2s ease;
  2287. transform: translateY(-1px);
  2288. }
  2289. .notice-item__title,
  2290. .notice-item__desc {
  2291. color: var(--portal-text);
  2292. font-size: 13px;
  2293. line-height: 1.5;
  2294. display: -webkit-box;
  2295. -webkit-box-orient: vertical;
  2296. -webkit-line-clamp: 1;
  2297. overflow: hidden;
  2298. }
  2299. .panel-title {
  2300. padding: 0 16px;
  2301. color: var(--portal-title);
  2302. font-size: 15px;
  2303. font-weight: 700;
  2304. }
  2305. .todo-item {
  2306. border: 1px solid var(--portal-line);
  2307. background: var(--portal-card-4);
  2308. padding: 8px 14px;
  2309. box-shadow: 0 10px 22px rgba(23, 52, 95, 0.08);
  2310. }
  2311. .todo-item__tag {
  2312. display: inline-flex;
  2313. align-items: center;
  2314. border-radius: 999px;
  2315. padding: 2px 8px;
  2316. font-size: 11px;
  2317. white-space: nowrap;
  2318. }
  2319. .news-mini {
  2320. display: flex;
  2321. align-items: center;
  2322. gap: 12px;
  2323. border: 1px solid var(--portal-line);
  2324. background: var(--portal-card-4);
  2325. padding: 5px 12px;
  2326. box-shadow: 0 10px 22px rgba(23, 52, 95, 0.08);
  2327. border-radius: 12px;
  2328. }
  2329. .news-mini:hover {
  2330. box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  2331. transition: all 0.2s ease;
  2332. transform: translateY(-1px);
  2333. }
  2334. .placeholder-panel {
  2335. display: flex;
  2336. height: 100%;
  2337. padding: 16px;
  2338. justify-content: start;
  2339. color: var(--portal-title);
  2340. font-size: 16px;
  2341. font-weight: 600;
  2342. letter-spacing: 0.08em;
  2343. }
  2344. @media (max-width: 1279px) {
  2345. .hero-text {
  2346. font-size: 34px;
  2347. max-width: 420px;
  2348. }
  2349. .hero-visual {
  2350. min-height: 260px;
  2351. }
  2352. }
  2353. @media (max-width: 767px) {
  2354. .platform-block {
  2355. display: block;
  2356. }
  2357. .platform-block__header {
  2358. width: 100%;
  2359. min-width: 0;
  2360. padding: 0 16px 0 18px;
  2361. flex: none;
  2362. justify-content: flex-start;
  2363. }
  2364. .platform-block__title-wrap {
  2365. gap: 12px;
  2366. flex-wrap: wrap;
  2367. }
  2368. .platform-block__title {
  2369. font-size: 16px;
  2370. }
  2371. .platform-block__subtitle {
  2372. font-size: 12px;
  2373. }
  2374. .platform-block__watermark {
  2375. font-size: 34px;
  2376. }
  2377. .hero-banner {
  2378. min-height: 240px;
  2379. }
  2380. .carousel-container {
  2381. height: 240px;
  2382. }
  2383. .carousel-caption {
  2384. left: 22px;
  2385. right: 22px;
  2386. top: 50%;
  2387. transform: translateY(-50%);
  2388. }
  2389. .hero-text {
  2390. font-size: 24px;
  2391. max-width: 100%;
  2392. }
  2393. }
  2394. .carousel-indicators {
  2395. display: flex;
  2396. gap: 10px;
  2397. z-index: 30;
  2398. }
  2399. .carousel-indicators span {
  2400. width: 36px;
  2401. height: 4px;
  2402. border-radius: 999px;
  2403. cursor: pointer;
  2404. transition: all 0.25s ease;
  2405. box-shadow: 0 0 16px rgba(112, 103, 255, 0.35);
  2406. }
  2407. .carousel-slide {
  2408. position: absolute;
  2409. inset: 0;
  2410. width: 100%;
  2411. height: 100%;
  2412. }
  2413. .hero-visual img {
  2414. width: 100%;
  2415. height: 100%;
  2416. object-fit: cover;
  2417. display: block;
  2418. filter: saturate(1.12) contrast(1.06);
  2419. }
  2420. .carousel-caption {
  2421. position: absolute;
  2422. left: 80px;
  2423. top: 44%;
  2424. z-index: 2;
  2425. transform: translateY(-50%);
  2426. text-align: left;
  2427. }
  2428. .carousel-container::before {
  2429. content: "";
  2430. position: absolute;
  2431. inset: auto 0 0;
  2432. height: 120px;
  2433. /* background: linear-gradient(180deg, transparent, rgba(5, 11, 26, 0.2)); */
  2434. z-index: 1;
  2435. pointer-events: none;
  2436. }
  2437. :deep(.portal-home .el-dialog) {
  2438. border-radius: 16px;
  2439. }
  2440. .top-nav-bar {
  2441. display: flex;
  2442. align-items: center;
  2443. justify-content: space-between;
  2444. min-height: 52px;
  2445. padding: 8px 24px;
  2446. background: linear-gradient(90deg, #245edb 0%, #4fa2ff 100%);
  2447. border: 1px solid rgba(255, 255, 255, 0.34);
  2448. border-radius: 8px;
  2449. margin-bottom: 10px;
  2450. box-shadow: 0 10px 26px rgba(36, 94, 219, 0.18);
  2451. }
  2452. .nav-title {
  2453. color: var(--portal-title);
  2454. font-size: 14px;
  2455. font-weight: 600;
  2456. letter-spacing: 0.08em;
  2457. }
  2458. .search-container {
  2459. display: flex;
  2460. align-items: center;
  2461. gap: 8px;
  2462. position: relative;
  2463. width: min(380px, 45vw);
  2464. height: 34px;
  2465. border-radius: 999px;
  2466. background: rgba(239, 247, 255, 0.96);
  2467. border: 1px solid rgba(28, 92, 190, 0.16);
  2468. overflow: hidden;
  2469. box-shadow:
  2470. inset 0 1px 2px rgba(36, 94, 219, 0.08),
  2471. 0 1px 0 rgba(255, 255, 255, 0.45);
  2472. transition: all 0.2s ease;
  2473. }
  2474. .search-container:hover {
  2475. background: #ffffff;
  2476. border-color: rgba(28, 92, 190, 0.26);
  2477. }
  2478. .search-icon {
  2479. display: none;
  2480. }
  2481. .search-input {
  2482. flex: 1;
  2483. border: none;
  2484. background: transparent;
  2485. outline: none;
  2486. font-size: 14px;
  2487. color: #1b4f8c;
  2488. padding: 0 18px 0 52px;
  2489. margin: 0;
  2490. }
  2491. .search-input::placeholder {
  2492. color: #527194;
  2493. opacity: 1;
  2494. }
  2495. .shortcut-key {
  2496. display: none;
  2497. }
  2498. .quick-access {
  2499. display: flex;
  2500. align-items: center;
  2501. justify-content: center;
  2502. gap: 28px;
  2503. min-width: min(345px, 40vw);
  2504. height: 30px;
  2505. padding: 0 18px;
  2506. border-radius: 999px;
  2507. background: rgba(239, 247, 255, 0.96);
  2508. border: 1px solid rgba(28, 92, 190, 0.12);
  2509. box-shadow:
  2510. inset 0 1px 2px rgba(36, 94, 219, 0.08),
  2511. 0 1px 0 rgba(255, 255, 255, 0.45);
  2512. }
  2513. .quick-btn {
  2514. display: flex;
  2515. align-items: center;
  2516. justify-content: center;
  2517. gap: 12px;
  2518. height: 28px;
  2519. padding: 0;
  2520. /* border: 1px solid rgba(109, 137, 213, 0.16); */
  2521. border-radius: 12px;
  2522. /* background: rgba(17, 25, 48, 0.8); */
  2523. color: #244d7a;
  2524. font-size: 13px;
  2525. font-weight: 700;
  2526. cursor: pointer;
  2527. transition:
  2528. background 0.2s ease,
  2529. border-color 0.2s ease,
  2530. transform 0.2s ease;
  2531. }
  2532. .quick-btn--dropdown {
  2533. border: none;
  2534. background: transparent;
  2535. outline: none;
  2536. }
  2537. .quick-btn--dropdown:focus-visible {
  2538. outline: none;
  2539. }
  2540. .quick-btn:hover {
  2541. background: transparent;
  2542. border-color: rgba(109, 137, 213, 0.4);
  2543. transform: none;
  2544. }
  2545. .btn-icon {
  2546. font-size: 16px;
  2547. color: var(--portal-accent-2);
  2548. }
  2549. .btn-label {
  2550. white-space: nowrap;
  2551. }
  2552. .quick-btn__arrow {
  2553. font-size: 16px;
  2554. color: var(--portal-text-soft);
  2555. }
  2556. .quick-btn__meta {
  2557. color: #244d7a;
  2558. }
  2559. .quick-btn__count {
  2560. font-weight: 700;
  2561. }
  2562. .quick-btn__count--todo {
  2563. color: var(--portal-number-todo);
  2564. }
  2565. .quick-btn__count--done {
  2566. color: var(--portal-number-done);
  2567. }
  2568. .top-nav-bar .quick-btn img,
  2569. .top-nav-bar .btn-icon {
  2570. display: none;
  2571. }
  2572. :global([data-theme="dark"] .top-nav-bar) {
  2573. padding: 5px 24px;
  2574. background: var(--portal-nav-bg);
  2575. backdrop-filter: blur(10px);
  2576. -webkit-backdrop-filter: blur(10px);
  2577. border: 1px solid var(--portal-line);
  2578. box-shadow: var(--portal-shadow);
  2579. }
  2580. :global([data-theme="dark"] .top-nav-bar .search-container) {
  2581. width: 380px;
  2582. height: 36px;
  2583. background: var(--portal-input-bg);
  2584. border: 1px solid var(--portal-line);
  2585. box-shadow: none;
  2586. }
  2587. :global([data-theme="dark"] .top-nav-bar .search-icon) {
  2588. display: block;
  2589. margin-left: 12px;
  2590. }
  2591. :global([data-theme="dark"] .top-nav-bar .search-input) {
  2592. color: var(--portal-text);
  2593. padding-left: 20px;
  2594. }
  2595. :global([data-theme="dark"] .top-nav-bar .shortcut-key) {
  2596. display: block;
  2597. /* padding-right: 12px; */
  2598. }
  2599. :global([data-theme="dark"] .top-nav-bar .quick-access) {
  2600. gap: 16px;
  2601. min-width: 0;
  2602. height: auto;
  2603. padding: 0;
  2604. background: transparent;
  2605. border: 0;
  2606. box-shadow: none;
  2607. display: flex;
  2608. justify-content: center;
  2609. }
  2610. :global([data-theme="dark"] .top-nav-bar .quick-btn) {
  2611. justify-content: center;
  2612. gap: 8px;
  2613. height: auto;
  2614. padding: 8px 12px;
  2615. color: var(--portal-text);
  2616. font-weight: 400;
  2617. }
  2618. :global([data-theme="dark"] .top-nav-bar .quick-btn:hover) {
  2619. background: var(--portal-nav-hover);
  2620. transform: translateY(-1px);
  2621. }
  2622. :global([data-theme="dark"] .top-nav-bar .quick-btn__meta) {
  2623. color: var(--portal-text-soft);
  2624. }
  2625. :global([data-theme="dark"] .top-nav-bar .quick-btn img),
  2626. :global([data-theme="dark"] .top-nav-bar .btn-icon) {
  2627. display: inline-flex;
  2628. }
  2629. .aside-btn {
  2630. color: var(--portal-text-soft);
  2631. }
  2632. .badge {
  2633. display: inline-flex;
  2634. align-items: center;
  2635. justify-content: center;
  2636. width: 18px;
  2637. height: 18px;
  2638. border-radius: 50%;
  2639. background: #f56c6c;
  2640. color: white;
  2641. font-size: 10px;
  2642. font-weight: 600;
  2643. }
  2644. .quick-todo-bar {
  2645. display: flex;
  2646. gap: 16px;
  2647. padding: 8px 16px;
  2648. background: var(--portal-todo-bg);
  2649. backdrop-filter: blur(10px);
  2650. border: 1px solid var(--portal-line);
  2651. -webkit-backdrop-filter: blur(10px);
  2652. border-radius: 8px;
  2653. box-shadow: var(--portal-shadow);
  2654. /* margin-bottom: 16px; */
  2655. }
  2656. .quick-todo-btn {
  2657. display: flex;
  2658. flex: 1;
  2659. flex-direction: column;
  2660. align-items: flex-start;
  2661. justify-content: center;
  2662. gap: 8px;
  2663. border: none;
  2664. background: transparent;
  2665. padding: 0;
  2666. color: inherit;
  2667. cursor: pointer;
  2668. outline: none;
  2669. }
  2670. .quick-todo-btn--center {
  2671. align-items: center;
  2672. }
  2673. .quick-todo-btn:hover {
  2674. transform: translateY(-1px);
  2675. }
  2676. .todo-item {
  2677. display: flex;
  2678. align-items: center;
  2679. gap: 8px;
  2680. flex: 1;
  2681. padding: 8px 12px;
  2682. border-radius: 8px;
  2683. transition: all 0.2s ease;
  2684. cursor: pointer;
  2685. }
  2686. .todo-item:hover {
  2687. background: var(--portal-todo-hover);
  2688. transform: translateY(-1px);
  2689. border-color: rgba(109, 137, 213, 0.2);
  2690. }
  2691. .number {
  2692. font-size: 18px;
  2693. font-weight: 700;
  2694. color: var(--portal-number-todo);
  2695. min-width: 24px;
  2696. text-align: center;
  2697. }
  2698. .label {
  2699. font-size: 12px;
  2700. color: var(--portal-text);
  2701. white-space: nowrap;
  2702. }
  2703. .icon {
  2704. font-size: 14px;
  2705. color: var(--portal-accent-2);
  2706. }
  2707. :global(.quick-access-dropdown) {
  2708. padding: 0 !important;
  2709. border: 1px solid var(--portal-line) !important;
  2710. border-radius: 10px !important;
  2711. background: var(--dropdown-menu) !important;
  2712. box-shadow: var(--portal-shadow) !important;
  2713. overflow: hidden !important;
  2714. }
  2715. :global(.quick-access-dropdown .el-dropdown-menu) {
  2716. padding: 0px !important;
  2717. border: none !important;
  2718. background: var(--dropdown-menu) !important;
  2719. }
  2720. :global(.quick-access-dropdown .el-dropdown-menu__item) {
  2721. padding: 0px !important;
  2722. padding-left: 10px !important;
  2723. padding-right: 10px !important;
  2724. margin: 0 !important;
  2725. border: none !important;
  2726. background: var(--dropdown-menu) !important;
  2727. }
  2728. /* :global(.quick-access-dropdown .el-dropdown-menu__item):hover {
  2729. background: var(--dropdown-menu-hover) !important;
  2730. } */
  2731. :global(.quick-access-dropdown .el-popper__arrow::before) {
  2732. background: var(--dropdown-menu) !important;
  2733. border-color: var(--portal-line) !important;
  2734. }
  2735. :deep(.el-dropdown-menu__item):hover {
  2736. background: var(--dropdown-menu-hover) !important;
  2737. color: #fff !important;
  2738. }
  2739. </style>