重构项目文件夹目录

This commit is contained in:
2026-06-15 15:53:55 +08:00
parent 8093e07190
commit 7cbe5b3de5
1098 changed files with 34 additions and 4441 deletions
@@ -0,0 +1,11 @@
Page({
data: {
days: Array.from({ length: 31 }).map((_, index) => ({ day: index + 1, rest: [12, 25].includes(index + 1) })),
records: [
{ date: '2026-06-12', text: '全天请假' },
{ date: '2026-06-25', text: '下午请假' }
]
},
add() { wx.showToast({ title: '请选择日期后保存', icon: 'none' }) },
back() { wx.navigateBack() }
})
@@ -0,0 +1,3 @@
{
"navigationBarTitleText": "请假管理"
}
@@ -0,0 +1,12 @@
<view class="page no-tab">
<view class="card mini-calendar">
<view wx:for="{{days}}" wx:key="date" class="mini-day {{item.rest ? 'rest' : ''}}">{{item.day}}</view>
</view>
<view class="section">
<view class="section-title">请假记录</view>
<view class="list">
<view wx:for="{{records}}" wx:key="date" class="card list-card">{{item.date}} {{item.text}}</view>
</view>
</view>
<view class="fixed-bottom"><button class="primary-btn" bindtap="add">新增请假</button></view>
</view>
@@ -0,0 +1,22 @@
.mini-calendar {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 10rpx;
padding: 18rpx;
}
.mini-day {
display: flex;
align-items: center;
justify-content: center;
height: 64rpx;
border-radius: 10rpx;
background: #f2ede7;
color: #5d564e;
font-weight: 700;
}
.mini-day.rest {
background: #e7f0f6;
color: #6e9fbd;
}