Files
Pet3/miniprogram/components/manual-add-sheet/index.wxml
2026-06-25 18:24:29 +08:00

48 lines
1.8 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<view class="overlay {{show?'show':''}}" bindtap="close">
<view class="sheet" catchtap="noop">
<view class="handle"></view>
<view class="title">手动补记</view>
<view class="subtitle">忘记开 App 也能补上这次遛狗</view>
<scroll-view scroll-y class="sheet-body">
<view class="field">
<view class="flabel">哪只狗</view>
<view class="chips">
<view wx:for="{{dogs}}" wx:key="_id" class="chip {{dogId===item._id?'sel':''}}" data-id="{{item._id}}" bindtap="pickDog">{{item.name}}</view>
</view>
</view>
<view class="field">
<view class="flabel">日期</view>
<picker mode="date" value="{{date}}" bindchange="onDate">
<view class="fpick">{{date}} <text class="chev"></text></view>
</picker>
</view>
<view class="field">
<view class="flabel">时间</view>
<picker mode="time" value="{{time}}" bindchange="onTime">
<view class="fpick">{{time}} <text class="chev"></text></view>
</picker>
</view>
<view class="field">
<view class="flabel">时长(分钟)</view>
<input class="finput" type="digit" placeholder="如 15" value="{{durationMin}}" bindinput="onDuration" />
</view>
<view class="field last">
<view class="flabel">距离(公里,可选)</view>
<input class="finput" type="digit" placeholder="可不填" value="{{distance}}" bindinput="onDistance" />
</view>
<view class="rule">补记不影响连续打卡,但不计入排行榜。</view>
</scroll-view>
<view class="btns">
<button class="btn ghost" bindtap="close">取消</button>
<button class="btn primary" bindtap="save" loading="{{submitting}}">保存补记</button>
</view>
</view>
</view>