| | |
| | | </view> |
| | | <view class="info-item"> |
| | | <text class="info-label">日期:</text> |
| | | <picker mode="date" :value="currentDate" @change="handleDateChange"> |
| | | <view class="date-picker">{{ currentDate }}</view> |
| | | <picker mode="date" fields="month" :value="currentDate" @change="handleDateChange"> |
| | | <view class="date-picker">{{ displayDate }}</view> |
| | | </picker> |
| | | </view> |
| | | </view> |
| | |
| | | dirty: false |
| | | } |
| | | }, |
| | | computed: { |
| | | displayDate() { |
| | | // 格式化显示为 "2025年11月" |
| | | if (!this.currentDate) return '' |
| | | const [year, month] = this.currentDate.split('-') |
| | | return `${year}年${month}月` |
| | | } |
| | | }, |
| | | created() { |
| | | this.initChecks() |
| | | }, |