|
@@ -2,14 +2,17 @@
|
|
|
<div class="ehr-page">
|
|
<div class="ehr-page">
|
|
|
<Header />
|
|
<Header />
|
|
|
|
|
|
|
|
- <div class="banner pt-2">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="banner pt-2"
|
|
|
|
|
+ :style="{ backgroundImage: `url(${currentBanner})` }"
|
|
|
|
|
+ >
|
|
|
<section class="hero">
|
|
<section class="hero">
|
|
|
<div class="hero-inner">
|
|
<div class="hero-inner">
|
|
|
<!-- 判断上下午 -->
|
|
<!-- 判断上下午 -->
|
|
|
<h1 class="hero-title pt-5">
|
|
<h1 class="hero-title pt-5">
|
|
|
{{ getGreeting() }},{{ userStore.getUser.nickname }}
|
|
{{ getGreeting() }},{{ userStore.getUser.nickname }}
|
|
|
</h1>
|
|
</h1>
|
|
|
- <p class="hero-desc">
|
|
|
|
|
|
|
+ <p class="hero-desc text-var(--text-secondary)!">
|
|
|
今天是 {{ new Date().toLocaleDateString() }}。您有
|
|
今天是 {{ new Date().toLocaleDateString() }}。您有
|
|
|
{{ stats[0].number }}条流程待处理。
|
|
{{ stats[0].number }}条流程待处理。
|
|
|
</p>
|
|
</p>
|
|
@@ -278,6 +281,10 @@ const handleTabScroll = () => {
|
|
|
updateArrowState();
|
|
updateArrowState();
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+const currentBanner = computed(() => {
|
|
|
|
|
+ return themeStore.theme === "light" ? banner_white : banner;
|
|
|
|
|
+});
|
|
|
|
|
+
|
|
|
const getGreeting = () => {
|
|
const getGreeting = () => {
|
|
|
const hour = new Date().getHours();
|
|
const hour = new Date().getHours();
|
|
|
if (hour < 12) return "早上好";
|
|
if (hour < 12) return "早上好";
|
|
@@ -839,11 +846,11 @@ onBeforeUnmount(() => {
|
|
|
height: auto; /* 允许高度自适应,或者设置一个最小高度 */
|
|
height: auto; /* 允许高度自适应,或者设置一个最小高度 */
|
|
|
min-height: 300px;
|
|
min-height: 300px;
|
|
|
/* 设置背景图 */
|
|
/* 设置背景图 */
|
|
|
- background: url("../../assets//images/flwoBanner.png"); /* 或者使用变量 if defined in script */
|
|
|
|
|
|
|
+
|
|
|
background-size: cover;
|
|
background-size: cover;
|
|
|
background-repeat: no-repeat;
|
|
background-repeat: no-repeat;
|
|
|
background-position: center;
|
|
background-position: center;
|
|
|
- border: 2px solid #061338;
|
|
|
|
|
|
|
+ /* border: 2px solid #061338; */
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.hero {
|
|
.hero {
|
|
@@ -870,7 +877,7 @@ onBeforeUnmount(() => {
|
|
|
|
|
|
|
|
.hero-desc {
|
|
.hero-desc {
|
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
|
- color: #a7a0b1;
|
|
|
|
|
|
|
+ /* color: #a7a0b1; */
|
|
|
max-width: 720px;
|
|
max-width: 720px;
|
|
|
line-height: 1.8;
|
|
line-height: 1.8;
|
|
|
}
|
|
}
|
|
@@ -1303,7 +1310,7 @@ onBeforeUnmount(() => {
|
|
|
position: relative; /* 必须设置为 relative,作为伪元素的定位基准 */
|
|
position: relative; /* 必须设置为 relative,作为伪元素的定位基准 */
|
|
|
width: 300px;
|
|
width: 300px;
|
|
|
/* 内部背景保持深色半透明 */
|
|
/* 内部背景保持深色半透明 */
|
|
|
- background: rgba(5, 15, 46, 0.85);
|
|
|
|
|
|
|
+ /* background: rgba(5, 15, 46, 0.85); */
|
|
|
border-radius: 16px;
|
|
border-radius: 16px;
|
|
|
padding: 20px;
|
|
padding: 20px;
|
|
|
backdrop-filter: blur(8px);
|
|
backdrop-filter: blur(8px);
|
|
@@ -1345,12 +1352,7 @@ onBeforeUnmount(() => {
|
|
|
content: "";
|
|
content: "";
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
inset: 1px; /* 这里控制边框宽度,2px 即边框宽 */
|
|
inset: 1px; /* 这里控制边框宽度,2px 即边框宽 */
|
|
|
- background: rgba(
|
|
|
|
|
- 5,
|
|
|
|
|
- 15,
|
|
|
|
|
- 46,
|
|
|
|
|
- 0.92
|
|
|
|
|
- ); /* 与卡片背景一致,稍微不透明一点以遮盖旋转背景 */
|
|
|
|
|
|
|
+ background: var(--bg-total-card);
|
|
|
border-radius: 14px; /* 比父容器小一点 */
|
|
border-radius: 14px; /* 比父容器小一点 */
|
|
|
z-index: -1;
|
|
z-index: -1;
|
|
|
}
|
|
}
|