You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.8 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<view class="container">
<form bindsubmit="formSubmit">
<t-input label="任务名称" value="{{jtTaskName}}" name="name" />
<t-textarea name="tips" value="{{jtTaskIntroduction}}" disableDefaultPadding="{{true}}" autosize>
<text class="my-label" slot="label">任务说明</text>
</t-textarea>
<t-cell title="要求完成时间" hover note="{{datetimeText}}" arrow data-mode="datetime" bindtap="showPicker" t-class="pannel-item" />
<view style="display: flex;padding-left: 32rpx;align-items: center; background-color: #fff;">
<text class="my-label">上传方式</text>
<t-radio-group value="{{completionMethod}}" bind:change="onChange" borderless t-class="box" name="completionMethod">
<t-radio block="{{false}}" label="不限" value="{{0}}" />
<t-radio block="{{false}}" label="语音" value="{{1}}" />
<t-radio block="{{false}}" label="图片" value="{{2}}" />
</t-radio-group>
</view>
<view class="wrapper">
<view class="title">
<text>上传图片</text>
<text class="tips"> 支持上传 JPEG、PNG格式最多上传3张单张大小限制为20M</text>
</view>
<t-upload media-type="{{['image']}}" files="{{fileList}}" max="{{6}}" gridConfig="{{gridConfig}}" bind:add="handleAdd" bind:remove="handleRemove" />
</view>
<view class="bottom">
<t-button theme="primary" shape="round" type="submit" block>{{id ? '修改' : '创建'}}</t-button>
</view>
</form>
<t-date-time-picker title="选择日期和时间" visible="{{datetimeVisible}}" mode="minute" value="{{datetime}}" format="YYYY-MM-DD HH:mm" bindchange="onConfirm" bindcancel="hidePicker" />
</view>