Complete core mini program flows
ci-cd / verify (push) Successful in 5s
ci-cd / deploy (push) Skipped

This commit is contained in:
2026-10-04 09:26:58 +08:00
parent 5688db4d63
commit c72cf24f56
28 changed files with 490 additions and 65 deletions
+10 -4
View File
@@ -2,7 +2,7 @@
<view class="eyebrow">LITTLE THINGS, BIG LOVE</view>
<view class="title">今日小任务 ☑</view>
<view class="summary">
<view>今天也要照顾好它们</view>
<view>这一天也要照顾好它们</view>
<strong>
{{done}}
<text>/ {{tasks.length}}</text>
@@ -15,6 +15,11 @@
<text class="section-title">{{date}} 的日常</text>
<text class="add" bindtap="open">+ 添加任务</text>
</view>
<view class="date-nav">
<text data-days="-1" bindtap="changeDay">‹ 前一天</text>
<text bindtap="showToday">回到今天</text>
<text data-days="1" bindtap="changeDay">后一天 ›</text>
</view>
<view class="card list">
<view wx:for="{{tasks}}" wx:key="id" class="task">
<view
@@ -27,12 +32,13 @@
<view class="icon">
{{item.category==='water'?'💧':item.category==='food'?'🥣':'🐾'}}
</view>
<view class="info" data-index="{{index}}" bindtap="toggle">
<view class="info" data-index="{{index}}" bindtap="edit">
<strong>{{item.title}}</strong>
<text>
{{item.petName}} · {{item.time_of_day}} ·
{{item.repeat_rule==='daily'?'每天':item.repeat_rule==='weekdays'?'工作日':'周末'}}
</text>
<text>点此编辑</text>
</view>
<text class="remove" data-index="{{index}}" bindtap="remove">×</text>
</view>
@@ -45,7 +51,7 @@
<view wx:if="{{showForm}}" class="overlay">
<view class="sheet">
<view class="row">
<strong>新建小任务</strong>
<strong>{{editingId?'编辑小任务':'新建小任务'}}</strong>
<text bindtap="close">×</text>
</view>
<view class="field">
@@ -128,7 +134,7 @@
</label>
</radio-group>
</view>
<button class="primary" bindtap="save">保存任务</button>
<button class="primary" bindtap="save" disabled="{{saving}}">保存任务</button>
</view>
</view>
<tab-bar current="/pages/tasks/tasks" />