优化员工排班与规划月视图体验
This commit is contained in:
@@ -60,8 +60,12 @@ Page({
|
||||
},
|
||||
|
||||
onShow() {
|
||||
if (this._needRefresh) {
|
||||
const app = getApp()
|
||||
const storageRefresh = wx.getStorageSync('planningNeedRefresh') === '1'
|
||||
if (this._needRefresh || app.globalData.planningNeedRefresh || storageRefresh) {
|
||||
this._needRefresh = false
|
||||
app.globalData.planningNeedRefresh = false
|
||||
wx.removeStorageSync('planningNeedRefresh')
|
||||
this.loadCalendar()
|
||||
}
|
||||
},
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
.control-card {
|
||||
padding: 18rpx;
|
||||
animation: pageFadeIn 180ms ease both;
|
||||
}
|
||||
|
||||
.calendar-error-card {
|
||||
@@ -136,12 +137,14 @@
|
||||
color: #7d756c;
|
||||
font-size: 24rpx;
|
||||
font-weight: 700;
|
||||
transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
|
||||
}
|
||||
|
||||
.segment.active {
|
||||
background: #fffdf8;
|
||||
color: #2f2a25;
|
||||
box-shadow: 0 6rpx 14rpx rgba(58, 48, 34, 0.07);
|
||||
transform: translateY(-1rpx);
|
||||
}
|
||||
|
||||
.artist-filter {
|
||||
@@ -162,11 +165,13 @@
|
||||
color: #625b52;
|
||||
font-size: 24rpx;
|
||||
font-weight: 700;
|
||||
transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
|
||||
}
|
||||
|
||||
.artist-chip.active {
|
||||
background: #e5eee9;
|
||||
color: #4e7165;
|
||||
transform: translateY(-1rpx);
|
||||
}
|
||||
|
||||
.chip-dot {
|
||||
@@ -284,6 +289,12 @@
|
||||
border-radius: 10px;
|
||||
background: #fff7ee;
|
||||
box-shadow: 0 8rpx 16rpx rgba(58, 48, 34, 0.08);
|
||||
transition: transform 160ms ease, box-shadow 160ms ease;
|
||||
}
|
||||
|
||||
.appointment-block:active {
|
||||
transform: scale(0.98);
|
||||
box-shadow: 0 4rpx 10rpx rgba(58, 48, 34, 0.08);
|
||||
}
|
||||
|
||||
.appointment-block.pending {
|
||||
@@ -444,12 +455,14 @@
|
||||
color: #766e65;
|
||||
font-size: 22rpx;
|
||||
font-weight: 800;
|
||||
transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
|
||||
}
|
||||
|
||||
.month-mode.active {
|
||||
background: #fffdf8;
|
||||
color: #2f6f62;
|
||||
box-shadow: 0 4rpx 12rpx rgba(58, 48, 34, 0.07);
|
||||
transform: translateY(-1rpx);
|
||||
}
|
||||
|
||||
.row-name-switch {
|
||||
@@ -487,6 +500,7 @@
|
||||
border-radius: 50%;
|
||||
background: #fffdf8;
|
||||
box-shadow: 0 2rpx 6rpx rgba(58, 48, 34, 0.16);
|
||||
transition: transform 180ms ease;
|
||||
}
|
||||
|
||||
.row-name-switch.active .switch-track {
|
||||
@@ -520,6 +534,11 @@
|
||||
border-right: 1rpx solid #eee8df;
|
||||
border-bottom: 1rpx solid #eee8df;
|
||||
background: #fffdf8;
|
||||
transition: background-color 180ms ease, transform 160ms ease;
|
||||
}
|
||||
|
||||
.month-cell:active {
|
||||
transform: scale(0.985);
|
||||
}
|
||||
|
||||
.month-cell:nth-child(7n) {
|
||||
@@ -543,7 +562,7 @@
|
||||
|
||||
.month-day {
|
||||
color: #2c2824;
|
||||
font-size: 26rpx;
|
||||
font-size: 22rpx;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
@@ -552,7 +571,7 @@
|
||||
}
|
||||
|
||||
.day-mark {
|
||||
font-size: 18rpx;
|
||||
font-size: 17rpx;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
@@ -584,6 +603,7 @@
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
transition: transform 160ms ease;
|
||||
}
|
||||
|
||||
.month-blocks {
|
||||
@@ -632,3 +652,14 @@
|
||||
font-size: 20rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@keyframes pageFadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(8rpx);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user