2025-06-06 15:17:30 +08:00

86 lines
3.0 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.

<!--subpackage/team/task-creat/task-creat.wxml-->
<view class="content">
<view class="card">
<view>任务名称</view>
<view class="right">
<input type="text" style="text-align: right;" placeholder="请输入任务名称" bindinput="nameChange"/>
<!-- <mp-icon icon="arrow" size="{{13}}" class="iconn" color="#8c8c8c"></mp-icon> -->
</view>
</view>
<view class="card" id="once" bind:tap="showDialog">
<view>重复生效</view>
<view class="right">
{{weekName}}
<mp-icon icon="arrow" size="{{13}}" class="iconn" color="#8c8c8c"></mp-icon>
</view>
</view>
<view class="card" id="time">
<view>开始时间</view>
<view class="right">
<picker mode="date" value="{{date}}" start="{{nowDate}}" end="{{nextDate}}" bindchange="bindDateStart">
<view class="picker">
{{startTime == '' ? '请选择任务开始时间':startTime}}
</view>
</picker>
<mp-icon icon="arrow" size="{{13}}" class="iconn" color="#8c8c8c"></mp-icon>
</view>
</view>
<view class="card" id="time">
<view>结束时间</view>
<view class="right">
<picker mode="date" value="{{date}}" start="{{nowDate}}" end="{{nextDate}}" bindchange="bindDateEnd">
<view class="picker">
{{endTime == '' ? '请选择任务结束时间':endTime}}
</view>
</picker>
<mp-icon icon="arrow" size="{{13}}" class="iconn" color="#8c8c8c"></mp-icon>
</view>
</view>
<view class="card" id="type">
<view>模式选择</view>
<view class="right">
<picker mode="multiSelector" bindchange="bindMultiPickerChange" bindcolumnchange="bindColumnChange" value="{{multiIndex}}" range="{{multiArray}}">
<view class="picker">
{{multiArray[0][multiIndex[0]]}}{{mm}}
</view>
</picker>
<mp-icon icon="arrow" size="{{13}}" class="iconn" color="#8c8c8c"></mp-icon>
</view>
</view>
<view class="card" id="type" wx:if="{{multiIndex[1] == 6}}">
<view>跳绳个数</view>
<view class="right">
<input type="number" style="text-align: right;" placeholder="请输入跳绳个数" maxlength="7" bindinput="numChange"/>
<!-- <mp-icon icon="arrow" size="{{13}}" class="iconn" color="#8c8c8c"></mp-icon> -->
</view>
</view>
<view class="btn" bind:tap="creat">提交创建</view>
<mp-half-screen-dialog show="{{show !=''}}" closabled="{{false}}">
<view slot="title">
<view class="tittle">{{show == 'once'?'重复生效':show=='time'?'时间设置':'模式选择'}}</view>
</view>
<view slot="desc">
<checkbox-group bindchange="checkboxChange">
<label class="time" wx:for="{{weekList}}" wx:key="value">
{{item.name}}
<checkbox value="{{item.value}}" color="#26A6F6" />
</label>
</checkbox-group>
</view>
<view slot="footer">
<view class="btnl">
<button class="suu" bind:tap="close">取消</button>
<button class="suu su" bind:tap="sure">确定</button>
</view>
</view>
</mp-half-screen-dialog>
</view>