任务明细页面
This commit is contained in:
51
pages/task/index.wxml
Normal file
51
pages/task/index.wxml
Normal file
@@ -0,0 +1,51 @@
|
||||
<!--pages/task/index.wxml-->
|
||||
<view class="top-wrap">
|
||||
<tab id="category"
|
||||
tab-data="{{categoryMenu}}"
|
||||
tab-cur="{{categoryCur}}"
|
||||
size="{{80}}"
|
||||
scroll="{{false}}"
|
||||
bindchange="toggleCategory">
|
||||
</tab>
|
||||
</view>
|
||||
|
||||
<swiper current="{{categoryCur}}" duration="{{duration}}" bindanimationfinish="animationFinish">
|
||||
<swiper-item wx:for="{{categoryData}}" wx:key="index">
|
||||
<scroll requesting="{{item.requesting}}"
|
||||
end="{{item.end}}"
|
||||
list-count="{{item.listData.length}}"
|
||||
has-top="{{true}}"
|
||||
refresh-size="{{80}}"
|
||||
bind:refresh="refresh"
|
||||
bind:more="more">
|
||||
<view class="cells">
|
||||
<view class="cell"
|
||||
wx:for="{{item.listData}}"
|
||||
wx:key="index"
|
||||
data-id="{{item.taskId}}"
|
||||
data-notify="{{item.notification}}"
|
||||
bind:longpress="handleAction">
|
||||
<view class="name">
|
||||
<t-checkbox wx:if="{{item.complete}}" borderless data-id="{{item.taskId}}" class="checkedBox" label="{{item.title}}" checked bind:change="changeCheck"/>
|
||||
<t-checkbox wx:else borderless data-id="{{item.taskId}}" label="{{item.title}}" bind:change="changeCheck"/>
|
||||
</view>
|
||||
<view class="remark">
|
||||
<!--截止时间-->
|
||||
<t-icon name="calendar"/>{{item.note}}
|
||||
<!--重复-->
|
||||
<t-icon wx:if="!{{item.repeat}}" name="refresh"/>
|
||||
<!--任务备注-->
|
||||
<t-icon wx:if="!{{item.repeat}}" name="books"/>
|
||||
<!--提醒-->
|
||||
<t-icon wx:if="{{item.notification}}" name="notification"/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<t-fab icon="add" bind:click="handleClick"></t-fab>
|
||||
<t-action-sheet id="t-action-sheet" bind:selected="handleSelected" bind:cancel="selectCancel"/>
|
||||
<view>
|
||||
<foot-tab iconList="{{aIconList}}"/>
|
||||
</view>
|
||||
Reference in New Issue
Block a user